/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Some systems do not have setenv(). This one is modeled after 4.4 BSD, but
* is implemented in terms of portable primitives only: getenv(), putenv()
* and malloc(). It should therefore be safe to use on every UNIX system.
*
* If clobber == 0, do not overwrite an existing variable.
*
* Returns nonzero if memory allocation fails.
*
* Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
*/
#ifndef lint
#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
/* setenv - update or insert environment (name,value) pair */
char *name;
char *value;
int clobber;
{
char *cp;
return (0);
return (1);
}