diff options
Diffstat (limited to 'cpukit/posix/src/sysconf.c')
-rw-r--r-- | cpukit/posix/src/sysconf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/posix/src/sysconf.c b/cpukit/posix/src/sysconf.c index 905f53696c..2d11473c5c 100644 --- a/cpukit/posix/src/sysconf.c +++ b/cpukit/posix/src/sysconf.c @@ -8,6 +8,7 @@ #include <time.h> #include <unistd.h> +#include <errno.h> #include <rtems/system.h> #include <rtems/score/tod.h> @@ -31,6 +32,9 @@ long sysconf( return rtems_libio_number_iops; } + case _SC_GETPW_R_SIZE_MAX: + return 1024; + #if defined(__sparc__) case 515: /* Solaris _SC_STACK_PROT */ return 0; @@ -40,5 +44,6 @@ long sysconf( break; } - return POSIX_NOT_IMPLEMENTED(); + errno = EINVAL; + return -1; } |