commit f16d25a7c6bb9c0645ce31d15f6564577197af45
parent 88b9b0e742da6dd054656c37e3cd4bb3a2ac8f64
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Tue, 19 Feb 2019 16:47:05 +0000
Adaptation to skalibs/posixishard.h
Diffstat:
13 files changed, 35 insertions(+), 8 deletions(-)
diff --git a/src/fdholder/s6-fdholderd.c b/src/fdholder/s6-fdholderd.c
@@ -10,6 +10,8 @@
#include <errno.h>
#include <signal.h>
#include <regex.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/types.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/sgetopt.h>
diff --git a/src/libs6/ftrigr_updateb.c b/src/libs6/ftrigr_updateb.c
@@ -4,8 +4,9 @@
#include <sys/uio.h>
#include <stdint.h>
#include <errno.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/gccattributes.h>
-#include <skalibs/error.h>
#include <skalibs/uint16.h>
#include <skalibs/genalloc.h>
#include <skalibs/gensetdyn.h>
diff --git a/src/libs6/ftrigr_wait_or.c b/src/libs6/ftrigr_wait_or.c
@@ -1,8 +1,10 @@
/* ISC license. */
#include <errno.h>
-#include <skalibs/error.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/iopause.h>
+
#include <s6/ftrigr.h>
int ftrigr_wait_or (ftrigr_t *a, uint16_t const *idlist, unsigned int n, tain_t const *deadline, tain_t *stamp, char *c)
diff --git a/src/libs6/s6-ftrigrd.c b/src/libs6/s6-ftrigrd.c
@@ -6,6 +6,8 @@
#include <errno.h>
#include <signal.h>
#include <regex.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/types.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/error.h>
@@ -18,6 +20,7 @@
#include <skalibs/iopause.h>
#include <skalibs/textmessage.h>
#include <skalibs/textclient.h>
+
#include "ftrig1.h"
#include <s6/ftrigr.h>
diff --git a/src/libs6/s6_fdholder_delete.c b/src/libs6/s6_fdholder_delete.c
@@ -1,10 +1,12 @@
/* ISC license. */
#include <errno.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/allreadwrite.h>
-#include <skalibs/error.h>
#include <skalibs/tai.h>
#include <skalibs/unixmessage.h>
+
#include <s6/s6-fdholder.h>
int s6_fdholder_delete (s6_fdholder_t *a, char const *id, tain_t const *deadline, tain_t *stamp)
diff --git a/src/libs6/s6_fdholder_getdump.c b/src/libs6/s6_fdholder_getdump.c
@@ -3,13 +3,15 @@
#include <string.h>
#include <stdint.h>
#include <errno.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/uint32.h>
#include <skalibs/allreadwrite.h>
-#include <skalibs/error.h>
#include <skalibs/tai.h>
#include <skalibs/genalloc.h>
#include <skalibs/djbunix.h>
#include <skalibs/unixmessage.h>
+
#include <s6/s6-fdholder.h>
int s6_fdholder_getdump (s6_fdholder_t *a, genalloc *g, tain_t const *deadline, tain_t *stamp)
diff --git a/src/libs6/s6_fdholder_list_cb.c b/src/libs6/s6_fdholder_list_cb.c
@@ -2,9 +2,10 @@
#include <stdint.h>
#include <errno.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/uint32.h>
#include <skalibs/bytestr.h>
-#include <skalibs/error.h>
#include <skalibs/stralloc.h>
#include <skalibs/unixmessage.h>
#include <s6/s6-fdholder.h>
diff --git a/src/libs6/s6_fdholder_retrieve_cb.c b/src/libs6/s6_fdholder_retrieve_cb.c
@@ -1,8 +1,10 @@
/* ISC license. */
#include <errno.h>
-#include <skalibs/error.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/unixmessage.h>
+
#include <s6/s6-fdholder.h>
int s6_fdholder_retrieve_cb (unixmessage_t const *m, void *p)
diff --git a/src/libs6/s6_fdholder_setdump.c b/src/libs6/s6_fdholder_setdump.c
@@ -4,12 +4,15 @@
#include <stdint.h>
#include <string.h>
#include <errno.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/uint32.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/bytestr.h>
#include <skalibs/error.h>
#include <skalibs/tai.h>
#include <skalibs/unixmessage.h>
+
#include <s6/s6-fdholder.h>
int s6_fdholder_setdump (s6_fdholder_t *a, s6_fdholder_fd_t const *list, unsigned int ntot, tain_t const *deadline, tain_t *stamp)
diff --git a/src/libs6/s6_fdholder_store.c b/src/libs6/s6_fdholder_store.c
@@ -1,8 +1,9 @@
/* ISC license. */
#include <errno.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/allreadwrite.h>
-#include <skalibs/error.h>
#include <skalibs/tai.h>
#include <skalibs/unixmessage.h>
#include <s6/s6-fdholder.h>
diff --git a/src/libs6/s6lock_update.c b/src/libs6/s6lock_update.c
@@ -3,11 +3,14 @@
#include <sys/uio.h>
#include <stdint.h>
#include <errno.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/error.h>
#include <skalibs/uint16.h>
#include <skalibs/genalloc.h>
#include <skalibs/gensetdyn.h>
#include <skalibs/textclient.h>
+
#include <s6/s6lock.h>
static int msghandler (struct iovec const *v, void *context)
diff --git a/src/libs6/s6lock_wait_or.c b/src/libs6/s6lock_wait_or.c
@@ -1,8 +1,10 @@
/* ISC license. */
#include <errno.h>
-#include <skalibs/error.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/iopause.h>
+
#include <s6/s6lock.h>
int s6lock_wait_or (s6lock_t *a, uint16_t const *idlist, unsigned int n, tain_t const *deadline, tain_t *stamp)
diff --git a/src/libs6/s6lockd.c b/src/libs6/s6lockd.c
@@ -5,6 +5,8 @@
#include <unistd.h>
#include <errno.h>
#include <signal.h>
+
+#include <skalibs/posixishard.h>
#include <skalibs/types.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/error.h>
@@ -17,6 +19,7 @@
#include <skalibs/iopause.h>
#include <skalibs/textmessage.h>
#include <skalibs/textclient.h>
+
#include <s6/s6lock.h>
#define USAGE "s6lockd lockdir"