summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-01-17 17:39:51 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-01-17 17:39:51 +0000
commitbb303cab91a164b972dfeca589c2092d874defdf (patch)
treef14d7bd2215a116aca824e9d3568862229fe862c /libc/unistd
parenta7988227899ee7720b530c8bb31a6ae486905f8f (diff)
Added missing _SC_2_FORT_RUN case. Fixed _SC_ATEXIT_MAX to match atexit.c.
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/sysconf.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c
index 4c6529f12..d5c6f6b9d 100644
--- a/libc/unistd/sysconf.c
+++ b/libc/unistd/sysconf.c
@@ -481,6 +481,13 @@ long int sysconf(int name)
return -1;
#endif
+ case _SC_2_FORT_RUN:
+#ifdef _POSIX2_FORT_RUN
+ return _POSIX2_FORT_RUN;
+#else
+ return -1;
+#endif
+
case _SC_2_LOCALEDEF:
#ifdef _POSIX2_LOCALEDEF
return _POSIX2_LOCALEDEF;
@@ -651,8 +658,8 @@ long int sysconf(int name)
#endif
case _SC_ATEXIT_MAX:
- /* We have no limit since we use lists. */
- return INT_MAX;
+ /* See stdlib/atexit.c */
+ return 20;
case _SC_PASS_MAX:
/* We have no limit but since the return value might be used to