macosx_consts.nim 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. # Generated by detect.nim
  2. const
  3. AIO_ALLDONE* = cint(1)
  4. AIO_CANCELED* = cint(2)
  5. AIO_NOTCANCELED* = cint(4)
  6. LIO_NOP* = cint(0)
  7. LIO_NOWAIT* = cint(1)
  8. LIO_READ* = cint(1)
  9. LIO_WAIT* = cint(2)
  10. LIO_WRITE* = cint(2)
  11. RTLD_LAZY* = cint(1)
  12. RTLD_NOW* = cint(2)
  13. RTLD_GLOBAL* = cint(8)
  14. RTLD_LOCAL* = cint(4)
  15. E2BIG* = cint(7)
  16. EACCES* = cint(13)
  17. EADDRINUSE* = cint(48)
  18. EADDRNOTAVAIL* = cint(49)
  19. EAFNOSUPPORT* = cint(47)
  20. EAGAIN* = cint(35)
  21. EALREADY* = cint(37)
  22. EBADF* = cint(9)
  23. EBADMSG* = cint(94)
  24. EBUSY* = cint(16)
  25. ECANCELED* = cint(89)
  26. ECHILD* = cint(10)
  27. ECONNABORTED* = cint(53)
  28. ECONNREFUSED* = cint(61)
  29. ECONNRESET* = cint(54)
  30. EDEADLK* = cint(11)
  31. EDESTADDRREQ* = cint(39)
  32. EDOM* = cint(33)
  33. EDQUOT* = cint(69)
  34. EEXIST* = cint(17)
  35. EFAULT* = cint(14)
  36. EFBIG* = cint(27)
  37. EHOSTUNREACH* = cint(65)
  38. EIDRM* = cint(90)
  39. EILSEQ* = cint(92)
  40. EINPROGRESS* = cint(36)
  41. EINTR* = cint(4)
  42. EINVAL* = cint(22)
  43. EIO* = cint(5)
  44. EISCONN* = cint(56)
  45. EISDIR* = cint(21)
  46. ELOOP* = cint(62)
  47. EMFILE* = cint(24)
  48. EMLINK* = cint(31)
  49. EMSGSIZE* = cint(40)
  50. EMULTIHOP* = cint(95)
  51. ENAMETOOLONG* = cint(63)
  52. ENETDOWN* = cint(50)
  53. ENETRESET* = cint(52)
  54. ENETUNREACH* = cint(51)
  55. ENFILE* = cint(23)
  56. ENOBUFS* = cint(55)
  57. ENODATA* = cint(96)
  58. ENODEV* = cint(19)
  59. ENOENT* = cint(2)
  60. ENOEXEC* = cint(8)
  61. ENOLCK* = cint(77)
  62. ENOLINK* = cint(97)
  63. ENOMEM* = cint(12)
  64. ENOMSG* = cint(91)
  65. ENOPROTOOPT* = cint(42)
  66. ENOSPC* = cint(28)
  67. ENOSR* = cint(98)
  68. ENOSTR* = cint(99)
  69. ENOSYS* = cint(78)
  70. ENOTCONN* = cint(57)
  71. ENOTDIR* = cint(20)
  72. ENOTEMPTY* = cint(66)
  73. ENOTSOCK* = cint(38)
  74. ENOTSUP* = cint(45)
  75. ENOTTY* = cint(25)
  76. ENXIO* = cint(6)
  77. EOPNOTSUPP* = cint(102)
  78. EOVERFLOW* = cint(84)
  79. EPERM* = cint(1)
  80. EPIPE* = cint(32)
  81. EPROTO* = cint(100)
  82. EPROTONOSUPPORT* = cint(43)
  83. EPROTOTYPE* = cint(41)
  84. ERANGE* = cint(34)
  85. EROFS* = cint(30)
  86. ESPIPE* = cint(29)
  87. ESRCH* = cint(3)
  88. ESTALE* = cint(70)
  89. ETIME* = cint(101)
  90. ETIMEDOUT* = cint(60)
  91. ETXTBSY* = cint(26)
  92. EWOULDBLOCK* = cint(35)
  93. EXDEV* = cint(18)
  94. F_DUPFD* = cint(0)
  95. F_GETFD* = cint(1)
  96. F_SETFD* = cint(2)
  97. F_GETFL* = cint(3)
  98. F_SETFL* = cint(4)
  99. F_GETLK* = cint(7)
  100. F_SETLK* = cint(8)
  101. F_SETLKW* = cint(9)
  102. F_GETOWN* = cint(5)
  103. F_SETOWN* = cint(6)
  104. FD_CLOEXEC* = cint(1)
  105. F_RDLCK* = cint(1)
  106. F_UNLCK* = cint(2)
  107. F_WRLCK* = cint(3)
  108. O_CREAT* = cint(512)
  109. O_EXCL* = cint(2048)
  110. O_NOCTTY* = cint(131072)
  111. O_TRUNC* = cint(1024)
  112. O_APPEND* = cint(8)
  113. O_DSYNC* = cint(4194304)
  114. O_NONBLOCK* = cint(4)
  115. O_SYNC* = cint(128)
  116. O_ACCMODE* = cint(3)
  117. O_RDONLY* = cint(0)
  118. O_RDWR* = cint(2)
  119. O_WRONLY* = cint(1)
  120. FE_DIVBYZERO* = cint(4)
  121. FE_INEXACT* = cint(32)
  122. FE_INVALID* = cint(1)
  123. FE_OVERFLOW* = cint(8)
  124. FE_UNDERFLOW* = cint(16)
  125. FE_ALL_EXCEPT* = cint(63)
  126. FE_DOWNWARD* = cint(1024)
  127. FE_TONEAREST* = cint(0)
  128. FE_TOWARDZERO* = cint(3072)
  129. FE_UPWARD* = cint(2048)
  130. FE_DFL_ENV* = when defined(amd64): cast[pointer](0x7fff9533b1b4)
  131. else: cast[pointer](0x904797f4)
  132. MM_HARD* = cint(1)
  133. MM_SOFT* = cint(2)
  134. MM_FIRM* = cint(4)
  135. MM_APPL* = cint(16)
  136. MM_UTIL* = cint(32)
  137. MM_OPSYS* = cint(64)
  138. MM_RECOVER* = cint(4096)
  139. MM_NRECOV* = cint(8192)
  140. MM_HALT* = cint(1)
  141. MM_ERROR* = cint(2)
  142. MM_WARNING* = cint(3)
  143. MM_INFO* = cint(4)
  144. MM_NOSEV* = cint(0)
  145. MM_PRINT* = cint(256)
  146. MM_CONSOLE* = cint(512)
  147. MM_OK* = cint(0)
  148. MM_NOTOK* = cint(3)
  149. MM_NOMSG* = cint(1)
  150. MM_NOCON* = cint(2)
  151. FNM_NOMATCH* = cint(1)
  152. FNM_PATHNAME* = cint(2)
  153. FNM_PERIOD* = cint(4)
  154. FNM_NOESCAPE* = cint(1)
  155. FNM_NOSYS* = cint(-1)
  156. FTW_F* = cint(0)
  157. FTW_D* = cint(1)
  158. FTW_DNR* = cint(2)
  159. FTW_DP* = cint(3)
  160. FTW_NS* = cint(4)
  161. FTW_SL* = cint(5)
  162. FTW_SLN* = cint(6)
  163. FTW_PHYS* = cint(1)
  164. FTW_MOUNT* = cint(2)
  165. FTW_DEPTH* = cint(4)
  166. FTW_CHDIR* = cint(8)
  167. GLOB_APPEND* = cint(1)
  168. GLOB_DOOFFS* = cint(2)
  169. GLOB_ERR* = cint(4)
  170. GLOB_MARK* = cint(8)
  171. GLOB_NOCHECK* = cint(16)
  172. GLOB_NOESCAPE* = cint(8192)
  173. GLOB_NOSORT* = cint(32)
  174. GLOB_ABORTED* = cint(-2)
  175. GLOB_NOMATCH* = cint(-3)
  176. GLOB_NOSPACE* = cint(-1)
  177. GLOB_NOSYS* = cint(-4)
  178. CODESET* = cint(0)
  179. D_T_FMT* = cint(1)
  180. D_FMT* = cint(2)
  181. T_FMT* = cint(3)
  182. T_FMT_AMPM* = cint(4)
  183. AM_STR* = cint(5)
  184. PM_STR* = cint(6)
  185. DAY_1* = cint(7)
  186. DAY_2* = cint(8)
  187. DAY_3* = cint(9)
  188. DAY_4* = cint(10)
  189. DAY_5* = cint(11)
  190. DAY_6* = cint(12)
  191. DAY_7* = cint(13)
  192. ABDAY_1* = cint(14)
  193. ABDAY_2* = cint(15)
  194. ABDAY_3* = cint(16)
  195. ABDAY_4* = cint(17)
  196. ABDAY_5* = cint(18)
  197. ABDAY_6* = cint(19)
  198. ABDAY_7* = cint(20)
  199. MON_1* = cint(21)
  200. MON_2* = cint(22)
  201. MON_3* = cint(23)
  202. MON_4* = cint(24)
  203. MON_5* = cint(25)
  204. MON_6* = cint(26)
  205. MON_7* = cint(27)
  206. MON_8* = cint(28)
  207. MON_9* = cint(29)
  208. MON_10* = cint(30)
  209. MON_11* = cint(31)
  210. MON_12* = cint(32)
  211. ABMON_1* = cint(33)
  212. ABMON_2* = cint(34)
  213. ABMON_3* = cint(35)
  214. ABMON_4* = cint(36)
  215. ABMON_5* = cint(37)
  216. ABMON_6* = cint(38)
  217. ABMON_7* = cint(39)
  218. ABMON_8* = cint(40)
  219. ABMON_9* = cint(41)
  220. ABMON_10* = cint(42)
  221. ABMON_11* = cint(43)
  222. ABMON_12* = cint(44)
  223. ERA* = cint(45)
  224. ERA_D_FMT* = cint(46)
  225. ERA_D_T_FMT* = cint(47)
  226. ERA_T_FMT* = cint(48)
  227. ALT_DIGITS* = cint(49)
  228. RADIXCHAR* = cint(50)
  229. THOUSEP* = cint(51)
  230. YESEXPR* = cint(52)
  231. NOEXPR* = cint(53)
  232. CRNCYSTR* = cint(56)
  233. LC_ALL* = cint(0)
  234. LC_COLLATE* = cint(1)
  235. LC_CTYPE* = cint(2)
  236. LC_MESSAGES* = cint(6)
  237. LC_MONETARY* = cint(3)
  238. LC_NUMERIC* = cint(4)
  239. LC_TIME* = cint(5)
  240. PTHREAD_CANCEL_ASYNCHRONOUS* = cint(0)
  241. PTHREAD_CANCEL_ENABLE* = cint(1)
  242. PTHREAD_CANCEL_DEFERRED* = cint(2)
  243. PTHREAD_CANCEL_DISABLE* = cint(0)
  244. PTHREAD_CREATE_DETACHED* = cint(2)
  245. PTHREAD_CREATE_JOINABLE* = cint(1)
  246. PTHREAD_EXPLICIT_SCHED* = cint(2)
  247. PTHREAD_INHERIT_SCHED* = cint(1)
  248. PTHREAD_MUTEX_DEFAULT* = cint(0)
  249. PTHREAD_MUTEX_ERRORCHECK* = cint(1)
  250. PTHREAD_MUTEX_NORMAL* = cint(0)
  251. PTHREAD_MUTEX_RECURSIVE* = cint(2)
  252. PTHREAD_PRIO_INHERIT* = cint(1)
  253. PTHREAD_PRIO_NONE* = cint(0)
  254. PTHREAD_PRIO_PROTECT* = cint(2)
  255. PTHREAD_PROCESS_SHARED* = cint(1)
  256. PTHREAD_PROCESS_PRIVATE* = cint(2)
  257. PTHREAD_SCOPE_PROCESS* = cint(2)
  258. PTHREAD_SCOPE_SYSTEM* = cint(1)
  259. F_OK* = cint(0)
  260. R_OK* = cint(4)
  261. W_OK* = cint(2)
  262. X_OK* = cint(1)
  263. CS_PATH* = cint(1)
  264. CS_POSIX_V6_ILP32_OFF32_CFLAGS* = cint(2)
  265. CS_POSIX_V6_ILP32_OFF32_LDFLAGS* = cint(3)
  266. CS_POSIX_V6_ILP32_OFF32_LIBS* = cint(4)
  267. CS_POSIX_V6_ILP32_OFFBIG_CFLAGS* = cint(5)
  268. CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS* = cint(6)
  269. CS_POSIX_V6_ILP32_OFFBIG_LIBS* = cint(7)
  270. CS_POSIX_V6_LP64_OFF64_CFLAGS* = cint(8)
  271. CS_POSIX_V6_LP64_OFF64_LDFLAGS* = cint(9)
  272. CS_POSIX_V6_LP64_OFF64_LIBS* = cint(10)
  273. CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS* = cint(11)
  274. CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS* = cint(12)
  275. CS_POSIX_V6_LPBIG_OFFBIG_LIBS* = cint(13)
  276. CS_POSIX_V6_WIDTH_RESTRICTED_ENVS* = cint(14)
  277. F_LOCK* = cint(1)
  278. F_TEST* = cint(3)
  279. F_TLOCK* = cint(2)
  280. F_ULOCK* = cint(0)
  281. PC_2_SYMLINKS* = cint(15)
  282. PC_ALLOC_SIZE_MIN* = cint(16)
  283. PC_ASYNC_IO* = cint(17)
  284. PC_CHOWN_RESTRICTED* = cint(7)
  285. PC_FILESIZEBITS* = cint(18)
  286. PC_LINK_MAX* = cint(1)
  287. PC_MAX_CANON* = cint(2)
  288. PC_MAX_INPUT* = cint(3)
  289. PC_NAME_MAX* = cint(4)
  290. PC_NO_TRUNC* = cint(8)
  291. PC_PATH_MAX* = cint(5)
  292. PC_PIPE_BUF* = cint(6)
  293. PC_PRIO_IO* = cint(19)
  294. PC_REC_INCR_XFER_SIZE* = cint(20)
  295. PC_REC_MIN_XFER_SIZE* = cint(22)
  296. PC_REC_XFER_ALIGN* = cint(23)
  297. PC_SYMLINK_MAX* = cint(24)
  298. PC_SYNC_IO* = cint(25)
  299. PC_VDISABLE* = cint(9)
  300. SC_2_C_BIND* = cint(18)
  301. SC_2_C_DEV* = cint(19)
  302. SC_2_CHAR_TERM* = cint(20)
  303. SC_2_FORT_DEV* = cint(21)
  304. SC_2_FORT_RUN* = cint(22)
  305. SC_2_LOCALEDEF* = cint(23)
  306. SC_2_PBS* = cint(59)
  307. SC_2_PBS_ACCOUNTING* = cint(60)
  308. SC_2_PBS_CHECKPOINT* = cint(61)
  309. SC_2_PBS_LOCATE* = cint(62)
  310. SC_2_PBS_MESSAGE* = cint(63)
  311. SC_2_PBS_TRACK* = cint(64)
  312. SC_2_SW_DEV* = cint(24)
  313. SC_2_UPE* = cint(25)
  314. SC_2_VERSION* = cint(17)
  315. SC_ADVISORY_INFO* = cint(65)
  316. SC_AIO_LISTIO_MAX* = cint(42)
  317. SC_AIO_MAX* = cint(43)
  318. SC_AIO_PRIO_DELTA_MAX* = cint(44)
  319. SC_ARG_MAX* = cint(1)
  320. SC_ASYNCHRONOUS_IO* = cint(28)
  321. SC_ATEXIT_MAX* = cint(107)
  322. SC_BARRIERS* = cint(66)
  323. SC_BC_BASE_MAX* = cint(9)
  324. SC_BC_DIM_MAX* = cint(10)
  325. SC_BC_SCALE_MAX* = cint(11)
  326. SC_BC_STRING_MAX* = cint(12)
  327. SC_CHILD_MAX* = cint(2)
  328. SC_CLK_TCK* = cint(3)
  329. SC_CLOCK_SELECTION* = cint(67)
  330. SC_COLL_WEIGHTS_MAX* = cint(13)
  331. SC_CPUTIME* = cint(68)
  332. SC_DELAYTIMER_MAX* = cint(45)
  333. SC_EXPR_NEST_MAX* = cint(14)
  334. SC_FSYNC* = cint(38)
  335. SC_GETGR_R_SIZE_MAX* = cint(70)
  336. SC_GETPW_R_SIZE_MAX* = cint(71)
  337. SC_HOST_NAME_MAX* = cint(72)
  338. SC_IOV_MAX* = cint(56)
  339. SC_IPV6* = cint(118)
  340. SC_JOB_CONTROL* = cint(6)
  341. SC_LINE_MAX* = cint(15)
  342. SC_LOGIN_NAME_MAX* = cint(73)
  343. SC_MAPPED_FILES* = cint(47)
  344. SC_MEMLOCK* = cint(30)
  345. SC_MEMLOCK_RANGE* = cint(31)
  346. SC_MEMORY_PROTECTION* = cint(32)
  347. SC_MESSAGE_PASSING* = cint(33)
  348. SC_MONOTONIC_CLOCK* = cint(74)
  349. SC_MQ_OPEN_MAX* = cint(46)
  350. SC_MQ_PRIO_MAX* = cint(75)
  351. SC_NGROUPS_MAX* = cint(4)
  352. SC_OPEN_MAX* = cint(5)
  353. SC_PAGE_SIZE* = cint(29)
  354. SC_PRIORITIZED_IO* = cint(34)
  355. SC_PRIORITY_SCHEDULING* = cint(35)
  356. SC_RAW_SOCKETS* = cint(119)
  357. SC_RE_DUP_MAX* = cint(16)
  358. SC_READER_WRITER_LOCKS* = cint(76)
  359. SC_REALTIME_SIGNALS* = cint(36)
  360. SC_REGEXP* = cint(77)
  361. SC_RTSIG_MAX* = cint(48)
  362. SC_SAVED_IDS* = cint(7)
  363. SC_SEM_NSEMS_MAX* = cint(49)
  364. SC_SEM_VALUE_MAX* = cint(50)
  365. SC_SEMAPHORES* = cint(37)
  366. SC_SHARED_MEMORY_OBJECTS* = cint(39)
  367. SC_SHELL* = cint(78)
  368. SC_SIGQUEUE_MAX* = cint(51)
  369. SC_SPAWN* = cint(79)
  370. SC_SPIN_LOCKS* = cint(80)
  371. SC_SPORADIC_SERVER* = cint(81)
  372. SC_SS_REPL_MAX* = cint(126)
  373. SC_STREAM_MAX* = cint(26)
  374. SC_SYMLOOP_MAX* = cint(120)
  375. SC_SYNCHRONIZED_IO* = cint(40)
  376. SC_THREAD_ATTR_STACKADDR* = cint(82)
  377. SC_THREAD_ATTR_STACKSIZE* = cint(83)
  378. SC_THREAD_CPUTIME* = cint(84)
  379. SC_THREAD_DESTRUCTOR_ITERATIONS* = cint(85)
  380. SC_THREAD_KEYS_MAX* = cint(86)
  381. SC_THREAD_PRIO_INHERIT* = cint(87)
  382. SC_THREAD_PRIO_PROTECT* = cint(88)
  383. SC_THREAD_PRIORITY_SCHEDULING* = cint(89)
  384. SC_THREAD_PROCESS_SHARED* = cint(90)
  385. SC_THREAD_SAFE_FUNCTIONS* = cint(91)
  386. SC_THREAD_SPORADIC_SERVER* = cint(92)
  387. SC_THREAD_STACK_MIN* = cint(93)
  388. SC_THREAD_THREADS_MAX* = cint(94)
  389. SC_THREADS* = cint(96)
  390. SC_TIMEOUTS* = cint(95)
  391. SC_TIMER_MAX* = cint(52)
  392. SC_TIMERS* = cint(41)
  393. SC_TRACE* = cint(97)
  394. SC_TRACE_EVENT_FILTER* = cint(98)
  395. SC_TRACE_EVENT_NAME_MAX* = cint(127)
  396. SC_TRACE_INHERIT* = cint(99)
  397. SC_TRACE_LOG* = cint(100)
  398. SC_TRACE_NAME_MAX* = cint(128)
  399. SC_TRACE_SYS_MAX* = cint(129)
  400. SC_TRACE_USER_EVENT_MAX* = cint(130)
  401. SC_TTY_NAME_MAX* = cint(101)
  402. SC_TYPED_MEMORY_OBJECTS* = cint(102)
  403. SC_TZNAME_MAX* = cint(27)
  404. SC_V6_ILP32_OFF32* = cint(103)
  405. SC_V6_ILP32_OFFBIG* = cint(104)
  406. SC_V6_LP64_OFF64* = cint(105)
  407. SC_V6_LPBIG_OFFBIG* = cint(106)
  408. SC_VERSION* = cint(8)
  409. SC_XBS5_ILP32_OFF32* = cint(122)
  410. SC_XBS5_ILP32_OFFBIG* = cint(123)
  411. SC_XBS5_LP64_OFF64* = cint(124)
  412. SC_XBS5_LPBIG_OFFBIG* = cint(125)
  413. SC_XOPEN_CRYPT* = cint(108)
  414. SC_XOPEN_ENH_I18N* = cint(109)
  415. SC_XOPEN_LEGACY* = cint(110)
  416. SC_XOPEN_REALTIME* = cint(111)
  417. SC_XOPEN_REALTIME_THREADS* = cint(112)
  418. SC_XOPEN_SHM* = cint(113)
  419. SC_XOPEN_STREAMS* = cint(114)
  420. SC_XOPEN_UNIX* = cint(115)
  421. SC_XOPEN_VERSION* = cint(116)
  422. SEEK_SET* = cint(0)
  423. SEEK_CUR* = cint(1)
  424. SEEK_END* = cint(2)
  425. SEM_FAILED* = cast[pointer](-1)
  426. IPC_CREAT* = cint(512)
  427. IPC_EXCL* = cint(1024)
  428. IPC_NOWAIT* = cint(2048)
  429. IPC_PRIVATE* = cint(0)
  430. IPC_RMID* = cint(0)
  431. IPC_SET* = cint(1)
  432. IPC_STAT* = cint(2)
  433. S_IFMT* = cint(61440)
  434. S_IFBLK* = cint(24576)
  435. S_IFCHR* = cint(8192)
  436. S_IFIFO* = cint(4096)
  437. S_IFREG* = cint(32768)
  438. S_IFDIR* = cint(16384)
  439. S_IFLNK* = cint(40960)
  440. S_IFSOCK* = cint(49152)
  441. S_IRWXU* = cint(448)
  442. S_IRUSR* = cint(256)
  443. S_IWUSR* = cint(128)
  444. S_IXUSR* = cint(64)
  445. S_IRWXG* = cint(56)
  446. S_IRGRP* = cint(32)
  447. S_IWGRP* = cint(16)
  448. S_IXGRP* = cint(8)
  449. S_IRWXO* = cint(7)
  450. S_IROTH* = cint(4)
  451. S_IWOTH* = cint(2)
  452. S_IXOTH* = cint(1)
  453. S_ISUID* = cint(2048)
  454. S_ISGID* = cint(1024)
  455. S_ISVTX* = cint(512)
  456. ST_RDONLY* = cint(1)
  457. ST_NOSUID* = cint(2)
  458. PROT_READ* = cint(1)
  459. PROT_WRITE* = cint(2)
  460. PROT_EXEC* = cint(4)
  461. PROT_NONE* = cint(0)
  462. MAP_SHARED* = cint(1)
  463. MAP_PRIVATE* = cint(2)
  464. MAP_FIXED* = cint(16)
  465. MS_ASYNC* = cint(1)
  466. MS_SYNC* = cint(16)
  467. MS_INVALIDATE* = cint(2)
  468. MCL_CURRENT* = cint(1)
  469. MCL_FUTURE* = cint(2)
  470. MAP_FAILED* = cast[pointer](-1)
  471. POSIX_MADV_NORMAL* = cint(0)
  472. POSIX_MADV_SEQUENTIAL* = cint(2)
  473. POSIX_MADV_RANDOM* = cint(1)
  474. POSIX_MADV_WILLNEED* = cint(3)
  475. POSIX_MADV_DONTNEED* = cint(4)
  476. CLOCKS_PER_SEC* = clong(1000000)
  477. WNOHANG* = cint(1)
  478. WUNTRACED* = cint(2)
  479. WEXITED* = cint(4)
  480. WSTOPPED* = cint(8)
  481. WCONTINUED* = cint(16)
  482. WNOWAIT* = cint(32)
  483. SIGEV_NONE* = cint(0)
  484. SIGEV_SIGNAL* = cint(1)
  485. SIGEV_THREAD* = cint(3)
  486. SIGABRT* = cint(6)
  487. SIGALRM* = cint(14)
  488. SIGBUS* = cint(10)
  489. SIGCHLD* = cint(20)
  490. SIGCONT* = cint(19)
  491. SIGFPE* = cint(8)
  492. SIGHUP* = cint(1)
  493. SIGILL* = cint(4)
  494. SIGINT* = cint(2)
  495. SIGKILL* = cint(9)
  496. SIGPIPE* = cint(13)
  497. SIGQUIT* = cint(3)
  498. SIGSEGV* = cint(11)
  499. SIGSTOP* = cint(17)
  500. SIGTERM* = cint(15)
  501. SIGTSTP* = cint(18)
  502. SIGTTIN* = cint(21)
  503. SIGTTOU* = cint(22)
  504. SIGUSR1* = cint(30)
  505. SIGUSR2* = cint(31)
  506. SIGPROF* = cint(27)
  507. SIGSYS* = cint(12)
  508. SIGTRAP* = cint(5)
  509. SIGURG* = cint(16)
  510. SIGVTALRM* = cint(26)
  511. SIGXCPU* = cint(24)
  512. SIGXFSZ* = cint(25)
  513. SA_NOCLDSTOP* = cint(8)
  514. SIG_BLOCK* = cint(1)
  515. SIG_UNBLOCK* = cint(2)
  516. SIG_SETMASK* = cint(3)
  517. SA_ONSTACK* = cint(1)
  518. SA_RESETHAND* = cint(4)
  519. SA_RESTART* = cint(2)
  520. SA_SIGINFO* = cint(64)
  521. SA_NOCLDWAIT* = cint(32)
  522. SA_NODEFER* = cint(16)
  523. SS_ONSTACK* = cint(1)
  524. SS_DISABLE* = cint(4)
  525. MINSIGSTKSZ* = cint(32768)
  526. SIGSTKSZ* = cint(131072)
  527. NL_SETD* = cint(1)
  528. NL_CAT_LOCALE* = cint(1)
  529. SCHED_FIFO* = cint(4)
  530. SCHED_RR* = cint(2)
  531. SCHED_OTHER* = cint(1)
  532. FD_SETSIZE* = cint(1024)
  533. SCM_RIGHTS* = cint(1)
  534. SOCK_DGRAM* = cint(2)
  535. SOCK_RAW* = cint(3)
  536. SOCK_SEQPACKET* = cint(5)
  537. SOCK_STREAM* = cint(1)
  538. SOL_SOCKET* = cint(65535)
  539. SO_ACCEPTCONN* = cint(2)
  540. SO_BROADCAST* = cint(32)
  541. SO_DEBUG* = cint(1)
  542. SO_DONTROUTE* = cint(16)
  543. SO_ERROR* = cint(4103)
  544. SO_KEEPALIVE* = cint(8)
  545. SO_LINGER* = cint(128)
  546. SO_OOBINLINE* = cint(256)
  547. SO_RCVBUF* = cint(4098)
  548. SO_RCVLOWAT* = cint(4100)
  549. SO_RCVTIMEO* = cint(4102)
  550. SO_REUSEADDR* = cint(4)
  551. SO_SNDBUF* = cint(4097)
  552. SO_SNDLOWAT* = cint(4099)
  553. SO_SNDTIMEO* = cint(4101)
  554. SO_TYPE* = cint(4104)
  555. SOMAXCONN* = cint(128)
  556. MSG_CTRUNC* = cint(32)
  557. MSG_DONTROUTE* = cint(4)
  558. MSG_EOR* = cint(8)
  559. MSG_OOB* = cint(1)
  560. MSG_PEEK* = cint(2)
  561. MSG_TRUNC* = cint(16)
  562. MSG_WAITALL* = cint(64)
  563. AF_INET* = cint(2)
  564. AF_INET6* = cint(30)
  565. AF_UNIX* = cint(1)
  566. AF_UNSPEC* = cint(0)
  567. SHUT_RD* = cint(0)
  568. SHUT_RDWR* = cint(2)
  569. SHUT_WR* = cint(1)
  570. IPPROTO_IP* = cint(0)
  571. IPPROTO_IPV6* = cint(41)
  572. IPPROTO_ICMP* = cint(1)
  573. IPPROTO_RAW* = cint(255)
  574. IPPROTO_TCP* = cint(6)
  575. IPPROTO_UDP* = cint(17)
  576. INADDR_ANY* = cint(0)
  577. INADDR_BROADCAST* = cint(-1)
  578. INET_ADDRSTRLEN* = cint(16)
  579. IPV6_JOIN_GROUP* = cint(12)
  580. IPV6_LEAVE_GROUP* = cint(13)
  581. IPV6_MULTICAST_HOPS* = cint(10)
  582. IPV6_MULTICAST_IF* = cint(9)
  583. IPV6_MULTICAST_LOOP* = cint(11)
  584. IPV6_UNICAST_HOPS* = cint(4)
  585. IPV6_V6ONLY* = cint(27)
  586. IPPORT_RESERVED* = cint(1024)
  587. HOST_NOT_FOUND* = cint(1)
  588. NO_DATA* = cint(4)
  589. NO_RECOVERY* = cint(3)
  590. TRY_AGAIN* = cint(2)
  591. AI_PASSIVE* = cint(1)
  592. AI_CANONNAME* = cint(2)
  593. AI_NUMERICHOST* = cint(4)
  594. AI_NUMERICSERV* = cint(4096)
  595. AI_V4MAPPED* = cint(2048)
  596. AI_ALL* = cint(256)
  597. AI_ADDRCONFIG* = cint(1024)
  598. NI_NOFQDN* = cint(1)
  599. NI_NUMERICHOST* = cint(2)
  600. NI_NAMEREQD* = cint(4)
  601. NI_NUMERICSERV* = cint(8)
  602. NI_DGRAM* = cint(16)
  603. EAI_AGAIN* = cint(2)
  604. EAI_BADFLAGS* = cint(3)
  605. EAI_FAIL* = cint(4)
  606. EAI_FAMILY* = cint(5)
  607. EAI_MEMORY* = cint(6)
  608. EAI_NONAME* = cint(8)
  609. EAI_SERVICE* = cint(9)
  610. EAI_SOCKTYPE* = cint(10)
  611. EAI_SYSTEM* = cint(11)
  612. EAI_OVERFLOW* = cint(14)
  613. POLLIN* = cshort(1)
  614. POLLRDNORM* = cshort(64)
  615. POLLRDBAND* = cshort(128)
  616. POLLPRI* = cshort(2)
  617. POLLOUT* = cshort(4)
  618. POLLWRNORM* = cshort(4)
  619. POLLWRBAND* = cshort(256)
  620. POLLERR* = cshort(8)
  621. POLLHUP* = cshort(16)
  622. POLLNVAL* = cshort(32)
  623. POSIX_SPAWN_RESETIDS* = cint(1)
  624. POSIX_SPAWN_SETPGROUP* = cint(2)
  625. POSIX_SPAWN_SETSIGDEF* = cint(4)
  626. POSIX_SPAWN_SETSIGMASK* = cint(8)
  627. IOFBF* = cint(0)
  628. IONBF* = cint(2)