
// from <dirent.h>
const size_t dirent_d_name_offset = 8;
const size_t dirent_d_name_size = 260;
const size_t dirent_remaining_size = 0;
const size_t DIR_struct_size = 560;

// from <stdlib.h>
const int RAND_MAX = 32767;

// from <stdio.h>
const size_t FILE_struct_size = 32;
const int EOF = -1;
const int FOPEN_MAX = 20;
const int FILENAME_MAX = 260;
const int TMP_MAX = 32767;
const int L_tmpnam = 16;
const int PATH_MAX = 259;

// from <sys/types.h>
alias int Coff_t;
alias uint Csize_t;
alias int Ctime_t;
alias int Cclock_t;

// from <time.h>
const uint CLOCKS_PER_SEC = 1000;
struct tm {
    int tm_sec;
    int tm_min;
    int tm_hour;
    int tm_mday;
    int tm_mon;
    int tm_year;
    int tm_wday;
    int tm_yday;
    int tm_isdst;
}

static assert(tm.tm_sec.offsetof == 0);
static assert(tm.tm_min.offsetof == 4);
static assert(tm.tm_hour.offsetof == 8);
static assert(tm.tm_mday.offsetof == 12);
static assert(tm.tm_mon.offsetof == 16);
static assert(tm.tm_year.offsetof == 20);
static assert(tm.tm_wday.offsetof == 24);
static assert(tm.tm_yday.offsetof == 28);
static assert(tm.tm_isdst.offsetof == 32);
static assert(tm.sizeof == 36);


