diff options
author | Rob Landley <rob@landley.net> | 2019-04-20 02:51:51 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-04-20 02:51:51 -0500 |
commit | 71c3f623c6011c923788f0770ad40fe2756893a7 (patch) | |
tree | 6bbde27b783bb54b0042935c5e750eac5c12364f /lib/lib.h | |
parent | d8eeedddd0bdcf71d19f2372109c2c897ce8d697 (diff) | |
download | toybox-71c3f623c6011c923788f0770ad40fe2756893a7.tar.gz |
New xsetenv() plumbing (repeatedly set same environment variables without
leaking memory), and mod env command to test it.
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -261,7 +261,6 @@ int regexec0(regex_t *preg, char *string, long len, int nmatch, char *getusername(uid_t uid); char *getgroupname(gid_t gid); void do_lines(int fd, char delim, void (*call)(char **pline, long len)); -long environ_bytes(); long long millitime(void); char *format_iso_time(char *buf, size_t len, struct timespec *ts); void reset_env(struct passwd *p, int clear); @@ -272,6 +271,12 @@ void loggit(int priority, char *format, ...); #define HR_1000 4 // Use decimal instead of binary units int human_readable(char *buf, unsigned long long num, int style); +// env.c + +long environ_bytes(); +void xsetenv(char *name, char *val); +void xclearenv(void); + // linestack.c struct linestack { |