From: Roland McGrath Date: Mon, 6 May 2013 23:03:35 +0000 (-0700) Subject: Flesh out stub not-cancel.h file. X-Git-Tag: upstream/2.20~2144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=962e6658a325fdc34c8fd761c41a6c098b8747eb;p=platform%2Fupstream%2Flinaro-glibc.git Flesh out stub not-cancel.h file. --- diff --git a/ChangeLog b/ChangeLog index 78fcc9c..1deca8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2013-05-06 Roland McGrath + * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro. + (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel): + New macros. + * debug/getlogin_r_chk.c: Moved to ... * login/getlogin_r_chk.c: ... here. * debug/Makefile (routines): Move getlogin_r_chk to ... diff --git a/sysdeps/generic/not-cancel.h b/sysdeps/generic/not-cancel.h index 6688244..d5e76d5 100644 --- a/sysdeps/generic/not-cancel.h +++ b/sysdeps/generic/not-cancel.h @@ -44,3 +44,11 @@ __fcntl (fd, cmd, val) # define waitpid_not_cancel(pid, stat_loc, options) \ __waitpid (pid, stat_loc, options) +#define pause_not_cancel() \ + __pause () +#define nanosleep_not_cancel(requested_time, remaining) \ + __nanosleep (requested_time, remaining) +#define sigsuspend_not_cancel(set) \ + __sigsuspend (set) + +#define NO_CANCELLATION 1