summaryrefslogtreecommitdiff
path: root/src/libstddjb/ipc_bind_reuse_perms.c
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/libstddjb/ipc_bind_reuse_perms.c
parent8e6215ee13dc507f2c0a4ab8a02e2d974265d83d (diff)
downloadskalibs-b8e8f5b0c490063a351a1cb5740419b8ba45a2e6.tar.xz
Add ipc_bind_reuse_perms
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libstddjb/ipc_bind_reuse_perms.c')
-rw-r--r--src/libstddjb/ipc_bind_reuse_perms.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstddjb/ipc_bind_reuse_perms.c b/src/libstddjb/ipc_bind_reuse_perms.c
new file mode 100644
index 0000000..6e25068
--- /dev/null
+++ b/src/libstddjb/ipc_bind_reuse_perms.c
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#include <skalibs/socket.h>
+
+int ipc_bind_reuse_perms (int s, char const *p, unsigned int perms)
+{
+ int fdlock ;
+ return ipc_bind_reuse_lock_perms(s, p, &fdlock, perms) ;
+}