github.com/gotranspile/cxgo@v0.3.8-0.20240118201721-29871598a6a2/libs/includes/sys/types.h (about)

     1  #include <stddef.h>
     2  #include <time.h>
     3  
     4  #define off_t _cxgo_int64
     5  #define ssize_t _cxgo_int64
     6  #define off_t _cxgo_uint64
     7  #define pid_t _cxgo_uint64
     8  #define gid_t _cxgo_uint32
     9  #define uid_t _cxgo_uint32
    10  #define ino_t _cxgo_uint64
    11  
    12  #define u_short unsigned short
    13  #define u_long unsigned long
    14  
    15  
    16  // TODO: should be in fcntl.h
    17  const _cxgo_int32 O_RDONLY = 1;
    18  const _cxgo_int32 O_WRONLY = 2;
    19  const _cxgo_int32 O_RDWR = 3;
    20  const _cxgo_int32 O_CREAT = 4;
    21  const _cxgo_int32 O_EXCL = 5;
    22  const _cxgo_int32 O_TRUNC = 6;