source: trunk/src/emx/src/lib/misc/sysconf.c@ 18

Last change on this file since 18 was 18, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 955 bytes
Line 
1/* sysconf.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */
2
3#include <unistd.h>
4#include <limits.h>
5#include <time.h>
6#include <errno.h>
7
8/* Return the POSIX.1 minimum values, for now. */
9
10long _sysconf (int name)
11{
12 switch (name)
13 {
14 case _SC_ARG_MAX:
15 return _POSIX_ARG_MAX;
16
17 case _SC_CHILD_MAX:
18 return _POSIX_CHILD_MAX;
19
20 case _SC_CLK_TCK:
21 /* On emx, CLK_TCK is a constant. On other systems, it may a
22 macro which calls sysconf (_SC_CLK_TCK). */
23
24 return CLK_TCK;
25
26 case _SC_NGROUPS_MAX:
27 return _POSIX_NGROUPS_MAX;
28
29 case _SC_OPEN_MAX:
30 return _POSIX_OPEN_MAX;
31
32 case _SC_STREAM_MAX:
33 return _POSIX_STREAM_MAX;
34
35 case _SC_TZNAME_MAX:
36 return _POSIX_TZNAME_MAX;
37
38 case _SC_JOB_CONTROL:
39 return -1;
40
41 case _SC_SAVED_IDS:
42 return -1;
43
44 case _SC_VERSION:
45 return _POSIX_VERSION;