diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 2002-09-19 03:47:36 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 2002-09-19 03:47:36 +0000 |
commit | 4b85f43b304116240a9f131eaf2894ebb89f9402 (patch) | |
tree | d88b70e191d8506328a6bb81a5fe1d07bdbaa278 /lib/libc/gen/confstr.c | |
parent | 78ff8258353281451b02c90728bfa2b9cab02585 (diff) | |
download | src-4b85f43b304116240a9f131eaf2894ebb89f9402.tar.gz src-4b85f43b304116240a9f131eaf2894ebb89f9402.zip |
Return the correct environment name for 64-bit platforms in the
_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS case.
Notes
Notes:
svn path=/head/; revision=103593
Diffstat (limited to 'lib/libc/gen/confstr.c')
-rw-r--r-- | lib/libc/gen/confstr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/confstr.c b/lib/libc/gen/confstr.c index 5af2233a4d9c..966c3fe2ae19 100644 --- a/lib/libc/gen/confstr.c +++ b/lib/libc/gen/confstr.c @@ -105,8 +105,9 @@ confstr(int name, char *buf, size_t len) goto docopy; case _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS: + /* XXX - should have more complete coverage */ if (sizeof(long) * CHAR_BIT >= 64) - p = "_POSIX_V6_LPBIG_OFFBIG"; + p = "_POSIX_V6_LP64_OFF64"; else p = "_POSIX_V6_ILP32_OFFBIG"; goto docopy; |