vnstat  2.9
About: vnStat is a console-based network traffic monitor (using the /proc filesystem).
  Fossies Dox: vnstat-2.9.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

fs.h
Go to the documentation of this file.
1#ifndef FS_H
2#define FS_H
3
4/* O_CLOEXEC is specified starting POSIX.1-2008 / glibc 2.12 / Linux 2.6.23 */
5#if HAVE_DECL_O_CLOEXEC
6#define FS_OPEN_RO_FLAGS O_RDONLY | O_CLOEXEC
7#else
8#define FS_OPEN_RO_FLAGS O_RDONLY
9#endif
10
11int direxists(const char *dir);
12int fileexists(const char *file);
13int mkpath(const char *dir, const mode_t mode);
14void preparevnstatdir(const char *dir, const char *user, const char *group);
15void updatedirowner(const char *dir, const char *user, const char *group);
16void updatedirownerid(const char *dir, const uid_t uid, const gid_t gid);
17
18#endif
void updatedirownerid(const char *dir, const uid_t uid, const gid_t gid)
Definition: fs.c:164
void updatedirowner(const char *dir, const char *user, const char *group)
Definition: fs.c:143
int direxists(const char *dir)
Definition: fs.c:5
int mkpath(const char *dir, const mode_t mode)
Definition: fs.c:24
void preparevnstatdir(const char *dir, const char *user, const char *group)
Definition: fs.c:88
int fileexists(const char *file)
Definition: fs.c:10