diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-11-02 20:15:39 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-11-02 20:15:39 +0400 |
commit | b13154de3eca5ba28fbb4854d916cd0be5febeed (patch) | |
tree | 30f2e9e89ab71a2df837076ac68c3ba770230294 /include/path.h | |
download | util-linux-upstream.tar.gz |
Imported Upstream version 2.22upstream/2.22upstream
Diffstat (limited to 'include/path.h')
-rw-r--r-- | include/path.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/path.h b/include/path.h new file mode 100644 index 0000000..8e79a85 --- /dev/null +++ b/include/path.h @@ -0,0 +1,17 @@ +#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_writestr(const char *str, const char *path, ...) + __attribute__ ((__format__ (__printf__, 2, 3))); +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 *); |