2000-11-27 Joel Sherrill <joel@OARcorp.com>

* src/sysconf.c: Add support for _SC_CLK_TCK and _SC_OPEN_MAX.
This commit is contained in:
Joel Sherrill
2000-11-27 16:58:41 +00:00
parent 1c69af9bda
commit a3cdac302f
4 changed files with 38 additions and 0 deletions

View File

@@ -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.

View File

@@ -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();
}