2002-04-26 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/Makefile.am: Add io64.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls. * libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto. * libc/sys/linux/io64.c: New file.
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
#define __NR___sgetmask __NR_sgetmask
|
||||
#define __NR___ssetmask __NR_ssetmask
|
||||
#define __NR___sigsuspend __NR_sigsuspend
|
||||
#define __NR___rt_sigtimedwait __NR_rt_sigtimedwait
|
||||
|
||||
_syscall2(int,kill,pid_t,pid,int,sig)
|
||||
_syscall2(__sighandler_t,signal,int,signum,__sighandler_t,handler)
|
||||
@ -25,6 +26,7 @@ _syscall3(int,sigprocmask,int,how,const sigset_t *,set,sigset_t *,oldset)
|
||||
static _syscall0(int,__sgetmask)
|
||||
static _syscall1(int,__ssetmask,int,newmask)
|
||||
static _syscall3(int,__sigsuspend,int,arg1,int,arg2,int,mask)
|
||||
static _syscall4(int,__rt_sigtimedwait,const sigset_t *,set,siginfo_t *,info,struct timespec *,timeout,size_t,size)
|
||||
|
||||
int sigsuspend (const sigset_t *mask)
|
||||
{
|
||||
@ -54,6 +56,16 @@ int raise(int sig)
|
||||
return kill(getpid(),sig);
|
||||
}
|
||||
|
||||
int sigtimedwait(const sigset_t *set, siginfo_t *info,
|
||||
struct timespec *timeout)
|
||||
{
|
||||
return __rt_sigtimedwait(set, info, timeout, sizeof(sigset_t));
|
||||
}
|
||||
|
||||
int sigwaitinfo(const sigset_t *set, siginfo_t *info)
|
||||
{
|
||||
return __rt_sigtimedwait(set, info, NULL, sizeof(sigset_t));
|
||||
}
|
||||
|
||||
const char *const sys_siglist[] = {
|
||||
#include "siglist.inc"
|
||||
|
Reference in New Issue
Block a user