summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/confstr.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2002-09-19 03:47:36 +0000
committerwollman <wollman@FreeBSD.org>2002-09-19 03:47:36 +0000
commita58c104a74fea8fc4e817cdac848bd7bf2ad9cd8 (patch)
treed88b70e191d8506328a6bb81a5fe1d07bdbaa278 /lib/libc/gen/confstr.c
parent99bac58a2f5a55f51180c53638fe9b7d65d2e035 (diff)
downloadFreeBSD-src-a58c104a74fea8fc4e817cdac848bd7bf2ad9cd8.zip
FreeBSD-src-a58c104a74fea8fc4e817cdac848bd7bf2ad9cd8.tar.gz
Return the correct environment name for 64-bit platforms in the
_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS case.
Diffstat (limited to 'lib/libc/gen/confstr.c')
-rw-r--r--lib/libc/gen/confstr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/confstr.c b/lib/libc/gen/confstr.c
index 5af2233..966c3fe 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;
OpenPOWER on IntegriCloud