libshit

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

stat.h (617B)


      1 #ifndef GUARD_DREADLESSLY_BALLS_DEEP_DARK_L_FLOORS_0247
      2 #define GUARD_DREADLESSLY_BALLS_DEEP_DARK_L_FLOORS_0247
      3 #pragma once
      4 
      5 #include_next <sys/stat.h>
      6 #include <psp2/io/stat.h>
      7 
      8 #define lstat stat // no lstat (no symlinks at all?)
      9 
     10 #undef _IFMT
     11 #define _IFMT SCE_S_IFMT
     12 #undef _IFDIR
     13 #define _IFDIR SCE_S_IFDIR
     14 #undef _IFCHR
     15 #define _IFCHR 0x8000 // not supported
     16 #undef _IFBLK
     17 #define _IFBLK 0x8000 // not supported
     18 #undef _IFREG
     19 #define _IFREG SCE_S_IFREG
     20 #undef _IFLNK
     21 #define _IFLNK SCE_S_IFLNK
     22 #undef _IFSOCK
     23 #define _IFSOCK 0x8000 // not supported
     24 #undef _IFIFO
     25 #define _IFIFO 0x8000 // not supported
     26 
     27 #endif