NAME
env_get_port - return the value of a port environment
variable
env_set_port - set a port environment variable
env_del_port - delete a port environment variable
SYNOPSIS
#include <servers/env_mgr.h>
kern_return_t
env_get_port(env_port,env_name,env_val)
port_t env_port;
env_name_t env_name;
port_t *env_val;
kern_return_t
env_set_port(env_port,env_name,env_val)
port_t env_port;
env_name_t env_name;
port_t env_val;
kern_return_t
env_del_port(env_port,env_name)
port_t env_port;
env_name_t env_name;
ARGUMENTS
env_port port identifying environment
env_name name of port to be found | set | deleted
env_val returned pointing to value of port
DESCRIPTION
env_get_port returns the value of the port variable with the
name
env_name
env_set_port sets the value of
the port variable, env_name to
env_val
env_del_port deletes the port env_name ;
DIAGNOSTICS
KERN_SUCCESS variable found
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 string variable
ENV_READ_ONLY env_port only
allows read access to the
environment. ( env_set_port and
env_del_port )
FILES
/usr/include/servers/env_mgr.h,
/usr/include/servers/emdefs.h
SEE ALSO
env_string(3), env_conn(3), env_list(3)