diff options
| author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2011-09-15 08:52:29 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2011-09-27 13:36:41 +0200 |
| commit | 8148217b5bfc9a84ffc7b2936ea2dfecd87e723c (patch) | |
| tree | 734cca8b12ee64e6ce20f8582756f7d3f0208013 /include/path.h | |
| parent | b7fcd7ab6aecf192bc5b65c48dc430c3b38e0726 (diff) | |
| download | util-linux-8148217b5bfc9a84ffc7b2936ea2dfecd87e723c.tar.gz | |
lib,path: move path access functions from lscpu into lib/path.c
A couple of these functions already have been copied to chcpu.c,
so it makes sense to move these functions into an own file.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'include/path.h')
| -rw-r--r-- | include/path.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/path.h b/include/path.h new file mode 100644 index 0000000000..b1ee7248ac --- /dev/null +++ b/include/path.h @@ -0,0 +1,15 @@ +#include <stdio.h> + +extern FILE *path_fopen(const char *mode, int exit_on_err, const char *path, ...) + __attribute__ ((__format__ (__printf__, 3, 4))); +extern void path_getstr(char *result, size_t len, const char *path, ...) + __attribute__ ((__format__ (__printf__, 3, 4))); +extern int path_getnum(const char *path, ...) + __attribute__ ((__format__ (__printf__, 1, 2))); +extern int path_exist(const char *path, ...) + __attribute__ ((__format__ (__printf__, 1, 2))); +extern cpu_set_t *path_cpuset(int, const char *path, ...) + __attribute__ ((__format__ (__printf__, 2, 3))); +extern cpu_set_t *path_cpulist(int, const char *path, ...) + __attribute__ ((__format__ (__printf__, 2, 3))); +extern void path_setprefix(const char *); |
