Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Move _POSIX_THREADS to the right place and define a few othe...



details:   https://anonhg.NetBSD.org/src/rev/10eb09814859
branches:  trunk
changeset: 541888:10eb09814859
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Jan 19 19:41:44 2003 +0000

description:
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.

diffstat:

 lib/libpthread/pthread.h |   4 +---
 sys/sys/unistd.h         |  13 +++++++++++--
 2 files changed, 12 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r ae417312e5e6 -r 10eb09814859 lib/libpthread/pthread.h
--- a/lib/libpthread/pthread.h  Sun Jan 19 19:32:39 2003 +0000
+++ b/lib/libpthread/pthread.h  Sun Jan 19 19:41:44 2003 +0000
@@ -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 @@
  */
 #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 */
diff -r ae417312e5e6 -r 10eb09814859 sys/sys/unistd.h
--- a/sys/sys/unistd.h  Sun Jan 19 19:32:39 2003 +0000
+++ b/sys/sys/unistd.h  Sun Jan 19 19:41:44 2003 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index