summaryrefslogtreecommitdiff
path: root/src/basic/socket-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-26 01:09:02 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-26 01:24:39 +0100
commit2583fbea8e762d2e915582af60560f884d5093f5 (patch)
tree78b358f50557780c5d0bb64b4248eba5e1cec935 /src/basic/socket-util.h
parent58ce77339c60c8c5f1f7789adf0ef80107dbafe3 (diff)
socket-util: move remaining socket-related calls from util.[ch] to socket-util.[ch]
Diffstat (limited to 'src/basic/socket-util.h')
-rw-r--r--src/basic/socket-util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/basic/socket-util.h b/src/basic/socket-util.h
index da1273e745..8b5410b391 100644
--- a/src/basic/socket-util.h
+++ b/src/basic/socket-util.h
@@ -115,3 +115,15 @@ int netlink_family_to_string_alloc(int b, char **s);
int netlink_family_from_string(const char *s) _pure_;
bool sockaddr_equal(const union sockaddr_union *a, const union sockaddr_union *b);
+
+int fd_inc_sndbuf(int fd, size_t n);
+int fd_inc_rcvbuf(int fd, size_t n);
+
+int ip_tos_to_string_alloc(int i, char **s);
+int ip_tos_from_string(const char *s);
+
+int getpeercred(int fd, struct ucred *ucred);
+int getpeersec(int fd, char **ret);
+
+int send_one_fd(int transport_fd, int fd, int flags);
+int receive_one_fd(int transport_fd, int flags);