diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-12-18 01:38:17 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-12-18 01:38:17 +0000 |
commit | 82f81a9086320d12eb2fc45766203954b90461a2 (patch) | |
tree | b2c668e5ee6bc1e9c4176cee394ac7f37b382617 /linuxthreads/lockfile.c | |
parent | f077a4a9f027b938bd091583e3ec34725cba428c (diff) | |
download | glibc-82f81a9086320d12eb2fc45766203954b90461a2.zip glibc-82f81a9086320d12eb2fc45766203954b90461a2.tar.gz glibc-82f81a9086320d12eb2fc45766203954b90461a2.tar.bz2 |
Update.
* sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
Make cancelable.
* sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
Likewise.
* sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
Likewise.
* sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
Likewise.
* sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
Diffstat (limited to 'linuxthreads/lockfile.c')
-rw-r--r-- | linuxthreads/lockfile.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/linuxthreads/lockfile.c b/linuxthreads/lockfile.c index 0e27324..34055e4 100644 --- a/linuxthreads/lockfile.c +++ b/linuxthreads/lockfile.c @@ -21,80 +21,51 @@ #include <stdio.h> #include <pthread.h> #include "internals.h" - -#ifdef USE_IN_LIBIO #include "../libio/libioP.h" -#endif - -#ifndef SHARED -/* We need a hook to force this file to be linked in when static - libpthread is used. */ -const int __pthread_provide_lockfile = 0; -#endif void __flockfile (FILE *stream) { -#ifdef USE_IN_LIBIO __pthread_mutex_lock (stream->_lock); -#else -#endif } -#ifdef USE_IN_LIBIO #undef _IO_flockfile strong_alias (__flockfile, _IO_flockfile) -#endif weak_alias (__flockfile, flockfile); void __funlockfile (FILE *stream) { -#ifdef USE_IN_LIBIO __pthread_mutex_unlock (stream->_lock); -#else -#endif } -#ifdef USE_IN_LIBIO #undef _IO_funlockfile strong_alias (__funlockfile, _IO_funlockfile) -#endif weak_alias (__funlockfile, funlockfile); int __ftrylockfile (FILE *stream) { -#ifdef USE_IN_LIBIO return __pthread_mutex_trylock (stream->_lock); -#else -#endif } -#ifdef USE_IN_LIBIO strong_alias (__ftrylockfile, _IO_ftrylockfile) -#endif weak_alias (__ftrylockfile, ftrylockfile); void __flockfilelist(void) { -#ifdef USE_IN_LIBIO _IO_list_lock(); -#endif } void __funlockfilelist(void) { -#ifdef USE_IN_LIBIO _IO_list_unlock(); -#endif } void __fresetlockfiles (void) { -#ifdef USE_IN_LIBIO _IO_ITER i; pthread_mutexattr_t attr; @@ -108,5 +79,4 @@ __fresetlockfiles (void) __pthread_mutexattr_destroy (&attr); _IO_list_resetlock(); -#endif } |