diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2008-06-25 14:58:55 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2008-06-25 14:58:55 +0000 |
commit | d916f957d346ffaea92d19911e484cebc027a939 (patch) | |
tree | 896191f45551f8a3fcb4a5fb3cf86d5e9348ecfe /include/unistd.h | |
parent | 17934aa50bba3ed925e1ba655300331c8faf4f15 (diff) |
Move _POSIX_THREAD_SAFE_FUNCTIONS into unistd.h and set it to 200112
now that we support all the _r functions required by POSIX 1003.1-2001.
Also define _POSIX_REENTRANT_FUNCTIONS. OK kurt@ deraadt@
Diffstat (limited to 'include/unistd.h')
-rw-r--r-- | include/unistd.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h index 6751bbb9b27..a28fb72d146 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unistd.h,v 1.61 2008/04/29 14:52:54 kurt Exp $ */ +/* $OpenBSD: unistd.h,v 1.62 2008/06/25 14:58:54 millert Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /*- @@ -50,6 +50,11 @@ #define F_TEST 3 /* test a section for locks by other procs */ #endif +#if __POSIX_VISIBLE +#define _POSIX_REENTRANT_FUNCTIONS 1 +#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L +#endif + #ifndef NULL #ifdef __GNUG__ #define NULL __null |