summaryrefslogtreecommitdiffstats
path: root/include/path.h
diff options
context:
space:
mode:
authorKarel Zak2012-11-05 12:23:55 +0100
committerKarel Zak2012-11-23 14:58:21 +0100
commitca01695b77815d175814e0826968d2b680e1c629 (patch)
treeeae87478ad4784e1140ce04b4f066808df34a2fa /include/path.h
parentipcs: add /proc and /sys path definitions (diff)
downloadkernel-qcow2-util-linux-ca01695b77815d175814e0826968d2b680e1c629.tar.gz
kernel-qcow2-util-linux-ca01695b77815d175814e0826968d2b680e1c629.tar.xz
kernel-qcow2-util-linux-ca01695b77815d175814e0826968d2b680e1c629.zip
lib/path: rename functions to be more explicit
... and to have names compatible with lib/sysfs.c Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/path.h')
-rw-r--r--include/path.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/path.h b/include/path.h
index 3dfd51794..cefaaa0a4 100644
--- a/include/path.h
+++ b/include/path.h
@@ -5,11 +5,11 @@
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, ...)
+extern void path_read_str(char *result, size_t len, const char *path, ...)
__attribute__ ((__format__ (__printf__, 3, 4)));
-extern int path_writestr(const char *str, const char *path, ...)
+extern int path_write_str(const char *str, const char *path, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
-extern int path_getnum(const char *path, ...)
+extern int path_read_s32(const char *path, ...)
__attribute__ ((__format__ (__printf__, 1, 2)));
extern int path_exist(const char *path, ...)
__attribute__ ((__format__ (__printf__, 1, 2)));
@@ -17,11 +17,11 @@ extern int path_exist(const char *path, ...)
#ifdef HAVE_CPU_SET_T
# include "cpuset.h"
-extern cpu_set_t *path_cpuset(int, const char *path, ...)
+extern cpu_set_t *path_read_cpuset(int, const char *path, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
-extern cpu_set_t *path_cpulist(int, const char *path, ...)
+extern cpu_set_t *path_read_cpulist(int, const char *path, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
-extern void path_setprefix(const char *);
+extern void path_set_prefix(const char *);
#endif /* HAVE_CPU_SET_T */
#endif /* UTIL_LINUX_PATH_H */