posix_other_consts.nim 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  1. # Generated by detect.nim
  2. # <aio.h>
  3. var AIO_ALLDONE* {.importc: "AIO_ALLDONE", header: "<aio.h>".}: cint
  4. var AIO_CANCELED* {.importc: "AIO_CANCELED", header: "<aio.h>".}: cint
  5. var AIO_NOTCANCELED* {.importc: "AIO_NOTCANCELED", header: "<aio.h>".}: cint
  6. var LIO_NOP* {.importc: "LIO_NOP", header: "<aio.h>".}: cint
  7. var LIO_NOWAIT* {.importc: "LIO_NOWAIT", header: "<aio.h>".}: cint
  8. var LIO_READ* {.importc: "LIO_READ", header: "<aio.h>".}: cint
  9. var LIO_WAIT* {.importc: "LIO_WAIT", header: "<aio.h>".}: cint
  10. var LIO_WRITE* {.importc: "LIO_WRITE", header: "<aio.h>".}: cint
  11. # <dlfcn.h>
  12. var RTLD_LAZY* {.importc: "RTLD_LAZY", header: "<dlfcn.h>".}: cint
  13. var RTLD_NOW* {.importc: "RTLD_NOW", header: "<dlfcn.h>".}: cint
  14. var RTLD_GLOBAL* {.importc: "RTLD_GLOBAL", header: "<dlfcn.h>".}: cint
  15. var RTLD_LOCAL* {.importc: "RTLD_LOCAL", header: "<dlfcn.h>".}: cint
  16. # <errno.h>
  17. var E2BIG* {.importc: "E2BIG", header: "<errno.h>".}: cint
  18. var EACCES* {.importc: "EACCES", header: "<errno.h>".}: cint
  19. var EADDRINUSE* {.importc: "EADDRINUSE", header: "<errno.h>".}: cint
  20. var EADDRNOTAVAIL* {.importc: "EADDRNOTAVAIL", header: "<errno.h>".}: cint
  21. var EAFNOSUPPORT* {.importc: "EAFNOSUPPORT", header: "<errno.h>".}: cint
  22. var EAGAIN* {.importc: "EAGAIN", header: "<errno.h>".}: cint
  23. var EALREADY* {.importc: "EALREADY", header: "<errno.h>".}: cint
  24. var EBADF* {.importc: "EBADF", header: "<errno.h>".}: cint
  25. var EBADMSG* {.importc: "EBADMSG", header: "<errno.h>".}: cint
  26. var EBUSY* {.importc: "EBUSY", header: "<errno.h>".}: cint
  27. var ECANCELED* {.importc: "ECANCELED", header: "<errno.h>".}: cint
  28. var ECHILD* {.importc: "ECHILD", header: "<errno.h>".}: cint
  29. var ECONNABORTED* {.importc: "ECONNABORTED", header: "<errno.h>".}: cint
  30. var ECONNREFUSED* {.importc: "ECONNREFUSED", header: "<errno.h>".}: cint
  31. var ECONNRESET* {.importc: "ECONNRESET", header: "<errno.h>".}: cint
  32. var EDEADLK* {.importc: "EDEADLK", header: "<errno.h>".}: cint
  33. var EDESTADDRREQ* {.importc: "EDESTADDRREQ", header: "<errno.h>".}: cint
  34. var EDOM* {.importc: "EDOM", header: "<errno.h>".}: cint
  35. var EDQUOT* {.importc: "EDQUOT", header: "<errno.h>".}: cint
  36. var EEXIST* {.importc: "EEXIST", header: "<errno.h>".}: cint
  37. var EFAULT* {.importc: "EFAULT", header: "<errno.h>".}: cint
  38. var EFBIG* {.importc: "EFBIG", header: "<errno.h>".}: cint
  39. var EHOSTUNREACH* {.importc: "EHOSTUNREACH", header: "<errno.h>".}: cint
  40. var EIDRM* {.importc: "EIDRM", header: "<errno.h>".}: cint
  41. var EILSEQ* {.importc: "EILSEQ", header: "<errno.h>".}: cint
  42. var EINPROGRESS* {.importc: "EINPROGRESS", header: "<errno.h>".}: cint
  43. var EINTR* {.importc: "EINTR", header: "<errno.h>".}: cint
  44. var EINVAL* {.importc: "EINVAL", header: "<errno.h>".}: cint
  45. var EIO* {.importc: "EIO", header: "<errno.h>".}: cint
  46. var EISCONN* {.importc: "EISCONN", header: "<errno.h>".}: cint
  47. var EISDIR* {.importc: "EISDIR", header: "<errno.h>".}: cint
  48. var ELOOP* {.importc: "ELOOP", header: "<errno.h>".}: cint
  49. var EMFILE* {.importc: "EMFILE", header: "<errno.h>".}: cint
  50. var EMLINK* {.importc: "EMLINK", header: "<errno.h>".}: cint
  51. var EMSGSIZE* {.importc: "EMSGSIZE", header: "<errno.h>".}: cint
  52. var EMULTIHOP* {.importc: "EMULTIHOP", header: "<errno.h>".}: cint
  53. var ENAMETOOLONG* {.importc: "ENAMETOOLONG", header: "<errno.h>".}: cint
  54. var ENETDOWN* {.importc: "ENETDOWN", header: "<errno.h>".}: cint
  55. var ENETRESET* {.importc: "ENETRESET", header: "<errno.h>".}: cint
  56. var ENETUNREACH* {.importc: "ENETUNREACH", header: "<errno.h>".}: cint
  57. var ENFILE* {.importc: "ENFILE", header: "<errno.h>".}: cint
  58. var ENOBUFS* {.importc: "ENOBUFS", header: "<errno.h>".}: cint
  59. var ENODATA* {.importc: "ENODATA", header: "<errno.h>".}: cint
  60. var ENODEV* {.importc: "ENODEV", header: "<errno.h>".}: cint
  61. var ENOENT* {.importc: "ENOENT", header: "<errno.h>".}: cint
  62. var ENOEXEC* {.importc: "ENOEXEC", header: "<errno.h>".}: cint
  63. var ENOLCK* {.importc: "ENOLCK", header: "<errno.h>".}: cint
  64. var ENOLINK* {.importc: "ENOLINK", header: "<errno.h>".}: cint
  65. var ENOMEM* {.importc: "ENOMEM", header: "<errno.h>".}: cint
  66. var ENOMSG* {.importc: "ENOMSG", header: "<errno.h>".}: cint
  67. var ENOPROTOOPT* {.importc: "ENOPROTOOPT", header: "<errno.h>".}: cint
  68. var ENOSPC* {.importc: "ENOSPC", header: "<errno.h>".}: cint
  69. var ENOSR* {.importc: "ENOSR", header: "<errno.h>".}: cint
  70. var ENOSTR* {.importc: "ENOSTR", header: "<errno.h>".}: cint
  71. var ENOSYS* {.importc: "ENOSYS", header: "<errno.h>".}: cint
  72. var ENOTCONN* {.importc: "ENOTCONN", header: "<errno.h>".}: cint
  73. var ENOTDIR* {.importc: "ENOTDIR", header: "<errno.h>".}: cint
  74. var ENOTEMPTY* {.importc: "ENOTEMPTY", header: "<errno.h>".}: cint
  75. var ENOTSOCK* {.importc: "ENOTSOCK", header: "<errno.h>".}: cint
  76. var ENOTSUP* {.importc: "ENOTSUP", header: "<errno.h>".}: cint
  77. var ENOTTY* {.importc: "ENOTTY", header: "<errno.h>".}: cint
  78. var ENXIO* {.importc: "ENXIO", header: "<errno.h>".}: cint
  79. var EOPNOTSUPP* {.importc: "EOPNOTSUPP", header: "<errno.h>".}: cint
  80. var EOVERFLOW* {.importc: "EOVERFLOW", header: "<errno.h>".}: cint
  81. var EPERM* {.importc: "EPERM", header: "<errno.h>".}: cint
  82. var EPIPE* {.importc: "EPIPE", header: "<errno.h>".}: cint
  83. var EPROTO* {.importc: "EPROTO", header: "<errno.h>".}: cint
  84. var EPROTONOSUPPORT* {.importc: "EPROTONOSUPPORT", header: "<errno.h>".}: cint
  85. var EPROTOTYPE* {.importc: "EPROTOTYPE", header: "<errno.h>".}: cint
  86. var ERANGE* {.importc: "ERANGE", header: "<errno.h>".}: cint
  87. var EROFS* {.importc: "EROFS", header: "<errno.h>".}: cint
  88. var ESPIPE* {.importc: "ESPIPE", header: "<errno.h>".}: cint
  89. var ESRCH* {.importc: "ESRCH", header: "<errno.h>".}: cint
  90. var ESTALE* {.importc: "ESTALE", header: "<errno.h>".}: cint
  91. var ETIME* {.importc: "ETIME", header: "<errno.h>".}: cint
  92. var ETIMEDOUT* {.importc: "ETIMEDOUT", header: "<errno.h>".}: cint
  93. var ETXTBSY* {.importc: "ETXTBSY", header: "<errno.h>".}: cint
  94. var EWOULDBLOCK* {.importc: "EWOULDBLOCK", header: "<errno.h>".}: cint
  95. var EXDEV* {.importc: "EXDEV", header: "<errno.h>".}: cint
  96. # <fcntl.h>
  97. var F_DUPFD* {.importc: "F_DUPFD", header: "<fcntl.h>".}: cint
  98. when defined(nuttx):
  99. var F_DUPFD_CLOEXEC* {.importc: "F_DUPFD_CLOEXEC", header: "<fcntl.h>".}: cint
  100. else:
  101. var F_DUPFD_CLOEXEC* {.importc: "F_DUPFD", header: "<fcntl.h>".}: cint
  102. var F_GETFD* {.importc: "F_GETFD", header: "<fcntl.h>".}: cint
  103. var F_SETFD* {.importc: "F_SETFD", header: "<fcntl.h>".}: cint
  104. var F_GETFL* {.importc: "F_GETFL", header: "<fcntl.h>".}: cint
  105. var F_SETFL* {.importc: "F_SETFL", header: "<fcntl.h>".}: cint
  106. var F_GETLK* {.importc: "F_GETLK", header: "<fcntl.h>".}: cint
  107. var F_SETLK* {.importc: "F_SETLK", header: "<fcntl.h>".}: cint
  108. var F_SETLKW* {.importc: "F_SETLKW", header: "<fcntl.h>".}: cint
  109. var F_GETOWN* {.importc: "F_GETOWN", header: "<fcntl.h>".}: cint
  110. var F_SETOWN* {.importc: "F_SETOWN", header: "<fcntl.h>".}: cint
  111. var FD_CLOEXEC* {.importc: "FD_CLOEXEC", header: "<fcntl.h>".}: cint
  112. var F_RDLCK* {.importc: "F_RDLCK", header: "<fcntl.h>".}: cint
  113. var F_UNLCK* {.importc: "F_UNLCK", header: "<fcntl.h>".}: cint
  114. var F_WRLCK* {.importc: "F_WRLCK", header: "<fcntl.h>".}: cint
  115. var O_CREAT* {.importc: "O_CREAT", header: "<fcntl.h>".}: cint
  116. var O_EXCL* {.importc: "O_EXCL", header: "<fcntl.h>".}: cint
  117. var O_NOCTTY* {.importc: "O_NOCTTY", header: "<fcntl.h>".}: cint
  118. var O_TRUNC* {.importc: "O_TRUNC", header: "<fcntl.h>".}: cint
  119. var O_APPEND* {.importc: "O_APPEND", header: "<fcntl.h>".}: cint
  120. var O_DSYNC* {.importc: "O_DSYNC", header: "<fcntl.h>".}: cint
  121. var O_NONBLOCK* {.importc: "O_NONBLOCK", header: "<fcntl.h>".}: cint
  122. var O_RSYNC* {.importc: "O_RSYNC", header: "<fcntl.h>".}: cint
  123. var O_SYNC* {.importc: "O_SYNC", header: "<fcntl.h>".}: cint
  124. var O_ACCMODE* {.importc: "O_ACCMODE", header: "<fcntl.h>".}: cint
  125. var O_RDONLY* {.importc: "O_RDONLY", header: "<fcntl.h>".}: cint
  126. var O_RDWR* {.importc: "O_RDWR", header: "<fcntl.h>".}: cint
  127. var O_WRONLY* {.importc: "O_WRONLY", header: "<fcntl.h>".}: cint
  128. var O_CLOEXEC* {.importc: "O_CLOEXEC", header: "<fcntl.h>".}: cint
  129. when defined(nuttx):
  130. var O_DIRECT* {.importc: "O_DIRECT", header: "<fcntl.h>".}: cint
  131. var O_PATH* {.importc: "O_PATH", header: "<fcntl.h>".}: cint
  132. var O_NOATIME* {.importc: "O_NOATIME", header: "<fcntl.h>".}: cint
  133. var O_TMPFILE* {.importc: "O_TMPFILE", header: "<fcntl.h>".}: cint
  134. var POSIX_FADV_NORMAL* {.importc: "POSIX_FADV_NORMAL", header: "<fcntl.h>".}: cint
  135. var POSIX_FADV_SEQUENTIAL* {.importc: "POSIX_FADV_SEQUENTIAL", header: "<fcntl.h>".}: cint
  136. var POSIX_FADV_RANDOM* {.importc: "POSIX_FADV_RANDOM", header: "<fcntl.h>".}: cint
  137. var POSIX_FADV_WILLNEED* {.importc: "POSIX_FADV_WILLNEED", header: "<fcntl.h>".}: cint
  138. var POSIX_FADV_DONTNEED* {.importc: "POSIX_FADV_DONTNEED", header: "<fcntl.h>".}: cint
  139. var POSIX_FADV_NOREUSE* {.importc: "POSIX_FADV_NOREUSE", header: "<fcntl.h>".}: cint
  140. # <fenv.h>
  141. var FE_DIVBYZERO* {.importc: "FE_DIVBYZERO", header: "<fenv.h>".}: cint
  142. var FE_INEXACT* {.importc: "FE_INEXACT", header: "<fenv.h>".}: cint
  143. var FE_INVALID* {.importc: "FE_INVALID", header: "<fenv.h>".}: cint
  144. var FE_OVERFLOW* {.importc: "FE_OVERFLOW", header: "<fenv.h>".}: cint
  145. var FE_UNDERFLOW* {.importc: "FE_UNDERFLOW", header: "<fenv.h>".}: cint
  146. var FE_ALL_EXCEPT* {.importc: "FE_ALL_EXCEPT", header: "<fenv.h>".}: cint
  147. var FE_DOWNWARD* {.importc: "FE_DOWNWARD", header: "<fenv.h>".}: cint
  148. var FE_TONEAREST* {.importc: "FE_TONEAREST", header: "<fenv.h>".}: cint
  149. var FE_TOWARDZERO* {.importc: "FE_TOWARDZERO", header: "<fenv.h>".}: cint
  150. var FE_UPWARD* {.importc: "FE_UPWARD", header: "<fenv.h>".}: cint
  151. var FE_DFL_ENV* {.importc: "FE_DFL_ENV", header: "<fenv.h>".}: cint
  152. # <fmtmsg.h>
  153. var MM_HARD* {.importc: "MM_HARD", header: "<fmtmsg.h>".}: cint
  154. var MM_SOFT* {.importc: "MM_SOFT", header: "<fmtmsg.h>".}: cint
  155. var MM_FIRM* {.importc: "MM_FIRM", header: "<fmtmsg.h>".}: cint
  156. var MM_APPL* {.importc: "MM_APPL", header: "<fmtmsg.h>".}: cint
  157. var MM_UTIL* {.importc: "MM_UTIL", header: "<fmtmsg.h>".}: cint
  158. var MM_OPSYS* {.importc: "MM_OPSYS", header: "<fmtmsg.h>".}: cint
  159. var MM_RECOVER* {.importc: "MM_RECOVER", header: "<fmtmsg.h>".}: cint
  160. var MM_NRECOV* {.importc: "MM_NRECOV", header: "<fmtmsg.h>".}: cint
  161. var MM_HALT* {.importc: "MM_HALT", header: "<fmtmsg.h>".}: cint
  162. var MM_ERROR* {.importc: "MM_ERROR", header: "<fmtmsg.h>".}: cint
  163. var MM_WARNING* {.importc: "MM_WARNING", header: "<fmtmsg.h>".}: cint
  164. var MM_INFO* {.importc: "MM_INFO", header: "<fmtmsg.h>".}: cint
  165. var MM_NOSEV* {.importc: "MM_NOSEV", header: "<fmtmsg.h>".}: cint
  166. var MM_PRINT* {.importc: "MM_PRINT", header: "<fmtmsg.h>".}: cint
  167. var MM_CONSOLE* {.importc: "MM_CONSOLE", header: "<fmtmsg.h>".}: cint
  168. var MM_OK* {.importc: "MM_OK", header: "<fmtmsg.h>".}: cint
  169. var MM_NOTOK* {.importc: "MM_NOTOK", header: "<fmtmsg.h>".}: cint
  170. var MM_NOMSG* {.importc: "MM_NOMSG", header: "<fmtmsg.h>".}: cint
  171. var MM_NOCON* {.importc: "MM_NOCON", header: "<fmtmsg.h>".}: cint
  172. # <fnmatch.h>
  173. var FNM_NOMATCH* {.importc: "FNM_NOMATCH", header: "<fnmatch.h>".}: cint
  174. var FNM_PATHNAME* {.importc: "FNM_PATHNAME", header: "<fnmatch.h>".}: cint
  175. var FNM_PERIOD* {.importc: "FNM_PERIOD", header: "<fnmatch.h>".}: cint
  176. var FNM_NOESCAPE* {.importc: "FNM_NOESCAPE", header: "<fnmatch.h>".}: cint
  177. var FNM_NOSYS* {.importc: "FNM_NOSYS", header: "<fnmatch.h>".}: cint
  178. # <ftw.h>
  179. var FTW_F* {.importc: "FTW_F", header: "<ftw.h>".}: cint
  180. var FTW_D* {.importc: "FTW_D", header: "<ftw.h>".}: cint
  181. var FTW_DNR* {.importc: "FTW_DNR", header: "<ftw.h>".}: cint
  182. var FTW_DP* {.importc: "FTW_DP", header: "<ftw.h>".}: cint
  183. var FTW_NS* {.importc: "FTW_NS", header: "<ftw.h>".}: cint
  184. var FTW_SL* {.importc: "FTW_SL", header: "<ftw.h>".}: cint
  185. var FTW_SLN* {.importc: "FTW_SLN", header: "<ftw.h>".}: cint
  186. var FTW_PHYS* {.importc: "FTW_PHYS", header: "<ftw.h>".}: cint
  187. var FTW_MOUNT* {.importc: "FTW_MOUNT", header: "<ftw.h>".}: cint
  188. var FTW_DEPTH* {.importc: "FTW_DEPTH", header: "<ftw.h>".}: cint
  189. var FTW_CHDIR* {.importc: "FTW_CHDIR", header: "<ftw.h>".}: cint
  190. # <glob.h>
  191. var GLOB_APPEND* {.importc: "GLOB_APPEND", header: "<glob.h>".}: cint
  192. var GLOB_DOOFFS* {.importc: "GLOB_DOOFFS", header: "<glob.h>".}: cint
  193. var GLOB_ERR* {.importc: "GLOB_ERR", header: "<glob.h>".}: cint
  194. var GLOB_MARK* {.importc: "GLOB_MARK", header: "<glob.h>".}: cint
  195. var GLOB_NOCHECK* {.importc: "GLOB_NOCHECK", header: "<glob.h>".}: cint
  196. var GLOB_NOESCAPE* {.importc: "GLOB_NOESCAPE", header: "<glob.h>".}: cint
  197. var GLOB_NOSORT* {.importc: "GLOB_NOSORT", header: "<glob.h>".}: cint
  198. var GLOB_ABORTED* {.importc: "GLOB_ABORTED", header: "<glob.h>".}: cint
  199. var GLOB_NOMATCH* {.importc: "GLOB_NOMATCH", header: "<glob.h>".}: cint
  200. var GLOB_NOSPACE* {.importc: "GLOB_NOSPACE", header: "<glob.h>".}: cint
  201. var GLOB_NOSYS* {.importc: "GLOB_NOSYS", header: "<glob.h>".}: cint
  202. # <langinfo.h>
  203. var CODESET* {.importc: "CODESET", header: "<langinfo.h>".}: cint
  204. var D_T_FMT* {.importc: "D_T_FMT", header: "<langinfo.h>".}: cint
  205. var D_FMT* {.importc: "D_FMT", header: "<langinfo.h>".}: cint
  206. var T_FMT* {.importc: "T_FMT", header: "<langinfo.h>".}: cint
  207. var T_FMT_AMPM* {.importc: "T_FMT_AMPM", header: "<langinfo.h>".}: cint
  208. var AM_STR* {.importc: "AM_STR", header: "<langinfo.h>".}: cint
  209. var PM_STR* {.importc: "PM_STR", header: "<langinfo.h>".}: cint
  210. var DAY_1* {.importc: "DAY_1", header: "<langinfo.h>".}: cint
  211. var DAY_2* {.importc: "DAY_2", header: "<langinfo.h>".}: cint
  212. var DAY_3* {.importc: "DAY_3", header: "<langinfo.h>".}: cint
  213. var DAY_4* {.importc: "DAY_4", header: "<langinfo.h>".}: cint
  214. var DAY_5* {.importc: "DAY_5", header: "<langinfo.h>".}: cint
  215. var DAY_6* {.importc: "DAY_6", header: "<langinfo.h>".}: cint
  216. var DAY_7* {.importc: "DAY_7", header: "<langinfo.h>".}: cint
  217. var ABDAY_1* {.importc: "ABDAY_1", header: "<langinfo.h>".}: cint
  218. var ABDAY_2* {.importc: "ABDAY_2", header: "<langinfo.h>".}: cint
  219. var ABDAY_3* {.importc: "ABDAY_3", header: "<langinfo.h>".}: cint
  220. var ABDAY_4* {.importc: "ABDAY_4", header: "<langinfo.h>".}: cint
  221. var ABDAY_5* {.importc: "ABDAY_5", header: "<langinfo.h>".}: cint
  222. var ABDAY_6* {.importc: "ABDAY_6", header: "<langinfo.h>".}: cint
  223. var ABDAY_7* {.importc: "ABDAY_7", header: "<langinfo.h>".}: cint
  224. var MON_1* {.importc: "MON_1", header: "<langinfo.h>".}: cint
  225. var MON_2* {.importc: "MON_2", header: "<langinfo.h>".}: cint
  226. var MON_3* {.importc: "MON_3", header: "<langinfo.h>".}: cint
  227. var MON_4* {.importc: "MON_4", header: "<langinfo.h>".}: cint
  228. var MON_5* {.importc: "MON_5", header: "<langinfo.h>".}: cint
  229. var MON_6* {.importc: "MON_6", header: "<langinfo.h>".}: cint
  230. var MON_7* {.importc: "MON_7", header: "<langinfo.h>".}: cint
  231. var MON_8* {.importc: "MON_8", header: "<langinfo.h>".}: cint
  232. var MON_9* {.importc: "MON_9", header: "<langinfo.h>".}: cint
  233. var MON_10* {.importc: "MON_10", header: "<langinfo.h>".}: cint
  234. var MON_11* {.importc: "MON_11", header: "<langinfo.h>".}: cint
  235. var MON_12* {.importc: "MON_12", header: "<langinfo.h>".}: cint
  236. var ABMON_1* {.importc: "ABMON_1", header: "<langinfo.h>".}: cint
  237. var ABMON_2* {.importc: "ABMON_2", header: "<langinfo.h>".}: cint
  238. var ABMON_3* {.importc: "ABMON_3", header: "<langinfo.h>".}: cint
  239. var ABMON_4* {.importc: "ABMON_4", header: "<langinfo.h>".}: cint
  240. var ABMON_5* {.importc: "ABMON_5", header: "<langinfo.h>".}: cint
  241. var ABMON_6* {.importc: "ABMON_6", header: "<langinfo.h>".}: cint
  242. var ABMON_7* {.importc: "ABMON_7", header: "<langinfo.h>".}: cint
  243. var ABMON_8* {.importc: "ABMON_8", header: "<langinfo.h>".}: cint
  244. var ABMON_9* {.importc: "ABMON_9", header: "<langinfo.h>".}: cint
  245. var ABMON_10* {.importc: "ABMON_10", header: "<langinfo.h>".}: cint
  246. var ABMON_11* {.importc: "ABMON_11", header: "<langinfo.h>".}: cint
  247. var ABMON_12* {.importc: "ABMON_12", header: "<langinfo.h>".}: cint
  248. var ERA* {.importc: "ERA", header: "<langinfo.h>".}: cint
  249. var ERA_D_FMT* {.importc: "ERA_D_FMT", header: "<langinfo.h>".}: cint
  250. var ERA_D_T_FMT* {.importc: "ERA_D_T_FMT", header: "<langinfo.h>".}: cint
  251. var ERA_T_FMT* {.importc: "ERA_T_FMT", header: "<langinfo.h>".}: cint
  252. var ALT_DIGITS* {.importc: "ALT_DIGITS", header: "<langinfo.h>".}: cint
  253. var RADIXCHAR* {.importc: "RADIXCHAR", header: "<langinfo.h>".}: cint
  254. var THOUSEP* {.importc: "THOUSEP", header: "<langinfo.h>".}: cint
  255. var YESEXPR* {.importc: "YESEXPR", header: "<langinfo.h>".}: cint
  256. var NOEXPR* {.importc: "NOEXPR", header: "<langinfo.h>".}: cint
  257. var CRNCYSTR* {.importc: "CRNCYSTR", header: "<langinfo.h>".}: cint
  258. # <locale.h>
  259. var LC_ALL* {.importc: "LC_ALL", header: "<locale.h>".}: cint
  260. var LC_COLLATE* {.importc: "LC_COLLATE", header: "<locale.h>".}: cint
  261. var LC_CTYPE* {.importc: "LC_CTYPE", header: "<locale.h>".}: cint
  262. var LC_MESSAGES* {.importc: "LC_MESSAGES", header: "<locale.h>".}: cint
  263. var LC_MONETARY* {.importc: "LC_MONETARY", header: "<locale.h>".}: cint
  264. var LC_NUMERIC* {.importc: "LC_NUMERIC", header: "<locale.h>".}: cint
  265. var LC_TIME* {.importc: "LC_TIME", header: "<locale.h>".}: cint
  266. # <netdb.h>
  267. var IPPORT_RESERVED* {.importc: "IPPORT_RESERVED", header: "<netdb.h>".}: cint
  268. var HOST_NOT_FOUND* {.importc: "HOST_NOT_FOUND", header: "<netdb.h>".}: cint
  269. var NO_DATA* {.importc: "NO_DATA", header: "<netdb.h>".}: cint
  270. var NO_RECOVERY* {.importc: "NO_RECOVERY", header: "<netdb.h>".}: cint
  271. var TRY_AGAIN* {.importc: "TRY_AGAIN", header: "<netdb.h>".}: cint
  272. var AI_PASSIVE* {.importc: "AI_PASSIVE", header: "<netdb.h>".}: cint
  273. var AI_CANONNAME* {.importc: "AI_CANONNAME", header: "<netdb.h>".}: cint
  274. var AI_NUMERICHOST* {.importc: "AI_NUMERICHOST", header: "<netdb.h>".}: cint
  275. var AI_NUMERICSERV* {.importc: "AI_NUMERICSERV", header: "<netdb.h>".}: cint
  276. var AI_V4MAPPED* {.importc: "AI_V4MAPPED", header: "<netdb.h>".}: cint
  277. var AI_ALL* {.importc: "AI_ALL", header: "<netdb.h>".}: cint
  278. var AI_ADDRCONFIG* {.importc: "AI_ADDRCONFIG", header: "<netdb.h>".}: cint
  279. var NI_NOFQDN* {.importc: "NI_NOFQDN", header: "<netdb.h>".}: cint
  280. var NI_NUMERICHOST* {.importc: "NI_NUMERICHOST", header: "<netdb.h>".}: cint
  281. var NI_NAMEREQD* {.importc: "NI_NAMEREQD", header: "<netdb.h>".}: cint
  282. var NI_NUMERICSERV* {.importc: "NI_NUMERICSERV", header: "<netdb.h>".}: cint
  283. var NI_NUMERICSCOPE* {.importc: "NI_NUMERICSCOPE", header: "<netdb.h>".}: cint
  284. var NI_DGRAM* {.importc: "NI_DGRAM", header: "<netdb.h>".}: cint
  285. var EAI_AGAIN* {.importc: "EAI_AGAIN", header: "<netdb.h>".}: cint
  286. var EAI_BADFLAGS* {.importc: "EAI_BADFLAGS", header: "<netdb.h>".}: cint
  287. var EAI_FAIL* {.importc: "EAI_FAIL", header: "<netdb.h>".}: cint
  288. var EAI_FAMILY* {.importc: "EAI_FAMILY", header: "<netdb.h>".}: cint
  289. var EAI_MEMORY* {.importc: "EAI_MEMORY", header: "<netdb.h>".}: cint
  290. var EAI_NONAME* {.importc: "EAI_NONAME", header: "<netdb.h>".}: cint
  291. var EAI_SERVICE* {.importc: "EAI_SERVICE", header: "<netdb.h>".}: cint
  292. var EAI_SOCKTYPE* {.importc: "EAI_SOCKTYPE", header: "<netdb.h>".}: cint
  293. var EAI_SYSTEM* {.importc: "EAI_SYSTEM", header: "<netdb.h>".}: cint
  294. var EAI_OVERFLOW* {.importc: "EAI_OVERFLOW", header: "<netdb.h>".}: cint
  295. # <net/if.h>
  296. var IF_NAMESIZE* {.importc: "IF_NAMESIZE", header: "<net/if.h>".}: cint
  297. # <netinet/in.h>
  298. var IPPROTO_IP* {.importc: "IPPROTO_IP", header: "<netinet/in.h>".}: cint
  299. var IPPROTO_IPV6* {.importc: "IPPROTO_IPV6", header: "<netinet/in.h>".}: cint
  300. var IPPROTO_ICMP* {.importc: "IPPROTO_ICMP", header: "<netinet/in.h>".}: cint
  301. var IPPROTO_ICMPV6* {.importc: "IPPROTO_ICMPV6", header: "<netinet/in.h>".}: cint
  302. var IPPROTO_RAW* {.importc: "IPPROTO_RAW", header: "<netinet/in.h>".}: cint
  303. var IPPROTO_TCP* {.importc: "IPPROTO_TCP", header: "<netinet/in.h>".}: cint
  304. var IPPROTO_UDP* {.importc: "IPPROTO_UDP", header: "<netinet/in.h>".}: cint
  305. var INADDR_ANY* {.importc: "INADDR_ANY", header: "<netinet/in.h>".}: InAddrScalar
  306. var INADDR_LOOPBACK* {.importc: "INADDR_LOOPBACK", header: "<netinet/in.h>".}: InAddrScalar
  307. var INADDR_BROADCAST* {.importc: "INADDR_BROADCAST", header: "<netinet/in.h>".}: InAddrScalar
  308. var INET_ADDRSTRLEN* {.importc: "INET_ADDRSTRLEN", header: "<netinet/in.h>".}: cint
  309. var INET6_ADDRSTRLEN* {.importc: "INET6_ADDRSTRLEN", header: "<netinet/in.h>".}: cint
  310. var IPV6_JOIN_GROUP* {.importc: "IPV6_JOIN_GROUP", header: "<netinet/in.h>".}: cint
  311. var IPV6_LEAVE_GROUP* {.importc: "IPV6_LEAVE_GROUP", header: "<netinet/in.h>".}: cint
  312. var IPV6_MULTICAST_HOPS* {.importc: "IPV6_MULTICAST_HOPS", header: "<netinet/in.h>".}: cint
  313. var IPV6_MULTICAST_IF* {.importc: "IPV6_MULTICAST_IF", header: "<netinet/in.h>".}: cint
  314. var IPV6_MULTICAST_LOOP* {.importc: "IPV6_MULTICAST_LOOP", header: "<netinet/in.h>".}: cint
  315. var IPV6_UNICAST_HOPS* {.importc: "IPV6_UNICAST_HOPS", header: "<netinet/in.h>".}: cint
  316. var IPV6_V6ONLY* {.importc: "IPV6_V6ONLY", header: "<netinet/in.h>".}: cint
  317. # <netinet/tcp.h>
  318. var TCP_NODELAY* {.importc: "TCP_NODELAY", header: "<netinet/tcp.h>".}: cint
  319. # <nl_types.h>
  320. var NL_SETD* {.importc: "NL_SETD", header: "<nl_types.h>".}: cint
  321. var NL_CAT_LOCALE* {.importc: "NL_CAT_LOCALE", header: "<nl_types.h>".}: cint
  322. # <poll.h>
  323. var POLLIN* {.importc: "POLLIN", header: "<poll.h>".}: cshort
  324. var POLLRDNORM* {.importc: "POLLRDNORM", header: "<poll.h>".}: cshort
  325. var POLLRDBAND* {.importc: "POLLRDBAND", header: "<poll.h>".}: cshort
  326. var POLLPRI* {.importc: "POLLPRI", header: "<poll.h>".}: cshort
  327. var POLLOUT* {.importc: "POLLOUT", header: "<poll.h>".}: cshort
  328. var POLLWRNORM* {.importc: "POLLWRNORM", header: "<poll.h>".}: cshort
  329. var POLLWRBAND* {.importc: "POLLWRBAND", header: "<poll.h>".}: cshort
  330. var POLLERR* {.importc: "POLLERR", header: "<poll.h>".}: cshort
  331. var POLLHUP* {.importc: "POLLHUP", header: "<poll.h>".}: cshort
  332. var POLLNVAL* {.importc: "POLLNVAL", header: "<poll.h>".}: cshort
  333. # <pthread.h>
  334. var PTHREAD_BARRIER_SERIAL_THREAD* {.importc: "PTHREAD_BARRIER_SERIAL_THREAD", header: "<pthread.h>".}: cint
  335. var PTHREAD_CANCEL_ASYNCHRONOUS* {.importc: "PTHREAD_CANCEL_ASYNCHRONOUS", header: "<pthread.h>".}: cint
  336. var PTHREAD_CANCEL_ENABLE* {.importc: "PTHREAD_CANCEL_ENABLE", header: "<pthread.h>".}: cint
  337. var PTHREAD_CANCEL_DEFERRED* {.importc: "PTHREAD_CANCEL_DEFERRED", header: "<pthread.h>".}: cint
  338. var PTHREAD_CANCEL_DISABLE* {.importc: "PTHREAD_CANCEL_DISABLE", header: "<pthread.h>".}: cint
  339. var PTHREAD_CREATE_DETACHED* {.importc: "PTHREAD_CREATE_DETACHED", header: "<pthread.h>".}: cint
  340. var PTHREAD_CREATE_JOINABLE* {.importc: "PTHREAD_CREATE_JOINABLE", header: "<pthread.h>".}: cint
  341. var PTHREAD_EXPLICIT_SCHED* {.importc: "PTHREAD_EXPLICIT_SCHED", header: "<pthread.h>".}: cint
  342. var PTHREAD_INHERIT_SCHED* {.importc: "PTHREAD_INHERIT_SCHED", header: "<pthread.h>".}: cint
  343. var PTHREAD_MUTEX_DEFAULT* {.importc: "PTHREAD_MUTEX_DEFAULT", header: "<pthread.h>".}: cint
  344. var PTHREAD_MUTEX_ERRORCHECK* {.importc: "PTHREAD_MUTEX_ERRORCHECK", header: "<pthread.h>".}: cint
  345. var PTHREAD_MUTEX_NORMAL* {.importc: "PTHREAD_MUTEX_NORMAL", header: "<pthread.h>".}: cint
  346. var PTHREAD_MUTEX_RECURSIVE* {.importc: "PTHREAD_MUTEX_RECURSIVE", header: "<pthread.h>".}: cint
  347. var PTHREAD_PRIO_INHERIT* {.importc: "PTHREAD_PRIO_INHERIT", header: "<pthread.h>".}: cint
  348. var PTHREAD_PRIO_NONE* {.importc: "PTHREAD_PRIO_NONE", header: "<pthread.h>".}: cint
  349. var PTHREAD_PRIO_PROTECT* {.importc: "PTHREAD_PRIO_PROTECT", header: "<pthread.h>".}: cint
  350. var PTHREAD_PROCESS_SHARED* {.importc: "PTHREAD_PROCESS_SHARED", header: "<pthread.h>".}: cint
  351. var PTHREAD_PROCESS_PRIVATE* {.importc: "PTHREAD_PROCESS_PRIVATE", header: "<pthread.h>".}: cint
  352. var PTHREAD_SCOPE_PROCESS* {.importc: "PTHREAD_SCOPE_PROCESS", header: "<pthread.h>".}: cint
  353. var PTHREAD_SCOPE_SYSTEM* {.importc: "PTHREAD_SCOPE_SYSTEM", header: "<pthread.h>".}: cint
  354. # <sched.h>
  355. var SCHED_FIFO* {.importc: "SCHED_FIFO", header: "<sched.h>".}: cint
  356. var SCHED_RR* {.importc: "SCHED_RR", header: "<sched.h>".}: cint
  357. var SCHED_SPORADIC* {.importc: "SCHED_SPORADIC", header: "<sched.h>".}: cint
  358. var SCHED_OTHER* {.importc: "SCHED_OTHER", header: "<sched.h>".}: cint
  359. # <semaphore.h>
  360. var SEM_FAILED* {.importc: "SEM_FAILED", header: "<semaphore.h>".}: pointer
  361. # <signal.h>
  362. var SIGEV_NONE* {.importc: "SIGEV_NONE", header: "<signal.h>".}: cint
  363. var SIGEV_SIGNAL* {.importc: "SIGEV_SIGNAL", header: "<signal.h>".}: cint
  364. var SIGEV_THREAD* {.importc: "SIGEV_THREAD", header: "<signal.h>".}: cint
  365. var SIGABRT* {.importc: "SIGABRT", header: "<signal.h>".}: cint
  366. var SIGALRM* {.importc: "SIGALRM", header: "<signal.h>".}: cint
  367. var SIGBUS* {.importc: "SIGBUS", header: "<signal.h>".}: cint
  368. var SIGCHLD* {.importc: "SIGCHLD", header: "<signal.h>".}: cint
  369. var SIGCONT* {.importc: "SIGCONT", header: "<signal.h>".}: cint
  370. var SIGFPE* {.importc: "SIGFPE", header: "<signal.h>".}: cint
  371. var SIGHUP* {.importc: "SIGHUP", header: "<signal.h>".}: cint
  372. var SIGILL* {.importc: "SIGILL", header: "<signal.h>".}: cint
  373. var SIGINT* {.importc: "SIGINT", header: "<signal.h>".}: cint
  374. var SIGKILL* {.importc: "SIGKILL", header: "<signal.h>".}: cint
  375. var SIGPIPE* {.importc: "SIGPIPE", header: "<signal.h>".}: cint
  376. var SIGQUIT* {.importc: "SIGQUIT", header: "<signal.h>".}: cint
  377. var SIGSEGV* {.importc: "SIGSEGV", header: "<signal.h>".}: cint
  378. var SIGSTOP* {.importc: "SIGSTOP", header: "<signal.h>".}: cint
  379. var SIGTERM* {.importc: "SIGTERM", header: "<signal.h>".}: cint
  380. var SIGTSTP* {.importc: "SIGTSTP", header: "<signal.h>".}: cint
  381. var SIGTTIN* {.importc: "SIGTTIN", header: "<signal.h>".}: cint
  382. var SIGTTOU* {.importc: "SIGTTOU", header: "<signal.h>".}: cint
  383. var SIGUSR1* {.importc: "SIGUSR1", header: "<signal.h>".}: cint
  384. var SIGUSR2* {.importc: "SIGUSR2", header: "<signal.h>".}: cint
  385. var SIGPOLL* {.importc: "SIGPOLL", header: "<signal.h>".}: cint
  386. var SIGPROF* {.importc: "SIGPROF", header: "<signal.h>".}: cint
  387. var SIGSYS* {.importc: "SIGSYS", header: "<signal.h>".}: cint
  388. var SIGTRAP* {.importc: "SIGTRAP", header: "<signal.h>".}: cint
  389. var SIGURG* {.importc: "SIGURG", header: "<signal.h>".}: cint
  390. var SIGVTALRM* {.importc: "SIGVTALRM", header: "<signal.h>".}: cint
  391. var SIGXCPU* {.importc: "SIGXCPU", header: "<signal.h>".}: cint
  392. var SIGXFSZ* {.importc: "SIGXFSZ", header: "<signal.h>".}: cint
  393. var SA_NOCLDSTOP* {.importc: "SA_NOCLDSTOP", header: "<signal.h>".}: cint
  394. var SIG_BLOCK* {.importc: "SIG_BLOCK", header: "<signal.h>".}: cint
  395. var SIG_UNBLOCK* {.importc: "SIG_UNBLOCK", header: "<signal.h>".}: cint
  396. var SIG_SETMASK* {.importc: "SIG_SETMASK", header: "<signal.h>".}: cint
  397. var SA_ONSTACK* {.importc: "SA_ONSTACK", header: "<signal.h>".}: cint
  398. var SA_RESETHAND* {.importc: "SA_RESETHAND", header: "<signal.h>".}: cint
  399. var SA_RESTART* {.importc: "SA_RESTART", header: "<signal.h>".}: cint
  400. var SA_SIGINFO* {.importc: "SA_SIGINFO", header: "<signal.h>".}: cint
  401. var SA_NOCLDWAIT* {.importc: "SA_NOCLDWAIT", header: "<signal.h>".}: cint
  402. var SA_NODEFER* {.importc: "SA_NODEFER", header: "<signal.h>".}: cint
  403. var SS_ONSTACK* {.importc: "SS_ONSTACK", header: "<signal.h>".}: cint
  404. var SS_DISABLE* {.importc: "SS_DISABLE", header: "<signal.h>".}: cint
  405. var MINSIGSTKSZ* {.importc: "MINSIGSTKSZ", header: "<signal.h>".}: cint
  406. var SIGSTKSZ* {.importc: "SIGSTKSZ", header: "<signal.h>".}: cint
  407. var SIG_HOLD* {.importc: "SIG_HOLD", header: "<signal.h>".}: Sighandler
  408. var SIG_DFL* {.importc: "SIG_DFL", header: "<signal.h>".}: Sighandler
  409. var SIG_ERR* {.importc: "SIG_ERR", header: "<signal.h>".}: Sighandler
  410. var SIG_IGN* {.importc: "SIG_IGN", header: "<signal.h>".}: Sighandler
  411. # <sys/ipc.h>
  412. var IPC_CREAT* {.importc: "IPC_CREAT", header: "<sys/ipc.h>".}: cint
  413. var IPC_EXCL* {.importc: "IPC_EXCL", header: "<sys/ipc.h>".}: cint
  414. var IPC_NOWAIT* {.importc: "IPC_NOWAIT", header: "<sys/ipc.h>".}: cint
  415. var IPC_PRIVATE* {.importc: "IPC_PRIVATE", header: "<sys/ipc.h>".}: cint
  416. var IPC_RMID* {.importc: "IPC_RMID", header: "<sys/ipc.h>".}: cint
  417. var IPC_SET* {.importc: "IPC_SET", header: "<sys/ipc.h>".}: cint
  418. var IPC_STAT* {.importc: "IPC_STAT", header: "<sys/ipc.h>".}: cint
  419. # <sys/mman.h>
  420. var PROT_READ* {.importc: "PROT_READ", header: "<sys/mman.h>".}: cint
  421. var PROT_WRITE* {.importc: "PROT_WRITE", header: "<sys/mman.h>".}: cint
  422. var PROT_EXEC* {.importc: "PROT_EXEC", header: "<sys/mman.h>".}: cint
  423. var PROT_NONE* {.importc: "PROT_NONE", header: "<sys/mman.h>".}: cint
  424. var MAP_ANONYMOUS* {.importc: "MAP_ANONYMOUS", header: "<sys/mman.h>".}: cint
  425. var MAP_FIXED_NOREPLACE* {.importc: "MAP_FIXED_NOREPLACE", header: "<sys/mman.h>".}: cint
  426. var MAP_NORESERVE* {.importc: "MAP_NORESERVE", header: "<sys/mman.h>".}: cint
  427. var MAP_SHARED* {.importc: "MAP_SHARED", header: "<sys/mman.h>".}: cint
  428. var MAP_PRIVATE* {.importc: "MAP_PRIVATE", header: "<sys/mman.h>".}: cint
  429. var MAP_FIXED* {.importc: "MAP_FIXED", header: "<sys/mman.h>".}: cint
  430. var MS_ASYNC* {.importc: "MS_ASYNC", header: "<sys/mman.h>".}: cint
  431. var MS_SYNC* {.importc: "MS_SYNC", header: "<sys/mman.h>".}: cint
  432. var MS_INVALIDATE* {.importc: "MS_INVALIDATE", header: "<sys/mman.h>".}: cint
  433. var MCL_CURRENT* {.importc: "MCL_CURRENT", header: "<sys/mman.h>".}: cint
  434. var MCL_FUTURE* {.importc: "MCL_FUTURE", header: "<sys/mman.h>".}: cint
  435. var MAP_FAILED* {.importc: "MAP_FAILED", header: "<sys/mman.h>".}: pointer
  436. var POSIX_MADV_NORMAL* {.importc: "POSIX_MADV_NORMAL", header: "<sys/mman.h>".}: cint
  437. var POSIX_MADV_SEQUENTIAL* {.importc: "POSIX_MADV_SEQUENTIAL", header: "<sys/mman.h>".}: cint
  438. var POSIX_MADV_RANDOM* {.importc: "POSIX_MADV_RANDOM", header: "<sys/mman.h>".}: cint
  439. var POSIX_MADV_WILLNEED* {.importc: "POSIX_MADV_WILLNEED", header: "<sys/mman.h>".}: cint
  440. var POSIX_MADV_DONTNEED* {.importc: "POSIX_MADV_DONTNEED", header: "<sys/mman.h>".}: cint
  441. var POSIX_TYPED_MEM_ALLOCATE* {.importc: "POSIX_TYPED_MEM_ALLOCATE", header: "<sys/mman.h>".}: cint
  442. var POSIX_TYPED_MEM_ALLOCATE_CONTIG* {.importc: "POSIX_TYPED_MEM_ALLOCATE_CONTIG", header: "<sys/mman.h>".}: cint
  443. var POSIX_TYPED_MEM_MAP_ALLOCATABLE* {.importc: "POSIX_TYPED_MEM_MAP_ALLOCATABLE", header: "<sys/mman.h>".}: cint
  444. # <sys/resource.h>
  445. var RLIMIT_NOFILE* {.importc: "RLIMIT_NOFILE", header: "<sys/resource.h>".}: cint
  446. var RLIMIT_STACK* {.importc: "RLIMIT_STACK", header: "<sys/resource.h>".}: cint
  447. # <sys/select.h>
  448. var FD_SETSIZE* {.importc: "FD_SETSIZE", header: "<sys/select.h>".}: cint
  449. when defined(zephyr):
  450. # Zephyr specific hardcoded value
  451. var FD_MAX* {.importc: "CONFIG_POSIX_MAX_FDS ", header: "<sys/select.h>".}: cint
  452. # <sys/socket.h>
  453. var MSG_CTRUNC* {.importc: "MSG_CTRUNC", header: "<sys/socket.h>".}: cint
  454. var MSG_DONTROUTE* {.importc: "MSG_DONTROUTE", header: "<sys/socket.h>".}: cint
  455. var MSG_EOR* {.importc: "MSG_EOR", header: "<sys/socket.h>".}: cint
  456. var MSG_OOB* {.importc: "MSG_OOB", header: "<sys/socket.h>".}: cint
  457. var SCM_RIGHTS* {.importc: "SCM_RIGHTS", header: "<sys/socket.h>".}: cint
  458. var SO_ACCEPTCONN* {.importc: "SO_ACCEPTCONN", header: "<sys/socket.h>".}: cint
  459. var SO_BINDTODEVICE* {.importc: "SO_BINDTODEVICE", header: "<sys/socket.h>".}: cint
  460. var SO_BROADCAST* {.importc: "SO_BROADCAST", header: "<sys/socket.h>".}: cint
  461. var SO_DEBUG* {.importc: "SO_DEBUG", header: "<sys/socket.h>".}: cint
  462. var SO_DONTROUTE* {.importc: "SO_DONTROUTE", header: "<sys/socket.h>".}: cint
  463. var SO_ERROR* {.importc: "SO_ERROR", header: "<sys/socket.h>".}: cint
  464. var SO_KEEPALIVE* {.importc: "SO_KEEPALIVE", header: "<sys/socket.h>".}: cint
  465. var SO_LINGER* {.importc: "SO_LINGER", header: "<sys/socket.h>".}: cint
  466. var SO_OOBINLINE* {.importc: "SO_OOBINLINE", header: "<sys/socket.h>".}: cint
  467. var SO_RCVBUF* {.importc: "SO_RCVBUF", header: "<sys/socket.h>".}: cint
  468. var SO_RCVLOWAT* {.importc: "SO_RCVLOWAT", header: "<sys/socket.h>".}: cint
  469. var SO_RCVTIMEO* {.importc: "SO_RCVTIMEO", header: "<sys/socket.h>".}: cint
  470. var SO_REUSEADDR* {.importc: "SO_REUSEADDR", header: "<sys/socket.h>".}: cint
  471. var SO_SNDBUF* {.importc: "SO_SNDBUF", header: "<sys/socket.h>".}: cint
  472. var SO_SNDLOWAT* {.importc: "SO_SNDLOWAT", header: "<sys/socket.h>".}: cint
  473. var SO_SNDTIMEO* {.importc: "SO_SNDTIMEO", header: "<sys/socket.h>".}: cint
  474. var SO_TYPE* {.importc: "SO_TYPE", header: "<sys/socket.h>".}: cint
  475. var SOCK_DGRAM* {.importc: "SOCK_DGRAM", header: "<sys/socket.h>".}: cint
  476. var SOCK_RAW* {.importc: "SOCK_RAW", header: "<sys/socket.h>".}: cint
  477. when defined(zephyr):
  478. const SOCK_SEQPACKET* = cint(5)
  479. var SOMAXCONN* {.importc: "CONFIG_NET_SOCKETS_POLL_MAX", header: "<sys/socket.h>".}: cint
  480. else:
  481. var SOCK_SEQPACKET* {.importc: "SOCK_SEQPACKET", header: "<sys/socket.h>".}: cint
  482. var SOMAXCONN* {.importc: "SOMAXCONN", header: "<sys/socket.h>".}: cint
  483. var SOCK_STREAM* {.importc: "SOCK_STREAM", header: "<sys/socket.h>".}: cint
  484. var SOL_SOCKET* {.importc: "SOL_SOCKET", header: "<sys/socket.h>".}: cint
  485. var MSG_PEEK* {.importc: "MSG_PEEK", header: "<sys/socket.h>".}: cint
  486. var MSG_TRUNC* {.importc: "MSG_TRUNC", header: "<sys/socket.h>".}: cint
  487. var MSG_WAITALL* {.importc: "MSG_WAITALL", header: "<sys/socket.h>".}: cint
  488. var AF_INET* {.importc: "AF_INET", header: "<sys/socket.h>".}: cint
  489. var AF_INET6* {.importc: "AF_INET6", header: "<sys/socket.h>".}: cint
  490. var AF_UNIX* {.importc: "AF_UNIX", header: "<sys/socket.h>".}: cint
  491. var AF_UNSPEC* {.importc: "AF_UNSPEC", header: "<sys/socket.h>".}: cint
  492. var SHUT_RD* {.importc: "SHUT_RD", header: "<sys/socket.h>".}: cint
  493. var SHUT_RDWR* {.importc: "SHUT_RDWR", header: "<sys/socket.h>".}: cint
  494. var SHUT_WR* {.importc: "SHUT_WR", header: "<sys/socket.h>".}: cint
  495. # <sys/stat.h>
  496. var S_IFBLK* {.importc: "S_IFBLK", header: "<sys/stat.h>".}: cint
  497. var S_IFCHR* {.importc: "S_IFCHR", header: "<sys/stat.h>".}: cint
  498. var S_IFDIR* {.importc: "S_IFDIR", header: "<sys/stat.h>".}: cint
  499. var S_IFIFO* {.importc: "S_IFIFO", header: "<sys/stat.h>".}: cint
  500. var S_IFLNK* {.importc: "S_IFLNK", header: "<sys/stat.h>".}: cint
  501. var S_IFMT* {.importc: "S_IFMT", header: "<sys/stat.h>".}: cint
  502. var S_IFREG* {.importc: "S_IFREG", header: "<sys/stat.h>".}: cint
  503. var S_IFSOCK* {.importc: "S_IFSOCK", header: "<sys/stat.h>".}: cint
  504. var S_IRGRP* {.importc: "S_IRGRP", header: "<sys/stat.h>".}: cint
  505. var S_IROTH* {.importc: "S_IROTH", header: "<sys/stat.h>".}: cint
  506. var S_IRUSR* {.importc: "S_IRUSR", header: "<sys/stat.h>".}: cint
  507. var S_IRWXG* {.importc: "S_IRWXG", header: "<sys/stat.h>".}: cint
  508. var S_IRWXO* {.importc: "S_IRWXO", header: "<sys/stat.h>".}: cint
  509. var S_IRWXU* {.importc: "S_IRWXU", header: "<sys/stat.h>".}: cint
  510. var S_ISGID* {.importc: "S_ISGID", header: "<sys/stat.h>".}: cint
  511. var S_ISUID* {.importc: "S_ISUID", header: "<sys/stat.h>".}: cint
  512. var S_ISVTX* {.importc: "S_ISVTX", header: "<sys/stat.h>".}: cint
  513. var S_IWGRP* {.importc: "S_IWGRP", header: "<sys/stat.h>".}: cint
  514. var S_IWOTH* {.importc: "S_IWOTH", header: "<sys/stat.h>".}: cint
  515. var S_IWUSR* {.importc: "S_IWUSR", header: "<sys/stat.h>".}: cint
  516. var S_IXGRP* {.importc: "S_IXGRP", header: "<sys/stat.h>".}: cint
  517. var S_IXOTH* {.importc: "S_IXOTH", header: "<sys/stat.h>".}: cint
  518. var S_IXUSR* {.importc: "S_IXUSR", header: "<sys/stat.h>".}: cint
  519. # <sys/statvfs.h>
  520. var ST_RDONLY* {.importc: "ST_RDONLY", header: "<sys/statvfs.h>".}: cint
  521. var ST_NOSUID* {.importc: "ST_NOSUID", header: "<sys/statvfs.h>".}: cint
  522. # <sys/wait.h>
  523. var WNOHANG* {.importc: "WNOHANG", header: "<sys/wait.h>".}: cint
  524. var WUNTRACED* {.importc: "WUNTRACED", header: "<sys/wait.h>".}: cint
  525. var WEXITED* {.importc: "WEXITED", header: "<sys/wait.h>".}: cint
  526. var WSTOPPED* {.importc: "WSTOPPED", header: "<sys/wait.h>".}: cint
  527. var WCONTINUED* {.importc: "WCONTINUED", header: "<sys/wait.h>".}: cint
  528. var WNOWAIT* {.importc: "WNOWAIT", header: "<sys/wait.h>".}: cint
  529. var P_ALL* {.importc: "P_ALL", header: "<sys/wait.h>".}: cint
  530. var P_PID* {.importc: "P_PID", header: "<sys/wait.h>".}: cint
  531. var P_PGID* {.importc: "P_PGID", header: "<sys/wait.h>".}: cint
  532. # <spawn.h>
  533. var POSIX_SPAWN_RESETIDS* {.importc: "POSIX_SPAWN_RESETIDS", header: "<spawn.h>".}: cint
  534. var POSIX_SPAWN_SETPGROUP* {.importc: "POSIX_SPAWN_SETPGROUP", header: "<spawn.h>".}: cint
  535. var POSIX_SPAWN_SETSCHEDPARAM* {.importc: "POSIX_SPAWN_SETSCHEDPARAM", header: "<spawn.h>".}: cint
  536. var POSIX_SPAWN_SETSCHEDULER* {.importc: "POSIX_SPAWN_SETSCHEDULER", header: "<spawn.h>".}: cint
  537. var POSIX_SPAWN_SETSIGDEF* {.importc: "POSIX_SPAWN_SETSIGDEF", header: "<spawn.h>".}: cint
  538. var POSIX_SPAWN_SETSIGMASK* {.importc: "POSIX_SPAWN_SETSIGMASK", header: "<spawn.h>".}: cint
  539. # <stdio.h>
  540. var IOFBF* {.importc: "_IOFBF", header: "<stdio.h>".}: cint
  541. var IONBF* {.importc: "_IONBF", header: "<stdio.h>".}: cint
  542. # <time.h>
  543. var CLOCKS_PER_SEC* {.importc: "CLOCKS_PER_SEC", header: "<time.h>".}: clong
  544. var CLOCK_PROCESS_CPUTIME_ID* {.importc: "CLOCK_PROCESS_CPUTIME_ID", header: "<time.h>".}: cint
  545. var CLOCK_THREAD_CPUTIME_ID* {.importc: "CLOCK_THREAD_CPUTIME_ID", header: "<time.h>".}: cint
  546. var CLOCK_REALTIME* {.importc: "CLOCK_REALTIME", header: "<time.h>".}: cint
  547. var TIMER_ABSTIME* {.importc: "TIMER_ABSTIME", header: "<time.h>".}: cint
  548. var CLOCK_MONOTONIC* {.importc: "CLOCK_MONOTONIC", header: "<time.h>".}: cint
  549. # <unistd.h>
  550. var POSIX_ASYNC_IO* {.importc: "_POSIX_ASYNC_IO", header: "<unistd.h>".}: cint
  551. var POSIX_PRIO_IO* {.importc: "_POSIX_PRIO_IO", header: "<unistd.h>".}: cint
  552. var POSIX_SYNC_IO* {.importc: "_POSIX_SYNC_IO", header: "<unistd.h>".}: cint
  553. var F_OK* {.importc: "F_OK", header: "<unistd.h>".}: cint
  554. var R_OK* {.importc: "R_OK", header: "<unistd.h>".}: cint
  555. var W_OK* {.importc: "W_OK", header: "<unistd.h>".}: cint
  556. var X_OK* {.importc: "X_OK", header: "<unistd.h>".}: cint
  557. var CS_PATH* {.importc: "_CS_PATH", header: "<unistd.h>".}: cint
  558. var CS_POSIX_V6_ILP32_OFF32_CFLAGS* {.importc: "_CS_POSIX_V6_ILP32_OFF32_CFLAGS", header: "<unistd.h>".}: cint
  559. var CS_POSIX_V6_ILP32_OFF32_LDFLAGS* {.importc: "_CS_POSIX_V6_ILP32_OFF32_LDFLAGS", header: "<unistd.h>".}: cint
  560. var CS_POSIX_V6_ILP32_OFF32_LIBS* {.importc: "_CS_POSIX_V6_ILP32_OFF32_LIBS", header: "<unistd.h>".}: cint
  561. var CS_POSIX_V6_ILP32_OFFBIG_CFLAGS* {.importc: "_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS", header: "<unistd.h>".}: cint
  562. var CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS* {.importc: "_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS", header: "<unistd.h>".}: cint
  563. var CS_POSIX_V6_ILP32_OFFBIG_LIBS* {.importc: "_CS_POSIX_V6_ILP32_OFFBIG_LIBS", header: "<unistd.h>".}: cint
  564. var CS_POSIX_V6_LP64_OFF64_CFLAGS* {.importc: "_CS_POSIX_V6_LP64_OFF64_CFLAGS", header: "<unistd.h>".}: cint
  565. var CS_POSIX_V6_LP64_OFF64_LDFLAGS* {.importc: "_CS_POSIX_V6_LP64_OFF64_LDFLAGS", header: "<unistd.h>".}: cint
  566. var CS_POSIX_V6_LP64_OFF64_LIBS* {.importc: "_CS_POSIX_V6_LP64_OFF64_LIBS", header: "<unistd.h>".}: cint
  567. var CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS* {.importc: "_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS", header: "<unistd.h>".}: cint
  568. var CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS* {.importc: "_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS", header: "<unistd.h>".}: cint
  569. var CS_POSIX_V6_LPBIG_OFFBIG_LIBS* {.importc: "_CS_POSIX_V6_LPBIG_OFFBIG_LIBS", header: "<unistd.h>".}: cint
  570. var CS_POSIX_V6_WIDTH_RESTRICTED_ENVS* {.importc: "_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS", header: "<unistd.h>".}: cint
  571. var F_LOCK* {.importc: "F_LOCK", header: "<unistd.h>".}: cint
  572. var F_TEST* {.importc: "F_TEST", header: "<unistd.h>".}: cint
  573. var F_TLOCK* {.importc: "F_TLOCK", header: "<unistd.h>".}: cint
  574. var F_ULOCK* {.importc: "F_ULOCK", header: "<unistd.h>".}: cint
  575. var PC_2_SYMLINKS* {.importc: "_PC_2_SYMLINKS", header: "<unistd.h>".}: cint
  576. var PC_ALLOC_SIZE_MIN* {.importc: "_PC_ALLOC_SIZE_MIN", header: "<unistd.h>".}: cint
  577. var PC_ASYNC_IO* {.importc: "_PC_ASYNC_IO", header: "<unistd.h>".}: cint
  578. var PC_CHOWN_RESTRICTED* {.importc: "_PC_CHOWN_RESTRICTED", header: "<unistd.h>".}: cint
  579. var PC_FILESIZEBITS* {.importc: "_PC_FILESIZEBITS", header: "<unistd.h>".}: cint
  580. var PC_LINK_MAX* {.importc: "_PC_LINK_MAX", header: "<unistd.h>".}: cint
  581. var PC_MAX_CANON* {.importc: "_PC_MAX_CANON", header: "<unistd.h>".}: cint
  582. var PC_MAX_INPUT* {.importc: "_PC_MAX_INPUT", header: "<unistd.h>".}: cint
  583. var PC_NAME_MAX* {.importc: "_PC_NAME_MAX", header: "<unistd.h>".}: cint
  584. var PC_NO_TRUNC* {.importc: "_PC_NO_TRUNC", header: "<unistd.h>".}: cint
  585. var PC_PATH_MAX* {.importc: "_PC_PATH_MAX", header: "<unistd.h>".}: cint
  586. var PC_PIPE_BUF* {.importc: "_PC_PIPE_BUF", header: "<unistd.h>".}: cint
  587. var PC_PRIO_IO* {.importc: "_PC_PRIO_IO", header: "<unistd.h>".}: cint
  588. var PC_REC_INCR_XFER_SIZE* {.importc: "_PC_REC_INCR_XFER_SIZE", header: "<unistd.h>".}: cint
  589. var PC_REC_MIN_XFER_SIZE* {.importc: "_PC_REC_MIN_XFER_SIZE", header: "<unistd.h>".}: cint
  590. var PC_REC_XFER_ALIGN* {.importc: "_PC_REC_XFER_ALIGN", header: "<unistd.h>".}: cint
  591. var PC_SYMLINK_MAX* {.importc: "_PC_SYMLINK_MAX", header: "<unistd.h>".}: cint
  592. var PC_SYNC_IO* {.importc: "_PC_SYNC_IO", header: "<unistd.h>".}: cint
  593. var PC_VDISABLE* {.importc: "_PC_VDISABLE", header: "<unistd.h>".}: cint
  594. var SC_2_C_BIND* {.importc: "_SC_2_C_BIND", header: "<unistd.h>".}: cint
  595. var SC_2_C_DEV* {.importc: "_SC_2_C_DEV", header: "<unistd.h>".}: cint
  596. var SC_2_CHAR_TERM* {.importc: "_SC_2_CHAR_TERM", header: "<unistd.h>".}: cint
  597. var SC_2_FORT_DEV* {.importc: "_SC_2_FORT_DEV", header: "<unistd.h>".}: cint
  598. var SC_2_FORT_RUN* {.importc: "_SC_2_FORT_RUN", header: "<unistd.h>".}: cint
  599. var SC_2_LOCALEDEF* {.importc: "_SC_2_LOCALEDEF", header: "<unistd.h>".}: cint
  600. var SC_2_PBS* {.importc: "_SC_2_PBS", header: "<unistd.h>".}: cint
  601. var SC_2_PBS_ACCOUNTING* {.importc: "_SC_2_PBS_ACCOUNTING", header: "<unistd.h>".}: cint
  602. var SC_2_PBS_CHECKPOINT* {.importc: "_SC_2_PBS_CHECKPOINT", header: "<unistd.h>".}: cint
  603. var SC_2_PBS_LOCATE* {.importc: "_SC_2_PBS_LOCATE", header: "<unistd.h>".}: cint
  604. var SC_2_PBS_MESSAGE* {.importc: "_SC_2_PBS_MESSAGE", header: "<unistd.h>".}: cint
  605. var SC_2_PBS_TRACK* {.importc: "_SC_2_PBS_TRACK", header: "<unistd.h>".}: cint
  606. var SC_2_SW_DEV* {.importc: "_SC_2_SW_DEV", header: "<unistd.h>".}: cint
  607. var SC_2_UPE* {.importc: "_SC_2_UPE", header: "<unistd.h>".}: cint
  608. var SC_2_VERSION* {.importc: "_SC_2_VERSION", header: "<unistd.h>".}: cint
  609. var SC_ADVISORY_INFO* {.importc: "_SC_ADVISORY_INFO", header: "<unistd.h>".}: cint
  610. var SC_AIO_LISTIO_MAX* {.importc: "_SC_AIO_LISTIO_MAX", header: "<unistd.h>".}: cint
  611. var SC_AIO_MAX* {.importc: "_SC_AIO_MAX", header: "<unistd.h>".}: cint
  612. var SC_AIO_PRIO_DELTA_MAX* {.importc: "_SC_AIO_PRIO_DELTA_MAX", header: "<unistd.h>".}: cint
  613. var SC_ARG_MAX* {.importc: "_SC_ARG_MAX", header: "<unistd.h>".}: cint
  614. var SC_ASYNCHRONOUS_IO* {.importc: "_SC_ASYNCHRONOUS_IO", header: "<unistd.h>".}: cint
  615. var SC_ATEXIT_MAX* {.importc: "_SC_ATEXIT_MAX", header: "<unistd.h>".}: cint
  616. var SC_BARRIERS* {.importc: "_SC_BARRIERS", header: "<unistd.h>".}: cint
  617. var SC_BC_BASE_MAX* {.importc: "_SC_BC_BASE_MAX", header: "<unistd.h>".}: cint
  618. var SC_BC_DIM_MAX* {.importc: "_SC_BC_DIM_MAX", header: "<unistd.h>".}: cint
  619. var SC_BC_SCALE_MAX* {.importc: "_SC_BC_SCALE_MAX", header: "<unistd.h>".}: cint
  620. var SC_BC_STRING_MAX* {.importc: "_SC_BC_STRING_MAX", header: "<unistd.h>".}: cint
  621. var SC_CHILD_MAX* {.importc: "_SC_CHILD_MAX", header: "<unistd.h>".}: cint
  622. var SC_CLK_TCK* {.importc: "_SC_CLK_TCK", header: "<unistd.h>".}: cint
  623. var SC_CLOCK_SELECTION* {.importc: "_SC_CLOCK_SELECTION", header: "<unistd.h>".}: cint
  624. var SC_COLL_WEIGHTS_MAX* {.importc: "_SC_COLL_WEIGHTS_MAX", header: "<unistd.h>".}: cint
  625. var SC_CPUTIME* {.importc: "_SC_CPUTIME", header: "<unistd.h>".}: cint
  626. var SC_DELAYTIMER_MAX* {.importc: "_SC_DELAYTIMER_MAX", header: "<unistd.h>".}: cint
  627. var SC_EXPR_NEST_MAX* {.importc: "_SC_EXPR_NEST_MAX", header: "<unistd.h>".}: cint
  628. var SC_FSYNC* {.importc: "_SC_FSYNC", header: "<unistd.h>".}: cint
  629. var SC_GETGR_R_SIZE_MAX* {.importc: "_SC_GETGR_R_SIZE_MAX", header: "<unistd.h>".}: cint
  630. var SC_GETPW_R_SIZE_MAX* {.importc: "_SC_GETPW_R_SIZE_MAX", header: "<unistd.h>".}: cint
  631. var SC_HOST_NAME_MAX* {.importc: "_SC_HOST_NAME_MAX", header: "<unistd.h>".}: cint
  632. var SC_IOV_MAX* {.importc: "_SC_IOV_MAX", header: "<unistd.h>".}: cint
  633. var SC_IPV6* {.importc: "_SC_IPV6", header: "<unistd.h>".}: cint
  634. var SC_JOB_CONTROL* {.importc: "_SC_JOB_CONTROL", header: "<unistd.h>".}: cint
  635. var SC_LINE_MAX* {.importc: "_SC_LINE_MAX", header: "<unistd.h>".}: cint
  636. var SC_LOGIN_NAME_MAX* {.importc: "_SC_LOGIN_NAME_MAX", header: "<unistd.h>".}: cint
  637. var SC_MAPPED_FILES* {.importc: "_SC_MAPPED_FILES", header: "<unistd.h>".}: cint
  638. var SC_MEMLOCK* {.importc: "_SC_MEMLOCK", header: "<unistd.h>".}: cint
  639. var SC_MEMLOCK_RANGE* {.importc: "_SC_MEMLOCK_RANGE", header: "<unistd.h>".}: cint
  640. var SC_MEMORY_PROTECTION* {.importc: "_SC_MEMORY_PROTECTION", header: "<unistd.h>".}: cint
  641. var SC_MESSAGE_PASSING* {.importc: "_SC_MESSAGE_PASSING", header: "<unistd.h>".}: cint
  642. var SC_MONOTONIC_CLOCK* {.importc: "_SC_MONOTONIC_CLOCK", header: "<unistd.h>".}: cint
  643. var SC_MQ_OPEN_MAX* {.importc: "_SC_MQ_OPEN_MAX", header: "<unistd.h>".}: cint
  644. var SC_MQ_PRIO_MAX* {.importc: "_SC_MQ_PRIO_MAX", header: "<unistd.h>".}: cint
  645. var SC_NGROUPS_MAX* {.importc: "_SC_NGROUPS_MAX", header: "<unistd.h>".}: cint
  646. var SC_OPEN_MAX* {.importc: "_SC_OPEN_MAX", header: "<unistd.h>".}: cint
  647. var SC_PAGESIZE* {.importc: "_SC_PAGESIZE", header: "<unistd.h>".}: cint
  648. var SC_PRIORITIZED_IO* {.importc: "_SC_PRIORITIZED_IO", header: "<unistd.h>".}: cint
  649. var SC_PRIORITY_SCHEDULING* {.importc: "_SC_PRIORITY_SCHEDULING", header: "<unistd.h>".}: cint
  650. var SC_RAW_SOCKETS* {.importc: "_SC_RAW_SOCKETS", header: "<unistd.h>".}: cint
  651. var SC_RE_DUP_MAX* {.importc: "_SC_RE_DUP_MAX", header: "<unistd.h>".}: cint
  652. var SC_READER_WRITER_LOCKS* {.importc: "_SC_READER_WRITER_LOCKS", header: "<unistd.h>".}: cint
  653. var SC_REALTIME_SIGNALS* {.importc: "_SC_REALTIME_SIGNALS", header: "<unistd.h>".}: cint
  654. var SC_REGEXP* {.importc: "_SC_REGEXP", header: "<unistd.h>".}: cint
  655. var SC_RTSIG_MAX* {.importc: "_SC_RTSIG_MAX", header: "<unistd.h>".}: cint
  656. var SC_SAVED_IDS* {.importc: "_SC_SAVED_IDS", header: "<unistd.h>".}: cint
  657. var SC_SEM_NSEMS_MAX* {.importc: "_SC_SEM_NSEMS_MAX", header: "<unistd.h>".}: cint
  658. var SC_SEM_VALUE_MAX* {.importc: "_SC_SEM_VALUE_MAX", header: "<unistd.h>".}: cint
  659. var SC_SEMAPHORES* {.importc: "_SC_SEMAPHORES", header: "<unistd.h>".}: cint
  660. var SC_SHARED_MEMORY_OBJECTS* {.importc: "_SC_SHARED_MEMORY_OBJECTS", header: "<unistd.h>".}: cint
  661. var SC_SHELL* {.importc: "_SC_SHELL", header: "<unistd.h>".}: cint
  662. var SC_SIGQUEUE_MAX* {.importc: "_SC_SIGQUEUE_MAX", header: "<unistd.h>".}: cint
  663. var SC_SPAWN* {.importc: "_SC_SPAWN", header: "<unistd.h>".}: cint
  664. var SC_SPIN_LOCKS* {.importc: "_SC_SPIN_LOCKS", header: "<unistd.h>".}: cint
  665. var SC_SPORADIC_SERVER* {.importc: "_SC_SPORADIC_SERVER", header: "<unistd.h>".}: cint
  666. var SC_SS_REPL_MAX* {.importc: "_SC_SS_REPL_MAX", header: "<unistd.h>".}: cint
  667. var SC_STREAM_MAX* {.importc: "_SC_STREAM_MAX", header: "<unistd.h>".}: cint
  668. var SC_SYMLOOP_MAX* {.importc: "_SC_SYMLOOP_MAX", header: "<unistd.h>".}: cint
  669. var SC_SYNCHRONIZED_IO* {.importc: "_SC_SYNCHRONIZED_IO", header: "<unistd.h>".}: cint
  670. var SC_THREAD_ATTR_STACKADDR* {.importc: "_SC_THREAD_ATTR_STACKADDR", header: "<unistd.h>".}: cint
  671. var SC_THREAD_ATTR_STACKSIZE* {.importc: "_SC_THREAD_ATTR_STACKSIZE", header: "<unistd.h>".}: cint
  672. var SC_THREAD_CPUTIME* {.importc: "_SC_THREAD_CPUTIME", header: "<unistd.h>".}: cint
  673. var SC_THREAD_DESTRUCTOR_ITERATIONS* {.importc: "_SC_THREAD_DESTRUCTOR_ITERATIONS", header: "<unistd.h>".}: cint
  674. var SC_THREAD_KEYS_MAX* {.importc: "_SC_THREAD_KEYS_MAX", header: "<unistd.h>".}: cint
  675. var SC_THREAD_PRIO_INHERIT* {.importc: "_SC_THREAD_PRIO_INHERIT", header: "<unistd.h>".}: cint
  676. var SC_THREAD_PRIO_PROTECT* {.importc: "_SC_THREAD_PRIO_PROTECT", header: "<unistd.h>".}: cint
  677. var SC_THREAD_PRIORITY_SCHEDULING* {.importc: "_SC_THREAD_PRIORITY_SCHEDULING", header: "<unistd.h>".}: cint
  678. var SC_THREAD_PROCESS_SHARED* {.importc: "_SC_THREAD_PROCESS_SHARED", header: "<unistd.h>".}: cint
  679. var SC_THREAD_SAFE_FUNCTIONS* {.importc: "_SC_THREAD_SAFE_FUNCTIONS", header: "<unistd.h>".}: cint
  680. var SC_THREAD_SPORADIC_SERVER* {.importc: "_SC_THREAD_SPORADIC_SERVER", header: "<unistd.h>".}: cint
  681. var SC_THREAD_STACK_MIN* {.importc: "_SC_THREAD_STACK_MIN", header: "<unistd.h>".}: cint
  682. var SC_THREAD_THREADS_MAX* {.importc: "_SC_THREAD_THREADS_MAX", header: "<unistd.h>".}: cint
  683. var SC_THREADS* {.importc: "_SC_THREADS", header: "<unistd.h>".}: cint
  684. var SC_TIMEOUTS* {.importc: "_SC_TIMEOUTS", header: "<unistd.h>".}: cint
  685. var SC_TIMER_MAX* {.importc: "_SC_TIMER_MAX", header: "<unistd.h>".}: cint
  686. var SC_TIMERS* {.importc: "_SC_TIMERS", header: "<unistd.h>".}: cint
  687. var SC_TRACE* {.importc: "_SC_TRACE", header: "<unistd.h>".}: cint
  688. var SC_TRACE_EVENT_FILTER* {.importc: "_SC_TRACE_EVENT_FILTER", header: "<unistd.h>".}: cint
  689. var SC_TRACE_EVENT_NAME_MAX* {.importc: "_SC_TRACE_EVENT_NAME_MAX", header: "<unistd.h>".}: cint
  690. var SC_TRACE_INHERIT* {.importc: "_SC_TRACE_INHERIT", header: "<unistd.h>".}: cint
  691. var SC_TRACE_LOG* {.importc: "_SC_TRACE_LOG", header: "<unistd.h>".}: cint
  692. var SC_TRACE_NAME_MAX* {.importc: "_SC_TRACE_NAME_MAX", header: "<unistd.h>".}: cint
  693. var SC_TRACE_SYS_MAX* {.importc: "_SC_TRACE_SYS_MAX", header: "<unistd.h>".}: cint
  694. var SC_TRACE_USER_EVENT_MAX* {.importc: "_SC_TRACE_USER_EVENT_MAX", header: "<unistd.h>".}: cint
  695. var SC_TTY_NAME_MAX* {.importc: "_SC_TTY_NAME_MAX", header: "<unistd.h>".}: cint
  696. var SC_TYPED_MEMORY_OBJECTS* {.importc: "_SC_TYPED_MEMORY_OBJECTS", header: "<unistd.h>".}: cint
  697. var SC_TZNAME_MAX* {.importc: "_SC_TZNAME_MAX", header: "<unistd.h>".}: cint
  698. var SC_V6_ILP32_OFF32* {.importc: "_SC_V6_ILP32_OFF32", header: "<unistd.h>".}: cint
  699. var SC_V6_ILP32_OFFBIG* {.importc: "_SC_V6_ILP32_OFFBIG", header: "<unistd.h>".}: cint
  700. var SC_V6_LP64_OFF64* {.importc: "_SC_V6_LP64_OFF64", header: "<unistd.h>".}: cint
  701. var SC_V6_LPBIG_OFFBIG* {.importc: "_SC_V6_LPBIG_OFFBIG", header: "<unistd.h>".}: cint
  702. var SC_VERSION* {.importc: "_SC_VERSION", header: "<unistd.h>".}: cint
  703. var SC_XBS5_ILP32_OFF32* {.importc: "_SC_XBS5_ILP32_OFF32", header: "<unistd.h>".}: cint
  704. var SC_XBS5_ILP32_OFFBIG* {.importc: "_SC_XBS5_ILP32_OFFBIG", header: "<unistd.h>".}: cint
  705. var SC_XBS5_LP64_OFF64* {.importc: "_SC_XBS5_LP64_OFF64", header: "<unistd.h>".}: cint
  706. var SC_XBS5_LPBIG_OFFBIG* {.importc: "_SC_XBS5_LPBIG_OFFBIG", header: "<unistd.h>".}: cint
  707. var SC_XOPEN_CRYPT* {.importc: "_SC_XOPEN_CRYPT", header: "<unistd.h>".}: cint
  708. var SC_XOPEN_ENH_I18N* {.importc: "_SC_XOPEN_ENH_I18N", header: "<unistd.h>".}: cint
  709. var SC_XOPEN_LEGACY* {.importc: "_SC_XOPEN_LEGACY", header: "<unistd.h>".}: cint
  710. var SC_XOPEN_REALTIME* {.importc: "_SC_XOPEN_REALTIME", header: "<unistd.h>".}: cint
  711. var SC_XOPEN_REALTIME_THREADS* {.importc: "_SC_XOPEN_REALTIME_THREADS", header: "<unistd.h>".}: cint
  712. var SC_XOPEN_SHM* {.importc: "_SC_XOPEN_SHM", header: "<unistd.h>".}: cint
  713. var SC_XOPEN_STREAMS* {.importc: "_SC_XOPEN_STREAMS", header: "<unistd.h>".}: cint
  714. var SC_XOPEN_UNIX* {.importc: "_SC_XOPEN_UNIX", header: "<unistd.h>".}: cint
  715. var SC_XOPEN_VERSION* {.importc: "_SC_XOPEN_VERSION", header: "<unistd.h>".}: cint
  716. var SC_NPROCESSORS_ONLN* {.importc: "_SC_NPROCESSORS_ONLN", header: "<unistd.h>".}: cint
  717. var SEEK_SET* {.importc: "SEEK_SET", header: "<unistd.h>".}: cint
  718. var SEEK_CUR* {.importc: "SEEK_CUR", header: "<unistd.h>".}: cint
  719. var SEEK_END* {.importc: "SEEK_END", header: "<unistd.h>".}: cint
  720. # <nuttx/config.h>
  721. when defined(nuttx):
  722. var NEPOLL_MAX* {.importc: "CONFIG_FS_NEPOLL_DESCRIPTORS", header: "<nuttx/config.h>".}: cint