2012-06-27 15:45:33 +01:00
|
|
|
#ifndef SELF_PIPE_H
|
2012-06-01 16:25:27 +01:00
|
|
|
#define SELF_PIPE_H
|
|
|
|
|
|
|
|
#include <sys/select.h>
|
|
|
|
|
|
|
|
struct self_pipe {
|
2018-02-20 10:05:35 +00:00
|
|
|
int read_fd;
|
|
|
|
int write_fd;
|
2012-06-01 16:25:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2018-02-20 10:05:35 +00:00
|
|
|
struct self_pipe *self_pipe_create(void);
|
|
|
|
int self_pipe_signal(struct self_pipe *sig);
|
|
|
|
int self_pipe_signal_clear(struct self_pipe *sig);
|
|
|
|
int self_pipe_destroy(struct self_pipe *sig);
|
|
|
|
int self_pipe_fd_set(struct self_pipe *sig, fd_set * fds);
|
|
|
|
int self_pipe_fd_isset(struct self_pipe *sig, fd_set * fds);
|
2012-06-27 15:45:33 +01:00
|
|
|
|
|
|
|
#endif
|