Changeset c7cba294 in rtems


Ignore:
Timestamp:
Nov 29, 2002, 7:06:54 PM (18 years ago)
Author:
Eric Norum <WENorum@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
472f35a
Parents:
f1de6bc
Message:

Return error rather than panic if argument is unsupported.

Location:
cpukit/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/ChangeLog

    rf1de6bc rc7cba294  
     12002-11-29      Eric Norum <eric.norum@usask.ca>
     2
     3        * src/sysconf.c: Add support for _SC_GETPW_R_SIZE_MAX.
     4                     Return error rather than panic if argument is unsupported.
     5
    162002-11-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • cpukit/posix/src/sysconf.c

    rf1de6bc rc7cba294  
    99#include <time.h>
    1010#include <unistd.h>
     11#include <errno.h>
    1112
    1213#include <rtems/system.h>
     
    3233      }
    3334
     35    case _SC_GETPW_R_SIZE_MAX:
     36        return 1024;
     37
    3438#if defined(__sparc__)
    3539    case 515: /* Solaris _SC_STACK_PROT */
     
    4145  }
    4246
    43   return POSIX_NOT_IMPLEMENTED();
     47  errno = EINVAL;
     48  return -1;
    4449}
Note: See TracChangeset for help on using the changeset viewer.