summaryrefslogtreecommitdiffstats
path: root/libblkid/at.h
blob: 63a80f0c0cc6d77235d806d1875f14c28ddd3b72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * 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>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

#include "c.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);

extern ssize_t readlink_at(int dir, const char *dirname, const char *pathname,
                    char *buf, size_t bufsiz);


#endif /* UTIL_LINUX_AT_H */