osprey-gcc-4.2.0/libiberty/setenv.c File Reference

#include "ansidecl.h"
#include <sys/types.h>
#include <stdio.h>
#include <errno.h>

Include dependency graph for setenv.c:

Go to the source code of this file.

Defines

#define setenv   libiberty_setenv
#define unsetenv   libiberty_unsetenv
#define __set_errno(ev)   ((errno) = (ev))
#define __environ   environ
#define LOCK
#define UNLOCK

Functions/Subroutines

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

Variables

int errno
char ** environ
static char ** last_environ


Define Documentation

#define __environ   environ

Definition at line 62 of file setenv.c.

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

Definition at line 50 of file setenv.c.

#define LOCK

Definition at line 72 of file setenv.c.

#define setenv   libiberty_setenv

Definition at line 39 of file setenv.c.

#define UNLOCK

Definition at line 73 of file setenv.c.

#define unsetenv   libiberty_unsetenv

Definition at line 40 of file setenv.c.


Function Documentation

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

Definition at line 83 of file setenv.c.

References __environ, __set_errno, free(), last_environ, len, LOCK, malloc, memcpy, NULL, realloc, size, strlen(), strncmp(), and UNLOCK.

void unsetenv ( const char *  name  ) 

Definition at line 164 of file setenv.c.

References __environ, len, LOCK, strlen(), strncmp(), and UNLOCK.


Variable Documentation

char** environ

Definition at line 493 of file mpw.c.

int errno

char** last_environ [static]

Definition at line 79 of file setenv.c.


Generated on Wed Apr 8 15:03:37 2009 for Open64 by  doxygen 1.5.6