diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-11-25 15:56:28 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-11-26 18:49:48 +0100 |
commit | 0aee3966d647af55231db535b61553531f64d02e (patch) | |
tree | 26349c00766d783b251b3e35e6654979fcbfad3b /libc/unistd/sysconf.c | |
parent | 3a8d2129f4db2fcdb673f2438cb39963550f73d0 (diff) |
sync confname, environments with glibc
Plus related synch.
Add a testcase for the sysconf variables based on the one from glibc
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/unistd/sysconf.c')
-rw-r--r-- | libc/unistd/sysconf.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c index 87206648e..af4389bad 100644 --- a/libc/unistd/sysconf.c +++ b/libc/unistd/sysconf.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1991, 93, 95, 96, 97, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1991,1993,1995-1997,2000 + Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -863,6 +864,30 @@ long int sysconf(int name) #else RETURN_NEG_1; #endif + case _SC_V7_ILP32_OFF32: +#ifdef _POSIX_V7_ILP32_OFF32 + return _POSIX_V7_ILP32_OFF32; +#else + RETURN_NEG_1; +#endif + case _SC_V7_ILP32_OFFBIG: +#ifdef _POSIX_V7_ILP32_OFFBIG + return _POSIX_V7_ILP32_OFFBIG; +#else + RETURN_NEG_1; +#endif + case _SC_V7_LP64_OFF64: +#ifdef _POSIX_V7_LP64_OFF64 + return _POSIX_V7_LP64_OFF64; +#else + RETURN_NEG_1; +#endif + case _SC_V7_LPBIG_OFFBIG: +#ifdef _POSIX_V7_LPBIG_OFFBIG + return _POSIX_V7_LPBIG_OFFBIG; +#else + RETURN_NEG_1; +#endif case _SC_XOPEN_LEGACY: return _XOPEN_LEGACY; |