Lines 35-41
int file2fd(const char *path, const char
Link Here
|
35 |
/* signal to pipe delivery implementation */ |
35 |
/* signal to pipe delivery implementation */ |
36 |
|
36 |
|
37 |
/* create a signal pipe, returns 0 for success, -1 with errno for failure */ |
37 |
/* create a signal pipe, returns 0 for success, -1 with errno for failure */ |
38 |
int sigpipe_create(); |
38 |
int sigpipe_create(void); |
39 |
|
39 |
|
40 |
/* generic handler for signals, writes signal number to pipe */ |
40 |
/* generic handler for signals, writes signal number to pipe */ |
41 |
void sigpipe_handler(int signum); |
41 |
void sigpipe_handler(int signum); |
Lines 44-54
void sigpipe_handler(int signum);
Link Here
|
44 |
void sigpipe_assign(int signum); |
44 |
void sigpipe_assign(int signum); |
45 |
|
45 |
|
46 |
/* return the signal pipe read file descriptor for select(2) */ |
46 |
/* return the signal pipe read file descriptor for select(2) */ |
47 |
int sigpipe_fd(); |
47 |
int sigpipe_fd(void); |
48 |
|
48 |
|
49 |
/* read and return the pending signal from the pipe */ |
49 |
/* read and return the pending signal from the pipe */ |
50 |
int sigpipe_read(); |
50 |
int sigpipe_read(void); |
51 |
|
51 |
|
52 |
void sigpipe_close(); |
52 |
void sigpipe_close(void); |
53 |
|
53 |
|
54 |
#endif /* INC_UTIL_H */ |
54 |
#endif /* INC_UTIL_H */ |