PatchworkOS  3984a1d
A non-POSIX operating system.
Loading...
Searching...
No Matches
env.h File Reference
#include <kernel/sync/mutex.h>
#include <stdlib.h>
#include <sys/defs.h>
Include dependency graph for env.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  env_var_t
 Environment variable structure. More...
 
struct  env_t
 Environment structure. More...
 

Functions

void env_init (env_t *env)
 Initialize the environment.
 
void env_deinit (env_t *env)
 Deinitialize the environment.
 
uint64_t env_copy (env_t *dest, env_t *src)
 Copy environment variables from one environment to another.
 
const charenv_get (env_t *env, const char *key)
 Get the value of an environment variable.
 
uint64_t env_set (env_t *env, const char *key, const char *value)
 Set the value of an environment variable.
 
uint64_t env_unset (env_t *env, const char *key)
 Unset an environment variable.