summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarel Zak2010-06-22 13:27:59 +0200
committerKarel Zak2011-01-03 12:28:39 +0100
commit5a5eeb1513cfb7e02a352ef0dd987e85697a83eb (patch)
tree3724af5e186729ec008d113e9bdbe5e41ed07c87 /include
parentlibmount: add mnt_tab_parse_stream() (diff)
downloadkernel-qcow2-util-linux-5a5eeb1513cfb7e02a352ef0dd987e85697a83eb.tar.gz
kernel-qcow2-util-linux-5a5eeb1513cfb7e02a352ef0dd987e85697a83eb.tar.xz
kernel-qcow2-util-linux-5a5eeb1513cfb7e02a352ef0dd987e85697a83eb.zip
lib: add wrappers for "at" functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am1
-rw-r--r--include/at.h23
2 files changed, 24 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 9f6567560..1def42a9d 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,6 +1,7 @@
include $(top_srcdir)/config/include-Makefile.am
dist_noinst_HEADERS = \
+ at.h \
bitops.h \
blkdev.h \
canonicalize.h \
diff --git a/include/at.h b/include/at.h
new file mode 100644
index 000000000..7542f9749
--- /dev/null
+++ b/include/at.h
@@ -0,0 +1,23 @@
+/*
+ * wrappers for "at" functions.
+ *
+ * Copyright (C) 2010 Karel Zak <kzak@redhat.com>
+ *
+ * This file may be redistributed under the terms of the
+ * GNU Lesser General Public License.
+ */
+#ifndef UTIL_LINUX_AT_H
+#define UTIL_LINUX_AT_H
+
+#include <stdio.h>
+
+extern int fstat_at(int dir, const char *dirname,
+ const char *filename, struct stat *st, int nofollow);
+
+extern int open_at(int dir, const char *dirname,
+ const char *filename, int flags);
+
+extern FILE *fopen_at(int dir, const char *dirname, const char *filename,
+ int flags, const char *mode);
+
+#endif /* UTIL_LINUX_AT_H */