|
|
1.1 ! root 1: ! 2: /* We manipulate environments represented as these structures. */ ! 3: ! 4: struct environ ! 5: { ! 6: /* Number of usable slots allocated in VECTOR. ! 7: VECTOR always has one slot not counted here, ! 8: to hold the terminating zero. */ ! 9: int allocated; ! 10: /* A vector of slots, ALLOCATED + 1 of them. ! 11: The first few slots contain strings "VAR=VALUE" ! 12: and the next one contains zero. ! 13: Then come some unused slots. */ ! 14: char **vector; ! 15: }; ! 16: ! 17: struct environ *make_environ (); ! 18: void free_environ (); ! 19: void init_environ (); ! 20: char *get_in_environ (); ! 21: void set_in_environ (); ! 22: void unset_in_environ (); ! 23: char **environ_vector ();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.