mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
Add getcontext, setcontext, makecontext, and swapcontext prototypes
to ucontext.h. Approved by: -arch
This commit is contained in:
parent
b66b8326e5
commit
ed4e4544b1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89178
@ -50,4 +50,11 @@ typedef struct __ucontext {
|
||||
int __spare__[8];
|
||||
} ucontext_t;
|
||||
|
||||
#ifndef _KERNEL
|
||||
int getcontext(ucontext_t *);
|
||||
int setcontext(const ucontext_t *);
|
||||
void makecontext(ucontext_t *, void (*)(void), int, ...);
|
||||
int swapcontext(ucontext_t *, const ucontext_t *);
|
||||
#endif /* !_KERNEL */
|
||||
|
||||
#endif /* !_SYS_UCONTEXT_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user