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

20 lines
444 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 {
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 );
2012-06-27 15:45:33 +01:00
#endif