4.104.114.84.95
Last change
on this file since a3cdac3 was
a3cdac3,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/27/00 at 16:58:41
|
2000-11-27 Joel Sherrill <joel@…>
- src/sysconf.c: Add support for _SC_CLK_TCK and _SC_OPEN_MAX.
|
-
Property mode set to
100644
|
File size:
492 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | #include <time.h> |
---|
6 | #include <unistd.h> |
---|
7 | |
---|
8 | #include <rtems/system.h> |
---|
9 | #include <rtems/score/tod.h> |
---|
10 | |
---|
11 | /*PAGE |
---|
12 | * |
---|
13 | * 4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 95 |
---|
14 | */ |
---|
15 | |
---|
16 | long sysconf( |
---|
17 | int name |
---|
18 | ) |
---|
19 | { |
---|
20 | |
---|
21 | switch (name) { |
---|
22 | case _SC_CLK_TCK: |
---|
23 | return _TOD_Ticks_per_second; |
---|
24 | |
---|
25 | case _SC_OPEN_MAX: { |
---|
26 | extern unsigned32 rtems_libio_number_iops; |
---|
27 | return rtems_libio_number_iops; |
---|
28 | } |
---|
29 | |
---|
30 | default: |
---|
31 | break; |
---|
32 | } |
---|
33 | |
---|
34 | return POSIX_NOT_IMPLEMENTED(); |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.