mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Linux: rt_sigqueueinfo syscall number is always available
Due to the built-in tables, __NR_rt_sigqueueinfo is always defined. sysdeps/pthread/time_routines.c is not updated because it is shared with Hurd. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -26,8 +26,6 @@
|
|||||||
|
|
||||||
#include <aio_misc.h>
|
#include <aio_misc.h>
|
||||||
|
|
||||||
#ifdef __NR_rt_sigqueueinfo
|
|
||||||
|
|
||||||
/* 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
|
||||||
__aio_sigqueue (int sig, const union sigval val, pid_t caller_pid)
|
__aio_sigqueue (int sig, const union sigval val, pid_t caller_pid)
|
||||||
@ -46,6 +44,3 @@ __aio_sigqueue (int sig, const union sigval val, pid_t caller_pid)
|
|||||||
|
|
||||||
return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, sig, &info);
|
return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, sig, &info);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
# include <rt/aio_sigqueue.c>
|
|
||||||
#endif
|
|
||||||
|
@ -26,8 +26,6 @@
|
|||||||
|
|
||||||
#include "gai_misc.h"
|
#include "gai_misc.h"
|
||||||
|
|
||||||
#ifdef __NR_rt_sigqueueinfo
|
|
||||||
|
|
||||||
/* 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
|
||||||
__gai_sigqueue (int sig, const union sigval val, pid_t caller_pid)
|
__gai_sigqueue (int sig, const union sigval val, pid_t caller_pid)
|
||||||
@ -46,6 +44,3 @@ __gai_sigqueue (int sig, const union sigval val, pid_t caller_pid)
|
|||||||
|
|
||||||
return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, sig, &info);
|
return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, sig, &info);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
# include <resolv/gai_sigqueue.c>
|
|
||||||
#endif
|
|
||||||
|
Reference in New Issue
Block a user