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 /sys/sys/ucontext.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 'sys/sys/ucontext.h')
-rw-r--r-- | sys/sys/ucontext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/ucontext.h b/sys/sys/ucontext.h index 609cdd3..1e504c9 100644 --- a/sys/sys/ucontext.h +++ b/sys/sys/ucontext.h @@ -71,7 +71,7 @@ struct ucontext4 { __BEGIN_DECLS -int getcontext(ucontext_t *); +int getcontext(ucontext_t *) __returns_twice; ucontext_t *getcontextx(void); int setcontext(const ucontext_t *); void makecontext(ucontext_t *, void (*)(void), int, ...); |