diff options
Diffstat (limited to 'c/src/exec')
-rw-r--r-- | c/src/exec/posix/ChangeLog | 4 | ||||
-rw-r--r-- | c/src/exec/posix/src/sysconf.c | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/c/src/exec/posix/ChangeLog b/c/src/exec/posix/ChangeLog index 451db35ba7..90eb3a390b 100644 --- a/c/src/exec/posix/ChangeLog +++ b/c/src/exec/posix/ChangeLog @@ -1,3 +1,7 @@ +2000-11-27 Joel Sherrill <joel@OARcorp.com> + + * src/sysconf.c: Add support for _SC_CLK_TCK and _SC_OPEN_MAX. + 2000-11-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. diff --git a/c/src/exec/posix/src/sysconf.c b/c/src/exec/posix/src/sysconf.c index c8b82b65c8..be9e33a54f 100644 --- a/c/src/exec/posix/src/sysconf.c +++ b/c/src/exec/posix/src/sysconf.c @@ -6,6 +6,7 @@ #include <unistd.h> #include <rtems/system.h> +#include <rtems/score/tod.h> /*PAGE * @@ -16,5 +17,19 @@ long sysconf( int name ) { + + switch (name) { + case _SC_CLK_TCK: + return _TOD_Ticks_per_second; + + case _SC_OPEN_MAX: { + extern unsigned32 rtems_libio_number_iops; + return rtems_libio_number_iops; + } + + default: + break; + } + return POSIX_NOT_IMPLEMENTED(); } |