man swapcontext () - See makecontext.3posix

REFERENCE

See makecontext.3posix