8 | module System.Posix.Limits
10 | import Data.C.Integer
14 | export %foreign "C:sysconf, posix-idris"
15 | sysconf : Bits32 -> Long
17 | export %foreign "C:pathconf, posix-idris"
18 | pathconf : String -> Bits32 -> Long
20 | export %foreign "C:fpathconf, posix-idris"
21 | fpathconf : Bits32 -> Bits32 -> Long
28 | SC_CHILD_MAX : Bits32
32 | SC_HOST_NAME_MAX : Bits32
33 | SC_HOST_NAME_MAX = 180
36 | SC_LOGIN_NAME_MAX : Bits32
37 | SC_LOGIN_NAME_MAX = 71
40 | SC_NGROUPS_MAX : Bits32
48 | SC_OPEN_MAX : Bits32
52 | SC_PAGESIZE : Bits32
56 | SC_PAGE_SIZE : Bits32
60 | SC_RE_DUP_MAX : Bits32
64 | SC_STREAM_MAX : Bits32
68 | SC_SYMLOOP_MAX : Bits32
69 | SC_SYMLOOP_MAX = 173
72 | SC_TTY_NAME_MAX : Bits32
73 | SC_TTY_NAME_MAX = 72
76 | SC_TZNAME_MAX : Bits32
84 | SC_BC_BASE_MAX : Bits32
88 | SC_BC_DIM_MAX : Bits32
92 | SC_BC_SCALE_MAX : Bits32
93 | SC_BC_SCALE_MAX = 38
96 | SC_BC_STRING_MAX : Bits32
97 | SC_BC_STRING_MAX = 39
100 | SC_COLL_WEIGHTS_MAX : Bits32
101 | SC_COLL_WEIGHTS_MAX = 40
104 | SC_EXPR_NEST_MAX : Bits32
105 | SC_EXPR_NEST_MAX = 42
108 | SC_RTSIG_MAX : Bits32
112 | SC_SIGQUEUE_MAX : Bits32
113 | SC_SIGQUEUE_MAX = 34
116 | SC_LINE_MAX : Bits32
120 | SC_2_VERSION : Bits32
124 | SC_2_C_DEV : Bits32
128 | SC_2_FORT_DEV : Bits32
132 | SC_2_FORT_RUN : Bits32
136 | SC_2_LOCALEDEF : Bits32
137 | SC_2_LOCALEDEF = 52
140 | SC_2_SW_DEV : Bits32
144 | PC_LINK_MAX : Bits32
148 | PC_MAX_CANON : Bits32
152 | PC_MAX_INPUT : Bits32
156 | PC_NAME_MAX : Bits32
160 | PC_PATH_MAX : Bits32
164 | PC_PIPE_BUF : Bits32
168 | PC_CHOWN_RESTRICTED : Bits32
169 | PC_CHOWN_RESTRICTED = 6
172 | PC_NO_TRUNC : Bits32
176 | PC_VDISABLE : Bits32