diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-23 01:00:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-29 21:08:37 +0200 |
commit | 3ee897d6c2401effbc82f5eef35fce405781d6c8 (patch) | |
tree | 86d1d6e0c432a22aba4d51dee56015f8b85d8b9b /src/basic/util.h | |
parent | 400f1a33cf63ddaa41af5d5b0bcd5be73e0404a6 (diff) |
tree-wide: port more code to use send_one_fd() and receive_one_fd()
Also, make it slightly more powerful, by accepting a flags argument, and
make it safe for handling if more than one cmsg attribute happens to be
attached.
Diffstat (limited to 'src/basic/util.h')
-rw-r--r-- | src/basic/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/util.h b/src/basic/util.h index 56d9f037bf..e6417b4ccd 100644 --- a/src/basic/util.h +++ b/src/basic/util.h @@ -942,5 +942,5 @@ int reset_uid_gid(void); int getxattr_malloc(const char *path, const char *name, char **value, bool allow_symlink); int fgetxattr_malloc(int fd, const char *name, char **value); -int send_one_fd(int transport_fd, int fd); -int receive_one_fd(int transport_fd); +int send_one_fd(int transport_fd, int fd, int flags); +int receive_one_fd(int transport_fd, int flags); |