| VLC
    3.0.18
    | 

| Macros | |
| #define | _XPG4_2 /* ancillary data on Solaris */ | 
| #define | ENABLE_ROOTWRAP 1 | 
| #define | CMSG_ALIGN(len) (((len) + sizeof(intptr_t)-1) & ~(sizeof(intptr_t)-1)) | 
| #define | CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) | 
| #define | CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) | 
| #define | MSG_NOSIGNAL 0 | 
| Functions | |
| int | rootwrap_bind (int family, int socktype, int protocol, const struct sockaddr *addr, size_t alen) | 
| Tries to obtain a bound TCP socket from the root process.  More... | |
| static int | recv_fd (int p) | 
| Receive a file descriptor from another process.  More... | |
| #define _XPG4_2 /* ancillary data on Solaris */ | 
| #define CMSG_ALIGN | ( | len | ) | (((len) + sizeof(intptr_t)-1) & ~(sizeof(intptr_t)-1)) | 
| #define CMSG_LEN | ( | len | ) | (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len)) | 
| #define CMSG_SPACE | ( | len | ) | (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len)) | 
| #define ENABLE_ROOTWRAP 1 | 
| #define MSG_NOSIGNAL 0 | 
| 
 | static | 
Receive a file descriptor from another process.
References CMSG_LEN, CMSG_SPACE, p, and recvmsg().
Referenced by rootwrap_bind().
| int rootwrap_bind | ( | int | family, | 
| int | socktype, | ||
| int | protocol, | ||
| const struct sockaddr * | addr, | ||
| size_t | alen | ||
| ) | 
Tries to obtain a bound TCP socket from the root process.
References getenv(), MSG_NOSIGNAL, and recv_fd().
Referenced by net_Listen().
 1.8.16
 1.8.16