File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
src/unix/linux_like/linux/musl Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -936,6 +936,10 @@ pub const SS: ::c_int = 16;
936936
937937extern "C" {
938938 pub fn getrandom ( buf : * mut :: c_void , buflen : :: size_t , flags : :: c_uint ) -> :: ssize_t ;
939+ pub fn getcontext ( ucp : * mut ucontext_t ) -> :: c_int ;
940+ pub fn setcontext ( ucp : * const ucontext_t ) -> :: c_int ;
941+ pub fn makecontext ( ucp : * mut ucontext_t , func : extern "C" fn ( ) , argc : :: c_int , ...) ;
942+ pub fn swapcontext ( uocp : * mut ucontext_t , ucp : * const ucontext_t ) -> :: c_int ;
939943}
940944
941945cfg_if ! {
Original file line number Diff line number Diff line change @@ -682,6 +682,10 @@ pub const TIOCM_RI: ::c_int = TIOCM_RNG;
682682
683683extern "C" {
684684 pub fn ioctl ( fd : :: c_int , request : :: c_int , ...) -> :: c_int ;
685+ pub fn getcontext ( ucp : * mut ucontext_t ) -> :: c_int ;
686+ pub fn setcontext ( ucp : * const ucontext_t ) -> :: c_int ;
687+ pub fn makecontext ( ucp : * mut ucontext_t , func : extern "C" fn ( ) , argc : :: c_int , ...) ;
688+ pub fn swapcontext ( uocp : * mut ucontext_t , ucp : * const ucontext_t ) -> :: c_int ;
685689}
686690
687691cfg_if ! {
Original file line number Diff line number Diff line change @@ -950,6 +950,10 @@ pub const TIOCM_RI: ::c_int = TIOCM_RNG;
950950
951951extern "C" {
952952 pub fn ioctl ( fd : :: c_int , request : :: c_int , ...) -> :: c_int ;
953+ pub fn getcontext ( ucp : * mut ucontext_t ) -> :: c_int ;
954+ pub fn setcontext ( ucp : * const ucontext_t ) -> :: c_int ;
955+ pub fn makecontext ( ucp : * mut ucontext_t , func : extern "C" fn ( ) , argc : :: c_int , ...) ;
956+ pub fn swapcontext ( uocp : * mut ucontext_t , ucp : * const ucontext_t ) -> :: c_int ;
953957}
954958
955959cfg_if ! {
You can’t perform that action at this time.
0 commit comments