"Fossies" - the Fresh Open Source Software Archive

Member "vnstat-2.9/src/fs.h" (16 Sep 2019, 572 Bytes) of package /linux/misc/vnstat-2.9.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "fs.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.4_vs_2.5.

    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 
   11 int direxists(const char *dir);
   12 int fileexists(const char *file);
   13 int mkpath(const char *dir, const mode_t mode);
   14 void preparevnstatdir(const char *dir, const char *user, const char *group);
   15 void updatedirowner(const char *dir, const char *user, const char *group);
   16 void updatedirownerid(const char *dir, const uid_t uid, const gid_t gid);
   17 
   18 #endif