summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/mountP.h
diff options
context:
space:
mode:
authorKarel Zak2010-09-21 21:44:19 +0200
committerKarel Zak2011-01-03 12:28:42 +0100
commita1e8af753cfe312d22c1b497243ef1f98d97052c (patch)
tree150d1ec15d2c6bb404ab5c3517d09e0466d0fe57 /shlibs/mount/src/mountP.h
parentlibmount: add first part of high-level API (diff)
downloadkernel-qcow2-util-linux-a1e8af753cfe312d22c1b497243ef1f98d97052c.tar.gz
kernel-qcow2-util-linux-a1e8af753cfe312d22c1b497243ef1f98d97052c.tar.xz
kernel-qcow2-util-linux-a1e8af753cfe312d22c1b497243ef1f98d97052c.zip
libmount: add utils for work with uid/gid
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/mountP.h')
-rw-r--r--shlibs/mount/src/mountP.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shlibs/mount/src/mountP.h b/shlibs/mount/src/mountP.h
index f59589577..230f51cbe 100644
--- a/shlibs/mount/src/mountP.h
+++ b/shlibs/mount/src/mountP.h
@@ -107,6 +107,9 @@ extern int endswith(const char *s, const char *sx);
extern int startswith(const char *s, const char *sx);
extern char *mnt_get_username(const uid_t uid);
+extern int mnt_get_uid(const char *username, uid_t *uid);
+extern int mnt_get_gid(const char *groupname, gid_t *gid);
+
extern int mnt_has_regular_mtab(void);
extern char *mnt_get_mountpoint(const char *path);