diff options
author | Jakub Filak <jfilak@redhat.com> | 2014-11-28 12:42:51 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-11-28 12:42:51 -0500 |
commit | af2ae5734678999478bac5f780ef723631669003 (patch) | |
tree | ff1a95f97cf1cef11f7bf92d3bb12b071447fd70 /src/shared/util.h | |
parent | e6511db5d5f01c7b94ee0fc4166682708a33e35f (diff) |
util: add function getting proc environ
On the contrary of env, the added function returns all characters
cescaped, because it improves reproducibility.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
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 ebb02a66b9..cbfe787be2 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -183,6 +183,7 @@ int rmdir_parents(const char *path, const char *stop); int get_process_comm(pid_t pid, char **name); int get_process_cmdline(pid_t pid, size_t max_length, bool comm_fallback, char **line); +int get_process_environ(pid_t pid, char **environ); char hexchar(int x) _const_; char octchar(int x) _const_; |