From e05d620a79575bc96155180e1efccd171452b82f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 2 Apr 2020 02:58:42 -0500 Subject: More shell plumbing. Redo of variable storage, add export. --- lib/lib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index c528f190..3200dc32 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -269,7 +269,6 @@ char *getgroupname(gid_t gid); void do_lines(int fd, char delim, void (*call)(char **pline, long len)); long long millitime(void); char *format_iso_time(char *buf, size_t len, struct timespec *ts); -void reset_env(struct passwd *p, int clear); void loggit(int priority, char *format, ...); unsigned tar_cksum(void *data); int is_tar_header(void *pkt); @@ -284,9 +283,11 @@ int human_readable(char *buf, unsigned long long num, int style); // env.c long environ_bytes(); -void xsetenv(char *name, char *val); +char *xsetenv(char *name, char *val); void xunsetenv(char *name); +char *xpop_env(char *name); // because xpopenv() looks like xpopen_v() void xclearenv(void); +void reset_env(struct passwd *p, int clear); // linestack.c -- cgit v1.2.3