]> git.saurik.com Git - apple/libc.git/blobdiff - include/unistd.h
Libc-1439.40.11.tar.gz
[apple/libc.git] / include / unistd.h
index 7896f8d2aae8d05ed7575f20a4871b8e0e1b3ccb..01b7166fa51244397d4569625f6289f2c94c754f 100644 (file)
 #endif /* __DARWIN_C_LEVEL */
 
 #define        __ILP32_OFF32          (-1)
+#ifdef UNIFDEF_POSIX_ILP32_ALLOW
 #define        __ILP32_OFFBIG         (1)
+#else // UNIFDEF_POSIX_ILP32_ALLOW
+#define        __ILP32_OFFBIG         (-1)
+#endif // UNIFDEF_POSIX_ILP32_ALLOW
+
 #define        __LP64_OFF64           (1)
 #define        __LPBIG_OFFBIG         (1)
 
@@ -586,6 +591,7 @@ __END_DECLS
  */
 
 #if __DARWIN_C_LEVEL >= 199506L
+#include <_ctermid.h>
                                /* These F_* are really XSI or Issue 6 */
 #define F_ULOCK         0      /* unlock locked section */
 #define        F_LOCK          1      /* lock a section for exclusive use */
@@ -605,11 +611,6 @@ int         chroot(const char *) __POSIX_C_DEPRECATED(199506L);
 #endif
 
 char   *crypt(const char *, const char *);
-#ifndef __CTERMID_DEFINED
-/* Multiply defined in stdio.h and unistd.h by SUS */
-#define __CTERMID_DEFINED 1
-char    *ctermid(char *);
-#endif
 #if __DARWIN_UNIX03
 //Begin-Libc
 #ifndef LIBC_ALIAS_ENCRYPT