From 104e8a0e3b30f6dda6ce9c1b901a6bb8ee046616 Mon Sep 17 00:00:00 2001 From: Daniel Sabogal Date: Sun, 4 Sep 2016 10:42:47 -0400 Subject: add missing confstr constants the _CS_V6_ENV and _CS_V7_ENV constants are required to be available for use with confstr. glibc defines these constants with values 1148 and 1149, respectively. the only missing (and required) confstr constants are _CS_POSIX_V7_THREADS_CFLAGS and _CS_POSIX_V7_THREADS_LDFLAGS which remain unavailable in glibc. --- src/conf/confstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf') diff --git a/src/conf/confstr.c b/src/conf/confstr.c index 6e9c23a0..02cb1aa2 100644 --- a/src/conf/confstr.c +++ b/src/conf/confstr.c @@ -7,7 +7,7 @@ size_t confstr(int name, char *buf, size_t len) const char *s = ""; if (!name) { s = "/bin:/usr/bin"; - } else if ((name&~4U)!=1 && name-_CS_POSIX_V6_ILP32_OFF32_CFLAGS>31U) { + } else if ((name&~4U)!=1 && name-_CS_POSIX_V6_ILP32_OFF32_CFLAGS>33U) { errno = EINVAL; return 0; } -- cgit v1.2.1