diff options
author | pjd <pjd@FreeBSD.org> | 2011-01-31 18:35:17 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-01-31 18:35:17 +0000 |
commit | 214239b194b6861580bd58356d9abc3e0e9b50b6 (patch) | |
tree | 6ba0be808ae947b55743d27f5ae29dc66e331979 /sbin/hastd/proto.h | |
parent | d916d2edb510181e3ab25256b84c439c5e1b8498 (diff) | |
download | FreeBSD-src-214239b194b6861580bd58356d9abc3e0e9b50b6.zip FreeBSD-src-214239b194b6861580bd58356d9abc3e0e9b50b6.tar.gz |
Implement two new functions for sending descriptor and receving descriptor
over UNIX domain sockets and socket pairs.
This is in preparation for capsicum.
MFC after: 1 week
Diffstat (limited to 'sbin/hastd/proto.h')
-rw-r--r-- | sbin/hastd/proto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/hastd/proto.h b/sbin/hastd/proto.h index 8d1046c..ad44b1a 100644 --- a/sbin/hastd/proto.h +++ b/sbin/hastd/proto.h @@ -43,6 +43,8 @@ int proto_server(const char *addr, struct proto_conn **connp); int proto_accept(struct proto_conn *conn, struct proto_conn **newconnp); int proto_send(const struct proto_conn *conn, const void *data, size_t size); int proto_recv(const struct proto_conn *conn, void *data, size_t size); +int proto_descriptor_send(const struct proto_conn *conn, int fd); +int proto_descriptor_recv(const struct proto_conn *conn, int *fdp); int proto_descriptor(const struct proto_conn *conn); bool proto_address_match(const struct proto_conn *conn, const char *addr); void proto_local_address(const struct proto_conn *conn, char *addr, |