Add a self_pipe set of convenience functions
This commit is contained in:
16
src/self_pipe.h
Normal file
16
src/self_pipe.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#define SELF_PIPE_H
|
||||
|
||||
#include <sys/select.h>
|
||||
|
||||
struct self_pipe {
|
||||
int read_fd;
|
||||
int write_fd;
|
||||
};
|
||||
|
||||
|
||||
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 );
|
Reference in New Issue
Block a user