posix_linux_amd64_consts.nim 20 KB

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