Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/sys/setcontext.c
Show All 36 Lines | |||||
#include <ucontext.h> | #include <ucontext.h> | ||||
#include "libc_private.h" | #include "libc_private.h" | ||||
__weak_reference(__sys_setcontext, __setcontext); | __weak_reference(__sys_setcontext, __setcontext); | ||||
__sym_compat(setcontext, __impl_setcontext, FBSD_1.0); | __sym_compat(setcontext, __impl_setcontext, FBSD_1.0); | ||||
__weak_reference(setcontext, __impl_setcontext); | __weak_reference(setcontext, __impl_setcontext); | ||||
__sym_default(setcontext, setcontext, FBSD_1.2); | __sym_default(setcontext, setcontext, FBSD_1.2); | ||||
#pragma weak setcontext | |||||
int | int | ||||
setcontext(const ucontext_t *uc) | setcontext(const ucontext_t *uc) | ||||
{ | { | ||||
return (((int (*)(const ucontext_t *)) | return (((int (*)(const ucontext_t *)) | ||||
__libc_interposing[INTERPOS_setcontext])(uc)); | __libc_interposing[INTERPOS_setcontext])(uc)); | ||||
} | } |