2002-07-10  Ulrich Drepper  <drepper@redhat.com>

	* wrapsyscall.c: Add __nanosleep alias.
	* Versions (GLIBC_2.2.6): Add __nanosleep.
This commit is contained in:
Ulrich Drepper 2002-07-10 20:43:48 +00:00
parent ee33bfcc07
commit d880edc43c
4 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-07-10 Ulrich Drepper <drepper@redhat.com>
* wrapsyscall.c: Add __nanosleep alias.
* Versions (GLIBC_2.2.6): Add __nanosleep.
2002-06-19 Steven Munroe <sjmunroe@vnet.ibm.com> 2002-06-19 Steven Munroe <sjmunroe@vnet.ibm.com>
* Examples/ex9.c (main): Use list of children and join them. * Examples/ex9.c (main): Use list of children and join them.

View File

@ -153,6 +153,10 @@ libpthread {
# Extensions. # Extensions.
pthread_getattr_np; pthread_getattr_np;
} }
GLIBC_2.2.6 {
# Cancellation wrapper
__nanosleep;
}
GLIBC_PRIVATE { GLIBC_PRIVATE {
# Internal libc interface to libpthread # Internal libc interface to libpthread
__libc_internal_tsd_get; __libc_internal_tsd_set; __libc_internal_tsd_get; __libc_internal_tsd_set;

View File

@ -105,6 +105,7 @@ CANCELABLE_SYSCALL (int, msync, (__ptr_t addr, size_t length, int flags),
CANCELABLE_SYSCALL (int, nanosleep, (const struct timespec *requested_time, CANCELABLE_SYSCALL (int, nanosleep, (const struct timespec *requested_time,
struct timespec *remaining), struct timespec *remaining),
(requested_time, remaining)) (requested_time, remaining))
strong_alias (nanosleep, __nanosleep)
/* open(2). */ /* open(2). */

View File

@ -1,5 +1,5 @@
/* __sig_atomic_t, __sigset_t, and related definitions. SVR4 version. /* __sig_atomic_t, __sigset_t, and related definitions. SVR4 version.
Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. Copyright (C) 1994-1996, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -44,7 +44,7 @@ typedef struct
/* It's easier to assume 8-bit bytes than to get CHAR_BIT. */ /* It's easier to assume 8-bit bytes than to get CHAR_BIT. */
#define __NSSBITS (sizeof (__sigset_t) * 8) #define __NSSBITS (sizeof (unsigned long int) * 8)
#define __SSELT(s) ((s) / __NSSBITS) #define __SSELT(s) ((s) / __NSSBITS)
#define __SSMASK(s) (1 << ((s) % __NSSBITS)) #define __SSMASK(s) (1 << ((s) % __NSSBITS))