diff options
author | Karel Zak <kzak@redhat.com> | 2010-06-22 13:27:59 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2011-01-03 12:28:39 +0100 |
commit | 5a5eeb1513cfb7e02a352ef0dd987e85697a83eb (patch) | |
tree | 3724af5e186729ec008d113e9bdbe5e41ed07c87 /include | |
parent | 45d6713e8781e3102fa49c4284637dc5fcf5f656 (diff) | |
download | util-linux-old-5a5eeb1513cfb7e02a352ef0dd987e85697a83eb.tar.gz |
lib: add wrappers for "at" functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/Makefile.am | 1 | ||||
-rw-r--r-- | include/at.h | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index 9f656756..1def42a9 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 00000000..7542f974 --- /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 */ |