OpenVPN
compat.h File Reference
#include <winsock2.h>
#include <ws2tcpip.h>
Include dependency graph for compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * dirname (char *str)
char * basename (char *str)
int daemon (int nochdir, int noclose)
size_t strlcpy (char *dest, const char *src, size_t maxlen)
size_t strlcat (char *dest, const char *src, size_t maxlen)
char * strsep (char **stringp, const char *delim)
char * strtok_r (char *s, const char *delim, char **last)

Function Documentation

◆ basename()

char * basename ( char * str)

Definition at line 36 of file compat-basename.c.

Referenced by init_options_dev().

◆ daemon()

int daemon ( int nochdir,
int noclose )

Definition at line 50 of file compat-daemon.c.

Referenced by daemonize(), possibly_become_daemon(), and show_settings().

◆ dirname()

char * dirname ( char * str)

Definition at line 61 of file compat-dirname.c.

References __memrchr().

Referenced by check_file_access().

◆ strlcat()

size_t strlcat ( char * dest,
const char * src,
size_t maxlen )

Definition at line 42 of file compat-strlcpy.c.

Referenced by get_user_pass_cr(), in_src_get(), and status_printf().

◆ strlcpy()

◆ strsep()

char * strsep ( char ** stringp,
const char * delim )

◆ strtok_r()

char * strtok_r ( char * s,
const char * delim,
char ** last )