Files
flexnbd-c/src/common/self_pipe.h

20 lines
437 B
C
Raw Normal View History

2012-06-27 15:45:33 +01:00
#ifndef SELF_PIPE_H
#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;
};
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