diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-07-25 00:08:53 +0530 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-11-12 02:10:03 -0500 |
commit | e21ad3cd0055f90cc01f43d7a7357d1fabdbc5fa (patch) | |
tree | c3a56d78917cb0bbe614dd4f93cd6d9b1ddde0b8 /paxinc.h | |
parent | lddtree.py: work around pyelftools API change (diff) | |
download | pax-utils-e21ad3cd0055f90cc01f43d7a7357d1fabdbc5fa.tar.gz pax-utils-e21ad3cd0055f90cc01f43d7a7357d1fabdbc5fa.tar.bz2 pax-utils-e21ad3cd0055f90cc01f43d7a7357d1fabdbc5fa.zip |
split out fs related helper funcs as lib code
This way we can use the funcs in other modules. It makes scanelf
a little bigger (~1k), but shouldn't be a big deal overall.
Diffstat (limited to 'paxinc.h')
-rw-r--r-- | paxinc.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -123,4 +123,9 @@ extern const char argv0[]; #define errf(fmt, args...) _err(warnf, fmt, ## args) #define errp(fmt, args...) _err(warnp, fmt , ## args) +/* File system helper functions. */ +extern int root_fd; +FILE *fopenat_r(int dir_fd, const char *path); +const char *root_rel_path(const char *path); + #endif /* _PAX_INC_H */ |