diff options
author | jasone <jasone@FreeBSD.org> | 1999-12-16 21:53:39 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 1999-12-16 21:53:39 +0000 |
commit | afbc7e5a64acd18b1e9c350460473810bcbf1bc4 (patch) | |
tree | cc3e67134335b82ba0ca566ab40ab13985419fc9 /include | |
parent | d1b926a88fd09019d13d7fd497545987eb434d74 (diff) | |
download | FreeBSD-src-afbc7e5a64acd18b1e9c350460473810bcbf1bc4.zip FreeBSD-src-afbc7e5a64acd18b1e9c350460473810bcbf1bc4.tar.gz |
Move POSIX feature constants from pthread.h to unistd.h, as required by
1003.1c-1995.
Undefine _POSIX_THREAD_SAFE_FUNCTIONS, since we do not implement all of the
necessary interfaces. At least getgrgid_r(), getrnam_r(), getpwuid_r(),
getpwnam_r(), getc_unlocked(), getchar_unlocked(), putc_unlocked(),
and putchar_unlocked() are missing. Due to a likely typo in 1003.1c-1995,
we are not technically allowed to define _POSIX_THREADS without defining
_POSIX_THREAD_SAFE_FUNCTIONS, but either way we're non-compliant, so I'm
leaving _POSIX_THREADS defined.
PR: bin/8281
Diffstat (limited to 'include')
-rw-r--r-- | include/pthread.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/pthread.h b/include/pthread.h index f4c8220..f67720d 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -54,21 +54,6 @@ #define PTHREAD_THREADS_MAX ULONG_MAX /* - * Compile time symbolic constants for portability specifications: - * - * Note that those commented out are not currently supported by the - * implementation. - */ -#define _POSIX_THREADS -#define _POSIX_THREAD_ATTR_STACKADDR -#define _POSIX_THREAD_ATTR_STACKSIZE -#define _POSIX_THREAD_PRIORITY_SCHEDULING -#define _POSIX_THREAD_PRIO_INHERIT -#define _POSIX_THREAD_PRIO_PROTECT -/* #define _POSIX_THREAD_PROCESS_SHARED */ -#define _POSIX_THREAD_SAFE_FUNCTIONS - -/* * Flags for threads and thread attributes. */ #define PTHREAD_DETACHED 0x1 @@ -174,10 +159,8 @@ struct pthread_once { #endif #define PTHREAD_PRIO_NONE 0 -#ifdef _POSIX_THREAD_PRIO_PROTECT #define PTHREAD_PRIO_INHERIT 1 #define PTHREAD_PRIO_PROTECT 2 -#endif /* * Mutex types (Single UNIX Specification, Version 2, 1997). |