NAME
env_get_string - return value of string environment variable
env_set_string - sets a string environment variable
env_del_string - deletes a string environment variable

SYNOPSIS
#include <servers/env_mgr.h>

kern_return_t env_get_string(env_port,env_name,env_val)
port_t env_port;
env_name_t env_name;
env_str_val_t env_val;

kern_return_t env_set_string(env_port,env_name,env_val)
port_t env_port;
env_name_t env_name;
env_str_val_t env_val;

kern_return_t env_del_string(env_port,env_name)
port_t env_port;
env_name_t env_name;

ARGUMENTS
env_port port identifying environment

env_name name of string to be found | set | deleted

env_val returned pointing to value of string

DESCRIPTION
env_get_string returns the value of the string variable with the
name env_name

env_set_string sets the string variable env_name to env_val ;

env_del_string deletes the string variable env_name

DIAGNOSTICS
KERN_SUCCESS operation succeeded

ENV_UNKNOWN_PORT env_port does not reference a known
environment

ENV_VAR_NOT_FOUND name does not exist.

ENV_WRONG_VAR_TYPE names exists, but is a port variable

ENV_READ_ONLY env_port only allows read access to the
environment. ( env_set_string,
env_del_string )

FILES
/usr/include/servers/env_mgr.h, /usr/include/servers/emdefs.h

SEE ALSO
env_port(3), env_conn(3), env_list(3)