libshit

Just some random shit
git clone https://git.neptards.moe/neptards/libshit.git
Log | Files | Refs | Submodules | README | LICENSE

statvfs.h (374B)


      1 #ifndef GUARD_SUGGESTINGLY_TRUMPIST_BURAO_INWRITES_0798
      2 #define GUARD_SUGGESTINGLY_TRUMPIST_BURAO_INWRITES_0798
      3 #pragma once
      4 
      5 // dummy impl
      6 
      7 #include <errno.h>
      8 
      9 struct statvfs
     10 {
     11   unsigned long f_bsize, f_frsize, f_blocks, f_bfree, f_bavail;
     12 };
     13 static inline int __attribute__((nothrow))
     14 statvfs(const char* path, struct statvfs* buf)
     15 { errno = ENOSYS; return -1; }
     16 
     17 #endif