mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Update.
2003-09-02 Jakub Jelinek <jakub@redhat.com> * barrier.c (__pthread_barrierattr_getpshared): Always return PTHREAD_PROCESS_PRIVATE. (pthread_barrierattr_setpshared): Return EINVAL if pshared is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
This commit is contained in:
parent
763d0f40cf
commit
e29ef64706
@ -1,3 +1,10 @@
|
||||
2003-09-02 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* barrier.c (__pthread_barrierattr_getpshared): Always
|
||||
return PTHREAD_PROCESS_PRIVATE.
|
||||
(pthread_barrierattr_setpshared): Return EINVAL if pshared
|
||||
is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
|
||||
|
||||
2003-09-02 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/i386/dl-sysdep.h
|
||||
|
@ -110,16 +110,19 @@ int
|
||||
__pthread_barrierattr_getpshared(const pthread_barrierattr_t *attr,
|
||||
int *pshared)
|
||||
{
|
||||
*pshared = attr->__pshared;
|
||||
*pshared = PTHREAD_PROCESS_PRIVATE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared)
|
||||
{
|
||||
if (pshared != PTHREAD_PROCESS_PRIVATE && pshared != PTHREAD_PROCESS_SHARED)
|
||||
return EINVAL;
|
||||
|
||||
/* For now it is not possible to shared a conditional variable. */
|
||||
if (pshared != PTHREAD_PROCESS_PRIVATE)
|
||||
return ENOSYS;
|
||||
|
||||
attr->__pshared = pshared;
|
||||
return 0;
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
NPTL 0.56 by Ulrich Drepper
|
||||
NPTL 0.57 by Ulrich Drepper
|
||||
|
@ -1,5 +1,9 @@
|
||||
2003-09-02 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* pthread_condattr_setpshared.c: Include errno.h.
|
||||
(pthread_condattr_setpshared): Return EINVAL if pshared
|
||||
is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
|
||||
|
||||
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Also
|
||||
defined symbol for entry point to avoid cancellation.
|
||||
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO):
|
||||
|
@ -17,16 +17,21 @@
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
#include "pthreadP.h"
|
||||
#include <errno.h>
|
||||
#include <pthreadP.h>
|
||||
|
||||
int
|
||||
pthread_condattr_setpshared (attr, pshared)
|
||||
pthread_condattr_t *attr;
|
||||
int pshared;
|
||||
{
|
||||
if (pshared != PTHREAD_PROCESS_PRIVATE
|
||||
&& __builtin_expect (pshared != PTHREAD_PROCESS_SHARED, 0))
|
||||
return EINVAL;
|
||||
|
||||
int *valuep = &((struct pthread_condattr *) attr)->value;
|
||||
|
||||
*valuep = (*valuep & ~1) | (pshared != 0);
|
||||
*valuep = (*valuep & ~1) | (pshared != PTHREAD_PROCESS_PRIVATE);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -68,9 +68,6 @@
|
||||
#define PSEUDO(name, syscall_name, args) \
|
||||
.text; \
|
||||
ENTRY (name) \
|
||||
.type __##syscall_name##_nocancel,@function; \
|
||||
.globl __##syscall_name##_nocancel; \
|
||||
__##syscall_name##_nocancel: \
|
||||
DO_CALL (syscall_name, args); \
|
||||
cmpl $-4095, %eax; \
|
||||
jae SYSCALL_ERROR_LABEL; \
|
||||
|
3
sysdeps/unix/sysv/linux/powerpc/syscalls.list
Normal file
3
sysdeps/unix/sysv/linux/powerpc/syscalls.list
Normal file
@ -0,0 +1,3 @@
|
||||
# File name Caller Syscall name # args Strong name Weak names
|
||||
|
||||
waitpid - waitpid Ci:ipi __waitpid waitpid __libc_waitpid
|
3
sysdeps/unix/sysv/linux/sparc/syscalls.list
Normal file
3
sysdeps/unix/sysv/linux/sparc/syscalls.list
Normal file
@ -0,0 +1,3 @@
|
||||
# File name Caller Syscall name # args Strong name Weak names
|
||||
|
||||
waitpid - waitpid Ci:ipi __waitpid waitpid __libc_waitpid
|
Loading…
Reference in New Issue
Block a user