Changeset e015106 in rtems for cpukit/posix/src/mqueuecreatesupp.c
- Timestamp:
- 01/05/00 17:08:56 (23 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- cecd206
- Parents:
- f602eeb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/posix/src/mqueuecreatesupp.c
rf602eeb re015106 48 48 _Thread_Disable_dispatch(); 49 49 50 /* 51 * There is no real basis for the default values. They will work 52 * but were not compared against any existing implementation for 53 * compatibility. See README.mqueue for an example program we 54 * think will print out the defaults. Report anything you find with it. 55 */ 56 50 57 if ( attr_ptr == NULL ) { 51 attr.mq_maxmsg = 0; /* XXX */52 attr.mq_msgsize = 0; /* XXX */58 attr.mq_maxmsg = 10; 59 attr.mq_msgsize = 16; 53 60 } else { 54 61 if ( attr_ptr->mq_maxmsg < 0 ){ … … 77 84 if ( name ) { 78 85 79 if( strlen(name) > PATH_MAX ) { /* XXX - Is strlen ok to use here? */86 if( strlen(name) > PATH_MAX ) { /* XXX - on non-null terminated name? */ 80 87 _Thread_Enable_dispatch(); 81 88 set_errno_and_return_minus_one( ENAMETOOLONG ); … … 96 103 97 104 the_mq->process_shared = pshared; 105 the_mq->oflag = oflag; 98 106 99 107 if ( name ) {
Note: See TracChangeset
for help on using the changeset viewer.