Files
runc/libcontainer/nsenter/getenv.h
T
Cory Snider 35fddfd28f chore(libct/nsenter): extract utility code
...from nsexec.c so they can be used in cloned_binary.c.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2023-07-04 17:56:25 +10:00

14 lines
371 B
C

#ifndef NSENTER_GETENV_H
#define NSENTER_GETENV_H
/*
* Returns an environment variable value as a non-negative integer, or -ENOENT
* if the variable was not found or has an empty value.
*
* If the value can not be converted to an integer, or the result is out of
* range, the function bails out.
*/
int getenv_int(const char *name);
#endif /* NSENTER_GETENV_H */