Mail Archives: djgpp-workers/2001/06/17/10:16:35
This patch adds _SC_V6_ILP32_OFF32 to show that djgpp supports a 32-bit
environment.
Index: include/unistd.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/unistd.h,v
retrieving revision 1.11
diff -c -p -r1.11 unistd.h
*** include/unistd.h 2001/06/14 02:44:26 1.11
--- include/unistd.h 2001/06/17 05:08:46
*************** extern "C" {
*** 61,66 ****
--- 61,67 ----
#undef _POSIX_SAVED_IDS
#define _POSIX_VDISABLE -1
#define _POSIX_VERSION 199009L
+ #define _POSIX_V6_ILP32_OFF32 0
#define _SC_ARG_MAX 1
#define _SC_CHILD_MAX 2
*************** extern "C" {
*** 72,77 ****
--- 73,79 ----
#define _SC_STREAM_MAX 8
#define _SC_TZNAME_MAX 9
#define _SC_VERSION 10
+ #define _SC_V6_ILP32_OFF32 11
#ifndef _SIZE_T
__DJ_size_t
Index: src/libc/posix/unistd/sysconf.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/posix/unistd/sysconf.c,v
retrieving revision 1.2
diff -c -p -r1.2 sysconf.c
*** src/libc/posix/unistd/sysconf.c 1998/01/01 22:14:04 1.2
--- src/libc/posix/unistd/sysconf.c 2001/06/17 05:08:46
***************
*** 1,3 ****
--- 1,4 ----
+ /* Copyright (C) 2001 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <errno.h>
*************** sysconf(int name)
*** 21,26 ****
--- 22,28 ----
case _SC_STREAM_MAX: return _POSIX_STREAM_MAX;
case _SC_TZNAME_MAX: return TZNAME_MAX;
case _SC_VERSION: return _POSIX_VERSION;
+ case _SC_V6_ILP32_OFF32: return _POSIX_V6_ILP32_OFF32;
default:
errno = EINVAL;
- Raw text -