summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-08-22 02:05:58 +0000
committerLaurent Bercot <ska@appnovation.com>2021-08-22 02:05:58 +0000
commitb8e8f5b0c490063a351a1cb5740419b8ba45a2e6 (patch)
tree9dd3343b76d295e748a94c47d06161cb63c38636 /src/include
parent8e6215ee13dc507f2c0a4ab8a02e2d974265d83d (diff)
downloadskalibs-b8e8f5b0c490063a351a1cb5740419b8ba45a2e6.tar.xz
Add ipc_bind_reuse_perms
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/skalibs/socket.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/skalibs/socket.h b/src/include/skalibs/socket.h
index 1ee9970..85340bb 100644
--- a/src/include/skalibs/socket.h
+++ b/src/include/skalibs/socket.h
@@ -48,7 +48,9 @@ extern int ipc_pair_internal (int *, unsigned int) ;
extern int ipc_bind (int, char const *) ;
extern int ipc_bind_reuse (int, char const *) ;
-extern int ipc_bind_reuse_lock (int, char const *, int *) ;
+#define ipc_bind_reuse_lock(fd, path, fdlock) ipc_bind_reuse_lock_perms(fd, path, (fdlock), 0)
+extern int ipc_bind_reuse_perms (int, char const *, unsigned int) ;
+extern int ipc_bind_reuse_lock_perms (int, char const *, int *, unsigned int) ;
extern int ipc_listen (int, int) ;
#define ipc_accept(s, path, len, trunc) ipc_accept_internal(s, path, len, (trunc), 0)