Move _POSIX_THREADS to the right place and define a few other symbolic
constants for the features we gained with the merge of the nathanw_sa branch. Ok'd by thorpej. Closes my PR 19930.
This commit is contained in:
parent
95b5cce5c6
commit
023fed95bf
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pthread.h,v 1.5 2003/01/19 19:21:49 wiz Exp $ */
|
||||
/* $NetBSD: pthread.h,v 1.6 2003/01/19 19:41:44 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -176,8 +176,6 @@ __END_DECLS
|
|||
*/
|
||||
#define PTHREAD_CANCELED ((void *) 1)
|
||||
|
||||
#define _POSIX_THREADS
|
||||
|
||||
#define PTHREAD_DESTRUCTOR_ITERATIONS 4 /* Min. required */
|
||||
#define PTHREAD_KEYS_MAX 256
|
||||
#define PTHREAD_STACK_MIN 4096 /* XXX Pulled out of my butt */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: unistd.h,v 1.21 2002/12/19 23:31:57 kleink Exp $ */
|
||||
/* $NetBSD: unistd.h,v 1.22 2003/01/19 19:41:47 skrll Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -85,7 +85,16 @@
|
|||
#define _POSIX_MEMORY_PROTECTION 1
|
||||
/* monotonic clock */
|
||||
#define _POSIX_MONOTONIC_CLOCK 200112L
|
||||
|
||||
/* threads */
|
||||
#define _POSIX_THREADS 200112L
|
||||
/* barriers */
|
||||
#define _POSIX_BARRIERS 200112L
|
||||
/* timers */
|
||||
#define _POSIX_TIMERS 200112L
|
||||
/* spin locks */
|
||||
#define _POSIX_SPIN_LOCKS 200112L
|
||||
/* reader/writer locks */
|
||||
#define _POSIX_READER_WRITER_LOCKS 200112L
|
||||
|
||||
/* access function */
|
||||
#define F_OK 0 /* test for existence of file */
|
||||
|
|
Loading…
Reference in New Issue