dhcpd-pools  3.0
ISC dhcpd lease usage analyser
Macros | Functions | Variables
setenv.c File Reference
#include <config.h>
#include <alloca.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include "malloca.h"
Include dependency graph for setenv.c:

Macros

#define _GL_ARG_NONNULL(params)
 
#define _GL_USE_STDLIB_ALLOC   1
 
#define __set_errno(ev)   ((errno) = (ev))
 
#define __environ   environ
 
#define LOCK
 
#define UNLOCK
 
#define KNOWN_VALUE(Str)   NULL
 
#define STORE_VALUE(Str)   do { } while (0)
 

Functions

int __add_to_environ (const char *name, const char *value, const char *combined, int replace)
 
int setenv (const char *name, const char *value, int replace)
 
int clearenv (void)
 

Variables

static char ** last_environ
 

Macro Definition Documentation

◆ __environ

#define __environ   environ

Referenced by __add_to_environ(), and clearenv().

◆ __set_errno

#define __set_errno (   ev)    ((errno) = (ev))

Referenced by __add_to_environ(), and setenv().

◆ _GL_ARG_NONNULL

#define _GL_ARG_NONNULL (   params)

◆ _GL_USE_STDLIB_ALLOC

#define _GL_USE_STDLIB_ALLOC   1

◆ KNOWN_VALUE

#define KNOWN_VALUE (   Str)    NULL

Referenced by __add_to_environ().

◆ LOCK

#define LOCK

Referenced by __add_to_environ(), and clearenv().

◆ STORE_VALUE

#define STORE_VALUE (   Str)    do { } while (0)

Referenced by __add_to_environ().

◆ UNLOCK

#define UNLOCK

Referenced by __add_to_environ(), and clearenv().

Function Documentation

◆ __add_to_environ()

int __add_to_environ ( const char *  name,
const char *  value,
const char *  combined,
int  replace 
)

Referenced by setenv().

◆ clearenv()

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

◆ setenv()

int setenv ( const char *  name,
const char *  value,
int  replace 
)

Referenced by clearenv(), and setenv_TZ().

Here is the call graph for this function:

Variable Documentation

◆ last_environ

char** last_environ
static