util: add functions getting proc cwd and root
authorJakub Filak <jfilak@redhat.com>
Wed, 19 Nov 2014 10:01:19 +0000 (11:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 Nov 2014 23:32:02 +0000 (00:32 +0100)
commitad450c3e0418fe23e2896e581575cb06564ca29a
tree3f85df33ef5f286f750f904c5b6dc05aa336c838
parent1c6eb4e36bf88015d0bbe8fae417622e6132b864
util: add functions getting proc cwd and root

/proc/[pid]/cwd and /proc/[pid]/root are symliks to corresponding
directories

The added functions returns values of that symlinks.
src/shared/util.c
src/shared/util.h
src/test/test-util.c