Mail Archives: djgpp-workers/2001/06/19/00:16:22
Nanoo, Nanoo Earthlings,
More buildup for getconf. This updated adds entries for
_CS_POSIX_V6_ILP32_OFF32_* as described in the posix draft.
Index: include/unistd.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/unistd.h,v
retrieving revision 1.12
diff -c -p -r1.12 unistd.h
*** include/unistd.h 2001/06/18 16:40:01 1.12
--- include/unistd.h 2001/06/19 04:11:43
*************** extern "C" {
*** 43,49 ****
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
! #define _CS_PATH 1
#define _PC_CHOWN_RESTRICTED 1
#define _PC_LINK_MAX 2
--- 43,52 ----
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
! #define _CS_PATH 1
! #define _CS_POSIX_V6_ILP32_OFF32_CFLAGS 2
! #define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS 3
! #define _CS_POSIX_V6_ILP32_OFF32_LIBS 4
#define _PC_CHOWN_RESTRICTED 1
#define _PC_LINK_MAX 2
Index: src/libc/posix/unistd/confstr.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/posix/unistd/confstr.c,v
retrieving revision 1.1
diff -c -p -r1.1 confstr.c
*** src/libc/posix/unistd/confstr.c 2001/06/14 02:55:50 1.1
--- src/libc/posix/unistd/confstr.c 2001/06/19 04:11:43
*************** confstr(int name, char *buf, size_t len)
*** 37,42 ****
--- 37,50 ----
}
break;
}
+ /* No options are required for the default 32-bit environment. */
+ case _CS_POSIX_V6_ILP32_OFF32_CFLAGS:
+ case _CS_POSIX_V6_ILP32_OFF32_LDFLAGS:
+ case _CS_POSIX_V6_ILP32_OFF32_LIBS:
+ {
+ out_len = snprintf(buf, len, "");
+ }
+
default:
{
errno = EINVAL;
Index: src/libc/posix/unistd/confstr.txh
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/posix/unistd/confstr.txh,v
retrieving revision 1.2
diff -c -p -r1.2 confstr.txh
*** src/libc/posix/unistd/confstr.txh 2001/06/16 03:49:53 1.2
--- src/libc/posix/unistd/confstr.txh 2001/06/19 04:11:44
*************** in @var{buf}. @var{name} is one of the
*** 18,23 ****
--- 18,38 ----
Returns a path to the standard POSIX utilities.
+ @item _CS_POSIX_V6_ILP32_OFF32_CFLAGS
+
+ Returns the compile-time flags required to build an application using 32-
bit
+ @code{int}, @code{long}, pointer, and @code{off_t} types.
+
+ @item _CS_POSIX_V6_ILP32_OFF32_LDFLAGS
+
+ Returns the link-time flags required to build an application using 32-bit
+ @code{int}, @code{long}, pointer, and @code{off_t} types.
+
+ @item _CS_POSIX_V6_ILP32_OFF32_LIBS
+
+ Returns the set of libraries required to build an application using 32-bit
+ @code{int}, @code{long}, pointer, and @code{off_t} types.
+
@end table
If @var{len} is not zero and @var{name} has a defined value, that value
- Raw text -