s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

commit 398f9684624eb00075af938730cad805d7bdebfd
parent 046a7c08c3c1e059be55ebdf49af66f5aee4800b
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Mon, 13 Mar 2017 23:19:47 +0000

 Cleanup of superfluous includes

Diffstat:
Msrc/conn-tools/s6-ipcserverd.c | 1+
Msrc/include/s6/s6lock.h | 1-
Msrc/libs6/ftrigr_check.c | 1-
Msrc/libs6/ftrigr_subscribe.c | 5+++--
Msrc/libs6/ftrigr_unsubscribe.c | 4+---
Msrc/libs6/ftrigr_update.c | 2+-
Msrc/libs6/ftrigr_wait_and.c | 2--
Msrc/libs6/ftrigr_wait_or.c | 2--
Msrc/libs6/ftrigw_notifyb.c | 1-
Msrc/libs6/s6_accessrules_backend_cdb.c | 3+--
Msrc/libs6/s6_accessrules_keycheck_ip4.c | 1-
Msrc/libs6/s6_accessrules_uidgid_cdb.c | 2--
Msrc/libs6/s6_accessrules_uidgid_fs.c | 1-
Msrc/libs6/s6_fdholder_getdump.c | 2+-
Msrc/libs6/s6_fdholder_list_cb.c | 2+-
Msrc/libs6/s6_fdholder_setdump.c | 2+-
Msrc/libs6/s6_svc_write.c | 1-
Msrc/libs6/s6_svstatus_pack.c | 2+-
Msrc/libs6/s6_svstatus_unpack.c | 2+-
Msrc/libs6/s6lock_acquire.c | 5+++--
Msrc/libs6/s6lock_check.c | 1-
Msrc/libs6/s6lock_release.c | 4+---
Msrc/libs6/s6lock_update.c | 2+-
Msrc/libs6/s6lock_wait_and.c | 2--
Msrc/libs6/s6lock_wait_or.c | 4+---
Msrc/supervision/s6_svlisten_loop.c | 5-----
26 files changed, 18 insertions(+), 42 deletions(-)

diff --git a/src/conn-tools/s6-ipcserverd.c b/src/conn-tools/s6-ipcserverd.c @@ -1,6 +1,7 @@ /* ISC license. */ #include <sys/types.h> +#include <sys/stat.h> #include <sys/wait.h> #include <errno.h> #include <string.h> diff --git a/src/include/s6/s6lock.h b/src/include/s6/s6lock.h @@ -4,7 +4,6 @@ #define S6LOCK_H #include <stdint.h> -#include <errno.h> #include <skalibs/tai.h> #include <skalibs/genalloc.h> #include <skalibs/gensetdyn.h> diff --git a/src/libs6/ftrigr_check.c b/src/libs6/ftrigr_check.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include <stdint.h> #include <errno.h> #include <skalibs/gensetdyn.h> #include <s6/ftrigr.h> diff --git a/src/libs6/ftrigr_subscribe.c b/src/libs6/ftrigr_subscribe.c @@ -4,7 +4,8 @@ #include <string.h> #include <stdint.h> #include <errno.h> -#include <skalibs/types.h> +#include <skalibs/uint16.h> +#include <skalibs/uint32.h> #include <skalibs/tai.h> #include <skalibs/gensetdyn.h> #include <skalibs/skaclient.h> @@ -14,7 +15,7 @@ uint16_t ftrigr_subscribe (ftrigr_t *a, char const *path, char const *re, uint32 { size_t pathlen = strlen(path) ; size_t relen = strlen(re) ; - unsigned int i ; + uint32_t i ; char err ; char tmp[15] = "--L" ; struct iovec v[3] = { { .iov_base = tmp, .iov_len = 15 }, { .iov_base = (char *)path, .iov_len = pathlen + 1 }, { .iov_base = (char *)re, .iov_len = relen + 1 } } ; diff --git a/src/libs6/ftrigr_unsubscribe.c b/src/libs6/ftrigr_unsubscribe.c @@ -1,9 +1,7 @@ /* ISC license. */ -#include <stdint.h> #include <errno.h> -#include <skalibs/types.h> -#include <skalibs/tai.h> +#include <skalibs/uint16.h> #include <skalibs/gensetdyn.h> #include <skalibs/skaclient.h> #include <s6/ftrigr.h> diff --git a/src/libs6/ftrigr_update.c b/src/libs6/ftrigr_update.c @@ -5,7 +5,7 @@ #include <errno.h> #include <skalibs/gccattributes.h> #include <skalibs/error.h> -#include <skalibs/types.h> +#include <skalibs/uint16.h> #include <skalibs/genalloc.h> #include <skalibs/gensetdyn.h> #include <skalibs/unixmessage.h> diff --git a/src/libs6/ftrigr_wait_and.c b/src/libs6/ftrigr_wait_and.c @@ -1,8 +1,6 @@ /* ISC license. */ -#include <stdint.h> #include <errno.h> -#include <skalibs/tai.h> #include <skalibs/iopause.h> #include <s6/ftrigr.h> diff --git a/src/libs6/ftrigr_wait_or.c b/src/libs6/ftrigr_wait_or.c @@ -1,9 +1,7 @@ /* ISC license. */ -#include <stdint.h> #include <errno.h> #include <skalibs/error.h> -#include <skalibs/tai.h> #include <skalibs/iopause.h> #include <s6/ftrigr.h> diff --git a/src/libs6/ftrigw_notifyb.c b/src/libs6/ftrigw_notifyb.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include <sys/types.h> #include <errno.h> #include <signal.h> #include <skalibs/sig.h> diff --git a/src/libs6/s6_accessrules_backend_cdb.c b/src/libs6/s6_accessrules_backend_cdb.c @@ -2,9 +2,8 @@ #include <string.h> #include <stdint.h> -#include <unistd.h> #include <errno.h> -#include <skalibs/types.h> +#include <skalibs/uint16.h> #include <skalibs/cdb.h> #include <skalibs/stralloc.h> #include <s6/accessrules.h> diff --git a/src/libs6/s6_accessrules_keycheck_ip4.c b/src/libs6/s6_accessrules_keycheck_ip4.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include <sys/types.h> #include <stdint.h> #include <skalibs/types.h> #include <skalibs/fmtscan.h> diff --git a/src/libs6/s6_accessrules_uidgid_cdb.c b/src/libs6/s6_accessrules_uidgid_cdb.c @@ -1,7 +1,5 @@ /* ISC license. */ -#include <sys/types.h> -#include <skalibs/cdb.h> #include <s6/accessrules.h> s6_accessrules_result_t s6_accessrules_uidgid_cdb (uid_t uid, gid_t gid, struct cdb *c, s6_accessrules_params_t *params) diff --git a/src/libs6/s6_accessrules_uidgid_fs.c b/src/libs6/s6_accessrules_uidgid_fs.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include <sys/types.h> #include <s6/accessrules.h> s6_accessrules_result_t s6_accessrules_uidgid_fs (uid_t uid, gid_t gid, char const *rulesdir, s6_accessrules_params_t *params) diff --git a/src/libs6/s6_fdholder_getdump.c b/src/libs6/s6_fdholder_getdump.c @@ -3,7 +3,7 @@ #include <string.h> #include <stdint.h> #include <errno.h> -#include <skalibs/types.h> +#include <skalibs/uint32.h> #include <skalibs/allreadwrite.h> #include <skalibs/error.h> #include <skalibs/tai.h> diff --git a/src/libs6/s6_fdholder_list_cb.c b/src/libs6/s6_fdholder_list_cb.c @@ -2,7 +2,7 @@ #include <stdint.h> #include <errno.h> -#include <skalibs/types.h> +#include <skalibs/uint32.h> #include <skalibs/bytestr.h> #include <skalibs/error.h> #include <skalibs/stralloc.h> diff --git a/src/libs6/s6_fdholder_setdump.c b/src/libs6/s6_fdholder_setdump.c @@ -4,7 +4,7 @@ #include <stdint.h> #include <string.h> #include <errno.h> -#include <skalibs/types.h> +#include <skalibs/uint32.h> #include <skalibs/allreadwrite.h> #include <skalibs/bytestr.h> #include <skalibs/error.h> diff --git a/src/libs6/s6_svc_write.c b/src/libs6/s6_svc_write.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include <sys/types.h> #include <errno.h> #include <skalibs/allreadwrite.h> #include <skalibs/djbunix.h> diff --git a/src/libs6/s6_svstatus_pack.c b/src/libs6/s6_svstatus_pack.c @@ -1,8 +1,8 @@ /* ISC license. */ #include <stdint.h> +#include <skalibs/uint16.h> #include <skalibs/uint64.h> -#include <skalibs/types.h> #include <skalibs/tai.h> #include <s6/s6-supervise.h> diff --git a/src/libs6/s6_svstatus_unpack.c b/src/libs6/s6_svstatus_unpack.c @@ -1,8 +1,8 @@ /* ISC license. */ #include <stdint.h> +#include <skalibs/uint16.h> #include <skalibs/uint64.h> -#include <skalibs/types.h> #include <skalibs/tai.h> #include <s6/s6-supervise.h> diff --git a/src/libs6/s6lock_acquire.c b/src/libs6/s6lock_acquire.c @@ -4,7 +4,8 @@ #include <string.h> #include <stdint.h> #include <errno.h> -#include <skalibs/types.h> +#include <skalibs/uint16.h> +#include <skalibs/uint32.h> #include <skalibs/tai.h> #include <skalibs/gensetdyn.h> #include <skalibs/skaclient.h> @@ -16,7 +17,7 @@ int s6lock_acquire (s6lock_t *a, uint16_t *u, char const *path, uint32_t options char err ; char tmp[23] = "--<" ; struct iovec v[2] = { { .iov_base = tmp, .iov_len = 23 }, { .iov_base = (char *)path, .iov_len = pathlen + 1 } } ; - unsigned int i ; + uint32_t i ; if (pathlen > UINT32_MAX) return (errno = ENAMETOOLONG, 0) ; if (!gensetdyn_new(&a->data, &i)) return 0 ; if (i > UINT16_MAX) diff --git a/src/libs6/s6lock_check.c b/src/libs6/s6lock_check.c @@ -1,6 +1,5 @@ /* ISC license. */ -#include <stdint.h> #include <errno.h> #include <skalibs/error.h> #include <skalibs/gensetdyn.h> diff --git a/src/libs6/s6lock_release.c b/src/libs6/s6lock_release.c @@ -1,10 +1,8 @@ /* ISC license. */ -#include <stdint.h> #include <errno.h> #include <skalibs/error.h> -#include <skalibs/types.h> -#include <skalibs/tai.h> +#include <skalibs/uint16.h> #include <skalibs/gensetdyn.h> #include <skalibs/skaclient.h> #include <s6/s6lock.h> diff --git a/src/libs6/s6lock_update.c b/src/libs6/s6lock_update.c @@ -3,7 +3,7 @@ #include <stdint.h> #include <errno.h> #include <skalibs/error.h> -#include <skalibs/types.h> +#include <skalibs/uint16.h> #include <skalibs/genalloc.h> #include <skalibs/gensetdyn.h> #include <skalibs/unixmessage.h> diff --git a/src/libs6/s6lock_wait_and.c b/src/libs6/s6lock_wait_and.c @@ -1,8 +1,6 @@ /* ISC license. */ -#include <stdint.h> #include <errno.h> -#include <skalibs/tai.h> #include <skalibs/iopause.h> #include <s6/s6lock.h> diff --git a/src/libs6/s6lock_wait_or.c b/src/libs6/s6lock_wait_or.c @@ -1,10 +1,8 @@ /* ISC license. */ -#include <stdint.h> #include <errno.h> -#include <skalibs/tai.h> -#include <skalibs/iopause.h> #include <skalibs/error.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/supervision/s6_svlisten_loop.c b/src/supervision/s6_svlisten_loop.c @@ -1,13 +1,8 @@ /* ISC license. */ #include <string.h> -#include <stdint.h> -#include <unistd.h> -#include <errno.h> -#include <skalibs/types.h> #include <skalibs/bytestr.h> #include <skalibs/bitarray.h> -#include <skalibs/tai.h> #include <skalibs/strerr2.h> #include <skalibs/iopause.h> #include <skalibs/djbunix.h>