mirror of
https://github.com/opencontainers/runc.git
synced 2026-04-24 16:39:52 +08:00
35fddfd28f
...from nsexec.c so they can be used in cloned_binary.c. Signed-off-by: Cory Snider <csnider@mirantis.com>
14 lines
371 B
C
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 */
|