POSIX-2024: support for MSG_CMSG_CLOEXEC and MSG_CMSG_CLOFORK
Change-Id: I55551860fb7dac5d0c11a6d4201502fff9ab2d13 Reviewed-on: https://review.haiku-os.org/c/haiku/+/9332 Reviewed-by: waddlesplash <[email protected]> Reviewed-by: Jérôme Duval <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
904fd2abf0
commit
396ebbc16f
@@ -126,6 +126,8 @@ struct msghdr {
|
||||
#define MSG_MCAST 0x0200 /* this message rec'd as multicast */
|
||||
#define MSG_EOF 0x0400 /* data completes connection */
|
||||
#define MSG_NOSIGNAL 0x0800 /* don't raise SIGPIPE if socket is closed */
|
||||
#define MSG_CMSG_CLOEXEC 0x1000 /* set FD_CLOEXEC flag on FDs created via SCM_RIGHTS */
|
||||
#define MSG_CMSG_CLOFORK 0x2000 /* set FD_CLOFORK flag on FDs created via SCM_RIGHTS */
|
||||
|
||||
struct cmsghdr {
|
||||
socklen_t cmsg_len;
|
||||
|
||||
@@ -102,7 +102,7 @@ struct net_protocol_module_info {
|
||||
ancillary_data_container* container, const cmsghdr* header);
|
||||
ssize_t (*process_ancillary_data)(net_protocol* self,
|
||||
const ancillary_data_container* container,
|
||||
void* buffer, size_t bufferSize);
|
||||
void* buffer, size_t bufferSize, int flags);
|
||||
ssize_t (*process_ancillary_data_no_container)(net_protocol* self,
|
||||
net_buffer* buffer, void* data, size_t bufferSize);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user