[
// ===========================================
// libc
// ===========================================
{
"file": "libc/dirent.h",
"defines": [],
"structs": {
"dirent": [
"d_ino",
"d_off",
"d_reclen",
"d_type",
"d_name"
]
}
},
{
"file": "libc/utime.h",
"defines": [],
"structs": {
"utimbuf": [
"actime",
"modtime"
]
}
},
{
"file": "libc/sys/stat.h",
"defines": [
"S_IFDIR",
"S_IFREG",
"S_IFMT",
"S_IFIFO",
"S_IFSOCK",
"S_IFBLK",
"S_IFLNK",
"S_IFCHR"
],
"structs": {
"stat": [
"st_dev",
"__st_dev_padding",
"__st_ino_truncated",
"st_mode",
"st_nlink",
"st_uid",
"st_gid",
"st_rdev",
"__st_rdev_padding",
"st_size",
"st_blksize",
"st_blocks",
{
"st_atim": [
"tv_sec",
"tv_nsec"
]
},
{
"st_mtim": [
"tv_sec",
"tv_nsec"
]
},
{
"st_ctim": [
"tv_sec",
"tv_nsec"
]
},
"st_ino"
]
}
},
{
"file": "libc/sys/statvfs.h",
"defines": [],
"structs": {
"statvfs": [
"f_bsize",
"f_frsize",
"f_blocks",
"f_bfree",
"f_bavail",
"f_files",
"f_ffree",
"f_favail",
"f_fsid",
"f_flag",
"f_namemax"
]
}
},
{
"file": "libc/fcntl.h",
"defines": [
"F_UNLCK",
"O_RDWR",
"S_IRWXO",
"F_GETLK64",
"F_SETLKW64",
"F_SETLKW",
"F_SETLK64",
"F_GETLK",
"S_ISVTX",
"O_RDONLY",
"O_ACCMODE",
"F_DUPFD",
"F_SETLK",
"O_WRONLY"
],
"structs": {
"flock": [
"l_type",
"l_whence",
"l_start",
"l_len",
"l_pid"
]
}
},
{
"file": "libc/poll.h",
"defines": [
"POLLHUP",
"POLLERR",
"POLLRDNORM",
"POLLPRI",
"POLLIN",
"POLLOUT",
"POLLNVAL"
],
"structs": {
"pollfd": [
"fd",
"events",
"revents"
]
}
},
{
"file": "libc/stdlib.h",
"defines": [],
"structs": {
// NOTE: The hash sign at the end of this name is a hint to the processor that it mustn't prefix "struct " to the name to reference this struct.
// It will be stripped away when writing the compiled JSON file. You can just refer to it as C_STRUCTS.div_t when using it in the JS code.
// For more information see gen_inspect_code() in tools/gen_struct_info.py .
"div_t#": [
"quot",
"rem"
]
}
},
{
"file": "libc/sys/utsname.h",
"defines": [],
"structs": {
"utsname": [
"sysname",
"nodename",
"release",
"version",
"machine",
"domainname"
]
}
},
{
"file": "libc/time.h",
"defines": [
["li", "CLOCKS_PER_SEC"]
],
"structs": {
"timezone": [
"tz_minuteswest",
"tz_dsttime"
],
"tm": [
"tm_sec",
"tm_min",
"tm_hour",
"tm_mday",
"tm_mon",
"tm_year",
"tm_wday",