blob: 63a80f0c0cc6d77235d806d1875f14c28ddd3b72 [file] [log] [blame]
bigbiff bigbiffe60683a2013-02-22 20:55:50 -05001/*
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
19extern int fstat_at(int dir, const char *dirname,
20 const char *filename, struct stat *st, int nofollow);
21
22extern int open_at(int dir, const char *dirname,
23 const char *filename, int flags);
24
25extern FILE *fopen_at(int dir, const char *dirname, const char *filename,
26 int flags, const char *mode);
27
28extern 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 */