diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-10-26 14:21:53 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-10-26 14:21:53 +0000 |
commit | 7530e8cdd506ecec1f4ad3bbd55f94de5a6d63ac (patch) | |
tree | 20917d9312d38cf57e04f17cec119d89873b57b3 /src/libstddjb | |
parent | ad90bc1107ef9a76f4ca530cc41e86d4f352e3d9 (diff) | |
download | skalibs-7530e8cdd506ecec1f4ad3bbd55f94de5a6d63ac.tar.xz |
Separate and expose ancil_recv_fd/ancil_send_fd
The goal is to make late channel creation easy, as opposed to
textclient which always creates a new channel at start time.
This commit also moves posixishard.h inclusions as late as possible.
Diffstat (limited to 'src/libstddjb')
-rw-r--r-- | src/libstddjb/cdb_read.c | 2 | ||||
-rw-r--r-- | src/libstddjb/ipc_bind.c | 2 | ||||
-rw-r--r-- | src/libstddjb/ipc_connect.c | 2 | ||||
-rw-r--r-- | src/libstddjb/ipc_recv.c | 2 | ||||
-rw-r--r-- | src/libstddjb/ipc_send.c | 2 | ||||
-rw-r--r-- | src/libstddjb/netstring_get.c | 2 | ||||
-rw-r--r-- | src/libstddjb/string_unquote_withdelim.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/src/libstddjb/cdb_read.c b/src/libstddjb/cdb_read.c index 85e8dea..1d2f491 100644 --- a/src/libstddjb/cdb_read.c +++ b/src/libstddjb/cdb_read.c @@ -4,9 +4,9 @@ #include <string.h> #include <errno.h> -#include <skalibs/posixishard.h> #include <skalibs/allreadwrite.h> #include <skalibs/cdb.h> +#include <skalibs/posixishard.h> int cdb_read (struct cdb *c, char *buf, unsigned int len, uint32_t pos) { diff --git a/src/libstddjb/ipc_bind.c b/src/libstddjb/ipc_bind.c index b3388d7..d40a7ef 100644 --- a/src/libstddjb/ipc_bind.c +++ b/src/libstddjb/ipc_bind.c @@ -7,8 +7,8 @@ #include <string.h> #include <errno.h> -#include <skalibs/posixishard.h> #include <skalibs/webipc.h> +#include <skalibs/posixishard.h> int ipc_bind (int s, char const *p) { diff --git a/src/libstddjb/ipc_connect.c b/src/libstddjb/ipc_connect.c index bb0422e..c00f683 100644 --- a/src/libstddjb/ipc_connect.c +++ b/src/libstddjb/ipc_connect.c @@ -7,8 +7,8 @@ #include <sys/un.h> #include <string.h> -#include <skalibs/posixishard.h> #include <skalibs/webipc.h> +#include <skalibs/posixishard.h> int ipc_connect (int s, char const *p) { diff --git a/src/libstddjb/ipc_recv.c b/src/libstddjb/ipc_recv.c index e15e3c5..4c235bb 100644 --- a/src/libstddjb/ipc_recv.c +++ b/src/libstddjb/ipc_recv.c @@ -7,8 +7,8 @@ #include <sys/un.h> #include <string.h> -#include <skalibs/posixishard.h> #include <skalibs/webipc.h> +#include <skalibs/posixishard.h> ssize_t ipc_recv (int fd, char *s, size_t len, char *path) { diff --git a/src/libstddjb/ipc_send.c b/src/libstddjb/ipc_send.c index 65826a6..2615a16 100644 --- a/src/libstddjb/ipc_send.c +++ b/src/libstddjb/ipc_send.c @@ -7,8 +7,8 @@ #include <sys/un.h> #include <string.h> -#include <skalibs/posixishard.h> #include <skalibs/webipc.h> +#include <skalibs/posixishard.h> ssize_t ipc_send (int fd, char const *s, size_t len, char const *path) { diff --git a/src/libstddjb/netstring_get.c b/src/libstddjb/netstring_get.c index 0dfa907..32a6c49 100644 --- a/src/libstddjb/netstring_get.c +++ b/src/libstddjb/netstring_get.c @@ -2,13 +2,13 @@ #include <errno.h> -#include <skalibs/posixishard.h> #include <skalibs/types.h> #include <skalibs/allreadwrite.h> #include <skalibs/bytestr.h> #include <skalibs/buffer.h> #include <skalibs/stralloc.h> #include <skalibs/netstring.h> +#include <skalibs/posixishard.h> int netstring_okeof (buffer *b, size_t w) { diff --git a/src/libstddjb/string_unquote_withdelim.c b/src/libstddjb/string_unquote_withdelim.c index 702d3a5..43da0db 100644 --- a/src/libstddjb/string_unquote_withdelim.c +++ b/src/libstddjb/string_unquote_withdelim.c @@ -2,10 +2,10 @@ #include <errno.h> -#include <skalibs/posixishard.h> #include <skalibs/bytestr.h> #include <skalibs/fmtscan.h> #include <skalibs/skamisc.h> +#include <skalibs/posixishard.h> #define PUSH0 0x40 #define PUSH 0x20 |