diff options
author | Roland McGrath <roland@gnu.org> | 2006-07-31 07:17:01 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2006-07-31 07:17:01 +0000 |
commit | 518b2177f6c4f79e148414edf507a1aabab0e07b (patch) | |
tree | 8208ec657ac9776ade468a04bc9a8d60e8ab9e2a /sysdeps/unix/sysv/linux/not-cancel.h | |
parent | ab5823b4b6e760345d347b98830ccc75aa81bff6 (diff) |
Updated to fedora-glibc-20060731T0706
Diffstat (limited to 'sysdeps/unix/sysv/linux/not-cancel.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/not-cancel.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/not-cancel.h b/sysdeps/unix/sysv/linux/not-cancel.h index 4a76335a55..80d33be29c 100644 --- a/sysdeps/unix/sysv/linux/not-cancel.h +++ b/sysdeps/unix/sysv/linux/not-cancel.h @@ -81,3 +81,25 @@ extern int __openat64_nocancel (int fd, const char *fname, int oflag, # define waitpid_not_cancel(pid, stat_loc, options) \ INLINE_SYSCALL (wait4, 4, pid, stat_loc, options, NULL) #endif + +/* Uncancelable pause. */ +#ifdef __NR_pause +# define pause_not_cancel() \ + INLINE_SYSCALL (pause, 0) +#else +# define pause_not_cancel() \ + __pause_nocancel () +#endif + +/* Uncancelable nanosleep. */ +#ifdef __NR_nanosleep +# define nanosleep_not_cancel(requested_time, remaining) \ + INLINE_SYSCALL (nanosleep, 2, requested_time, remaining) +#else +# define nanosleep_not_cancel(requested_time, remaining) \ + __nanosleep_nocancel (requested_time, remaining) +#endif + +/* Uncancelable sigsuspend. */ +#define sigsuspend_not_cancel(set) \ + __sigsuspend_nocancel (set) |