instow

:)
git clone https://git.sr.ht/~ashymad/instow
Log | Files | Refs | LICENSE

os.h (317B)


      1 #pragma once
      2 
      3 #ifndef _GNU_SOURCE
      4 #define _GNU_SOURCE
      5 #define _FILE_OFFSET_BITS 64
      6 #endif
      7 
      8 #include <janet.h>
      9 #include <sys/stat.h>
     10 #include <sys/types.h>
     11 
     12 typedef struct stat jstat_t;
     13 typedef mode_t jmode_t;
     14 
     15 Janet stat2table(const jstat_t *st, const uint8_t *key);
     16 jmode_t os_getmode(const Janet *argv, int32_t n);