vnstat
2.9
About: vnStat is a console-based network traffic monitor (using the /proc filesystem).
![]() ![]() |
Go to the source code of this file.
Macros | |
#define | FS_OPEN_RO_FLAGS O_RDONLY |
Functions | |
int | direxists (const char *dir) |
int | fileexists (const char *file) |
int | mkpath (const char *dir, const mode_t mode) |
void | preparevnstatdir (const char *dir, const char *user, const char *group) |
void | updatedirowner (const char *dir, const char *user, const char *group) |
void | updatedirownerid (const char *dir, const uid_t uid, const gid_t gid) |
int direxists | ( | const char * | dir | ) |
int fileexists | ( | const char * | file | ) |
int mkpath | ( | const char * | dir, |
const mode_t | mode | ||
) |
Definition at line 24 of file fs.c.
References cfg, CFG::createdirs, debug, and direxists().
Referenced by preparedirs(), and preparevnstatdir().
void preparevnstatdir | ( | const char * | dir, |
const char * | user, | ||
const char * | group | ||
) |
Definition at line 88 of file fs.c.
References mkpath(), and updatedirowner().
Referenced by preparedirs().
void updatedirowner | ( | const char * | dir, |
const char * | user, | ||
const char * | group | ||
) |
Definition at line 143 of file fs.c.
References cfg, debug, getgroup(), getuser(), hasroot(), updatedirownerid(), and CFG::updatefileowner.
Referenced by preparedirs(), and preparevnstatdir().
void updatedirownerid | ( | const char * | dir, |
const uid_t | uid, | ||
const gid_t | gid | ||
) |
Definition at line 164 of file fs.c.
References cfg, debug, FS_OPEN_RO_FLAGS, hasroot(), and CFG::updatefileowner.
Referenced by updatedirowner().