newlib/winsup/cygwin/include/ucontext.h

29 lines
704 B
C

/* ucontext.h
Copyright 2015 Red Hat, Inc.
This file is part of Cygwin.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#ifndef _UCONTEXT_H
#define _UCONTEXT_H
#include <sys/cdefs.h>
#include <sys/ucontext.h>
__BEGIN_DECLS
extern int getcontext (ucontext_t *) __attribute__((__nonnull__));
extern int setcontext (const ucontext_t *) __attribute__((__nonnull__));
extern int swapcontext (ucontext_t *, const ucontext_t *)
__attribute__((__nonnull__));
extern void makecontext (ucontext_t *, void (*) (void), int, ...)
__attribute__((__nonnull__ (1)));
__END_DECLS
#endif /* _UCONTEXT_H */