diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-09-02 07:22:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-09-02 07:22:27 +0000 |
commit | abaaba3e2878ee72afffed9ef245737f9d0de42c (patch) | |
tree | a2bc7693e3b904e2946da88a3f56ae6634627aba | |
parent | ef1dca834f79e94ab7d33c6ab33cd5eab2ed21cb (diff) | |
download | glibc-abaaba3e2878ee72afffed9ef245737f9d0de42c.tar glibc-abaaba3e2878ee72afffed9ef245737f9d0de42c.tar.gz glibc-abaaba3e2878ee72afffed9ef245737f9d0de42c.tar.bz2 glibc-abaaba3e2878ee72afffed9ef245737f9d0de42c.zip |
(pthread_barrierattr_setpshared): We don't handle inter-process barriers.
-rw-r--r-- | linuxthreads/barrier.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linuxthreads/barrier.c b/linuxthreads/barrier.c index ef8640d626..ea09e77281 100644 --- a/linuxthreads/barrier.c +++ b/linuxthreads/barrier.c @@ -1,5 +1,5 @@ /* POSIX barrier implementation for LinuxThreads. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Kaz Kylheku <kaz@ashi.footprints.net>, 2000. @@ -117,8 +117,8 @@ __pthread_barrierattr_getpshared(const pthread_barrierattr_t *attr, int pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared) { - if (pshared != PTHREAD_PROCESS_PRIVATE && pshared != PTHREAD_PROCESS_SHARED) - return EINVAL; + if (pshared != PTHREAD_PROCESS_PRIVATE) + return ENOSYS; attr->__pshared = pshared; return 0; |