Adapted for ANSI C and our pseudo-Posix syscall interface.

This commit is contained in:
dtrg
2007-04-21 23:18:14 +00:00
parent 078faadbf9
commit f33fd63590
37 changed files with 222 additions and 279 deletions

View File

@@ -4,14 +4,13 @@
*/
/* $Id$ */
#include <stdlib.h>
extern const char **_penvp;
#include <stdlib.h>
#include <unistd.h>
char *
getenv(const char *name)
{
register const char **v = _penvp;
register char **v = environ;
register const char *p, *q;
if (v == NULL || name == NULL)