diff options
author | dim <dim@FreeBSD.org> | 2012-04-29 11:04:31 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-04-29 11:04:31 +0000 |
commit | 81a3e2b46db5474df3633b850805e5e981a6cbb4 (patch) | |
tree | 698e4c5df1fba3867e4ca78763a6760206f74894 /include/setjmp.h | |
parent | 6b0b09e72a82ff0e99c864ca023a9eb62f72d629 (diff) | |
download | FreeBSD-src-81a3e2b46db5474df3633b850805e5e981a6cbb4.zip FreeBSD-src-81a3e2b46db5474df3633b850805e5e981a6cbb4.tar.gz |
Add a convenience macro for the returns_twice attribute, and apply it to
the prototypes of the appropriate functions (getcontext, savectx,
setjmp, sigsetjmp and vfork).
MFC after: 2 weeks
Diffstat (limited to 'include/setjmp.h')
-rw-r--r-- | include/setjmp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/setjmp.h b/include/setjmp.h index 49d4ed5..bf03f6f 100644 --- a/include/setjmp.h +++ b/include/setjmp.h @@ -46,16 +46,16 @@ __BEGIN_DECLS #if __BSD_VISIBLE || __XSI_VISIBLE >= 600 void _longjmp(jmp_buf, int) __dead2; -int _setjmp(jmp_buf); +int _setjmp(jmp_buf) __returns_twice; #endif void longjmp(jmp_buf, int) __dead2; #if __BSD_VISIBLE void longjmperror(void); #endif -int setjmp(jmp_buf); +int setjmp(jmp_buf) __returns_twice; #if __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE void siglongjmp(sigjmp_buf, int) __dead2; -int sigsetjmp(sigjmp_buf, int); +int sigsetjmp(sigjmp_buf, int) __returns_twice; #endif __END_DECLS |