Changeset e015106 in rtems


Ignore:
Timestamp:
Jan 5, 2000, 5:08:56 PM (20 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
cecd206
Parents:
f602eeb
Message:

+ Changed to resonable default values for maxmsg and msgsize.
+ Added oflag tracking.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/mqueuecreatesupp.c

    rf602eeb re015106  
    4848  _Thread_Disable_dispatch();
    4949 
     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
    5057  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;
    5360  } else {
    5461    if ( attr_ptr->mq_maxmsg < 0 ){
     
    7784  if ( name ) {
    7885
    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? */
    8087      _Thread_Enable_dispatch();
    8188      set_errno_and_return_minus_one( ENAMETOOLONG );
     
    96103 
    97104  the_mq->process_shared  = pshared;
     105  the_mq->oflag = oflag;
    98106 
    99107  if ( name ) {
  • cpukit/posix/src/mqueuecreatesupp.c

    rf602eeb re015106  
    4848  _Thread_Disable_dispatch();
    4949 
     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
    5057  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;
    5360  } else {
    5461    if ( attr_ptr->mq_maxmsg < 0 ){
     
    7784  if ( name ) {
    7885
    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? */
    8087      _Thread_Enable_dispatch();
    8188      set_errno_and_return_minus_one( ENAMETOOLONG );
     
    96103 
    97104  the_mq->process_shared  = pshared;
     105  the_mq->oflag = oflag;
    98106 
    99107  if ( name ) {
Note: See TracChangeset for help on using the changeset viewer.