1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Function declaration cleanup

This patch changes the some function declaration from K&R style to
default ANSI C.

	* nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
	* nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
	* nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
	* nptl/pthread_exit.c (__pthread_exit): Likewise.
	* nptl/pthread_join.c (pthread_join): Likewise.
	* nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
	* sysdeps/posix/waitid.c (__waitid): Likewise.
	* sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
	* sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
	* sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
	* sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
	* sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
	Likewise.
	* sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
	(__libc_pread64): Likewise.
	* sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
	(__libc_pwrite): Likewise.
	* sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
	(__libc_pwrite64): Likewsie.
	* sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
	* sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
	* sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
	* sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
	* sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
	* sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
	* sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
	(__libc_pread64): Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
	Likewise.
	* sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
	(__libc_pwrite64): Likewise.
	* sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
	* sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
	* sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
	* sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
	* sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
	* sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
	* sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
	* sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
	* sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
	* sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
	* sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
	* sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
	* sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
	* sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
	* sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
	Likewise.
This commit is contained in:
Adhemerval Zanella
2015-01-06 08:22:41 -08:00
committed by H.J. Lu
parent 10a5e112b6
commit 14bb4e57c0
43 changed files with 102 additions and 194 deletions

View File

@ -1,3 +1,57 @@
2015-01-06 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
* nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
* nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
* nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
* nptl/pthread_exit.c (__pthread_exit): Likewise.
* nptl/pthread_join.c (pthread_join): Likewise.
* nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
* sysdeps/posix/waitid.c (__waitid): Likewise.
* sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
* sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
* sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
* sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
* sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
Likewise.
* sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
(__libc_pread64): Likewise.
* sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
(__libc_pwrite): Likewise.
* sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
(__libc_pwrite64): Likewsie.
* sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
* sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
* sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
* sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
* sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
* sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
(__libc_pread64): Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
(__libc_pwrite64): Likewise.
* sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
* sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
* sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
* sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
* sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
* sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
* sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
* sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
* sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
* sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
* sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
* sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
* sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
* sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
* sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
Likewise.
2015-01-06 Andrew Senkevich <andrew.n.senkevich@gmail.com> 2015-01-06 Andrew Senkevich <andrew.n.senkevich@gmail.com>
* math/Makefile (CFLAGS-test-float.c): Remove -frounding-math. * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.

View File

@ -25,8 +25,7 @@
int int
pthread_cancel (th) pthread_cancel (pthread_t th)
pthread_t th;
{ {
volatile struct pthread *pd = (volatile struct pthread *) th; volatile struct pthread *pd = (volatile struct pthread *) th;

View File

@ -49,10 +49,8 @@ struct _condvar_cleanup_buffer
}; };
int int
__pthread_cond_timedwait (cond, mutex, abstime) __pthread_cond_timedwait (pthread_cond_t *cond, pthread_mutex_t *mutex,
pthread_cond_t *cond; const struct timespec *abstime)
pthread_mutex_t *mutex;
const struct timespec *abstime;
{ {
struct _pthread_cleanup_buffer buffer; struct _pthread_cleanup_buffer buffer;
struct _condvar_cleanup_buffer cbuffer; struct _condvar_cleanup_buffer cbuffer;

View File

@ -98,9 +98,7 @@ __condvar_cleanup (void *arg)
int int
__pthread_cond_wait (cond, mutex) __pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex)
pthread_cond_t *cond;
pthread_mutex_t *mutex;
{ {
struct _pthread_cleanup_buffer buffer; struct _pthread_cleanup_buffer buffer;
struct _condvar_cleanup_buffer cbuffer; struct _condvar_cleanup_buffer cbuffer;

View File

@ -21,8 +21,7 @@
void void
__pthread_exit (value) __pthread_exit (void *value)
void *value;
{ {
THREAD_SETMEM (THREAD_SELF, result, value); THREAD_SETMEM (THREAD_SELF, result, value);

View File

@ -37,9 +37,7 @@ cleanup (void *arg)
int int
pthread_join (threadid, thread_return) pthread_join (pthread_t threadid, void **thread_return)
pthread_t threadid;
void **thread_return;
{ {
struct pthread *pd = (struct pthread *) threadid; struct pthread *pd = (struct pthread *) threadid;

View File

@ -30,10 +30,8 @@ cleanup (void *arg)
int int
pthread_timedjoin_np (threadid, thread_return, abstime) pthread_timedjoin_np (pthread_t threadid, void **thread_return,
pthread_t threadid; const struct timespec *abstime)
void **thread_return;
const struct timespec *abstime;
{ {
struct pthread *self; struct pthread *self;
struct pthread *pd = (struct pthread *) threadid; struct pthread *pd = (struct pthread *) threadid;

View File

@ -149,11 +149,7 @@ OUR_WAITID (idtype_t idtype, id_t id, siginfo_t *infop, int options)
int int
__waitid (idtype, id, infop, options) __waitid (idtype_t idtype, id_t id, siginfo_t *infop, int options)
idtype_t idtype;
id_t id;
siginfo_t *infop;
int options;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_waitid (idtype, id, infop, options); return do_waitid (idtype, id, infop, options);

View File

@ -24,11 +24,7 @@
#include <sys/syscall.h> #include <sys/syscall.h>
ssize_t ssize_t
__libc_pread (fd, buf, count, offset) __libc_pread (int fd, void *buf, size_t count, off_t offset)
int fd;
void *buf;
size_t count;
off_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -24,11 +24,7 @@
#include <sys/syscall.h> #include <sys/syscall.h>
ssize_t ssize_t
__libc_pread64 (fd, buf, count, offset) __libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
int fd;
void *buf;
size_t count;
off64_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -24,11 +24,7 @@
#include <sys/syscall.h> #include <sys/syscall.h>
ssize_t ssize_t
__libc_pwrite (fd, buf, count, offset) __libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
int fd;
const void *buf;
size_t count;
off_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -24,11 +24,7 @@
#include <sys/syscall.h> #include <sys/syscall.h>
ssize_t ssize_t
__libc_pwrite64 (fd, buf, count, offset) __libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
int fd;
const void *buf;
size_t count;
off64_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -35,11 +35,7 @@ do_pread (int fd, void *buf, size_t count, off_t offset)
} }
ssize_t ssize_t
__libc_pread (fd, buf, count, offset) __libc_pread (int fd, void *buf, size_t count, off_t offset)
int fd;
void *buf;
size_t count;
off_t offset;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_pread (fd, buf, count, offset); return do_pread (fd, buf, count, offset);

View File

@ -35,11 +35,7 @@ do_pread64 (int fd, void *buf, size_t count, off64_t offset)
ssize_t ssize_t
__libc_pread64 (fd, buf, count, offset) __libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
int fd;
void *buf;
size_t count;
off64_t offset;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_pread64 (fd, buf, count, offset); return do_pread64 (fd, buf, count, offset);

View File

@ -36,11 +36,7 @@ do_pwrite (int fd, const void *buf, size_t count, off_t offset)
ssize_t ssize_t
__libc_pwrite (fd, buf, count, offset) __libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
int fd;
const void *buf;
size_t count;
off_t offset;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_pwrite (fd, buf, count, offset); return do_pwrite (fd, buf, count, offset);

View File

@ -35,11 +35,7 @@ do_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
ssize_t ssize_t
__libc_pwrite64 (fd, buf, count, offset) __libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
int fd;
const void *buf;
size_t count;
off64_t offset;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_pwrite64 (fd, buf, count, offset); return do_pwrite64 (fd, buf, count, offset);

View File

@ -36,11 +36,7 @@
ssize_t ssize_t
__libc_pread (fd, buf, count, offset) __libc_pread (int fd, void *buf, size_t count, off_t offset):
int fd;
void *buf;
size_t count;
off_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -35,11 +35,7 @@
ssize_t ssize_t
__libc_pread64 (fd, buf, count, offset) __libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
int fd;
void *buf;
size_t count;
off64_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -36,11 +36,7 @@
ssize_t ssize_t
__libc_pwrite (fd, buf, count, offset) __libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
int fd;
const void *buf;
size_t count;
off_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -35,11 +35,7 @@
ssize_t ssize_t
__libc_pwrite64 (fd, buf, count, offset) __libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
int fd;
const void *buf;
size_t count;
off64_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -33,12 +33,8 @@ struct ipc_kludge
ssize_t ssize_t
__libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg) __libc_msgrcv (int msqid, void *msgp, size_t msgsz, long int msgtyp,
int msqid; int msgflg)
void *msgp;
size_t msgsz;
long int msgtyp;
int msgflg;
{ {
/* The problem here is that Linux' calling convention only allows up to /* The problem here is that Linux' calling convention only allows up to
fives parameters to a system call. */ fives parameters to a system call. */

View File

@ -24,11 +24,7 @@
#include <sys/syscall.h> #include <sys/syscall.h>
int int
__libc_msgsnd (msqid, msgp, msgsz, msgflg) __libc_msgsnd (int msqid, const void *msgp, size_t msgsz, int msgflg)
int msqid;
const void *msgp;
size_t msgsz;
int msgflg;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return INLINE_SYSCALL (ipc, 5, IPCOP_msgsnd, msqid, msgsz, return INLINE_SYSCALL (ipc, 5, IPCOP_msgsnd, msqid, msgsz,

View File

@ -37,11 +37,7 @@
int int
OPENAT_NOT_CANCEL (fd, file, oflag, mode) OPENAT_NOT_CANCEL (int fd, const char *file, int oflag, mode_t mode)
int fd;
const char *file;
int oflag;
mode_t mode;
{ {
/* We have to add the O_LARGEFILE flag for openat64. */ /* We have to add the O_LARGEFILE flag for openat64. */
@ -61,10 +57,7 @@ OPENAT_NOT_CANCEL (fd, file, oflag, mode)
the directory associated with FD. If OFLAG includes O_CREAT, a the directory associated with FD. If OFLAG includes O_CREAT, a
third argument is the file protection. */ third argument is the file protection. */
int int
__OPENAT (fd, file, oflag) __OPENAT (int fd, const char *file, int oflag, ...)
int fd;
const char *file;
int oflag;
{ {
mode_t mode = 0; mode_t mode = 0;
if (oflag & O_CREAT) if (oflag & O_CREAT)

View File

@ -24,11 +24,7 @@
#include <sys/syscall.h> #include <sys/syscall.h>
ssize_t ssize_t
__libc_pread (fd, buf, count, offset) __libc_pread (int fd, void *buf, size_t count, off_t offset)
int fd;
void *buf;
size_t count;
off_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -24,11 +24,7 @@
ssize_t ssize_t
__libc_pread64 (fd, buf, count, offset) __libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
int fd;
void *buf;
size_t count;
off64_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -25,11 +25,7 @@
ssize_t ssize_t
__libc_pwrite (fd, buf, count, offset) __libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
int fd;
const void *buf;
size_t count;
off_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -24,11 +24,7 @@
ssize_t ssize_t
__libc_pwrite64 (fd, buf, count, offset) __libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
int fd;
const void *buf;
size_t count;
off64_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -49,11 +49,7 @@ do_pread (int fd, void *buf, size_t count, off_t offset)
ssize_t ssize_t
__libc_pread (fd, buf, count, offset) __libc_pread (int fd, void *buf, size_t count, off_t offset)
int fd;
void *buf;
size_t count;
off_t offset;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_pread (fd, buf, count, offset); return do_pread (fd, buf, count, offset);

View File

@ -45,11 +45,7 @@ do_pread64 (int fd, void *buf, size_t count, off64_t offset)
ssize_t ssize_t
__libc_pread64 (fd, buf, count, offset) __libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
int fd;
void *buf;
size_t count;
off64_t offset;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_pread64 (fd, buf, count, offset); return do_pread64 (fd, buf, count, offset);

View File

@ -48,11 +48,7 @@ static ssize_t PREADV_REPLACEMENT (int, const struct iovec *,
ssize_t ssize_t
PREADV (fd, vector, count, offset) PREADV (int fd, const struct iovec *vector, int count, OFF_T offset)
int fd;
const struct iovec *vector;
int count;
OFF_T offset;
{ {
#ifdef __NR_preadv #ifdef __NR_preadv
ssize_t result; ssize_t result;

View File

@ -24,9 +24,7 @@
int int
__pthread_kill (threadid, signo) __pthread_kill (pthread_t threadid, int signo)
pthread_t threadid;
int signo;
{ {
struct pthread *pd = (struct pthread *) threadid; struct pthread *pd = (struct pthread *) threadid;

View File

@ -49,11 +49,7 @@ do_pwrite (int fd, const void *buf, size_t count, off_t offset)
ssize_t ssize_t
__libc_pwrite (fd, buf, count, offset) __libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
int fd;
const void *buf;
size_t count;
off_t offset;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_pwrite (fd, buf, count, offset); return do_pwrite (fd, buf, count, offset);

View File

@ -45,11 +45,7 @@ do_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
ssize_t ssize_t
__libc_pwrite64 (fd, buf, count, offset) __libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
int fd;
const void *buf;
size_t count;
off64_t offset;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_pwrite64 (fd, buf, count, offset); return do_pwrite64 (fd, buf, count, offset);

View File

@ -48,11 +48,7 @@ static ssize_t PWRITEV_REPLACEMENT (int, const struct iovec *,
ssize_t ssize_t
PWRITEV (fd, vector, count, offset) PWRITEV (int fd, const struct iovec *vector, int count, OFF_T offset)
int fd;
const struct iovec *vector;
int count;
OFF_T offset;
{ {
#ifdef __NR_pwritev #ifdef __NR_pwritev
ssize_t result; ssize_t result;

View File

@ -33,11 +33,7 @@
ssize_t ssize_t
__libc_pread (fd, buf, count, offset) __libc_pread (int fd, void *buf, size_t count, off_t offset)
int fd;
void *buf;
size_t count;
off_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -32,11 +32,7 @@
ssize_t ssize_t
__libc_pread64 (fd, buf, count, offset) __libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
int fd;
void *buf;
size_t count;
off64_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -33,11 +33,7 @@
ssize_t ssize_t
__libc_pwrite (fd, buf, count, offset) __libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
int fd;
const void *buf;
size_t count;
off_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -32,11 +32,7 @@
ssize_t ssize_t
__libc_pwrite64 (fd, buf, count, offset) __libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
int fd;
const void *buf;
size_t count;
off64_t offset;
{ {
ssize_t result; ssize_t result;

View File

@ -32,8 +32,7 @@ do_sigsuspend (const sigset_t *set)
/* Change the set of blocked signals to SET, /* Change the set of blocked signals to SET,
wait until a signal arrives, and restore the set of blocked signals. */ wait until a signal arrives, and restore the set of blocked signals. */
int int
__sigsuspend (set) __sigsuspend (const sigset_t *set)
const sigset_t *set;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_sigsuspend (set); return do_sigsuspend (set);

View File

@ -67,10 +67,8 @@ do_sigtimedwait (const sigset_t *set, siginfo_t *info,
/* Return any pending signal or wait for one for the given time. */ /* Return any pending signal or wait for one for the given time. */
int int
__sigtimedwait (set, info, timeout) __sigtimedwait (const sigset_t *set, siginfo_t *info,
const sigset_t *set; const struct timespec *timeout)
siginfo_t *info;
const struct timespec *timeout;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_sigtimedwait (set, info, timeout); return do_sigtimedwait (set, info, timeout);

View File

@ -86,9 +86,7 @@ do_sigwait (const sigset_t *set, int *sig)
} }
int int
__sigwait (set, sig) __sigwait (const sigset_t *set, int *sig)
const sigset_t *set;
int *sig;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_sigwait (set, sig); return do_sigwait (set, sig);

View File

@ -68,9 +68,7 @@ do_sigwaitinfo (const sigset_t *set, siginfo_t *info)
/* Return any pending signal or wait for one for the given time. */ /* Return any pending signal or wait for one for the given time. */
int int
__sigwaitinfo (set, info) __sigwaitinfo (const sigset_t *set, siginfo_t *info)
const sigset_t *set;
siginfo_t *info;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return do_sigwaitinfo (set, info); return do_sigwaitinfo (set, info);

View File

@ -23,12 +23,8 @@
#include <sys/syscall.h> #include <sys/syscall.h>
ssize_t ssize_t
__libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg) __libc_msgrcv (int msqid, void *msgp, size_t msgsz, long int msgtyp,
int msqid; int msgflg)
void *msgp;
size_t msgsz;
long int msgtyp;
int msgflg;
{ {
if (SINGLE_THREAD_P) if (SINGLE_THREAD_P)
return INLINE_SYSCALL (ipc, 6, IPCOP_msgrcv, msqid, msgsz, msgflg, return INLINE_SYSCALL (ipc, 6, IPCOP_msgrcv, msqid, msgsz, msgflg,