diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-02-12 02:02:14 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-02-12 02:02:14 +0100 |
commit | b5a0699f0bb8b1d1ae55bb0d86f51dfe2783821b (patch) | |
tree | 71ba3fb026dadf3608720bc2514625ebd1ae453a /socket-util.h | |
parent | a9f5d45466c923442ceb31ab2a4206736133d9d4 (diff) |
socket: allow configuration of socket/directory mode
Diffstat (limited to 'socket-util.h')
-rw-r--r-- | socket-util.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/socket-util.h b/socket-util.h index 0e73991ef5..62a48ac35a 100644 --- a/socket-util.h +++ b/socket-util.h @@ -58,6 +58,14 @@ typedef enum SocketAddressBindIPv6Only { int socket_address_parse(SocketAddress *a, const char *s); int socket_address_print(const SocketAddress *a, char **p); int socket_address_verify(const SocketAddress *a); -int socket_address_listen(const SocketAddress *a, int backlog, SocketAddressBindIPv6Only only, const char *bind_to_device, int *ret); + +int socket_address_listen( + const SocketAddress *a, + int backlog, + SocketAddressBindIPv6Only only, + const char *bind_to_device, + mode_t directory_mode, + mode_t socket_mode, + int *ret); #endif |