bigbiff bigbiff | e60683a | 2013-02-22 20:55:50 -0500 | [diff] [blame] | 1 | /* |
| 2 | * wrappers for "at" functions. |
| 3 | * |
| 4 | * Copyright (C) 2010 Karel Zak <kzak@redhat.com> |
| 5 | * |
| 6 | * This file may be redistributed under the terms of the |
| 7 | * GNU Lesser General Public License. |
| 8 | */ |
| 9 | #ifndef UTIL_LINUX_AT_H |
| 10 | #define UTIL_LINUX_AT_H |
| 11 | |
| 12 | #include <stdio.h> |
| 13 | #include <sys/types.h> |
| 14 | #include <sys/stat.h> |
| 15 | #include <unistd.h> |
| 16 | |
| 17 | #include "c.h" |
| 18 | |
| 19 | extern int fstat_at(int dir, const char *dirname, |
| 20 | const char *filename, struct stat *st, int nofollow); |
| 21 | |
| 22 | extern int open_at(int dir, const char *dirname, |
| 23 | const char *filename, int flags); |
| 24 | |
| 25 | extern FILE *fopen_at(int dir, const char *dirname, const char *filename, |
| 26 | int flags, const char *mode); |
| 27 | |
| 28 | extern ssize_t readlink_at(int dir, const char *dirname, const char *pathname, |
| 29 | char *buf, size_t bufsiz); |
| 30 | |
| 31 | |
| 32 | #endif /* UTIL_LINUX_AT_H */ |