OpenVPN
Functions
fdmisc.c File Reference
#include "syshead.h"
#include "fdmisc.h"
#include "error.h"
#include "memdbg.h"
Include dependency graph for fdmisc.c:

Go to the source code of this file.

Functions

bool set_nonblock_action (socket_descriptor_t fd)
 
bool set_cloexec_action (socket_descriptor_t fd)
 
void set_nonblock (socket_descriptor_t fd)
 
void set_cloexec (socket_descriptor_t fd)
 

Function Documentation

◆ set_cloexec()

void set_cloexec ( socket_descriptor_t  fd)

Definition at line 79 of file fdmisc.c.

References M_ERR, msg, and set_cloexec_action().

Referenced by create_socket_tcp(), create_socket_udp(), socket_do_accept(), and status_open().

◆ set_cloexec_action()

bool set_cloexec_action ( socket_descriptor_t  fd)

Definition at line 56 of file fdmisc.c.

Referenced by set_cloexec().

◆ set_nonblock()

void set_nonblock ( socket_descriptor_t  fd)

◆ set_nonblock_action()

bool set_nonblock_action ( socket_descriptor_t  fd)

Definition at line 37 of file fdmisc.c.

Referenced by set_nonblock().