diff options
author | Jakub Filak <jfilak@redhat.com> | 2014-11-25 07:37:47 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-11-27 00:24:52 -0500 |
commit | c593bb360edd96fa6cd42f09e934f76c94f84473 (patch) | |
tree | 2fb97096941305f141ab01e1739f263f1414dcc7 /src/shared/util.h | |
parent | 59580681f5f950335b5ec40bb4c4a70dca6b2830 (diff) |
util: add function getting proc environ
On the contrary of env, the added function returns all characters
cescaped, because it improves reproducibility.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index 13a0b968d3..d36a632785 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -297,6 +297,7 @@ int get_process_gid(pid_t pid, gid_t *gid); int get_process_capeff(pid_t pid, char **capeff); int get_process_cwd(pid_t pid, char **cwd); int get_process_root(pid_t pid, char **root); +int get_process_environ(pid_t pid, char **environ); char hexchar(int x) _const_; int unhexchar(char c) _const_; |