1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
* sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use
	INTERNAL_SYSCALL is possible.

	* sysdeps/unix/sysv/linux/i386/sysdep.h
	(INTERNAL_SYSCALL_ERROR_P): New define.
	(INTERNAL_SYSCALL_ERRNO): Likewise.
This commit is contained in:
Ulrich Drepper
2002-10-12 00:49:44 +00:00
parent eb9f749186
commit f44476711d
3 changed files with 29 additions and 5 deletions

View File

@ -40,9 +40,19 @@ __sigwait (set, sig)
/* XXX The size argument hopefully will have to be changed to the
real size of the user-level sigset_t. */
/* XXX INLINE_SYSCALL_NOERROR candiate. */
ret = INLINE_SYSCALL (rt_sigtimedwait, 4, CHECK_SIGSET (set),
NULL, NULL, _NSIG / 8);
#ifdef INTERNAL_SYSCALL
ret = INTERNAL_SYSCALL (rt_sigtimedwait, 4, CHECK_SIGSET (set),
NULL, NULL, _NSIG / 8);
if (! INTERNAL_SYSCALL_ERROR_P (ret))
{
*sig = ret;
ret = 0;
}
else
ret = INTERNAL_SYSCALL_ERRNO (ret);
#else
ret = INLINE_SYSCALL (rt_sigtimedwait, 4, CHECK_SIGSET (set),
NULL, NULL, _NSIG / 8);
if (ret != -1)
{
*sig = ret;
@ -50,6 +60,7 @@ __sigwait (set, sig)
}
else
ret = errno;
#endif
return ret;
}