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 {
|
|
|
|
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
|