FreeRDP
uwac-os.c File Reference
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/epoll.h>
#include <uwac/config.h>
#include "uwac-os.h"
#include "uwac-utils.h"

Macros

#define _GNU_SOURCE
 
#define O_TMPFILE   (020000000 | O_DIRECTORY)
 

Functions

static int set_cloexec_or_close (int fd)
 
int uwac_os_socket_cloexec (int domain, int type, int protocol)
 
int uwac_os_dupfd_cloexec (int fd, long minfd)
 
static ssize_t recvmsg_cloexec_fallback (int sockfd, struct msghdr *msg, int flags)
 
ssize_t uwac_os_recvmsg_cloexec (int sockfd, struct msghdr *msg, int flags)
 
int uwac_os_epoll_create_cloexec (void)
 
static int create_tmpfile_cloexec (char *tmpname)
 
int uwac_create_anonymous_file (off_t size)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

◆ O_TMPFILE

#define O_TMPFILE   (020000000 | O_DIRECTORY)

Function Documentation

◆ create_tmpfile_cloexec()

static int create_tmpfile_cloexec ( char *  tmpname)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ recvmsg_cloexec_fallback()

static ssize_t recvmsg_cloexec_fallback ( int  sockfd,
struct msghdr *  msg,
int  flags 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_cloexec_or_close()

static int set_cloexec_or_close ( int  fd)
static
Here is the caller graph for this function:

◆ uwac_create_anonymous_file()

int uwac_create_anonymous_file ( off_t  size)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ uwac_os_dupfd_cloexec()

int uwac_os_dupfd_cloexec ( int  fd,
long  minfd 
)
Here is the call graph for this function:

◆ uwac_os_epoll_create_cloexec()

int uwac_os_epoll_create_cloexec ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ uwac_os_recvmsg_cloexec()

ssize_t uwac_os_recvmsg_cloexec ( int  sockfd,
struct msghdr *  msg,
int  flags 
)
Here is the call graph for this function:

◆ uwac_os_socket_cloexec()

int uwac_os_socket_cloexec ( int  domain,
int  type,
int  protocol 
)
Here is the call graph for this function: