summaryrefslogtreecommitdiffstats
path: root/include/path.h
diff options
context:
space:
mode:
authorKarel Zak2012-11-05 12:28:00 +0100
committerKarel Zak2012-11-23 14:58:21 +0100
commit37a5c7ee418d9684e3e444934b98a7474a898b3b (patch)
tree120b14eec65db50503e567fd4039e4d4b91202e4 /include/path.h
parentlib/path: rename functions to be more explicit (diff)
downloadkernel-qcow2-util-linux-37a5c7ee418d9684e3e444934b98a7474a898b3b.tar.gz
kernel-qcow2-util-linux-37a5c7ee418d9684e3e444934b98a7474a898b3b.tar.xz
kernel-qcow2-util-linux-37a5c7ee418d9684e3e444934b98a7474a898b3b.zip
lib/path: add path_read_u64()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/path.h')
-rw-r--r--include/path.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/path.h b/include/path.h
index cefaaa0a4..615d28491 100644
--- a/include/path.h
+++ b/include/path.h
@@ -2,6 +2,7 @@
#define UTIL_LINUX_PATH_H
#include <stdio.h>
+#include <stdint.h>
extern FILE *path_fopen(const char *mode, int exit_on_err, const char *path, ...)
__attribute__ ((__format__ (__printf__, 3, 4)));
@@ -10,7 +11,10 @@ extern void path_read_str(char *result, size_t len, const char *path, ...)
extern int path_write_str(const char *str, const char *path, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
extern int path_read_s32(const char *path, ...)
- __attribute__ ((__format__ (__printf__, 1, 2)));
+ __attribute__ ((__format__ (__printf__, 1, 2)));
+extern uint64_t path_read_u64(const char *path, ...)
+ __attribute__ ((__format__ (__printf__, 1, 2)));
+
extern int path_exist(const char *path, ...)
__attribute__ ((__format__ (__printf__, 1, 2)));