Jeff King | e277097 | 2011-12-10 05:34:14 -0500 | [diff] [blame] | 1 | #ifndef UNIX_SOCKET_H |
| 2 | #define UNIX_SOCKET_H |
| 3 | |
Jeff Hostetler | 55144cc | 2021-03-15 21:08:25 +0000 | [diff] [blame] | 4 | struct unix_stream_listen_opts { |
| 5 | int listen_backlog_size; |
Jeff Hostetler | 77e522c | 2021-03-15 21:08:26 +0000 | [diff] [blame] | 6 | unsigned int disallow_chdir:1; |
Jeff Hostetler | 55144cc | 2021-03-15 21:08:25 +0000 | [diff] [blame] | 7 | }; |
| 8 | |
| 9 | #define UNIX_STREAM_LISTEN_OPTS_INIT { 0 } |
| 10 | |
Jeff Hostetler | 77e522c | 2021-03-15 21:08:26 +0000 | [diff] [blame] | 11 | int unix_stream_connect(const char *path, int disallow_chdir); |
Jeff Hostetler | 55144cc | 2021-03-15 21:08:25 +0000 | [diff] [blame] | 12 | int unix_stream_listen(const char *path, |
| 13 | const struct unix_stream_listen_opts *opts); |
Jeff King | e277097 | 2011-12-10 05:34:14 -0500 | [diff] [blame] | 14 | |
| 15 | #endif /* UNIX_SOCKET_H */ |