mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 07:37:25 -04:00
Add getcontext, setcontext, makecontext, and swapcontext prototypes
to ucontext.h. Approved by: -arch
This commit is contained in:
parent
b66b8326e5
commit
ed4e4544b1
1 changed files with 7 additions and 0 deletions
|
|
@ -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 a new issue