posix_linux_amd64_consts.nim 20 KB

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