其他分享
首页 > 其他分享> > c10_api

c10_api

作者:互联网

#include <signal.h>
#include <unistd.h>
#include <setjmp.h>
#include <stdlib.h>
#include <time.h>

typedef void (*sighandler_t)(int);
sighandler_t signal(int signo, sighandler_t handler);

int kill(pit_t pid, int signo);
int raise(int signo);

unsigned int alarm(unsigned int seconds);
int pause();

int sigemptyset(sigset_t* set);
int sigfillset(sigset_t* set);
int sigaddset(sigset_t* set, int signo);
int sigdelset(sigset_t* set, int signo);
int sigismember(const sigset_t* set, int signo);
int sigprocmask(int how, const sigset_t* set, sigset_t* oset);
int sigpending(sigset_t *set);
int sigaction(int signo, const struct sigaction* act, struct sigaction* oact);

int sigsetjmp(sigjmp_buf env, int savemask);
void siglongjmp(sigjmp_buf env, int val);

int sigsuspend(const sigset_t* set);

void abort();

unsigned int sleep(unsigned int seconds);
int nanosleep(const struct timespec* reqtp, struct timespec* remtp);
int clock_nanosleep(clockid_t cid, int flags, const struct timespec* reqtp, struct timespec* remtp);

int sigqueue(pid_t pid, int signo, const union sigval value);

void psignal(int signo, const char* msg);
void psiginfo(const siginfo_t* info, const char* msg);
char* strsignal(int signo);

标签:set,const,struct,sigset,int,signo,api,c10
来源: https://www.cnblogs.com/bwzdxl/p/12628577.html