15 #include <sys/utsname.h>
31 #include <sys/resource.h>
33 #include <semaphore.h>
37 static s7_pointer struct_msghdr__symbol
, const_struct_msghdr__symbol
, const_struct_sockaddr__symbol
, struct_addrinfo__symbol
, protoent__symbol
, servent__symbol
, netent__symbol
, hostent__symbol
, siginfo_t__symbol
, struct_rlimit__symbol
, sigset_t__symbol
, glob_t__symbol
, wordexp_t__symbol
, passwd__symbol
, tm__symbol
, time_t__symbol
, DIR__symbol
, int__symbol
, fpos_t__symbol
, FILE__symbol
, void__symbol
, fenv_t__symbol
, fexcept_t__symbol
;
39 static s7_pointer
g_c_pointer_to_string(s7_scheme
*sc
, s7_pointer args
)
40 {return(s7_make_string_with_length(sc
, (const char *)s7_c_pointer(s7_car(args
)), s7_integer(s7_cadr(args
))));}
41 static s7_pointer
g_string_to_c_pointer(s7_scheme
*sc
, s7_pointer args
)
43 if (s7_is_string(s7_car(args
)))
44 return(s7_make_c_pointer_with_type(sc
, (void *)s7_string(s7_car(args
)), s7_make_symbol(sc
, "void*"), s7_f(sc
)));
48 /* -------- isalnum -------- */
49 static s7_pointer
s7__isalnum(s7_scheme
*sc
, s7_pointer args
)
55 if (s7_is_integer(arg
))
56 s7__isalnum_0
= (int)s7_integer(arg
);
57 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
58 return(s7_make_integer(sc
, (s7_int
)isalnum(s7__isalnum_0
)));
60 static s7_int
isalnum_i_i(s7_int i1
) {return(isalnum(i1
));}
63 /* -------- isalpha -------- */
64 static s7_pointer
s7__isalpha(s7_scheme
*sc
, s7_pointer args
)
70 if (s7_is_integer(arg
))
71 s7__isalpha_0
= (int)s7_integer(arg
);
72 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
73 return(s7_make_integer(sc
, (s7_int
)isalpha(s7__isalpha_0
)));
75 static s7_int
isalpha_i_i(s7_int i1
) {return(isalpha(i1
));}
78 /* -------- iscntrl -------- */
79 static s7_pointer
s7__iscntrl(s7_scheme
*sc
, s7_pointer args
)
85 if (s7_is_integer(arg
))
86 s7__iscntrl_0
= (int)s7_integer(arg
);
87 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
88 return(s7_make_integer(sc
, (s7_int
)iscntrl(s7__iscntrl_0
)));
90 static s7_int
iscntrl_i_i(s7_int i1
) {return(iscntrl(i1
));}
93 /* -------- isdigit -------- */
94 static s7_pointer
s7__isdigit(s7_scheme
*sc
, s7_pointer args
)
100 if (s7_is_integer(arg
))
101 s7__isdigit_0
= (int)s7_integer(arg
);
102 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
103 return(s7_make_integer(sc
, (s7_int
)isdigit(s7__isdigit_0
)));
105 static s7_int
isdigit_i_i(s7_int i1
) {return(isdigit(i1
));}
108 /* -------- islower -------- */
109 static s7_pointer
s7__islower(s7_scheme
*sc
, s7_pointer args
)
115 if (s7_is_integer(arg
))
116 s7__islower_0
= (int)s7_integer(arg
);
117 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
118 return(s7_make_integer(sc
, (s7_int
)islower(s7__islower_0
)));
120 static s7_int
islower_i_i(s7_int i1
) {return(islower(i1
));}
123 /* -------- isgraph -------- */
124 static s7_pointer
s7__isgraph(s7_scheme
*sc
, s7_pointer args
)
130 if (s7_is_integer(arg
))
131 s7__isgraph_0
= (int)s7_integer(arg
);
132 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
133 return(s7_make_integer(sc
, (s7_int
)isgraph(s7__isgraph_0
)));
135 static s7_int
isgraph_i_i(s7_int i1
) {return(isgraph(i1
));}
138 /* -------- isprint -------- */
139 static s7_pointer
s7__isprint(s7_scheme
*sc
, s7_pointer args
)
145 if (s7_is_integer(arg
))
146 s7__isprint_0
= (int)s7_integer(arg
);
147 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
148 return(s7_make_integer(sc
, (s7_int
)isprint(s7__isprint_0
)));
150 static s7_int
isprint_i_i(s7_int i1
) {return(isprint(i1
));}
153 /* -------- ispunct -------- */
154 static s7_pointer
s7__ispunct(s7_scheme
*sc
, s7_pointer args
)
160 if (s7_is_integer(arg
))
161 s7__ispunct_0
= (int)s7_integer(arg
);
162 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
163 return(s7_make_integer(sc
, (s7_int
)ispunct(s7__ispunct_0
)));
165 static s7_int
ispunct_i_i(s7_int i1
) {return(ispunct(i1
));}
168 /* -------- isspace -------- */
169 static s7_pointer
s7__isspace(s7_scheme
*sc
, s7_pointer args
)
175 if (s7_is_integer(arg
))
176 s7__isspace_0
= (int)s7_integer(arg
);
177 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
178 return(s7_make_integer(sc
, (s7_int
)isspace(s7__isspace_0
)));
180 static s7_int
isspace_i_i(s7_int i1
) {return(isspace(i1
));}
183 /* -------- isupper -------- */
184 static s7_pointer
s7__isupper(s7_scheme
*sc
, s7_pointer args
)
190 if (s7_is_integer(arg
))
191 s7__isupper_0
= (int)s7_integer(arg
);
192 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
193 return(s7_make_integer(sc
, (s7_int
)isupper(s7__isupper_0
)));
195 static s7_int
isupper_i_i(s7_int i1
) {return(isupper(i1
));}
198 /* -------- isxdigit -------- */
199 static s7_pointer
s7__isxdigit(s7_scheme
*sc
, s7_pointer args
)
205 if (s7_is_integer(arg
))
206 s7__isxdigit_0
= (int)s7_integer(arg
);
207 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
208 return(s7_make_integer(sc
, (s7_int
)isxdigit(s7__isxdigit_0
)));
210 static s7_int
isxdigit_i_i(s7_int i1
) {return(isxdigit(i1
));}
213 /* -------- tolower -------- */
214 static s7_pointer
s7__tolower(s7_scheme
*sc
, s7_pointer args
)
220 if (s7_is_integer(arg
))
221 s7__tolower_0
= (int)s7_integer(arg
);
222 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
223 return(s7_make_integer(sc
, (s7_int
)tolower(s7__tolower_0
)));
225 static s7_int
tolower_i_i(s7_int i1
) {return(tolower(i1
));}
228 /* -------- toupper -------- */
229 static s7_pointer
s7__toupper(s7_scheme
*sc
, s7_pointer args
)
235 if (s7_is_integer(arg
))
236 s7__toupper_0
= (int)s7_integer(arg
);
237 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
238 return(s7_make_integer(sc
, (s7_int
)toupper(s7__toupper_0
)));
240 static s7_int
toupper_i_i(s7_int i1
) {return(toupper(i1
));}
243 /* -------- fcntl -------- */
244 static s7_pointer
s7__fcntl(s7_scheme
*sc
, s7_pointer args
)
251 if (s7_is_integer(arg
))
252 s7__fcntl_0
= (int)s7_integer(arg
);
253 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
256 if (s7_is_integer(arg
))
257 s7__fcntl_1
= (int)s7_integer(arg
);
258 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
259 return(s7_make_integer(sc
, (s7_int
)fcntl(s7__fcntl_0
, s7__fcntl_1
)));
261 static s7_int
fcntl_i_ii(s7_int i1
, s7_int i2
) {return(fcntl(i1
, i2
));}
263 static s7_pointer
g_c_open(s7_scheme
*sc
, s7_pointer args
)
269 if (s7_is_string(s7_car(arg
)))
270 name
= (char*)s7_string(s7_car(arg
));
271 else return(s7_wrong_type_arg_error(sc
, "open", 1, s7_car(arg
), "string"));
273 if (s7_is_integer(s7_car(arg
)))
274 flags
= (int)s7_integer(s7_car(arg
));
275 else return(s7_wrong_type_arg_error(sc
, "open", 2, s7_car(arg
), "integer"));
276 if (s7_is_pair(s7_cdr(arg
)))
279 if (s7_is_integer(s7_car(arg
)))
280 mode
= (int)s7_integer(s7_car(arg
));
281 else return(s7_wrong_type_arg_error(sc
, "open", 3, s7_car(arg
), "integer"));
282 return(s7_make_integer(sc
, (s7_int
)open(name
, flags
, mode
)));
284 return(s7_make_integer(sc
, (s7_int
)open(name
, flags
)));
287 /* -------- creat -------- */
288 static s7_pointer
s7__creat(s7_scheme
*sc
, s7_pointer args
)
295 if (s7_is_string(arg
))
296 s7__creat_0
= (char*)s7_string(arg
);
297 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
300 if (s7_is_integer(arg
))
301 s7__creat_1
= (mode_t
)s7_integer(arg
);
302 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
303 return(s7_make_integer(sc
, (s7_int
)creat(s7__creat_0
, s7__creat_1
)));
307 /* -------- lockf -------- */
308 static s7_pointer
s7__lockf(s7_scheme
*sc
, s7_pointer args
)
316 if (s7_is_integer(arg
))
317 s7__lockf_0
= (int)s7_integer(arg
);
318 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
321 if (s7_is_integer(arg
))
322 s7__lockf_1
= (int)s7_integer(arg
);
323 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
326 if (s7_is_integer(arg
))
327 s7__lockf_2
= (int)s7_integer(arg
);
328 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
329 return(s7_make_integer(sc
, (s7_int
)lockf(s7__lockf_0
, s7__lockf_1
, s7__lockf_2
)));
333 /* -------- posix_fadvise -------- */
334 static s7_pointer
s7__posix_fadvise(s7_scheme
*sc
, s7_pointer args
)
337 int s7__posix_fadvise_0
;
338 int s7__posix_fadvise_1
;
339 int s7__posix_fadvise_2
;
340 int s7__posix_fadvise_3
;
343 if (s7_is_integer(arg
))
344 s7__posix_fadvise_0
= (int)s7_integer(arg
);
345 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
348 if (s7_is_integer(arg
))
349 s7__posix_fadvise_1
= (int)s7_integer(arg
);
350 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
353 if (s7_is_integer(arg
))
354 s7__posix_fadvise_2
= (int)s7_integer(arg
);
355 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
358 if (s7_is_integer(arg
))
359 s7__posix_fadvise_3
= (int)s7_integer(arg
);
360 else return(s7_wrong_type_arg_error(sc
, __func__
, 4, arg
, "integer"));
361 return(s7_make_integer(sc
, (s7_int
)posix_fadvise(s7__posix_fadvise_0
, s7__posix_fadvise_1
, s7__posix_fadvise_2
, s7__posix_fadvise_3
)));
365 /* -------- posix_fallocate -------- */
366 static s7_pointer
s7__posix_fallocate(s7_scheme
*sc
, s7_pointer args
)
369 int s7__posix_fallocate_0
;
370 int s7__posix_fallocate_1
;
371 int s7__posix_fallocate_2
;
374 if (s7_is_integer(arg
))
375 s7__posix_fallocate_0
= (int)s7_integer(arg
);
376 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
379 if (s7_is_integer(arg
))
380 s7__posix_fallocate_1
= (int)s7_integer(arg
);
381 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
384 if (s7_is_integer(arg
))
385 s7__posix_fallocate_2
= (int)s7_integer(arg
);
386 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
387 return(s7_make_integer(sc
, (s7_int
)posix_fallocate(s7__posix_fallocate_0
, s7__posix_fallocate_1
, s7__posix_fallocate_2
)));
391 /* -------- feclearexcept -------- */
392 static s7_pointer
s7__feclearexcept(s7_scheme
*sc
, s7_pointer args
)
395 int s7__feclearexcept_0
;
398 if (s7_is_integer(arg
))
399 s7__feclearexcept_0
= (int)s7_integer(arg
);
400 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
401 return(s7_make_integer(sc
, (s7_int
)feclearexcept(s7__feclearexcept_0
)));
403 static s7_int
feclearexcept_i_i(s7_int i1
) {return(feclearexcept(i1
));}
406 /* -------- fegetexceptflag -------- */
407 static s7_pointer
s7__fegetexceptflag(s7_scheme
*sc
, s7_pointer args
)
410 fexcept_t
* s7__fegetexceptflag_0
;
411 int s7__fegetexceptflag_1
;
414 s7__fegetexceptflag_0
= (fexcept_t
*)s7_c_pointer_with_type(sc
, arg
, fexcept_t__symbol
, __func__
, 1);
417 if (s7_is_integer(arg
))
418 s7__fegetexceptflag_1
= (int)s7_integer(arg
);
419 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
420 return(s7_make_integer(sc
, (s7_int
)fegetexceptflag(s7__fegetexceptflag_0
, s7__fegetexceptflag_1
)));
424 /* -------- feraiseexcept -------- */
425 static s7_pointer
s7__feraiseexcept(s7_scheme
*sc
, s7_pointer args
)
428 int s7__feraiseexcept_0
;
431 if (s7_is_integer(arg
))
432 s7__feraiseexcept_0
= (int)s7_integer(arg
);
433 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
434 return(s7_make_integer(sc
, (s7_int
)feraiseexcept(s7__feraiseexcept_0
)));
436 static s7_int
feraiseexcept_i_i(s7_int i1
) {return(feraiseexcept(i1
));}
439 /* -------- fesetexceptflag -------- */
440 static s7_pointer
s7__fesetexceptflag(s7_scheme
*sc
, s7_pointer args
)
443 fexcept_t
* s7__fesetexceptflag_0
;
444 int s7__fesetexceptflag_1
;
447 s7__fesetexceptflag_0
= (fexcept_t
*)s7_c_pointer_with_type(sc
, arg
, fexcept_t__symbol
, __func__
, 1);
450 if (s7_is_integer(arg
))
451 s7__fesetexceptflag_1
= (int)s7_integer(arg
);
452 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
453 return(s7_make_integer(sc
, (s7_int
)fesetexceptflag(s7__fesetexceptflag_0
, s7__fesetexceptflag_1
)));
457 /* -------- fetestexcept -------- */
458 static s7_pointer
s7__fetestexcept(s7_scheme
*sc
, s7_pointer args
)
461 int s7__fetestexcept_0
;
464 if (s7_is_integer(arg
))
465 s7__fetestexcept_0
= (int)s7_integer(arg
);
466 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
467 return(s7_make_integer(sc
, (s7_int
)fetestexcept(s7__fetestexcept_0
)));
469 static s7_int
fetestexcept_i_i(s7_int i1
) {return(fetestexcept(i1
));}
472 /* -------- fegetround -------- */
473 static s7_pointer
s7__fegetround(s7_scheme
*sc
, s7_pointer args
)
475 return(s7_make_integer(sc
, (s7_int
)fegetround()));
479 /* -------- fesetround -------- */
480 static s7_pointer
s7__fesetround(s7_scheme
*sc
, s7_pointer args
)
483 int s7__fesetround_0
;
486 if (s7_is_integer(arg
))
487 s7__fesetround_0
= (int)s7_integer(arg
);
488 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
489 return(s7_make_integer(sc
, (s7_int
)fesetround(s7__fesetround_0
)));
491 static s7_int
fesetround_i_i(s7_int i1
) {return(fesetround(i1
));}
494 /* -------- fegetenv -------- */
495 static s7_pointer
s7__fegetenv(s7_scheme
*sc
, s7_pointer args
)
498 fenv_t
* s7__fegetenv_0
;
501 s7__fegetenv_0
= (fenv_t
*)s7_c_pointer_with_type(sc
, arg
, fenv_t__symbol
, __func__
, 0);
502 return(s7_make_integer(sc
, (s7_int
)fegetenv(s7__fegetenv_0
)));
506 /* -------- feholdexcept -------- */
507 static s7_pointer
s7__feholdexcept(s7_scheme
*sc
, s7_pointer args
)
510 fenv_t
* s7__feholdexcept_0
;
513 s7__feholdexcept_0
= (fenv_t
*)s7_c_pointer_with_type(sc
, arg
, fenv_t__symbol
, __func__
, 0);
514 return(s7_make_integer(sc
, (s7_int
)feholdexcept(s7__feholdexcept_0
)));
518 /* -------- fesetenv -------- */
519 static s7_pointer
s7__fesetenv(s7_scheme
*sc
, s7_pointer args
)
522 fenv_t
* s7__fesetenv_0
;
525 s7__fesetenv_0
= (fenv_t
*)s7_c_pointer_with_type(sc
, arg
, fenv_t__symbol
, __func__
, 0);
526 return(s7_make_integer(sc
, (s7_int
)fesetenv(s7__fesetenv_0
)));
530 /* -------- feupdateenv -------- */
531 static s7_pointer
s7__feupdateenv(s7_scheme
*sc
, s7_pointer args
)
534 fenv_t
* s7__feupdateenv_0
;
537 s7__feupdateenv_0
= (fenv_t
*)s7_c_pointer_with_type(sc
, arg
, fenv_t__symbol
, __func__
, 0);
538 return(s7_make_integer(sc
, (s7_int
)feupdateenv(s7__feupdateenv_0
)));
541 static s7_pointer
g_fenv_t_make(s7_scheme
*sc
, s7_pointer args
)
542 {return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(fenv_t
)), s7_make_symbol(sc
, "fenv_t*"), s7_f(sc
)));}
544 /* -------- fnmatch -------- */
545 static s7_pointer
s7__fnmatch(s7_scheme
*sc
, s7_pointer args
)
553 if (s7_is_string(arg
))
554 s7__fnmatch_0
= (char*)s7_string(arg
);
555 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
558 if (s7_is_string(arg
))
559 s7__fnmatch_1
= (char*)s7_string(arg
);
560 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
563 if (s7_is_integer(arg
))
564 s7__fnmatch_2
= (int)s7_integer(arg
);
565 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
566 return(s7_make_integer(sc
, (s7_int
)fnmatch(s7__fnmatch_0
, s7__fnmatch_1
, s7__fnmatch_2
)));
570 /* -------- memcpy -------- */
571 static s7_pointer
s7__memcpy(s7_scheme
*sc
, s7_pointer args
)
579 s7__memcpy_0
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 1);
582 s7__memcpy_1
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 2);
585 if (s7_is_integer(arg
))
586 s7__memcpy_2
= (size_t)s7_integer(arg
);
587 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
588 return(s7_make_c_pointer_with_type(sc
, (void*)memcpy(s7__memcpy_0
, s7__memcpy_1
, s7__memcpy_2
), void__symbol
, s7_f(sc
)));
592 /* -------- memmove -------- */
593 static s7_pointer
s7__memmove(s7_scheme
*sc
, s7_pointer args
)
598 size_t s7__memmove_2
;
601 s7__memmove_0
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 1);
604 s7__memmove_1
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 2);
607 if (s7_is_integer(arg
))
608 s7__memmove_2
= (size_t)s7_integer(arg
);
609 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
610 return(s7_make_c_pointer_with_type(sc
, (void*)memmove(s7__memmove_0
, s7__memmove_1
, s7__memmove_2
), void__symbol
, s7_f(sc
)));
614 /* -------- memset -------- */
615 static s7_pointer
s7__memset(s7_scheme
*sc
, s7_pointer args
)
623 s7__memset_0
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 1);
626 if (s7_is_integer(arg
))
627 s7__memset_1
= (int)s7_integer(arg
);
628 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
631 if (s7_is_integer(arg
))
632 s7__memset_2
= (size_t)s7_integer(arg
);
633 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
634 return(s7_make_c_pointer_with_type(sc
, (void*)memset(s7__memset_0
, s7__memset_1
, s7__memset_2
), void__symbol
, s7_f(sc
)));
638 /* -------- memcmp -------- */
639 static s7_pointer
s7__memcmp(s7_scheme
*sc
, s7_pointer args
)
647 s7__memcmp_0
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 1);
650 s7__memcmp_1
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 2);
653 if (s7_is_integer(arg
))
654 s7__memcmp_2
= (size_t)s7_integer(arg
);
655 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
656 return(s7_make_integer(sc
, (s7_int
)memcmp(s7__memcmp_0
, s7__memcmp_1
, s7__memcmp_2
)));
660 /* -------- memchr -------- */
661 static s7_pointer
s7__memchr(s7_scheme
*sc
, s7_pointer args
)
669 s7__memchr_0
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 1);
672 if (s7_is_integer(arg
))
673 s7__memchr_1
= (int)s7_integer(arg
);
674 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
677 if (s7_is_integer(arg
))
678 s7__memchr_2
= (size_t)s7_integer(arg
);
679 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
680 return(s7_make_c_pointer_with_type(sc
, (void*)memchr(s7__memchr_0
, s7__memchr_1
, s7__memchr_2
), void__symbol
, s7_f(sc
)));
684 /* -------- strcpy -------- */
685 static s7_pointer
s7__strcpy(s7_scheme
*sc
, s7_pointer args
)
692 if (s7_is_string(arg
))
693 s7__strcpy_0
= (char*)s7_string(arg
);
694 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
697 if (s7_is_string(arg
))
698 s7__strcpy_1
= (char*)s7_string(arg
);
699 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
700 return(s7_make_string(sc
, (char*)strcpy(s7__strcpy_0
, s7__strcpy_1
)));
704 /* -------- strncpy -------- */
705 static s7_pointer
s7__strncpy(s7_scheme
*sc
, s7_pointer args
)
710 size_t s7__strncpy_2
;
713 if (s7_is_string(arg
))
714 s7__strncpy_0
= (char*)s7_string(arg
);
715 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
718 if (s7_is_string(arg
))
719 s7__strncpy_1
= (char*)s7_string(arg
);
720 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
723 if (s7_is_integer(arg
))
724 s7__strncpy_2
= (size_t)s7_integer(arg
);
725 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
726 return(s7_make_string(sc
, (char*)strncpy(s7__strncpy_0
, s7__strncpy_1
, s7__strncpy_2
)));
730 /* -------- strcat -------- */
731 static s7_pointer
s7__strcat(s7_scheme
*sc
, s7_pointer args
)
738 if (s7_is_string(arg
))
739 s7__strcat_0
= (char*)s7_string(arg
);
740 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
743 if (s7_is_string(arg
))
744 s7__strcat_1
= (char*)s7_string(arg
);
745 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
746 return(s7_make_string(sc
, (char*)strcat(s7__strcat_0
, s7__strcat_1
)));
750 /* -------- strncat -------- */
751 static s7_pointer
s7__strncat(s7_scheme
*sc
, s7_pointer args
)
756 size_t s7__strncat_2
;
759 if (s7_is_string(arg
))
760 s7__strncat_0
= (char*)s7_string(arg
);
761 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
764 if (s7_is_string(arg
))
765 s7__strncat_1
= (char*)s7_string(arg
);
766 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
769 if (s7_is_integer(arg
))
770 s7__strncat_2
= (size_t)s7_integer(arg
);
771 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
772 return(s7_make_string(sc
, (char*)strncat(s7__strncat_0
, s7__strncat_1
, s7__strncat_2
)));
776 /* -------- strcmp -------- */
777 static s7_pointer
s7__strcmp(s7_scheme
*sc
, s7_pointer args
)
784 if (s7_is_string(arg
))
785 s7__strcmp_0
= (char*)s7_string(arg
);
786 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
789 if (s7_is_string(arg
))
790 s7__strcmp_1
= (char*)s7_string(arg
);
791 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
792 return(s7_make_integer(sc
, (s7_int
)strcmp(s7__strcmp_0
, s7__strcmp_1
)));
796 /* -------- strncmp -------- */
797 static s7_pointer
s7__strncmp(s7_scheme
*sc
, s7_pointer args
)
802 size_t s7__strncmp_2
;
805 if (s7_is_string(arg
))
806 s7__strncmp_0
= (char*)s7_string(arg
);
807 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
810 if (s7_is_string(arg
))
811 s7__strncmp_1
= (char*)s7_string(arg
);
812 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
815 if (s7_is_integer(arg
))
816 s7__strncmp_2
= (size_t)s7_integer(arg
);
817 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
818 return(s7_make_integer(sc
, (s7_int
)strncmp(s7__strncmp_0
, s7__strncmp_1
, s7__strncmp_2
)));
822 /* -------- strcoll -------- */
823 static s7_pointer
s7__strcoll(s7_scheme
*sc
, s7_pointer args
)
830 if (s7_is_string(arg
))
831 s7__strcoll_0
= (char*)s7_string(arg
);
832 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
835 if (s7_is_string(arg
))
836 s7__strcoll_1
= (char*)s7_string(arg
);
837 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
838 return(s7_make_integer(sc
, (s7_int
)strcoll(s7__strcoll_0
, s7__strcoll_1
)));
842 /* -------- strxfrm -------- */
843 static s7_pointer
s7__strxfrm(s7_scheme
*sc
, s7_pointer args
)
848 size_t s7__strxfrm_2
;
851 if (s7_is_string(arg
))
852 s7__strxfrm_0
= (char*)s7_string(arg
);
853 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
856 if (s7_is_string(arg
))
857 s7__strxfrm_1
= (char*)s7_string(arg
);
858 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
861 if (s7_is_integer(arg
))
862 s7__strxfrm_2
= (size_t)s7_integer(arg
);
863 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
864 return(s7_make_integer(sc
, (s7_int
)strxfrm(s7__strxfrm_0
, s7__strxfrm_1
, s7__strxfrm_2
)));
868 /* -------- strchr -------- */
869 static s7_pointer
s7__strchr(s7_scheme
*sc
, s7_pointer args
)
876 if (s7_is_string(arg
))
877 s7__strchr_0
= (char*)s7_string(arg
);
878 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
881 if (s7_is_integer(arg
))
882 s7__strchr_1
= (int)s7_integer(arg
);
883 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
884 return(s7_make_string(sc
, (char*)strchr(s7__strchr_0
, s7__strchr_1
)));
888 /* -------- strrchr -------- */
889 static s7_pointer
s7__strrchr(s7_scheme
*sc
, s7_pointer args
)
896 if (s7_is_string(arg
))
897 s7__strrchr_0
= (char*)s7_string(arg
);
898 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
901 if (s7_is_integer(arg
))
902 s7__strrchr_1
= (int)s7_integer(arg
);
903 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
904 return(s7_make_string(sc
, (char*)strrchr(s7__strrchr_0
, s7__strrchr_1
)));
908 /* -------- strcspn -------- */
909 static s7_pointer
s7__strcspn(s7_scheme
*sc
, s7_pointer args
)
916 if (s7_is_string(arg
))
917 s7__strcspn_0
= (char*)s7_string(arg
);
918 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
921 if (s7_is_string(arg
))
922 s7__strcspn_1
= (char*)s7_string(arg
);
923 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
924 return(s7_make_integer(sc
, (s7_int
)strcspn(s7__strcspn_0
, s7__strcspn_1
)));
928 /* -------- strspn -------- */
929 static s7_pointer
s7__strspn(s7_scheme
*sc
, s7_pointer args
)
936 if (s7_is_string(arg
))
937 s7__strspn_0
= (char*)s7_string(arg
);
938 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
941 if (s7_is_string(arg
))
942 s7__strspn_1
= (char*)s7_string(arg
);
943 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
944 return(s7_make_integer(sc
, (s7_int
)strspn(s7__strspn_0
, s7__strspn_1
)));
948 /* -------- strpbrk -------- */
949 static s7_pointer
s7__strpbrk(s7_scheme
*sc
, s7_pointer args
)
956 if (s7_is_string(arg
))
957 s7__strpbrk_0
= (char*)s7_string(arg
);
958 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
961 if (s7_is_string(arg
))
962 s7__strpbrk_1
= (char*)s7_string(arg
);
963 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
964 return(s7_make_string(sc
, (char*)strpbrk(s7__strpbrk_0
, s7__strpbrk_1
)));
968 /* -------- strstr -------- */
969 static s7_pointer
s7__strstr(s7_scheme
*sc
, s7_pointer args
)
976 if (s7_is_string(arg
))
977 s7__strstr_0
= (char*)s7_string(arg
);
978 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
981 if (s7_is_string(arg
))
982 s7__strstr_1
= (char*)s7_string(arg
);
983 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
984 return(s7_make_string(sc
, (char*)strstr(s7__strstr_0
, s7__strstr_1
)));
988 /* -------- strtok -------- */
989 static s7_pointer
s7__strtok(s7_scheme
*sc
, s7_pointer args
)
996 if (s7_is_string(arg
))
997 s7__strtok_0
= (char*)s7_string(arg
);
998 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
1001 if (s7_is_string(arg
))
1002 s7__strtok_1
= (char*)s7_string(arg
);
1003 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
1004 return(s7_make_string(sc
, (char*)strtok(s7__strtok_0
, s7__strtok_1
)));
1008 /* -------- strlen -------- */
1009 static s7_pointer
s7__strlen(s7_scheme
*sc
, s7_pointer args
)
1015 if (s7_is_string(arg
))
1016 s7__strlen_0
= (char*)s7_string(arg
);
1017 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
1018 return(s7_make_integer(sc
, (s7_int
)strlen(s7__strlen_0
)));
1022 /* -------- strnlen -------- */
1023 static s7_pointer
s7__strnlen(s7_scheme
*sc
, s7_pointer args
)
1026 char* s7__strnlen_0
;
1027 size_t s7__strnlen_1
;
1030 if (s7_is_string(arg
))
1031 s7__strnlen_0
= (char*)s7_string(arg
);
1032 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
1035 if (s7_is_integer(arg
))
1036 s7__strnlen_1
= (size_t)s7_integer(arg
);
1037 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
1038 return(s7_make_integer(sc
, (s7_int
)strnlen(s7__strnlen_0
, s7__strnlen_1
)));
1042 /* -------- strerror -------- */
1043 static s7_pointer
s7__strerror(s7_scheme
*sc
, s7_pointer args
)
1049 if (s7_is_integer(arg
))
1050 s7__strerror_0
= (int)s7_integer(arg
);
1051 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
1052 return(s7_make_string(sc
, (char*)strerror(s7__strerror_0
)));
1056 /* -------- strcasecmp -------- */
1057 static s7_pointer
s7__strcasecmp(s7_scheme
*sc
, s7_pointer args
)
1060 char* s7__strcasecmp_0
;
1061 char* s7__strcasecmp_1
;
1064 if (s7_is_string(arg
))
1065 s7__strcasecmp_0
= (char*)s7_string(arg
);
1066 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
1069 if (s7_is_string(arg
))
1070 s7__strcasecmp_1
= (char*)s7_string(arg
);
1071 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
1072 return(s7_make_integer(sc
, (s7_int
)strcasecmp(s7__strcasecmp_0
, s7__strcasecmp_1
)));
1076 /* -------- strncasecmp -------- */
1077 static s7_pointer
s7__strncasecmp(s7_scheme
*sc
, s7_pointer args
)
1080 char* s7__strncasecmp_0
;
1081 char* s7__strncasecmp_1
;
1082 size_t s7__strncasecmp_2
;
1085 if (s7_is_string(arg
))
1086 s7__strncasecmp_0
= (char*)s7_string(arg
);
1087 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
1090 if (s7_is_string(arg
))
1091 s7__strncasecmp_1
= (char*)s7_string(arg
);
1092 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
1095 if (s7_is_integer(arg
))
1096 s7__strncasecmp_2
= (size_t)s7_integer(arg
);
1097 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
1098 return(s7_make_integer(sc
, (s7_int
)strncasecmp(s7__strncasecmp_0
, s7__strncasecmp_1
, s7__strncasecmp_2
)));
1102 /* -------- remove -------- */
1103 static s7_pointer
s7__remove(s7_scheme
*sc
, s7_pointer args
)
1109 if (s7_is_string(arg
))
1110 s7__remove_0
= (char*)s7_string(arg
);
1111 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
1112 return(s7_make_integer(sc
, (s7_int
)remove(s7__remove_0
)));
1116 /* -------- rename -------- */
1117 static s7_pointer
s7__rename(s7_scheme
*sc
, s7_pointer args
)
1124 if (s7_is_string(arg
))
1125 s7__rename_0
= (char*)s7_string(arg
);
1126 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
1129 if (s7_is_string(arg
))
1130 s7__rename_1
= (char*)s7_string(arg
);
1131 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
1132 return(s7_make_integer(sc
, (s7_int
)rename(s7__rename_0
, s7__rename_1
)));
1136 /* -------- tmpfile -------- */
1137 static s7_pointer
s7__tmpfile(s7_scheme
*sc
, s7_pointer args
)
1139 return(s7_make_c_pointer_with_type(sc
, (void*)tmpfile(), FILE__symbol
, s7_f(sc
)));
1143 /* -------- fclose -------- */
1144 static s7_pointer
s7__fclose(s7_scheme
*sc
, s7_pointer args
)
1150 s7__fclose_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1151 return(s7_make_integer(sc
, (s7_int
)fclose(s7__fclose_0
)));
1155 /* -------- fflush -------- */
1156 static s7_pointer
s7__fflush(s7_scheme
*sc
, s7_pointer args
)
1162 s7__fflush_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1163 return(s7_make_integer(sc
, (s7_int
)fflush(s7__fflush_0
)));
1167 /* -------- fopen -------- */
1168 static s7_pointer
s7__fopen(s7_scheme
*sc
, s7_pointer args
)
1175 if (s7_is_string(arg
))
1176 s7__fopen_0
= (char*)s7_string(arg
);
1177 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
1180 if (s7_is_string(arg
))
1181 s7__fopen_1
= (char*)s7_string(arg
);
1182 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
1183 return(s7_make_c_pointer_with_type(sc
, (void*)fopen(s7__fopen_0
, s7__fopen_1
), FILE__symbol
, s7_f(sc
)));
1187 /* -------- freopen -------- */
1188 static s7_pointer
s7__freopen(s7_scheme
*sc
, s7_pointer args
)
1191 char* s7__freopen_0
;
1192 char* s7__freopen_1
;
1193 FILE* s7__freopen_2
;
1196 if (s7_is_string(arg
))
1197 s7__freopen_0
= (char*)s7_string(arg
);
1198 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
1201 if (s7_is_string(arg
))
1202 s7__freopen_1
= (char*)s7_string(arg
);
1203 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
1206 s7__freopen_2
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 3);
1207 return(s7_make_c_pointer_with_type(sc
, (void*)freopen(s7__freopen_0
, s7__freopen_1
, s7__freopen_2
), FILE__symbol
, s7_f(sc
)));
1211 /* -------- fdopen -------- */
1212 static s7_pointer
s7__fdopen(s7_scheme
*sc
, s7_pointer args
)
1219 if (s7_is_integer(arg
))
1220 s7__fdopen_0
= (int)s7_integer(arg
);
1221 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
1224 if (s7_is_string(arg
))
1225 s7__fdopen_1
= (char*)s7_string(arg
);
1226 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
1227 return(s7_make_c_pointer_with_type(sc
, (void*)fdopen(s7__fdopen_0
, s7__fdopen_1
), FILE__symbol
, s7_f(sc
)));
1231 /* -------- setbuf -------- */
1232 static s7_pointer
s7__setbuf(s7_scheme
*sc
, s7_pointer args
)
1239 s7__setbuf_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 1);
1242 if (s7_is_string(arg
))
1243 s7__setbuf_1
= (char*)s7_string(arg
);
1244 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
1245 setbuf(s7__setbuf_0
, s7__setbuf_1
);
1246 return(s7_unspecified(sc
));
1250 /* -------- setvbuf -------- */
1251 static s7_pointer
s7__setvbuf(s7_scheme
*sc
, s7_pointer args
)
1254 FILE* s7__setvbuf_0
;
1255 char* s7__setvbuf_1
;
1257 size_t s7__setvbuf_3
;
1260 s7__setvbuf_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 1);
1263 if (s7_is_string(arg
))
1264 s7__setvbuf_1
= (char*)s7_string(arg
);
1265 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
1268 if (s7_is_integer(arg
))
1269 s7__setvbuf_2
= (int)s7_integer(arg
);
1270 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
1273 if (s7_is_integer(arg
))
1274 s7__setvbuf_3
= (size_t)s7_integer(arg
);
1275 else return(s7_wrong_type_arg_error(sc
, __func__
, 4, arg
, "integer"));
1276 return(s7_make_integer(sc
, (s7_int
)setvbuf(s7__setvbuf_0
, s7__setvbuf_1
, s7__setvbuf_2
, s7__setvbuf_3
)));
1280 /* -------- setlinebuf -------- */
1281 static s7_pointer
s7__setlinebuf(s7_scheme
*sc
, s7_pointer args
)
1284 FILE* s7__setlinebuf_0
;
1287 s7__setlinebuf_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1288 setlinebuf(s7__setlinebuf_0
);
1289 return(s7_unspecified(sc
));
1293 /* -------- fgetc -------- */
1294 static s7_pointer
s7__fgetc(s7_scheme
*sc
, s7_pointer args
)
1300 s7__fgetc_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1301 return(s7_make_integer(sc
, (s7_int
)fgetc(s7__fgetc_0
)));
1305 /* -------- getc -------- */
1306 static s7_pointer
s7__getc(s7_scheme
*sc
, s7_pointer args
)
1312 s7__getc_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1313 return(s7_make_integer(sc
, (s7_int
)getc(s7__getc_0
)));
1317 /* -------- getchar -------- */
1318 static s7_pointer
s7__getchar(s7_scheme
*sc
, s7_pointer args
)
1320 return(s7_make_integer(sc
, (s7_int
)getchar()));
1324 /* -------- fputc -------- */
1325 static s7_pointer
s7__fputc(s7_scheme
*sc
, s7_pointer args
)
1332 if (s7_is_integer(arg
))
1333 s7__fputc_0
= (int)s7_integer(arg
);
1334 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
1337 s7__fputc_1
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 2);
1338 return(s7_make_integer(sc
, (s7_int
)fputc(s7__fputc_0
, s7__fputc_1
)));
1342 /* -------- putc -------- */
1343 static s7_pointer
s7__putc(s7_scheme
*sc
, s7_pointer args
)
1350 if (s7_is_integer(arg
))
1351 s7__putc_0
= (int)s7_integer(arg
);
1352 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
1355 s7__putc_1
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 2);
1356 return(s7_make_integer(sc
, (s7_int
)putc(s7__putc_0
, s7__putc_1
)));
1360 /* -------- putchar -------- */
1361 static s7_pointer
s7__putchar(s7_scheme
*sc
, s7_pointer args
)
1367 if (s7_is_integer(arg
))
1368 s7__putchar_0
= (int)s7_integer(arg
);
1369 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
1370 return(s7_make_integer(sc
, (s7_int
)putchar(s7__putchar_0
)));
1372 static s7_int
putchar_i_i(s7_int i1
) {return(putchar(i1
));}
1375 /* -------- fgets -------- */
1376 static s7_pointer
s7__fgets(s7_scheme
*sc
, s7_pointer args
)
1384 if (s7_is_string(arg
))
1385 s7__fgets_0
= (char*)s7_string(arg
);
1386 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
1389 if (s7_is_integer(arg
))
1390 s7__fgets_1
= (int)s7_integer(arg
);
1391 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
1394 s7__fgets_2
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 3);
1395 return(s7_make_string(sc
, (char*)fgets(s7__fgets_0
, s7__fgets_1
, s7__fgets_2
)));
1399 /* -------- fputs -------- */
1400 static s7_pointer
s7__fputs(s7_scheme
*sc
, s7_pointer args
)
1407 if (s7_is_string(arg
))
1408 s7__fputs_0
= (char*)s7_string(arg
);
1409 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
1412 s7__fputs_1
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 2);
1413 return(s7_make_integer(sc
, (s7_int
)fputs(s7__fputs_0
, s7__fputs_1
)));
1417 /* -------- puts -------- */
1418 static s7_pointer
s7__puts(s7_scheme
*sc
, s7_pointer args
)
1424 if (s7_is_string(arg
))
1425 s7__puts_0
= (char*)s7_string(arg
);
1426 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
1427 return(s7_make_integer(sc
, (s7_int
)puts(s7__puts_0
)));
1431 /* -------- ungetc -------- */
1432 static s7_pointer
s7__ungetc(s7_scheme
*sc
, s7_pointer args
)
1439 if (s7_is_integer(arg
))
1440 s7__ungetc_0
= (int)s7_integer(arg
);
1441 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
1444 s7__ungetc_1
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 2);
1445 return(s7_make_integer(sc
, (s7_int
)ungetc(s7__ungetc_0
, s7__ungetc_1
)));
1449 /* -------- fread -------- */
1450 static s7_pointer
s7__fread(s7_scheme
*sc
, s7_pointer args
)
1459 s7__fread_0
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 1);
1462 if (s7_is_integer(arg
))
1463 s7__fread_1
= (size_t)s7_integer(arg
);
1464 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
1467 if (s7_is_integer(arg
))
1468 s7__fread_2
= (size_t)s7_integer(arg
);
1469 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
1472 s7__fread_3
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 4);
1473 return(s7_make_integer(sc
, (s7_int
)fread(s7__fread_0
, s7__fread_1
, s7__fread_2
, s7__fread_3
)));
1477 /* -------- fwrite -------- */
1478 static s7_pointer
s7__fwrite(s7_scheme
*sc
, s7_pointer args
)
1482 size_t s7__fwrite_1
;
1483 size_t s7__fwrite_2
;
1487 s7__fwrite_0
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 1);
1490 if (s7_is_integer(arg
))
1491 s7__fwrite_1
= (size_t)s7_integer(arg
);
1492 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
1495 if (s7_is_integer(arg
))
1496 s7__fwrite_2
= (size_t)s7_integer(arg
);
1497 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
1500 s7__fwrite_3
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 4);
1501 return(s7_make_integer(sc
, (s7_int
)fwrite(s7__fwrite_0
, s7__fwrite_1
, s7__fwrite_2
, s7__fwrite_3
)));
1505 /* -------- fseek -------- */
1506 static s7_pointer
s7__fseek(s7_scheme
*sc
, s7_pointer args
)
1514 s7__fseek_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 1);
1517 if (s7_is_integer(arg
))
1518 s7__fseek_1
= (int)s7_integer(arg
);
1519 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
1522 if (s7_is_integer(arg
))
1523 s7__fseek_2
= (int)s7_integer(arg
);
1524 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
1525 return(s7_make_integer(sc
, (s7_int
)fseek(s7__fseek_0
, s7__fseek_1
, s7__fseek_2
)));
1529 /* -------- ftell -------- */
1530 static s7_pointer
s7__ftell(s7_scheme
*sc
, s7_pointer args
)
1536 s7__ftell_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1537 return(s7_make_integer(sc
, (s7_int
)ftell(s7__ftell_0
)));
1541 /* -------- rewind -------- */
1542 static s7_pointer
s7__rewind(s7_scheme
*sc
, s7_pointer args
)
1548 s7__rewind_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1549 rewind(s7__rewind_0
);
1550 return(s7_unspecified(sc
));
1554 /* -------- fgetpos -------- */
1555 static s7_pointer
s7__fgetpos(s7_scheme
*sc
, s7_pointer args
)
1558 FILE* s7__fgetpos_0
;
1559 fpos_t* s7__fgetpos_1
;
1562 s7__fgetpos_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 1);
1565 s7__fgetpos_1
= (fpos_t*)s7_c_pointer_with_type(sc
, arg
, fpos_t__symbol
, __func__
, 2);
1566 return(s7_make_integer(sc
, (s7_int
)fgetpos(s7__fgetpos_0
, s7__fgetpos_1
)));
1570 /* -------- fsetpos -------- */
1571 static s7_pointer
s7__fsetpos(s7_scheme
*sc
, s7_pointer args
)
1574 FILE* s7__fsetpos_0
;
1575 fpos_t* s7__fsetpos_1
;
1578 s7__fsetpos_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 1);
1581 s7__fsetpos_1
= (fpos_t*)s7_c_pointer_with_type(sc
, arg
, fpos_t__symbol
, __func__
, 2);
1582 return(s7_make_integer(sc
, (s7_int
)fsetpos(s7__fsetpos_0
, s7__fsetpos_1
)));
1586 /* -------- clearerr -------- */
1587 static s7_pointer
s7__clearerr(s7_scheme
*sc
, s7_pointer args
)
1590 FILE* s7__clearerr_0
;
1593 s7__clearerr_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1594 clearerr(s7__clearerr_0
);
1595 return(s7_unspecified(sc
));
1599 /* -------- feof -------- */
1600 static s7_pointer
s7__feof(s7_scheme
*sc
, s7_pointer args
)
1606 s7__feof_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1607 return(s7_make_integer(sc
, (s7_int
)feof(s7__feof_0
)));
1611 /* -------- ferror -------- */
1612 static s7_pointer
s7__ferror(s7_scheme
*sc
, s7_pointer args
)
1618 s7__ferror_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1619 return(s7_make_integer(sc
, (s7_int
)ferror(s7__ferror_0
)));
1623 /* -------- perror -------- */
1624 static s7_pointer
s7__perror(s7_scheme
*sc
, s7_pointer args
)
1630 if (s7_is_string(arg
))
1631 s7__perror_0
= (char*)s7_string(arg
);
1632 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
1633 perror(s7__perror_0
);
1634 return(s7_unspecified(sc
));
1638 /* -------- fileno -------- */
1639 static s7_pointer
s7__fileno(s7_scheme
*sc
, s7_pointer args
)
1645 s7__fileno_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1646 return(s7_make_integer(sc
, (s7_int
)fileno(s7__fileno_0
)));
1650 /* -------- popen -------- */
1651 static s7_pointer
s7__popen(s7_scheme
*sc
, s7_pointer args
)
1658 if (s7_is_string(arg
))
1659 s7__popen_0
= (char*)s7_string(arg
);
1660 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
1663 if (s7_is_string(arg
))
1664 s7__popen_1
= (char*)s7_string(arg
);
1665 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
1666 return(s7_make_c_pointer_with_type(sc
, (void*)popen(s7__popen_0
, s7__popen_1
), FILE__symbol
, s7_f(sc
)));
1670 /* -------- pclose -------- */
1671 static s7_pointer
s7__pclose(s7_scheme
*sc
, s7_pointer args
)
1677 s7__pclose_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1678 return(s7_make_integer(sc
, (s7_int
)pclose(s7__pclose_0
)));
1682 /* -------- ctermid -------- */
1683 static s7_pointer
s7__ctermid(s7_scheme
*sc
, s7_pointer args
)
1686 char* s7__ctermid_0
;
1689 if (s7_is_string(arg
))
1690 s7__ctermid_0
= (char*)s7_string(arg
);
1691 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
1692 return(s7_make_string(sc
, (char*)ctermid(s7__ctermid_0
)));
1696 /* -------- flockfile -------- */
1697 static s7_pointer
s7__flockfile(s7_scheme
*sc
, s7_pointer args
)
1700 FILE* s7__flockfile_0
;
1703 s7__flockfile_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1704 flockfile(s7__flockfile_0
);
1705 return(s7_unspecified(sc
));
1709 /* -------- ftrylockfile -------- */
1710 static s7_pointer
s7__ftrylockfile(s7_scheme
*sc
, s7_pointer args
)
1713 FILE* s7__ftrylockfile_0
;
1716 s7__ftrylockfile_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1717 return(s7_make_integer(sc
, (s7_int
)ftrylockfile(s7__ftrylockfile_0
)));
1721 /* -------- funlockfile -------- */
1722 static s7_pointer
s7__funlockfile(s7_scheme
*sc
, s7_pointer args
)
1725 FILE* s7__funlockfile_0
;
1728 s7__funlockfile_0
= (FILE*)s7_c_pointer_with_type(sc
, arg
, FILE__symbol
, __func__
, 0);
1729 funlockfile(s7__funlockfile_0
);
1730 return(s7_unspecified(sc
));
1734 /* -------- atof -------- */
1735 static s7_pointer
s7__atof(s7_scheme
*sc
, s7_pointer args
)
1741 if (s7_is_string(arg
))
1742 s7__atof_0
= (char*)s7_string(arg
);
1743 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
1744 return(s7_make_real(sc
, (s7_double
)atof(s7__atof_0
)));
1748 /* -------- atoi -------- */
1749 static s7_pointer
s7__atoi(s7_scheme
*sc
, s7_pointer args
)
1755 if (s7_is_string(arg
))
1756 s7__atoi_0
= (char*)s7_string(arg
);
1757 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
1758 return(s7_make_integer(sc
, (s7_int
)atoi(s7__atoi_0
)));
1762 /* -------- atol -------- */
1763 static s7_pointer
s7__atol(s7_scheme
*sc
, s7_pointer args
)
1769 if (s7_is_string(arg
))
1770 s7__atol_0
= (char*)s7_string(arg
);
1771 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
1772 return(s7_make_integer(sc
, (s7_int
)atol(s7__atol_0
)));
1776 /* -------- atoll -------- */
1777 static s7_pointer
s7__atoll(s7_scheme
*sc
, s7_pointer args
)
1783 if (s7_is_string(arg
))
1784 s7__atoll_0
= (char*)s7_string(arg
);
1785 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
1786 return(s7_make_integer(sc
, (s7_int
)atoll(s7__atoll_0
)));
1790 /* -------- random -------- */
1791 static s7_pointer
s7__random(s7_scheme
*sc
, s7_pointer args
)
1793 return(s7_make_integer(sc
, (s7_int
)random()));
1797 /* -------- srandom -------- */
1798 static s7_pointer
s7__srandom(s7_scheme
*sc
, s7_pointer args
)
1804 if (s7_is_integer(arg
))
1805 s7__srandom_0
= (int)s7_integer(arg
);
1806 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
1807 srandom(s7__srandom_0
);
1808 return(s7_unspecified(sc
));
1812 /* -------- initstate -------- */
1813 static s7_pointer
s7__initstate(s7_scheme
*sc
, s7_pointer args
)
1816 int s7__initstate_0
;
1817 char* s7__initstate_1
;
1818 size_t s7__initstate_2
;
1821 if (s7_is_integer(arg
))
1822 s7__initstate_0
= (int)s7_integer(arg
);
1823 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
1826 if (s7_is_string(arg
))
1827 s7__initstate_1
= (char*)s7_string(arg
);
1828 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
1831 if (s7_is_integer(arg
))
1832 s7__initstate_2
= (size_t)s7_integer(arg
);
1833 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
1834 return(s7_make_string(sc
, (char*)initstate(s7__initstate_0
, s7__initstate_1
, s7__initstate_2
)));
1838 /* -------- setstate -------- */
1839 static s7_pointer
s7__setstate(s7_scheme
*sc
, s7_pointer args
)
1842 char* s7__setstate_0
;
1845 if (s7_is_string(arg
))
1846 s7__setstate_0
= (char*)s7_string(arg
);
1847 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
1848 return(s7_make_string(sc
, (char*)setstate(s7__setstate_0
)));
1852 /* -------- rand -------- */
1853 static s7_pointer
s7__rand(s7_scheme
*sc
, s7_pointer args
)
1855 return(s7_make_integer(sc
, (s7_int
)rand()));
1859 /* -------- srand -------- */
1860 static s7_pointer
s7__srand(s7_scheme
*sc
, s7_pointer args
)
1866 if (s7_is_integer(arg
))
1867 s7__srand_0
= (int)s7_integer(arg
);
1868 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
1870 return(s7_unspecified(sc
));
1874 /* -------- malloc -------- */
1875 static s7_pointer
s7__malloc(s7_scheme
*sc
, s7_pointer args
)
1878 size_t s7__malloc_0
;
1881 if (s7_is_integer(arg
))
1882 s7__malloc_0
= (size_t)s7_integer(arg
);
1883 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
1884 return(s7_make_c_pointer_with_type(sc
, (void*)malloc(s7__malloc_0
), void__symbol
, s7_f(sc
)));
1888 /* -------- calloc -------- */
1889 static s7_pointer
s7__calloc(s7_scheme
*sc
, s7_pointer args
)
1892 size_t s7__calloc_0
;
1893 size_t s7__calloc_1
;
1896 if (s7_is_integer(arg
))
1897 s7__calloc_0
= (size_t)s7_integer(arg
);
1898 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
1901 if (s7_is_integer(arg
))
1902 s7__calloc_1
= (size_t)s7_integer(arg
);
1903 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
1904 return(s7_make_c_pointer_with_type(sc
, (void*)calloc(s7__calloc_0
, s7__calloc_1
), void__symbol
, s7_f(sc
)));
1908 /* -------- realloc -------- */
1909 static s7_pointer
s7__realloc(s7_scheme
*sc
, s7_pointer args
)
1912 void* s7__realloc_0
;
1913 size_t s7__realloc_1
;
1916 s7__realloc_0
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 1);
1919 if (s7_is_integer(arg
))
1920 s7__realloc_1
= (size_t)s7_integer(arg
);
1921 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
1922 return(s7_make_c_pointer_with_type(sc
, (void*)realloc(s7__realloc_0
, s7__realloc_1
), void__symbol
, s7_f(sc
)));
1926 /* -------- abort -------- */
1927 static s7_pointer
s7__abort(s7_scheme
*sc
, s7_pointer args
)
1930 return(s7_unspecified(sc
));
1934 /* -------- exit -------- */
1935 static s7_pointer
s7__exit(s7_scheme
*sc
, s7_pointer args
)
1941 if (s7_is_integer(arg
))
1942 s7__exit_0
= (int)s7_integer(arg
);
1943 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
1945 return(s7_unspecified(sc
));
1949 /* -------- getenv -------- */
1950 static s7_pointer
s7__getenv(s7_scheme
*sc
, s7_pointer args
)
1956 if (s7_is_string(arg
))
1957 s7__getenv_0
= (char*)s7_string(arg
);
1958 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
1959 return(s7_make_string(sc
, (char*)getenv(s7__getenv_0
)));
1963 /* -------- putenv -------- */
1964 static s7_pointer
s7__putenv(s7_scheme
*sc
, s7_pointer args
)
1970 if (s7_is_string(arg
))
1971 s7__putenv_0
= (char*)s7_string(arg
);
1972 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
1973 return(s7_make_integer(sc
, (s7_int
)putenv(s7__putenv_0
)));
1977 /* -------- setenv -------- */
1978 static s7_pointer
s7__setenv(s7_scheme
*sc
, s7_pointer args
)
1986 if (s7_is_string(arg
))
1987 s7__setenv_0
= (char*)s7_string(arg
);
1988 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
1991 if (s7_is_string(arg
))
1992 s7__setenv_1
= (char*)s7_string(arg
);
1993 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
1996 if (s7_is_integer(arg
))
1997 s7__setenv_2
= (int)s7_integer(arg
);
1998 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
1999 return(s7_make_integer(sc
, (s7_int
)setenv(s7__setenv_0
, s7__setenv_1
, s7__setenv_2
)));
2003 /* -------- unsetenv -------- */
2004 static s7_pointer
s7__unsetenv(s7_scheme
*sc
, s7_pointer args
)
2007 char* s7__unsetenv_0
;
2010 if (s7_is_string(arg
))
2011 s7__unsetenv_0
= (char*)s7_string(arg
);
2012 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
2013 return(s7_make_integer(sc
, (s7_int
)unsetenv(s7__unsetenv_0
)));
2017 /* -------- mkstemp -------- */
2018 static s7_pointer
s7__mkstemp(s7_scheme
*sc
, s7_pointer args
)
2021 char* s7__mkstemp_0
;
2024 if (s7_is_string(arg
))
2025 s7__mkstemp_0
= (char*)s7_string(arg
);
2026 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
2027 return(s7_make_integer(sc
, (s7_int
)mkstemp(s7__mkstemp_0
)));
2031 /* -------- system -------- */
2032 static s7_pointer
s7__system(s7_scheme
*sc
, s7_pointer args
)
2038 if (s7_is_string(arg
))
2039 s7__system_0
= (char*)s7_string(arg
);
2040 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
2041 return(s7_make_integer(sc
, (s7_int
)system(s7__system_0
)));
2045 /* -------- abs -------- */
2046 static s7_pointer
s7__abs(s7_scheme
*sc
, s7_pointer args
)
2052 if (s7_is_integer(arg
))
2053 s7__abs_0
= (int)s7_integer(arg
);
2054 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2055 return(s7_make_integer(sc
, (s7_int
)abs(s7__abs_0
)));
2057 static s7_int
abs_i_i(s7_int i1
) {return(llabs(i1
));}
2060 /* -------- labs -------- */
2061 static s7_pointer
s7__labs(s7_scheme
*sc
, s7_pointer args
)
2067 if (s7_is_integer(arg
))
2068 s7__labs_0
= (int)s7_integer(arg
);
2069 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2070 return(s7_make_integer(sc
, (s7_int
)labs(s7__labs_0
)));
2072 static s7_int
labs_i_i(s7_int i1
) {return(labs(i1
));}
2074 static s7_pointer
g_llabs(s7_scheme
*sc
, s7_pointer args
)
2076 #if ((__GNUC__) && ((__GNUC__ < 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ < 4))))
2077 return(s7_make_integer(sc
, labs(s7_integer(s7_car(args
)))));
2079 return(s7_make_integer(sc
, llabs(s7_integer(s7_car(args
)))));
2082 static s7_pointer
g_realpath(s7_scheme
*sc
, s7_pointer args
)
2084 char *s7_dl_realpath_0
, *res
;
2085 if (s7_is_string(s7_car(args
)))
2086 s7_dl_realpath_0
= (char*)s7_string(s7_car(args
));
2087 else return(s7_wrong_type_arg_error(sc
, "realpath", 1, s7_car(args
), "string"));
2088 res
= realpath(s7_dl_realpath_0
, NULL
);
2089 if (res
) {s7_pointer str
; str
= s7_make_string(sc
, res
); free(res
); return(str
);}
2092 static s7_pointer
g_free(s7_scheme
*sc
, s7_pointer args
)
2093 {free(s7_c_pointer(s7_car(args
))); return(s7_f(sc
));}
2094 static s7_pointer
g_strtod(s7_scheme
*sc
, s7_pointer args
)
2095 {return(s7_make_real(sc
, strtod(s7_string(s7_car(args
)), NULL
)));}
2096 static s7_pointer
g_strtof(s7_scheme
*sc
, s7_pointer args
)
2097 {return(s7_make_real(sc
, strtof(s7_string(s7_car(args
)), NULL
)));}
2098 static s7_pointer
g_strtol(s7_scheme
*sc
, s7_pointer args
)
2099 {return(s7_make_integer(sc
, strtol(s7_string(s7_car(args
)), NULL
, s7_integer(s7_cadr(args
)))));}
2100 static s7_pointer
g_strtoll(s7_scheme
*sc
, s7_pointer args
)
2101 {return(s7_make_integer(sc
, strtoll(s7_string(s7_car(args
)), NULL
, s7_integer(s7_cadr(args
)))));}
2102 static s7_pointer
g_ldiv(s7_scheme
*sc
, s7_pointer args
)
2105 if (!s7_is_integer(s7_car(args
))) return(s7_wrong_type_arg_error(sc
, "ldiv", 1, s7_car(args
), "integer"));
2106 if (!s7_is_integer(s7_cadr(args
))) return(s7_wrong_type_arg_error(sc
, "ldiv", 2, s7_cadr(args
), "integer"));
2107 d
= ldiv(s7_integer(s7_car(args
)), s7_integer(s7_cadr(args
)));
2108 return(s7_list(sc
, 2, s7_make_integer(sc
, d
.quot
), s7_make_integer(sc
, d
.rem
)));
2111 static s7_pointer
g_errno(s7_scheme
*sc
, s7_pointer args
) {return(s7_make_integer(sc
, errno
));}
2112 static s7_pointer
g_set_errno(s7_scheme
*sc
, s7_pointer args
) {errno
= (int)s7_integer(s7_car(args
)); return(s7_car(args
));}
2114 /* -------- setlocale -------- */
2115 static s7_pointer
s7__setlocale(s7_scheme
*sc
, s7_pointer args
)
2118 int s7__setlocale_0
;
2119 char* s7__setlocale_1
;
2122 if (s7_is_integer(arg
))
2123 s7__setlocale_0
= (int)s7_integer(arg
);
2124 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
2127 if (s7_is_string(arg
))
2128 s7__setlocale_1
= (char*)s7_string(arg
);
2129 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
2130 return(s7_make_string(sc
, (char*)setlocale(s7__setlocale_0
, s7__setlocale_1
)));
2134 static s7_pointer
g_localeconv(s7_scheme
*sc
, s7_pointer args
)
2138 return(s7_inlet(sc
, s7_list(sc
, 36,
2139 s7_make_symbol(sc
, "decimal_point"), s7_make_string(sc
, lc
->decimal_point
),
2140 s7_make_symbol(sc
, "thousands_sep"), s7_make_string(sc
, lc
->thousands_sep
),
2141 s7_make_symbol(sc
, "grouping"), s7_make_string(sc
, lc
->grouping
),
2142 s7_make_symbol(sc
, "int_curr_symbol"), s7_make_string(sc
, lc
->int_curr_symbol
),
2143 s7_make_symbol(sc
, "currency_symbol"), s7_make_string(sc
, lc
->currency_symbol
),
2144 s7_make_symbol(sc
, "mon_decimal_point"), s7_make_string(sc
, lc
->mon_decimal_point
),
2145 s7_make_symbol(sc
, "mon_thousands_sep"), s7_make_string(sc
, lc
->mon_thousands_sep
),
2146 s7_make_symbol(sc
, "mon_grouping"), s7_make_string(sc
, lc
->mon_grouping
),
2147 s7_make_symbol(sc
, "positive_sign"), s7_make_string(sc
, lc
->positive_sign
),
2148 s7_make_symbol(sc
, "negative_sign"), s7_make_string(sc
, lc
->negative_sign
),
2150 s7_make_symbol(sc
, "int_frac_digits"), s7_make_integer(sc
, lc
->int_frac_digits
),
2151 s7_make_symbol(sc
, "frac_digits"), s7_make_integer(sc
, lc
->frac_digits
),
2152 s7_make_symbol(sc
, "p_cs_precedes"), s7_make_integer(sc
, lc
->p_cs_precedes
),
2153 s7_make_symbol(sc
, "p_sep_by_space"), s7_make_integer(sc
, lc
->p_sep_by_space
),
2154 s7_make_symbol(sc
, "n_cs_precedes"), s7_make_integer(sc
, lc
->n_cs_precedes
),
2155 s7_make_symbol(sc
, "n_sep_by_space"), s7_make_integer(sc
, lc
->n_sep_by_space
),
2156 s7_make_symbol(sc
, "p_sign_posn"), s7_make_integer(sc
, lc
->p_sign_posn
),
2157 s7_make_symbol(sc
, "n_sign_posn"), s7_make_integer(sc
, lc
->n_sign_posn
))));
2160 static s7_pointer
g_uname(s7_scheme
*sc
, s7_pointer args
)
2164 return(s7_list(sc
, 5, s7_make_string(sc
, buf
.sysname
),
2165 s7_make_string(sc
, buf
.machine
),
2166 s7_make_string(sc
, buf
.nodename
),
2167 s7_make_string(sc
, buf
.version
),
2168 s7_make_string(sc
, buf
.release
)));
2171 /* -------- access -------- */
2172 static s7_pointer
s7__access(s7_scheme
*sc
, s7_pointer args
)
2179 if (s7_is_string(arg
))
2180 s7__access_0
= (char*)s7_string(arg
);
2181 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
2184 if (s7_is_integer(arg
))
2185 s7__access_1
= (int)s7_integer(arg
);
2186 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
2187 return(s7_make_integer(sc
, (s7_int
)access(s7__access_0
, s7__access_1
)));
2191 /* -------- lseek -------- */
2192 static s7_pointer
s7__lseek(s7_scheme
*sc
, s7_pointer args
)
2200 if (s7_is_integer(arg
))
2201 s7__lseek_0
= (int)s7_integer(arg
);
2202 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
2205 if (s7_is_integer(arg
))
2206 s7__lseek_1
= (int)s7_integer(arg
);
2207 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
2210 if (s7_is_integer(arg
))
2211 s7__lseek_2
= (int)s7_integer(arg
);
2212 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
2213 return(s7_make_integer(sc
, (s7_int
)lseek(s7__lseek_0
, s7__lseek_1
, s7__lseek_2
)));
2217 /* -------- close -------- */
2218 static s7_pointer
s7__close(s7_scheme
*sc
, s7_pointer args
)
2224 if (s7_is_integer(arg
))
2225 s7__close_0
= (int)s7_integer(arg
);
2226 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2227 return(s7_make_integer(sc
, (s7_int
)close(s7__close_0
)));
2229 static s7_int
close_i_i(s7_int i1
) {return(close(i1
));}
2232 /* -------- read -------- */
2233 static s7_pointer
s7__read(s7_scheme
*sc
, s7_pointer args
)
2241 if (s7_is_integer(arg
))
2242 s7__read_0
= (int)s7_integer(arg
);
2243 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
2246 s7__read_1
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 2);
2249 if (s7_is_integer(arg
))
2250 s7__read_2
= (size_t)s7_integer(arg
);
2251 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
2252 return(s7_make_integer(sc
, (s7_int
)read(s7__read_0
, s7__read_1
, s7__read_2
)));
2256 /* -------- write -------- */
2257 static s7_pointer
s7__write(s7_scheme
*sc
, s7_pointer args
)
2265 if (s7_is_integer(arg
))
2266 s7__write_0
= (int)s7_integer(arg
);
2267 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
2270 s7__write_1
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 2);
2273 if (s7_is_integer(arg
))
2274 s7__write_2
= (size_t)s7_integer(arg
);
2275 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
2276 return(s7_make_integer(sc
, (s7_int
)write(s7__write_0
, s7__write_1
, s7__write_2
)));
2280 /* -------- pread -------- */
2281 static s7_pointer
s7__pread(s7_scheme
*sc
, s7_pointer args
)
2290 if (s7_is_integer(arg
))
2291 s7__pread_0
= (int)s7_integer(arg
);
2292 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
2295 s7__pread_1
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 2);
2298 if (s7_is_integer(arg
))
2299 s7__pread_2
= (size_t)s7_integer(arg
);
2300 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
2303 if (s7_is_integer(arg
))
2304 s7__pread_3
= (int)s7_integer(arg
);
2305 else return(s7_wrong_type_arg_error(sc
, __func__
, 4, arg
, "integer"));
2306 return(s7_make_integer(sc
, (s7_int
)pread(s7__pread_0
, s7__pread_1
, s7__pread_2
, s7__pread_3
)));
2310 /* -------- pwrite -------- */
2311 static s7_pointer
s7__pwrite(s7_scheme
*sc
, s7_pointer args
)
2316 size_t s7__pwrite_2
;
2320 if (s7_is_integer(arg
))
2321 s7__pwrite_0
= (int)s7_integer(arg
);
2322 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
2325 s7__pwrite_1
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 2);
2328 if (s7_is_integer(arg
))
2329 s7__pwrite_2
= (size_t)s7_integer(arg
);
2330 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
2333 if (s7_is_integer(arg
))
2334 s7__pwrite_3
= (int)s7_integer(arg
);
2335 else return(s7_wrong_type_arg_error(sc
, __func__
, 4, arg
, "integer"));
2336 return(s7_make_integer(sc
, (s7_int
)pwrite(s7__pwrite_0
, s7__pwrite_1
, s7__pwrite_2
, s7__pwrite_3
)));
2340 /* -------- pipe -------- */
2341 static s7_pointer
s7__pipe(s7_scheme
*sc
, s7_pointer args
)
2347 s7__pipe_0
= (int*)s7_c_pointer_with_type(sc
, arg
, int__symbol
, __func__
, 0);
2348 return(s7_make_integer(sc
, (s7_int
)pipe(s7__pipe_0
)));
2352 /* -------- alarm -------- */
2353 static s7_pointer
s7__alarm(s7_scheme
*sc
, s7_pointer args
)
2359 if (s7_is_integer(arg
))
2360 s7__alarm_0
= (int)s7_integer(arg
);
2361 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2362 return(s7_make_integer(sc
, (s7_int
)alarm(s7__alarm_0
)));
2364 static s7_int
alarm_i_i(s7_int i1
) {return(alarm(i1
));}
2367 /* -------- sleep -------- */
2368 static s7_pointer
s7__sleep(s7_scheme
*sc
, s7_pointer args
)
2374 if (s7_is_integer(arg
))
2375 s7__sleep_0
= (int)s7_integer(arg
);
2376 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2377 return(s7_make_integer(sc
, (s7_int
)sleep(s7__sleep_0
)));
2379 static s7_int
sleep_i_i(s7_int i1
) {return(sleep(i1
));}
2382 /* -------- pause -------- */
2383 static s7_pointer
s7__pause(s7_scheme
*sc
, s7_pointer args
)
2385 return(s7_make_integer(sc
, (s7_int
)pause()));
2389 /* -------- chown -------- */
2390 static s7_pointer
s7__chown(s7_scheme
*sc
, s7_pointer args
)
2398 if (s7_is_string(arg
))
2399 s7__chown_0
= (char*)s7_string(arg
);
2400 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
2403 if (s7_is_integer(arg
))
2404 s7__chown_1
= (int)s7_integer(arg
);
2405 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
2408 if (s7_is_integer(arg
))
2409 s7__chown_2
= (int)s7_integer(arg
);
2410 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
2411 return(s7_make_integer(sc
, (s7_int
)chown(s7__chown_0
, s7__chown_1
, s7__chown_2
)));
2415 /* -------- chdir -------- */
2416 static s7_pointer
s7__chdir(s7_scheme
*sc
, s7_pointer args
)
2422 if (s7_is_string(arg
))
2423 s7__chdir_0
= (char*)s7_string(arg
);
2424 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
2425 return(s7_make_integer(sc
, (s7_int
)chdir(s7__chdir_0
)));
2429 /* -------- getcwd -------- */
2430 static s7_pointer
s7__getcwd(s7_scheme
*sc
, s7_pointer args
)
2434 size_t s7__getcwd_1
;
2437 if (s7_is_string(arg
))
2438 s7__getcwd_0
= (char*)s7_string(arg
);
2439 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
2442 if (s7_is_integer(arg
))
2443 s7__getcwd_1
= (size_t)s7_integer(arg
);
2444 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
2445 return(s7_make_string(sc
, (char*)getcwd(s7__getcwd_0
, s7__getcwd_1
)));
2449 /* -------- dup -------- */
2450 static s7_pointer
s7__dup(s7_scheme
*sc
, s7_pointer args
)
2456 if (s7_is_integer(arg
))
2457 s7__dup_0
= (int)s7_integer(arg
);
2458 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2459 return(s7_make_integer(sc
, (s7_int
)dup(s7__dup_0
)));
2461 static s7_int
dup_i_i(s7_int i1
) {return(dup(i1
));}
2464 /* -------- dup2 -------- */
2465 static s7_pointer
s7__dup2(s7_scheme
*sc
, s7_pointer args
)
2472 if (s7_is_integer(arg
))
2473 s7__dup2_0
= (int)s7_integer(arg
);
2474 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
2477 if (s7_is_integer(arg
))
2478 s7__dup2_1
= (int)s7_integer(arg
);
2479 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
2480 return(s7_make_integer(sc
, (s7_int
)dup2(s7__dup2_0
, s7__dup2_1
)));
2482 static s7_int
dup2_i_ii(s7_int i1
, s7_int i2
) {return(dup2(i1
, i2
));}
2485 /* -------- _exit -------- */
2486 static s7_pointer
s7___exit(s7_scheme
*sc
, s7_pointer args
)
2492 if (s7_is_integer(arg
))
2493 s7___exit_0
= (int)s7_integer(arg
);
2494 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2496 return(s7_unspecified(sc
));
2500 /* -------- pathconf -------- */
2501 static s7_pointer
s7__pathconf(s7_scheme
*sc
, s7_pointer args
)
2504 char* s7__pathconf_0
;
2508 if (s7_is_string(arg
))
2509 s7__pathconf_0
= (char*)s7_string(arg
);
2510 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
2513 if (s7_is_integer(arg
))
2514 s7__pathconf_1
= (int)s7_integer(arg
);
2515 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
2516 return(s7_make_integer(sc
, (s7_int
)pathconf(s7__pathconf_0
, s7__pathconf_1
)));
2520 /* -------- fpathconf -------- */
2521 static s7_pointer
s7__fpathconf(s7_scheme
*sc
, s7_pointer args
)
2524 int s7__fpathconf_0
;
2525 int s7__fpathconf_1
;
2528 if (s7_is_integer(arg
))
2529 s7__fpathconf_0
= (int)s7_integer(arg
);
2530 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
2533 if (s7_is_integer(arg
))
2534 s7__fpathconf_1
= (int)s7_integer(arg
);
2535 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
2536 return(s7_make_integer(sc
, (s7_int
)fpathconf(s7__fpathconf_0
, s7__fpathconf_1
)));
2538 static s7_int
fpathconf_i_ii(s7_int i1
, s7_int i2
) {return(fpathconf(i1
, i2
));}
2541 /* -------- sysconf -------- */
2542 static s7_pointer
s7__sysconf(s7_scheme
*sc
, s7_pointer args
)
2548 if (s7_is_integer(arg
))
2549 s7__sysconf_0
= (int)s7_integer(arg
);
2550 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2551 return(s7_make_integer(sc
, (s7_int
)sysconf(s7__sysconf_0
)));
2553 static s7_int
sysconf_i_i(s7_int i1
) {return(sysconf(i1
));}
2556 /* -------- confstr -------- */
2557 static s7_pointer
s7__confstr(s7_scheme
*sc
, s7_pointer args
)
2561 char* s7__confstr_1
;
2562 size_t s7__confstr_2
;
2565 if (s7_is_integer(arg
))
2566 s7__confstr_0
= (int)s7_integer(arg
);
2567 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
2570 if (s7_is_string(arg
))
2571 s7__confstr_1
= (char*)s7_string(arg
);
2572 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
2575 if (s7_is_integer(arg
))
2576 s7__confstr_2
= (size_t)s7_integer(arg
);
2577 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
2578 return(s7_make_integer(sc
, (s7_int
)confstr(s7__confstr_0
, s7__confstr_1
, s7__confstr_2
)));
2582 /* -------- getpid -------- */
2583 static s7_pointer
s7__getpid(s7_scheme
*sc
, s7_pointer args
)
2585 return(s7_make_integer(sc
, (s7_int
)getpid()));
2589 /* -------- getppid -------- */
2590 static s7_pointer
s7__getppid(s7_scheme
*sc
, s7_pointer args
)
2592 return(s7_make_integer(sc
, (s7_int
)getppid()));
2596 /* -------- getpgid -------- */
2597 static s7_pointer
s7__getpgid(s7_scheme
*sc
, s7_pointer args
)
2603 if (s7_is_integer(arg
))
2604 s7__getpgid_0
= (int)s7_integer(arg
);
2605 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2606 return(s7_make_integer(sc
, (s7_int
)getpgid(s7__getpgid_0
)));
2608 static s7_int
getpgid_i_i(s7_int i1
) {return(getpgid(i1
));}
2611 /* -------- setpgid -------- */
2612 static s7_pointer
s7__setpgid(s7_scheme
*sc
, s7_pointer args
)
2619 if (s7_is_integer(arg
))
2620 s7__setpgid_0
= (int)s7_integer(arg
);
2621 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
2624 if (s7_is_integer(arg
))
2625 s7__setpgid_1
= (int)s7_integer(arg
);
2626 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
2627 return(s7_make_integer(sc
, (s7_int
)setpgid(s7__setpgid_0
, s7__setpgid_1
)));
2629 static s7_int
setpgid_i_ii(s7_int i1
, s7_int i2
) {return(setpgid(i1
, i2
));}
2632 /* -------- setsid -------- */
2633 static s7_pointer
s7__setsid(s7_scheme
*sc
, s7_pointer args
)
2635 return(s7_make_integer(sc
, (s7_int
)setsid()));
2639 /* -------- getsid -------- */
2640 static s7_pointer
s7__getsid(s7_scheme
*sc
, s7_pointer args
)
2646 if (s7_is_integer(arg
))
2647 s7__getsid_0
= (int)s7_integer(arg
);
2648 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2649 return(s7_make_integer(sc
, (s7_int
)getsid(s7__getsid_0
)));
2651 static s7_int
getsid_i_i(s7_int i1
) {return(getsid(i1
));}
2654 /* -------- getuid -------- */
2655 static s7_pointer
s7__getuid(s7_scheme
*sc
, s7_pointer args
)
2657 return(s7_make_integer(sc
, (s7_int
)getuid()));
2661 /* -------- geteuid -------- */
2662 static s7_pointer
s7__geteuid(s7_scheme
*sc
, s7_pointer args
)
2664 return(s7_make_integer(sc
, (s7_int
)geteuid()));
2668 /* -------- getgid -------- */
2669 static s7_pointer
s7__getgid(s7_scheme
*sc
, s7_pointer args
)
2671 return(s7_make_integer(sc
, (s7_int
)getgid()));
2675 /* -------- getegid -------- */
2676 static s7_pointer
s7__getegid(s7_scheme
*sc
, s7_pointer args
)
2678 return(s7_make_integer(sc
, (s7_int
)getegid()));
2682 /* -------- setuid -------- */
2683 static s7_pointer
s7__setuid(s7_scheme
*sc
, s7_pointer args
)
2689 if (s7_is_integer(arg
))
2690 s7__setuid_0
= (int)s7_integer(arg
);
2691 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2692 return(s7_make_integer(sc
, (s7_int
)setuid(s7__setuid_0
)));
2694 static s7_int
setuid_i_i(s7_int i1
) {return(setuid(i1
));}
2697 /* -------- setgid -------- */
2698 static s7_pointer
s7__setgid(s7_scheme
*sc
, s7_pointer args
)
2704 if (s7_is_integer(arg
))
2705 s7__setgid_0
= (int)s7_integer(arg
);
2706 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2707 return(s7_make_integer(sc
, (s7_int
)setgid(s7__setgid_0
)));
2709 static s7_int
setgid_i_i(s7_int i1
) {return(setgid(i1
));}
2712 /* -------- fork -------- */
2713 static s7_pointer
s7__fork(s7_scheme
*sc
, s7_pointer args
)
2715 return(s7_make_integer(sc
, (s7_int
)fork()));
2719 /* -------- ttyname -------- */
2720 static s7_pointer
s7__ttyname(s7_scheme
*sc
, s7_pointer args
)
2726 if (s7_is_integer(arg
))
2727 s7__ttyname_0
= (int)s7_integer(arg
);
2728 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2729 return(s7_make_string(sc
, (char*)ttyname(s7__ttyname_0
)));
2733 /* -------- isatty -------- */
2734 static s7_pointer
s7__isatty(s7_scheme
*sc
, s7_pointer args
)
2740 if (s7_is_integer(arg
))
2741 s7__isatty_0
= (int)s7_integer(arg
);
2742 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2743 return(s7_make_integer(sc
, (s7_int
)isatty(s7__isatty_0
)));
2745 static s7_int
isatty_i_i(s7_int i1
) {return(isatty(i1
));}
2748 /* -------- link -------- */
2749 static s7_pointer
s7__link(s7_scheme
*sc
, s7_pointer args
)
2756 if (s7_is_string(arg
))
2757 s7__link_0
= (char*)s7_string(arg
);
2758 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
2761 if (s7_is_string(arg
))
2762 s7__link_1
= (char*)s7_string(arg
);
2763 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
2764 return(s7_make_integer(sc
, (s7_int
)link(s7__link_0
, s7__link_1
)));
2768 /* -------- unlink -------- */
2769 static s7_pointer
s7__unlink(s7_scheme
*sc
, s7_pointer args
)
2775 if (s7_is_string(arg
))
2776 s7__unlink_0
= (char*)s7_string(arg
);
2777 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
2778 return(s7_make_integer(sc
, (s7_int
)unlink(s7__unlink_0
)));
2782 /* -------- rmdir -------- */
2783 static s7_pointer
s7__rmdir(s7_scheme
*sc
, s7_pointer args
)
2789 if (s7_is_string(arg
))
2790 s7__rmdir_0
= (char*)s7_string(arg
);
2791 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
2792 return(s7_make_integer(sc
, (s7_int
)rmdir(s7__rmdir_0
)));
2796 /* -------- tcgetpgrp -------- */
2797 static s7_pointer
s7__tcgetpgrp(s7_scheme
*sc
, s7_pointer args
)
2800 int s7__tcgetpgrp_0
;
2803 if (s7_is_integer(arg
))
2804 s7__tcgetpgrp_0
= (int)s7_integer(arg
);
2805 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
2806 return(s7_make_integer(sc
, (s7_int
)tcgetpgrp(s7__tcgetpgrp_0
)));
2808 static s7_int
tcgetpgrp_i_i(s7_int i1
) {return(tcgetpgrp(i1
));}
2811 /* -------- tcsetpgrp -------- */
2812 static s7_pointer
s7__tcsetpgrp(s7_scheme
*sc
, s7_pointer args
)
2815 int s7__tcsetpgrp_0
;
2816 int s7__tcsetpgrp_1
;
2819 if (s7_is_integer(arg
))
2820 s7__tcsetpgrp_0
= (int)s7_integer(arg
);
2821 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
2824 if (s7_is_integer(arg
))
2825 s7__tcsetpgrp_1
= (int)s7_integer(arg
);
2826 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
2827 return(s7_make_integer(sc
, (s7_int
)tcsetpgrp(s7__tcsetpgrp_0
, s7__tcsetpgrp_1
)));
2829 static s7_int
tcsetpgrp_i_ii(s7_int i1
, s7_int i2
) {return(tcsetpgrp(i1
, i2
));}
2832 /* -------- getlogin -------- */
2833 static s7_pointer
s7__getlogin(s7_scheme
*sc
, s7_pointer args
)
2835 return(s7_make_string(sc
, (char*)getlogin()));
2839 /* -------- truncate -------- */
2840 static s7_pointer
s7__truncate(s7_scheme
*sc
, s7_pointer args
)
2843 char* s7__truncate_0
;
2847 if (s7_is_string(arg
))
2848 s7__truncate_0
= (char*)s7_string(arg
);
2849 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
2852 if (s7_is_integer(arg
))
2853 s7__truncate_1
= (int)s7_integer(arg
);
2854 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
2855 return(s7_make_integer(sc
, (s7_int
)truncate(s7__truncate_0
, s7__truncate_1
)));
2859 /* -------- ftruncate -------- */
2860 static s7_pointer
s7__ftruncate(s7_scheme
*sc
, s7_pointer args
)
2863 int s7__ftruncate_0
;
2864 int s7__ftruncate_1
;
2867 if (s7_is_integer(arg
))
2868 s7__ftruncate_0
= (int)s7_integer(arg
);
2869 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
2872 if (s7_is_integer(arg
))
2873 s7__ftruncate_1
= (int)s7_integer(arg
);
2874 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
2875 return(s7_make_integer(sc
, (s7_int
)ftruncate(s7__ftruncate_0
, s7__ftruncate_1
)));
2877 static s7_int
ftruncate_i_ii(s7_int i1
, s7_int i2
) {return(ftruncate(i1
, i2
));}
2879 extern char **environ
;
2880 static s7_pointer
getenvs(s7_scheme
*sc
, s7_pointer args
)
2885 for (i
= 0; environ
[i
]; i
++)
2888 s7_pointer name
, value
;
2889 eq
= strchr((const char *)environ
[i
], (int)'=');
2890 name
= s7_make_string_with_length(sc
, environ
[i
], eq
- environ
[i
]);
2891 value
= s7_make_string(sc
, (char *)(eq
+ 1));
2892 p
= s7_cons(sc
, s7_cons(sc
, name
, value
), p
);
2896 static s7_pointer
g_getgroups(s7_scheme
*sc
, s7_pointer args
)
2901 size
= s7_integer(s7_car(args
));
2903 return(s7_make_integer(sc
, getgroups(0, NULL
)));
2904 gds
= (gid_t
*)calloc(size
, sizeof(gid_t
));
2905 res
= getgroups(size
, gds
);
2909 for (i
= 0; i
< size
; i
++)
2910 lst
= s7_cons(sc
, s7_make_integer(sc
, gds
[i
]), lst
);
2912 else lst
= s7_make_integer(sc
, -1);
2918 /* -------- opendir -------- */
2919 static s7_pointer
s7__opendir(s7_scheme
*sc
, s7_pointer args
)
2922 char* s7__opendir_0
;
2925 if (s7_is_string(arg
))
2926 s7__opendir_0
= (char*)s7_string(arg
);
2927 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
2928 return(s7_make_c_pointer_with_type(sc
, (void*)opendir(s7__opendir_0
), DIR__symbol
, s7_f(sc
)));
2932 /* -------- closedir -------- */
2933 static s7_pointer
s7__closedir(s7_scheme
*sc
, s7_pointer args
)
2936 DIR* s7__closedir_0
;
2939 s7__closedir_0
= (DIR*)s7_c_pointer_with_type(sc
, arg
, DIR__symbol
, __func__
, 0);
2940 return(s7_make_integer(sc
, (s7_int
)closedir(s7__closedir_0
)));
2944 /* -------- rewinddir -------- */
2945 static s7_pointer
s7__rewinddir(s7_scheme
*sc
, s7_pointer args
)
2948 DIR* s7__rewinddir_0
;
2951 s7__rewinddir_0
= (DIR*)s7_c_pointer_with_type(sc
, arg
, DIR__symbol
, __func__
, 0);
2952 rewinddir(s7__rewinddir_0
);
2953 return(s7_unspecified(sc
));
2956 static char *read_dir(DIR *p
)
2958 struct dirent
*dirp
;
2960 if (!dirp
) return(NULL
);
2961 else return(dirp
->d_name
);
2964 /* -------- read_dir -------- */
2965 static s7_pointer
s7__read_dir(s7_scheme
*sc
, s7_pointer args
)
2968 DIR* s7__read_dir_0
;
2971 s7__read_dir_0
= (DIR*)s7_c_pointer_with_type(sc
, arg
, DIR__symbol
, __func__
, 0);
2972 return(s7_make_string(sc
, (char*)read_dir(s7__read_dir_0
)));
2975 static s7_scheme
*internal_ftw_sc
= NULL
;
2976 static s7_pointer internal_ftw_closure
= NULL
, internal_ftw_arglist
= NULL
;
2978 static int internal_ftw_function(const char *fpath
, const struct stat
*sb
, int typeflag
)
2980 s7_list_set(internal_ftw_sc
, internal_ftw_arglist
, 0, s7_make_string(internal_ftw_sc
, fpath
));
2981 s7_list_set(internal_ftw_sc
, internal_ftw_arglist
, 1,
2982 s7_make_c_pointer_with_type(internal_ftw_sc
, (void *)sb
, /* need cast due to const */
2983 s7_make_symbol(internal_ftw_sc
, "stat*"), s7_f(internal_ftw_sc
)));
2984 s7_list_set(internal_ftw_sc
, internal_ftw_arglist
, 2, s7_make_integer(internal_ftw_sc
, typeflag
));
2985 return((int)s7_integer(s7_call(internal_ftw_sc
, internal_ftw_closure
, internal_ftw_arglist
)));
2988 static s7_pointer
g_ftw(s7_scheme
*sc
, s7_pointer args
)
2990 if (!internal_ftw_sc
)
2992 internal_ftw_sc
= sc
;
2993 internal_ftw_arglist
= s7_list(sc
, 3, s7_nil(sc
), s7_nil(sc
), s7_nil(sc
));
2994 s7_gc_protect(sc
, internal_ftw_arglist
);
2996 internal_ftw_closure
= s7_cadr(args
);
2997 return(s7_make_integer(sc
, ftw(s7_string(s7_car(args
)), internal_ftw_function
, s7_integer(s7_caddr(args
)))));
2999 static s7_pointer
g_stat(s7_scheme
*sc
, s7_pointer args
)
3000 {return(s7_make_integer(sc
, stat(s7_string(s7_car(args
)),
3001 (struct stat
*)s7_c_pointer_with_type(sc
, s7_cadr(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))));}
3002 static s7_pointer
g_fstat(s7_scheme
*sc
, s7_pointer args
)
3003 {return(s7_make_integer(sc
, fstat(s7_integer(s7_car(args
)),
3004 (struct stat
*)s7_c_pointer_with_type(sc
, s7_cadr(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))));}
3005 static s7_pointer
g_lstat(s7_scheme
*sc
, s7_pointer args
)
3006 {return(s7_make_integer(sc
, lstat(s7_string(s7_car(args
)),
3007 (struct stat
*)s7_c_pointer_with_type(sc
, s7_cadr(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))));}
3010 /* -------- chmod -------- */
3011 static s7_pointer
s7__chmod(s7_scheme
*sc
, s7_pointer args
)
3018 if (s7_is_string(arg
))
3019 s7__chmod_0
= (char*)s7_string(arg
);
3020 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
3023 if (s7_is_integer(arg
))
3024 s7__chmod_1
= (int)s7_integer(arg
);
3025 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3026 return(s7_make_integer(sc
, (s7_int
)chmod(s7__chmod_0
, s7__chmod_1
)));
3030 /* -------- mkdir -------- */
3031 static s7_pointer
s7__mkdir(s7_scheme
*sc
, s7_pointer args
)
3038 if (s7_is_string(arg
))
3039 s7__mkdir_0
= (char*)s7_string(arg
);
3040 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
3043 if (s7_is_integer(arg
))
3044 s7__mkdir_1
= (int)s7_integer(arg
);
3045 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3046 return(s7_make_integer(sc
, (s7_int
)mkdir(s7__mkdir_0
, s7__mkdir_1
)));
3050 /* -------- mknod -------- */
3051 static s7_pointer
s7__mknod(s7_scheme
*sc
, s7_pointer args
)
3059 if (s7_is_string(arg
))
3060 s7__mknod_0
= (char*)s7_string(arg
);
3061 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
3064 if (s7_is_integer(arg
))
3065 s7__mknod_1
= (int)s7_integer(arg
);
3066 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3069 if (s7_is_integer(arg
))
3070 s7__mknod_2
= (int)s7_integer(arg
);
3071 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
3072 return(s7_make_integer(sc
, (s7_int
)mknod(s7__mknod_0
, s7__mknod_1
, s7__mknod_2
)));
3076 /* -------- mkfifo -------- */
3077 static s7_pointer
s7__mkfifo(s7_scheme
*sc
, s7_pointer args
)
3084 if (s7_is_string(arg
))
3085 s7__mkfifo_0
= (char*)s7_string(arg
);
3086 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
3089 if (s7_is_integer(arg
))
3090 s7__mkfifo_1
= (int)s7_integer(arg
);
3091 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3092 return(s7_make_integer(sc
, (s7_int
)mkfifo(s7__mkfifo_0
, s7__mkfifo_1
)));
3095 static s7_pointer
g_isdir(s7_scheme
*sc
, s7_pointer args
)
3096 {return(s7_make_boolean(sc
, S_ISDIR(s7_integer(s7_car(args
)))));}
3097 static s7_pointer
g_ischr(s7_scheme
*sc
, s7_pointer args
)
3098 {return(s7_make_boolean(sc
, S_ISCHR(s7_integer(s7_car(args
)))));}
3099 static s7_pointer
g_isblk(s7_scheme
*sc
, s7_pointer args
)
3100 {return(s7_make_boolean(sc
, S_ISBLK(s7_integer(s7_car(args
)))));}
3101 static s7_pointer
g_isreg(s7_scheme
*sc
, s7_pointer args
)
3102 {return(s7_make_boolean(sc
, S_ISREG(s7_integer(s7_car(args
)))));}
3103 static s7_pointer
g_isfifo(s7_scheme
*sc
, s7_pointer args
)
3104 {return(s7_make_boolean(sc
, S_ISFIFO(s7_integer(s7_car(args
)))));}
3105 static s7_pointer
g_islnk(s7_scheme
*sc
, s7_pointer args
)
3106 {return(s7_make_boolean(sc
, S_ISLNK(s7_integer(s7_car(args
)))));}
3107 static s7_pointer
g_issock(s7_scheme
*sc
, s7_pointer args
)
3108 {return(s7_make_boolean(sc
, S_ISSOCK(s7_integer(s7_car(args
)))));}
3109 static s7_pointer
g_st_dev(s7_scheme
*sc
, s7_pointer args
)
3110 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_dev
));}
3111 static s7_pointer
g_st_ino(s7_scheme
*sc
, s7_pointer args
)
3112 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_ino
));}
3113 static s7_pointer
g_st_mode(s7_scheme
*sc
, s7_pointer args
)
3114 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_mode
));}
3115 static s7_pointer
g_st_nlink(s7_scheme
*sc
, s7_pointer args
)
3116 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_nlink
));}
3117 static s7_pointer
g_st_uid(s7_scheme
*sc
, s7_pointer args
)
3118 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_uid
));}
3119 static s7_pointer
g_st_gid(s7_scheme
*sc
, s7_pointer args
)
3120 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_gid
));}
3121 static s7_pointer
g_st_rdev(s7_scheme
*sc
, s7_pointer args
)
3122 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_rdev
));}
3123 static s7_pointer
g_st_size(s7_scheme
*sc
, s7_pointer args
)
3124 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_size
));}
3125 static s7_pointer
g_st_blksize(s7_scheme
*sc
, s7_pointer args
)
3126 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_blksize
));}
3127 static s7_pointer
g_st_blocks(s7_scheme
*sc
, s7_pointer args
)
3128 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_blocks
));}
3129 static s7_pointer
g_st_atime(s7_scheme
*sc
, s7_pointer args
)
3130 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_atime
));}
3131 static s7_pointer
g_st_mtime(s7_scheme
*sc
, s7_pointer args
)
3132 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_mtime
));}
3133 static s7_pointer
g_st_ctime(s7_scheme
*sc
, s7_pointer args
)
3134 {return(s7_make_integer(sc
, ((struct stat
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "stat*"), __func__
, 1))->st_ctime
));}
3135 static s7_pointer
g_stat_make(s7_scheme
*sc
, s7_pointer args
)
3136 {return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(struct stat
)), s7_make_symbol(sc
, "stat*"), s7_f(sc
)));}
3139 /* -------- clock -------- */
3140 static s7_pointer
s7__clock(s7_scheme
*sc
, s7_pointer args
)
3142 return(s7_make_integer(sc
, (s7_int
)clock()));
3146 /* -------- time -------- */
3147 static s7_pointer
s7__time(s7_scheme
*sc
, s7_pointer args
)
3153 s7__time_0
= (time_t*)s7_c_pointer_with_type(sc
, arg
, time_t__symbol
, __func__
, 0);
3154 return(s7_make_integer(sc
, (s7_int
)time(s7__time_0
)));
3158 /* -------- difftime -------- */
3159 static s7_pointer
s7__difftime(s7_scheme
*sc
, s7_pointer args
)
3162 time_t s7__difftime_0
;
3163 time_t s7__difftime_1
;
3166 if (s7_is_integer(arg
))
3167 s7__difftime_0
= (time_t)s7_integer(arg
);
3168 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
3171 if (s7_is_integer(arg
))
3172 s7__difftime_1
= (time_t)s7_integer(arg
);
3173 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3174 return(s7_make_real(sc
, (s7_double
)difftime(s7__difftime_0
, s7__difftime_1
)));
3178 /* -------- gmtime -------- */
3179 static s7_pointer
s7__gmtime(s7_scheme
*sc
, s7_pointer args
)
3182 time_t* s7__gmtime_0
;
3185 s7__gmtime_0
= (time_t*)s7_c_pointer_with_type(sc
, arg
, time_t__symbol
, __func__
, 0);
3186 return(s7_make_c_pointer_with_type(sc
, (void*)gmtime(s7__gmtime_0
), tm__symbol
, s7_f(sc
)));
3190 /* -------- ctime -------- */
3191 static s7_pointer
s7__ctime(s7_scheme
*sc
, s7_pointer args
)
3194 time_t* s7__ctime_0
;
3197 s7__ctime_0
= (time_t*)s7_c_pointer_with_type(sc
, arg
, time_t__symbol
, __func__
, 0);
3198 return(s7_make_string(sc
, (char*)ctime(s7__ctime_0
)));
3202 /* -------- localtime -------- */
3203 static s7_pointer
s7__localtime(s7_scheme
*sc
, s7_pointer args
)
3206 time_t* s7__localtime_0
;
3209 s7__localtime_0
= (time_t*)s7_c_pointer_with_type(sc
, arg
, time_t__symbol
, __func__
, 0);
3210 return(s7_make_c_pointer_with_type(sc
, (void*)localtime(s7__localtime_0
), tm__symbol
, s7_f(sc
)));
3213 static s7_pointer
g_mktime(s7_scheme
*sc
, s7_pointer args
)
3215 return(s7_make_integer(sc
, (s7_int
)mktime((struct tm
*)s7_c_pointer(s7_car(args
)))));
3217 static s7_pointer
g_time_make(s7_scheme
*sc
, s7_pointer args
)
3220 tm
= (time_t *)calloc(1, sizeof(time_t));
3221 (*tm
) = (time_t)s7_integer(s7_car(args
));
3222 return(s7_make_c_pointer_with_type(sc
, (void *)tm
, s7_make_symbol(sc
, "time_t*"), s7_f(sc
)));
3224 static s7_pointer
g_strftime(s7_scheme
*sc
, s7_pointer args
)
3226 return(s7_make_integer(sc
, (s7_int
)strftime((char *)s7_string(s7_car(args
)),
3227 (size_t)s7_integer(s7_cadr(args
)),
3228 s7_string(s7_caddr(args
)),
3229 (const struct tm
*)s7_c_pointer(s7_cadddr(args
)))));
3231 static s7_pointer
g_asctime(s7_scheme
*sc
, s7_pointer args
)
3233 return(s7_make_string(sc
, asctime((const struct tm
*)s7_c_pointer(s7_car(args
)))));
3235 static s7_pointer
g_gettimeofday(s7_scheme
*sc
, s7_pointer args
)
3238 gettimeofday(&t0
, NULL
);
3239 return(s7_list(sc
, 2, s7_make_integer(sc
, t0
.tv_sec
), s7_make_integer(sc
, t0
.tv_usec
)));
3241 static s7_pointer
g_nanosleep(s7_scheme
*sc
, s7_pointer args
)
3244 t0
.tv_sec
= (time_t)s7_integer(s7_car(args
));
3245 t0
.tv_nsec
= (long)s7_integer(s7_cadr(args
));
3246 return(s7_make_integer(sc
, nanosleep(&t0
, NULL
)));
3248 static s7_pointer
g_clock_getres(s7_scheme
*sc
, s7_pointer args
)
3253 res
= clock_getres(s7_integer(s7_car(args
)), &t0
);
3254 return(s7_list(sc
, 3, s7_make_integer(sc
, res
), s7_make_integer(sc
, t0
.tv_sec
), s7_make_integer(sc
, t0
.tv_nsec
)));
3256 return(s7_make_integer(sc
, -1));
3259 static s7_pointer
g_clock_gettime(s7_scheme
*sc
, s7_pointer args
)
3264 res
= clock_gettime(s7_integer(s7_car(args
)), &t0
);
3265 return(s7_list(sc
, 3, s7_make_integer(sc
, res
), s7_make_integer(sc
, t0
.tv_sec
), s7_make_integer(sc
, t0
.tv_nsec
)));
3267 return(s7_make_integer(sc
, -1));
3270 static s7_pointer
g_clock_settime(s7_scheme
*sc
, s7_pointer args
)
3274 t0
.tv_sec
= (time_t)s7_integer(s7_cadr(args
));
3275 t0
.tv_nsec
= (long)s7_integer(s7_caddr(args
));
3276 return(s7_make_integer(sc
, clock_settime(s7_integer(s7_car(args
)), &t0
)));
3278 return(s7_make_integer(sc
, -1));
3281 static s7_pointer
g_clock_getcpuclockid(s7_scheme
*sc
, s7_pointer args
)
3285 clock_getcpuclockid((pid_t
)s7_integer(s7_car(args
)), &c
);
3286 return(s7_make_integer(sc
, (s7_int
)c
));
3288 return(s7_make_integer(sc
, -1));
3291 static s7_pointer
g_clock_nanosleep(s7_scheme
*sc
, s7_pointer args
)
3295 t0
.tv_sec
= (time_t)s7_integer(s7_caddr(args
));
3296 t0
.tv_nsec
= (long)s7_integer(s7_cadddr(args
));
3297 return(s7_make_integer(sc
, clock_nanosleep((clockid_t
)s7_integer(s7_car(args
)), (int)s7_integer(s7_cadr(args
)), &t0
, NULL
)));
3299 return(s7_make_integer(sc
, -1));
3303 static s7_pointer
g_utime(s7_scheme
*sc
, s7_pointer args
)
3306 tb
.actime
= (time_t)s7_integer(s7_cadr(args
));
3307 tb
.modtime
= (time_t)s7_integer(s7_caddr(args
));
3308 return(s7_make_integer(sc
, utime(s7_string(s7_car(args
)), &tb
)));
3311 /* -------- tcsendbreak -------- */
3312 static s7_pointer
s7__tcsendbreak(s7_scheme
*sc
, s7_pointer args
)
3315 int s7__tcsendbreak_0
;
3316 int s7__tcsendbreak_1
;
3319 if (s7_is_integer(arg
))
3320 s7__tcsendbreak_0
= (int)s7_integer(arg
);
3321 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
3324 if (s7_is_integer(arg
))
3325 s7__tcsendbreak_1
= (int)s7_integer(arg
);
3326 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3327 return(s7_make_integer(sc
, (s7_int
)tcsendbreak(s7__tcsendbreak_0
, s7__tcsendbreak_1
)));
3329 static s7_int
tcsendbreak_i_ii(s7_int i1
, s7_int i2
) {return(tcsendbreak(i1
, i2
));}
3332 /* -------- tcdrain -------- */
3333 static s7_pointer
s7__tcdrain(s7_scheme
*sc
, s7_pointer args
)
3339 if (s7_is_integer(arg
))
3340 s7__tcdrain_0
= (int)s7_integer(arg
);
3341 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
3342 return(s7_make_integer(sc
, (s7_int
)tcdrain(s7__tcdrain_0
)));
3344 static s7_int
tcdrain_i_i(s7_int i1
) {return(tcdrain(i1
));}
3347 /* -------- tcflush -------- */
3348 static s7_pointer
s7__tcflush(s7_scheme
*sc
, s7_pointer args
)
3355 if (s7_is_integer(arg
))
3356 s7__tcflush_0
= (int)s7_integer(arg
);
3357 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
3360 if (s7_is_integer(arg
))
3361 s7__tcflush_1
= (int)s7_integer(arg
);
3362 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3363 return(s7_make_integer(sc
, (s7_int
)tcflush(s7__tcflush_0
, s7__tcflush_1
)));
3365 static s7_int
tcflush_i_ii(s7_int i1
, s7_int i2
) {return(tcflush(i1
, i2
));}
3368 /* -------- tcflow -------- */
3369 static s7_pointer
s7__tcflow(s7_scheme
*sc
, s7_pointer args
)
3376 if (s7_is_integer(arg
))
3377 s7__tcflow_0
= (int)s7_integer(arg
);
3378 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
3381 if (s7_is_integer(arg
))
3382 s7__tcflow_1
= (int)s7_integer(arg
);
3383 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3384 return(s7_make_integer(sc
, (s7_int
)tcflow(s7__tcflow_0
, s7__tcflow_1
)));
3386 static s7_int
tcflow_i_ii(s7_int i1
, s7_int i2
) {return(tcflow(i1
, i2
));}
3388 static s7_pointer
g_cfgetospeed(s7_scheme
*sc
, s7_pointer args
)
3391 p
= (struct termios
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "termios*"), __func__
, 1);
3392 return(s7_make_integer(sc
, (s7_int
)cfgetospeed(p
)));
3394 static s7_pointer
g_cfgetispeed(s7_scheme
*sc
, s7_pointer args
)
3397 p
= (struct termios
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "termios*"), __func__
, 1);
3398 return(s7_make_integer(sc
, (s7_int
)cfgetispeed(p
)));
3400 static s7_pointer
g_cfsetospeed(s7_scheme
*sc
, s7_pointer args
)
3403 p
= (struct termios
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "termios*"), __func__
, 1);
3404 return(s7_make_integer(sc
, cfsetospeed(p
, (speed_t
)s7_integer(s7_cadr(args
)))));
3406 static s7_pointer
g_cfsetispeed(s7_scheme
*sc
, s7_pointer args
)
3409 p
= (struct termios
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "termios*"), __func__
, 1);
3410 return(s7_make_integer(sc
, cfsetispeed(p
, (speed_t
)s7_integer(s7_cadr(args
)))));
3412 static s7_pointer
g_tcgetattr(s7_scheme
*sc
, s7_pointer args
)
3415 p
= (struct termios
*)s7_c_pointer_with_type(sc
, s7_cadr(args
), s7_make_symbol(sc
, "termios*"), __func__
, 1);
3416 return(s7_make_integer(sc
, tcgetattr(s7_integer(s7_car(args
)), p
)));
3418 static s7_pointer
g_tcsetattr(s7_scheme
*sc
, s7_pointer args
)
3421 p
= (struct termios
*)s7_c_pointer_with_type(sc
, s7_caddr(args
), s7_make_symbol(sc
, "termios*"), __func__
, 1);
3422 return(s7_make_integer(sc
, tcsetattr(s7_integer(s7_car(args
)), s7_integer(s7_cadr(args
)), p
)));
3424 static s7_pointer
g_termios_make(s7_scheme
*sc
, s7_pointer args
)
3425 {return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(struct termios
)), s7_make_symbol(sc
, "termios*"), s7_f(sc
)));}
3427 static s7_pointer
g_termios_c_lflag(s7_scheme
*sc
, s7_pointer args
)
3430 p
= (struct termios
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "termios*"), __func__
, 1);
3431 return(s7_make_integer(sc
, (s7_int
)(p
->c_lflag
)));
3433 static s7_pointer
g_termios_set_c_lflag(s7_scheme
*sc
, s7_pointer args
)
3436 p
= (struct termios
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "termios*"), __func__
, 1);
3437 p
->c_lflag
= (tcflag_t
)s7_integer(s7_cadr(args
));
3438 return(s7_cadr(args
));
3440 static s7_pointer
g_termios_set_c_cc(s7_scheme
*sc
, s7_pointer args
)
3443 p
= (struct termios
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "termios*"), __func__
, 1);
3444 p
->c_cc
[(int)s7_integer(s7_cadr(args
))] = (cc_t
)s7_integer(s7_caddr(args
));
3445 return(s7_caddr(args
));
3448 static s7_pointer
g_getgrgid(s7_scheme
*sc
, s7_pointer args
)
3449 {return(s7_make_c_pointer_with_type(sc
, getgrgid(s7_integer(s7_car(args
))), s7_make_symbol(sc
, "group*"), s7_f(sc
)));}
3450 static s7_pointer
g_getgrnam(s7_scheme
*sc
, s7_pointer args
)
3451 {return(s7_make_c_pointer_with_type(sc
, getgrnam(s7_string(s7_car(args
))), s7_make_symbol(sc
, "group*"), s7_f(sc
)));}
3452 static s7_pointer
g_group_gr_name(s7_scheme
*sc
, s7_pointer args
)
3455 g
= (struct group
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "group*"), __func__
, 1);
3456 if (!g
) return(s7_make_string(sc
, ""));
3457 return(s7_make_string(sc
, ((struct group
*)g
)->gr_name
));
3459 static s7_pointer
g_group_gr_passwd(s7_scheme
*sc
, s7_pointer args
)
3462 g
= (struct group
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "group*"), __func__
, 1);
3463 if (!g
) return(s7_make_string(sc
, ""));
3464 return(s7_make_string(sc
, ((struct group
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "group*"), __func__
, 1))->gr_passwd
));
3466 static s7_pointer
g_group_gr_gid(s7_scheme
*sc
, s7_pointer args
)
3469 g
= (struct group
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "group*"), __func__
, 1);
3470 if (!g
) return(s7_make_integer(sc
, -1));
3471 return(s7_make_integer(sc
, (s7_int
)(((struct group
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "group*"), __func__
, 1))->gr_gid
)));
3473 static s7_pointer
g_group_gr_mem(s7_scheme
*sc
, s7_pointer args
)
3478 g
= (struct group
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "group*"), __func__
, 1);
3480 for (i
= 0; g
->gr_mem
[i
]; i
++)
3481 p
= s7_cons(sc
, s7_make_string(sc
, g
->gr_mem
[i
]), p
);
3486 /* -------- setpwent -------- */
3487 static s7_pointer
s7__setpwent(s7_scheme
*sc
, s7_pointer args
)
3490 return(s7_unspecified(sc
));
3494 /* -------- endpwent -------- */
3495 static s7_pointer
s7__endpwent(s7_scheme
*sc
, s7_pointer args
)
3498 return(s7_unspecified(sc
));
3502 /* -------- getpwent -------- */
3503 static s7_pointer
s7__getpwent(s7_scheme
*sc
, s7_pointer args
)
3505 return(s7_make_c_pointer_with_type(sc
, (void*)getpwent(), passwd__symbol
, s7_f(sc
)));
3509 /* -------- getpwuid -------- */
3510 static s7_pointer
s7__getpwuid(s7_scheme
*sc
, s7_pointer args
)
3516 if (s7_is_integer(arg
))
3517 s7__getpwuid_0
= (int)s7_integer(arg
);
3518 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
3519 return(s7_make_c_pointer_with_type(sc
, (void*)getpwuid(s7__getpwuid_0
), passwd__symbol
, s7_f(sc
)));
3523 /* -------- getpwnam -------- */
3524 static s7_pointer
s7__getpwnam(s7_scheme
*sc
, s7_pointer args
)
3527 char* s7__getpwnam_0
;
3530 if (s7_is_string(arg
))
3531 s7__getpwnam_0
= (char*)s7_string(arg
);
3532 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
3533 return(s7_make_c_pointer_with_type(sc
, (void*)getpwnam(s7__getpwnam_0
), passwd__symbol
, s7_f(sc
)));
3536 static s7_pointer
g_passwd_pw_name(s7_scheme
*sc
, s7_pointer args
)
3537 {return(s7_make_string(sc
, ((struct passwd
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "passwd*"), __func__
, 1))->pw_name
));}
3538 static s7_pointer
g_passwd_pw_passwd(s7_scheme
*sc
, s7_pointer args
)
3539 {return(s7_make_string(sc
, ((struct passwd
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "passwd*"), __func__
, 1))->pw_passwd
));}
3540 static s7_pointer
g_passwd_pw_uid(s7_scheme
*sc
, s7_pointer args
)
3541 {return(s7_make_integer(sc
, ((struct passwd
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "passwd*"), __func__
, 1))->pw_uid
));}
3542 static s7_pointer
g_passwd_pw_gid(s7_scheme
*sc
, s7_pointer args
)
3543 {return(s7_make_integer(sc
, ((struct passwd
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "passwd*"), __func__
, 1))->pw_gid
));}
3544 static s7_pointer
g_passwd_pw_gecos(s7_scheme
*sc
, s7_pointer args
)
3545 {return(s7_make_string(sc
, ((struct passwd
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "passwd*"), __func__
, 1))->pw_gecos
));}
3546 static s7_pointer
g_passwd_pw_dir(s7_scheme
*sc
, s7_pointer args
)
3547 {return(s7_make_string(sc
, ((struct passwd
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "passwd*"), __func__
, 1))->pw_dir
));}
3548 static s7_pointer
g_passwd_pw_shell(s7_scheme
*sc
, s7_pointer args
)
3549 {return(s7_make_string(sc
, ((struct passwd
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "passwd*"), __func__
, 1))->pw_shell
));}
3552 /* -------- wordexp -------- */
3553 static s7_pointer
s7__wordexp(s7_scheme
*sc
, s7_pointer args
)
3556 char* s7__wordexp_0
;
3557 wordexp_t
* s7__wordexp_1
;
3561 if (s7_is_string(arg
))
3562 s7__wordexp_0
= (char*)s7_string(arg
);
3563 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
3566 s7__wordexp_1
= (wordexp_t
*)s7_c_pointer_with_type(sc
, arg
, wordexp_t__symbol
, __func__
, 2);
3569 if (s7_is_integer(arg
))
3570 s7__wordexp_2
= (int)s7_integer(arg
);
3571 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
3572 return(s7_make_integer(sc
, (s7_int
)wordexp(s7__wordexp_0
, s7__wordexp_1
, s7__wordexp_2
)));
3576 /* -------- wordfree -------- */
3577 static s7_pointer
s7__wordfree(s7_scheme
*sc
, s7_pointer args
)
3580 wordexp_t
* s7__wordfree_0
;
3583 s7__wordfree_0
= (wordexp_t
*)s7_c_pointer_with_type(sc
, arg
, wordexp_t__symbol
, __func__
, 0);
3584 wordfree(s7__wordfree_0
);
3585 return(s7_unspecified(sc
));
3588 static s7_pointer
g_wordexp_make(s7_scheme
*sc
, s7_pointer args
)
3589 {return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(wordexp_t
)), s7_make_symbol(sc
, "wordexp_t*"), s7_f(sc
)));}
3590 static s7_pointer
g_wordexp_we_wordc(s7_scheme
*sc
, s7_pointer args
)
3591 {return(s7_make_integer(sc
, ((wordexp_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "wordexp_t*"), __func__
, 1))->we_wordc
));}
3592 static s7_pointer
g_wordexp_we_wordv(s7_scheme
*sc
, s7_pointer args
)
3597 g
= (wordexp_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "wordexp_t*"), __func__
, 1);
3599 for (i
= 0; i
< g
->we_wordc
; i
++)
3600 p
= s7_cons(sc
, s7_make_string(sc
, g
->we_wordv
[i
]), p
);
3604 /* -------- globfree -------- */
3605 static s7_pointer
s7__globfree(s7_scheme
*sc
, s7_pointer args
)
3608 glob_t
* s7__globfree_0
;
3611 s7__globfree_0
= (glob_t
*)s7_c_pointer_with_type(sc
, arg
, glob_t__symbol
, __func__
, 0);
3612 globfree(s7__globfree_0
);
3613 return(s7_unspecified(sc
));
3616 static s7_pointer
g_glob_make(s7_scheme
*sc
, s7_pointer args
)
3617 {return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(glob_t
)), s7_make_symbol(sc
, "glob_t*"), s7_f(sc
)));}
3618 static s7_pointer
g_glob_gl_pathc(s7_scheme
*sc
, s7_pointer args
)
3619 {return(s7_make_integer(sc
, ((glob_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "glob_t*"), __func__
, 1))->gl_pathc
));}
3620 static s7_pointer
g_glob(s7_scheme
*sc
, s7_pointer args
)
3621 {return(s7_make_integer(sc
, glob(s7_string(s7_car(args
)), s7_integer(s7_cadr(args
)), NULL
,
3622 (glob_t
*)s7_c_pointer_with_type(sc
, s7_caddr(args
), s7_make_symbol(sc
, "glob_t*"), __func__
, 1))));}
3623 static s7_pointer
g_glob_gl_pathv(s7_scheme
*sc
, s7_pointer args
)
3628 g
= (glob_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "glob_t*"), __func__
, 1);
3630 for (i
= 0; i
< g
->gl_pathc
; i
++)
3631 p
= s7_cons(sc
, s7_make_string(sc
, g
->gl_pathv
[i
]), p
);
3635 /* -------- kill -------- */
3636 static s7_pointer
s7__kill(s7_scheme
*sc
, s7_pointer args
)
3643 if (s7_is_integer(arg
))
3644 s7__kill_0
= (int)s7_integer(arg
);
3645 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
3648 if (s7_is_integer(arg
))
3649 s7__kill_1
= (int)s7_integer(arg
);
3650 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3651 return(s7_make_integer(sc
, (s7_int
)kill(s7__kill_0
, s7__kill_1
)));
3653 static s7_int
kill_i_ii(s7_int i1
, s7_int i2
) {return(kill(i1
, i2
));}
3656 /* -------- raise -------- */
3657 static s7_pointer
s7__raise(s7_scheme
*sc
, s7_pointer args
)
3663 if (s7_is_integer(arg
))
3664 s7__raise_0
= (int)s7_integer(arg
);
3665 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
3666 return(s7_make_integer(sc
, (s7_int
)raise(s7__raise_0
)));
3668 static s7_int
raise_i_i(s7_int i1
) {return(raise(i1
));}
3671 /* -------- sigemptyset -------- */
3672 static s7_pointer
s7__sigemptyset(s7_scheme
*sc
, s7_pointer args
)
3675 sigset_t
* s7__sigemptyset_0
;
3678 s7__sigemptyset_0
= (sigset_t
*)s7_c_pointer_with_type(sc
, arg
, sigset_t__symbol
, __func__
, 0);
3679 return(s7_make_integer(sc
, (s7_int
)sigemptyset(s7__sigemptyset_0
)));
3683 /* -------- sigfillset -------- */
3684 static s7_pointer
s7__sigfillset(s7_scheme
*sc
, s7_pointer args
)
3687 sigset_t
* s7__sigfillset_0
;
3690 s7__sigfillset_0
= (sigset_t
*)s7_c_pointer_with_type(sc
, arg
, sigset_t__symbol
, __func__
, 0);
3691 return(s7_make_integer(sc
, (s7_int
)sigfillset(s7__sigfillset_0
)));
3695 /* -------- sigaddset -------- */
3696 static s7_pointer
s7__sigaddset(s7_scheme
*sc
, s7_pointer args
)
3699 sigset_t
* s7__sigaddset_0
;
3700 int s7__sigaddset_1
;
3703 s7__sigaddset_0
= (sigset_t
*)s7_c_pointer_with_type(sc
, arg
, sigset_t__symbol
, __func__
, 1);
3706 if (s7_is_integer(arg
))
3707 s7__sigaddset_1
= (int)s7_integer(arg
);
3708 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3709 return(s7_make_integer(sc
, (s7_int
)sigaddset(s7__sigaddset_0
, s7__sigaddset_1
)));
3713 /* -------- sigdelset -------- */
3714 static s7_pointer
s7__sigdelset(s7_scheme
*sc
, s7_pointer args
)
3717 sigset_t
* s7__sigdelset_0
;
3718 int s7__sigdelset_1
;
3721 s7__sigdelset_0
= (sigset_t
*)s7_c_pointer_with_type(sc
, arg
, sigset_t__symbol
, __func__
, 1);
3724 if (s7_is_integer(arg
))
3725 s7__sigdelset_1
= (int)s7_integer(arg
);
3726 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3727 return(s7_make_integer(sc
, (s7_int
)sigdelset(s7__sigdelset_0
, s7__sigdelset_1
)));
3731 /* -------- sigismember -------- */
3732 static s7_pointer
s7__sigismember(s7_scheme
*sc
, s7_pointer args
)
3735 sigset_t
* s7__sigismember_0
;
3736 int s7__sigismember_1
;
3739 s7__sigismember_0
= (sigset_t
*)s7_c_pointer_with_type(sc
, arg
, sigset_t__symbol
, __func__
, 1);
3742 if (s7_is_integer(arg
))
3743 s7__sigismember_1
= (int)s7_integer(arg
);
3744 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3745 return(s7_make_integer(sc
, (s7_int
)sigismember(s7__sigismember_0
, s7__sigismember_1
)));
3749 /* -------- sigprocmask -------- */
3750 static s7_pointer
s7__sigprocmask(s7_scheme
*sc
, s7_pointer args
)
3753 int s7__sigprocmask_0
;
3754 sigset_t
* s7__sigprocmask_1
;
3755 sigset_t
* s7__sigprocmask_2
;
3758 if (s7_is_integer(arg
))
3759 s7__sigprocmask_0
= (int)s7_integer(arg
);
3760 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
3763 s7__sigprocmask_1
= (sigset_t
*)s7_c_pointer_with_type(sc
, arg
, sigset_t__symbol
, __func__
, 2);
3766 s7__sigprocmask_2
= (sigset_t
*)s7_c_pointer_with_type(sc
, arg
, sigset_t__symbol
, __func__
, 3);
3767 return(s7_make_integer(sc
, (s7_int
)sigprocmask(s7__sigprocmask_0
, s7__sigprocmask_1
, s7__sigprocmask_2
)));
3771 /* -------- sigsuspend -------- */
3772 static s7_pointer
s7__sigsuspend(s7_scheme
*sc
, s7_pointer args
)
3775 sigset_t
* s7__sigsuspend_0
;
3778 s7__sigsuspend_0
= (sigset_t
*)s7_c_pointer_with_type(sc
, arg
, sigset_t__symbol
, __func__
, 0);
3779 return(s7_make_integer(sc
, (s7_int
)sigsuspend(s7__sigsuspend_0
)));
3783 /* -------- sigpending -------- */
3784 static s7_pointer
s7__sigpending(s7_scheme
*sc
, s7_pointer args
)
3787 sigset_t
* s7__sigpending_0
;
3790 s7__sigpending_0
= (sigset_t
*)s7_c_pointer_with_type(sc
, arg
, sigset_t__symbol
, __func__
, 0);
3791 return(s7_make_integer(sc
, (s7_int
)sigpending(s7__sigpending_0
)));
3795 /* -------- getpriority -------- */
3796 static s7_pointer
s7__getpriority(s7_scheme
*sc
, s7_pointer args
)
3799 int s7__getpriority_0
;
3800 int s7__getpriority_1
;
3803 if (s7_is_integer(arg
))
3804 s7__getpriority_0
= (int)s7_integer(arg
);
3805 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
3808 if (s7_is_integer(arg
))
3809 s7__getpriority_1
= (int)s7_integer(arg
);
3810 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3811 return(s7_make_integer(sc
, (s7_int
)getpriority(s7__getpriority_0
, s7__getpriority_1
)));
3813 static s7_int
getpriority_i_ii(s7_int i1
, s7_int i2
) {return(getpriority(i1
, i2
));}
3816 /* -------- setpriority -------- */
3817 static s7_pointer
s7__setpriority(s7_scheme
*sc
, s7_pointer args
)
3820 int s7__setpriority_0
;
3821 int s7__setpriority_1
;
3822 int s7__setpriority_2
;
3825 if (s7_is_integer(arg
))
3826 s7__setpriority_0
= (int)s7_integer(arg
);
3827 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
3830 if (s7_is_integer(arg
))
3831 s7__setpriority_1
= (int)s7_integer(arg
);
3832 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
3835 if (s7_is_integer(arg
))
3836 s7__setpriority_2
= (int)s7_integer(arg
);
3837 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
3838 return(s7_make_integer(sc
, (s7_int
)setpriority(s7__setpriority_0
, s7__setpriority_1
, s7__setpriority_2
)));
3841 static s7_pointer
g_rlimit_make(s7_scheme
*sc
, s7_pointer args
)
3842 {return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(struct rlimit
)), s7_make_symbol(sc
, "rlimit*"), s7_f(sc
)));}
3843 static s7_pointer
g_rlimit_rlim_cur(s7_scheme
*sc
, s7_pointer args
)
3844 {return(s7_make_integer(sc
, ((struct rlimit
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "rlimit*"), __func__
, 1))->rlim_cur
));}
3845 static s7_pointer
g_rlimit_rlim_max(s7_scheme
*sc
, s7_pointer args
)
3846 {return(s7_make_integer(sc
, ((struct rlimit
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "rlimit*"), __func__
, 1))->rlim_max
));}
3848 static s7_pointer
g_rusage_make(s7_scheme
*sc
, s7_pointer args
)
3849 {return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(struct rusage
)), s7_make_symbol(sc
, "rusage*"), s7_f(sc
)));}
3850 static s7_pointer
g_rusage_ru_maxrss(s7_scheme
*sc
, s7_pointer args
)
3851 {return(s7_make_integer(sc
, ((struct rusage
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "rusage*"), __func__
, 1))->ru_maxrss
));}
3852 static s7_pointer
g_rusage_ru_minflt(s7_scheme
*sc
, s7_pointer args
)
3853 {return(s7_make_integer(sc
, ((struct rusage
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "rusage*"), __func__
, 1))->ru_minflt
));}
3854 static s7_pointer
g_rusage_ru_majflt(s7_scheme
*sc
, s7_pointer args
)
3855 {return(s7_make_integer(sc
, ((struct rusage
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "rusage*"), __func__
, 1))->ru_majflt
));}
3856 static s7_pointer
g_rusage_ru_inblock(s7_scheme
*sc
, s7_pointer args
)
3857 {return(s7_make_integer(sc
, ((struct rusage
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "rusage*"), __func__
, 1))->ru_inblock
));}
3858 static s7_pointer
g_rusage_ru_oublock(s7_scheme
*sc
, s7_pointer args
)
3859 {return(s7_make_integer(sc
, ((struct rusage
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "rusage*"), __func__
, 1))->ru_oublock
));}
3860 static s7_pointer
g_rusage_ru_nvcsw(s7_scheme
*sc
, s7_pointer args
)
3861 {return(s7_make_integer(sc
, ((struct rusage
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "rusage*"), __func__
, 1))->ru_nvcsw
));}
3862 static s7_pointer
g_rusage_ru_nivcsw(s7_scheme
*sc
, s7_pointer args
)
3863 {return(s7_make_integer(sc
, ((struct rusage
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "rusage*"), __func__
, 1))->ru_nivcsw
));}
3864 static s7_pointer
g_rusage_ru_utime(s7_scheme
*sc
, s7_pointer args
)
3865 {return(s7_make_c_pointer(sc
, &(((struct rusage
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "rusage*"), __func__
, 1))->ru_utime
)));}
3866 static s7_pointer
g_rusage_ru_stime(s7_scheme
*sc
, s7_pointer args
)
3867 {return(s7_make_c_pointer(sc
, &(((struct rusage
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "rusage*"), __func__
, 1))->ru_stime
)));}
3868 static s7_pointer
g_getrusage(s7_scheme
*sc
, s7_pointer args
)
3869 {return(s7_make_integer(sc
, getrusage(s7_integer(s7_car(args
)),
3870 (struct rusage
*)s7_c_pointer_with_type(sc
, s7_cadr(args
), s7_make_symbol(sc
, "rusage*"), __func__
, 1))));}
3872 static s7_pointer
g_sigset_make(s7_scheme
*sc
, s7_pointer args
)
3873 {return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(sigset_t
)), s7_make_symbol(sc
, "sigset_t*"), s7_f(sc
)));}
3876 static s7_pointer
g_WEXITSTATUS(s7_scheme
*sc
, s7_pointer args
)
3877 {return(s7_make_integer(sc
, WEXITSTATUS(s7_integer(s7_car(args
)))));}
3878 static s7_pointer
g_WTERMSIG(s7_scheme
*sc
, s7_pointer args
)
3879 {return(s7_make_integer(sc
, WTERMSIG(s7_integer(s7_car(args
)))));}
3880 static s7_pointer
g_WSTOPSIG(s7_scheme
*sc
, s7_pointer args
)
3881 {return(s7_make_integer(sc
, WSTOPSIG(s7_integer(s7_car(args
)))));}
3882 static s7_pointer
g_WIFEXITED(s7_scheme
*sc
, s7_pointer args
)
3883 {return(s7_make_integer(sc
, WIFEXITED(s7_integer(s7_car(args
)))));}
3884 static s7_pointer
g_WIFSIGNALED(s7_scheme
*sc
, s7_pointer args
)
3885 {return(s7_make_integer(sc
, WIFSIGNALED(s7_integer(s7_car(args
)))));}
3886 static s7_pointer
g_WIFSTOPPED(s7_scheme
*sc
, s7_pointer args
)
3887 {return(s7_make_integer(sc
, WIFSTOPPED(s7_integer(s7_car(args
)))));}
3890 static s7_pointer
g_wait(s7_scheme
*sc
, s7_pointer args
)
3893 result
= wait(&status
);
3894 return(s7_list(sc
, 2, s7_make_integer(sc
, result
), s7_make_integer(sc
, status
)));
3896 static s7_pointer
g_waitpid(s7_scheme
*sc
, s7_pointer args
)
3899 result
= waitpid((pid_t
)s7_integer(s7_car(args
)), &status
, s7_integer(s7_cadr(args
)));
3900 return(s7_list(sc
, 2, s7_make_integer(sc
, result
), s7_make_integer(sc
, status
)));
3902 static s7_pointer
g_sigqueue(s7_scheme
*sc
, s7_pointer args
)
3906 if (s7_is_integer(s7_caddr(args
)))
3907 val
.sival_int
= (int)s7_integer(s7_caddr(args
));
3908 else val
.sival_ptr
= (void *)s7_c_pointer(s7_caddr(args
));
3909 return(s7_make_integer(sc
, sigqueue((pid_t
)s7_integer(s7_car(args
)), s7_integer(s7_cadr(args
)), val
)));
3914 static s7_pointer
g_sigwait(s7_scheme
*sc
, s7_pointer args
)
3918 result
= sigwait((const sigset_t
*)s7_c_pointer(s7_car(args
)), &status
);
3919 return(s7_list(sc
, 2, s7_make_integer(sc
, result
), s7_make_integer(sc
, status
)));
3924 static s7_pointer
g_sigtimedwait(s7_scheme
*sc
, s7_pointer args
)
3927 return(s7_make_integer(sc
, sigtimedwait((const sigset_t
*)s7_c_pointer(s7_car(args
)),
3928 (siginfo_t
*)s7_c_pointer(s7_cadr(args
)),
3929 (const struct timespec
*)s7_c_pointer(s7_caddr(args
)))));
3935 static s7_pointer
g_siginfo_make(s7_scheme
*sc
, s7_pointer args
)
3936 {return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(siginfo_t
)), s7_make_symbol(sc
, "siginfo_t*"), s7_f(sc
)));}
3937 static s7_pointer
g_siginfo_si_signo(s7_scheme
*sc
, s7_pointer args
)
3938 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_signo
));}
3939 static s7_pointer
g_siginfo_si_errno(s7_scheme
*sc
, s7_pointer args
)
3940 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_errno
));}
3941 static s7_pointer
g_siginfo_si_code(s7_scheme
*sc
, s7_pointer args
)
3942 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_code
));}
3943 static s7_pointer
g_siginfo_si_pid(s7_scheme
*sc
, s7_pointer args
)
3944 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_pid
));}
3945 static s7_pointer
g_siginfo_si_uid(s7_scheme
*sc
, s7_pointer args
)
3946 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_uid
));}
3947 static s7_pointer
g_siginfo_si_status(s7_scheme
*sc
, s7_pointer args
)
3948 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_status
));}
3949 static s7_pointer
g_siginfo_si_utime(s7_scheme
*sc
, s7_pointer args
)
3950 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_utime
));}
3951 static s7_pointer
g_siginfo_si_stime(s7_scheme
*sc
, s7_pointer args
)
3952 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_stime
));}
3953 static s7_pointer
g_siginfo_si_value(s7_scheme
*sc
, s7_pointer args
)
3954 {return(s7_make_c_pointer(sc
, &(((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_value
)));}
3955 static s7_pointer
g_siginfo_si_int(s7_scheme
*sc
, s7_pointer args
)
3956 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_int
));}
3957 static s7_pointer
g_siginfo_si_overrun(s7_scheme
*sc
, s7_pointer args
)
3958 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_overrun
));}
3959 static s7_pointer
g_siginfo_si_timerid(s7_scheme
*sc
, s7_pointer args
)
3960 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_timerid
));}
3961 static s7_pointer
g_siginfo_si_band(s7_scheme
*sc
, s7_pointer args
)
3962 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_band
));}
3963 static s7_pointer
g_siginfo_si_fd(s7_scheme
*sc
, s7_pointer args
)
3964 {return(s7_make_integer(sc
, ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_fd
));}
3965 static s7_pointer
g_siginfo_si_ptr(s7_scheme
*sc
, s7_pointer args
)
3966 {return(s7_make_c_pointer_with_type(sc
,
3967 ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_ptr
,
3968 s7_make_symbol(sc
, "siginfo_t*"), s7_f(sc
)));}
3969 static s7_pointer
g_siginfo_si_addr(s7_scheme
*sc
, s7_pointer args
)
3970 {return(s7_make_c_pointer_with_type(sc
,
3971 ((siginfo_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "siginfo_t*"), __func__
, 1))->si_addr
,
3972 s7_make_symbol(sc
, "siginfo_t*"), s7_f(sc
)));}
3975 static s7_pointer
g_timespec_make(s7_scheme
*sc
, s7_pointer args
)
3976 {return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(struct timespec
)), s7_make_symbol(sc
, "timespec*"), s7_f(sc
)));}
3977 static s7_pointer
g_timespec_tv_sec(s7_scheme
*sc
, s7_pointer args
)
3978 {return(s7_make_integer(sc
, ((struct timespec
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "timespec*"), __func__
, 1))->tv_sec
));}
3979 static s7_pointer
g_timespec_tv_nsec(s7_scheme
*sc
, s7_pointer args
)
3980 {return(s7_make_integer(sc
, ((struct timespec
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "timespec*"), __func__
, 1))->tv_nsec
));}
3982 static s7_pointer
g_sigaction_make(s7_scheme
*sc
, s7_pointer args
)
3983 {return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(struct sigaction
)), s7_make_symbol(sc
, "sigaction*"), s7_f(sc
)));}
3984 static s7_pointer
g_sigaction_sa_flags(s7_scheme
*sc
, s7_pointer args
)
3985 {return(s7_make_integer(sc
, ((struct sigaction
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "sigaction*"), __func__
, 1))->sa_flags
));}
3986 static s7_pointer
g_sigaction_set_sa_flags(s7_scheme
*sc
, s7_pointer args
)
3987 {((struct sigaction
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "sigaction*"), __func__
, 1))->sa_flags
= s7_integer(s7_cadr(args
)); return(s7_cadr(args
));}
3988 static s7_pointer
g_sigaction_sa_mask(s7_scheme
*sc
, s7_pointer args
)
3989 {return(s7_make_c_pointer_with_type(sc
, (void *)(&(((struct sigaction
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "sigaction*"), __func__
, 1))->sa_mask
)), s7_make_symbol(sc
, "sigset_t*"), s7_f(sc
)));}
3990 static s7_pointer
g_sigaction_sa_handler(s7_scheme
*sc
, s7_pointer args
)
3991 {return(s7_make_c_pointer(sc
, (void *)(((struct sigaction
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "sigaction*"), __func__
, 1))->sa_handler
)));}
3993 static s7_pointer sighandlers
= NULL
;
3994 static s7_scheme
*sighandlers_s7
= NULL
;
3995 static void s7_signal_handler(int sig
)
4000 handler
= s7_vector_ref(sighandlers_s7
, sighandlers
, sig
);
4001 if (handler
!= s7_nil(sighandlers_s7
))
4002 s7_call(sighandlers_s7
, handler
, s7_cons(sighandlers_s7
, s7_make_integer(sighandlers_s7
, sig
), s7_nil(sighandlers_s7
)));
4006 #define SIGUNUSED 65
4008 static s7_pointer
g_sigaction_set_sa_handler(s7_scheme
*sc
, s7_pointer args
)
4010 /* (sigaction.set_sa_handler ptr handler) */
4013 sighandlers_s7
= sc
;
4014 sighandlers
= s7_make_and_fill_vector(sc
, SIGUNUSED
+ 1, s7_nil(sc
));
4015 s7_gc_protect(sc
, sighandlers
);
4017 if (s7_is_c_pointer(s7_cadr(args
)))
4019 if (s7_c_pointer(s7_cadr(args
)) == (void *)SIG_DFL
)
4020 ((struct sigaction
*)s7_c_pointer(s7_car(args
)))->sa_handler
= SIG_DFL
;
4023 if (s7_c_pointer(s7_cadr(args
)) == (void *)SIG_IGN
)
4024 ((struct sigaction
*)s7_c_pointer(s7_car(args
)))->sa_handler
= SIG_IGN
;
4028 ((struct sigaction
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "sigaction*"), __func__
, 1))->sa_handler
= s7_signal_handler
;
4029 s7_vector_set(sighandlers_s7
, sighandlers
, SIGUNUSED
,
4030 s7_cons(sc
, s7_cons(sc
, s7_car(args
), s7_cadr(args
)), s7_vector_ref(sighandlers_s7
, sighandlers
, SIGUNUSED
)));
4032 return(s7_cadr(args
));
4034 static s7_pointer
g_sigaction(s7_scheme
*sc
, s7_pointer args
)
4037 const struct sigaction
*new_act
;
4038 struct sigaction
*old_act
;
4040 sig
= (int)s7_integer(s7_car(args
));
4041 new_act
= (const struct sigaction
*)s7_c_pointer_with_type(sc
, s7_cadr(args
), s7_make_symbol(sc
, "sigaction*"), __func__
, 1);
4042 old_act
= (struct sigaction
*)s7_c_pointer_with_type(sc
, s7_caddr(args
), s7_make_symbol(sc
, "sigaction*"), __func__
, 1);
4043 if (s7_is_pair(s7_vector_ref(sighandlers_s7
, sighandlers
, SIGUNUSED
)))
4045 handler
= s7_assq(sc
, s7_cadr(args
), s7_vector_ref(sighandlers_s7
, sighandlers
, SIGUNUSED
));
4046 if (s7_is_pair(handler
))
4047 s7_vector_set(sighandlers_s7
, sighandlers
, sig
, s7_cdr(handler
));
4049 return(s7_make_integer(sc
, sigaction(sig
, new_act
, old_act
)));
4051 static s7_pointer
g_signal(s7_scheme
*sc
, s7_pointer args
)
4056 sighandlers_s7
= sc
;
4057 sighandlers
= s7_make_and_fill_vector(sc
, SIGUNUSED
+ 1, s7_nil(sc
));
4058 s7_gc_protect(sc
, sighandlers
);
4060 sig
= s7_integer(s7_car(args
));
4061 if (s7_is_c_pointer(s7_cadr(args
)))
4063 if (s7_c_pointer(s7_cadr(args
)) == (void *)SIG_DFL
)
4064 return(s7_make_c_pointer(sc
, (void *)signal(sig
, SIG_DFL
)));
4065 if (s7_c_pointer(s7_cadr(args
)) == (void *)SIG_IGN
)
4066 return(s7_make_c_pointer(sc
, (void *)signal(sig
, SIG_IGN
)));
4068 s7_vector_set(sc
, sighandlers
, sig
, s7_cadr(args
));
4069 return(s7_make_c_pointer(sc
, (void *)signal(sig
, s7_signal_handler
)));
4073 /* -------- getrlimit -------- */
4074 static s7_pointer
s7__getrlimit(s7_scheme
*sc
, s7_pointer args
)
4077 int s7__getrlimit_0
;
4078 struct rlimit
* s7__getrlimit_1
;
4081 if (s7_is_integer(arg
))
4082 s7__getrlimit_0
= (int)s7_integer(arg
);
4083 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4086 s7__getrlimit_1
= (struct rlimit
*)s7_c_pointer_with_type(sc
, arg
, struct_rlimit__symbol
, __func__
, 2);
4087 return(s7_make_integer(sc
, (s7_int
)getrlimit(s7__getrlimit_0
, s7__getrlimit_1
)));
4091 /* -------- setrlimit -------- */
4092 static s7_pointer
s7__setrlimit(s7_scheme
*sc
, s7_pointer args
)
4095 int s7__setrlimit_0
;
4096 struct rlimit
* s7__setrlimit_1
;
4099 if (s7_is_integer(arg
))
4100 s7__setrlimit_0
= (int)s7_integer(arg
);
4101 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4104 s7__setrlimit_1
= (struct rlimit
*)s7_c_pointer_with_type(sc
, arg
, struct_rlimit__symbol
, __func__
, 2);
4105 return(s7_make_integer(sc
, (s7_int
)setrlimit(s7__setrlimit_0
, s7__setrlimit_1
)));
4109 /* -------- sigwaitinfo -------- */
4110 static s7_pointer
s7__sigwaitinfo(s7_scheme
*sc
, s7_pointer args
)
4113 sigset_t
* s7__sigwaitinfo_0
;
4114 siginfo_t
* s7__sigwaitinfo_1
;
4117 s7__sigwaitinfo_0
= (sigset_t
*)s7_c_pointer_with_type(sc
, arg
, sigset_t__symbol
, __func__
, 1);
4120 s7__sigwaitinfo_1
= (siginfo_t
*)s7_c_pointer_with_type(sc
, arg
, siginfo_t__symbol
, __func__
, 2);
4121 return(s7_make_integer(sc
, (s7_int
)sigwaitinfo(s7__sigwaitinfo_0
, s7__sigwaitinfo_1
)));
4125 /* -------- waitid -------- */
4126 static s7_pointer
s7__waitid(s7_scheme
*sc
, s7_pointer args
)
4129 idtype_t s7__waitid_0
;
4131 siginfo_t
* s7__waitid_2
;
4135 if (s7_is_integer(arg
))
4136 s7__waitid_0
= (idtype_t
)s7_integer(arg
);
4137 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4140 if (s7_is_integer(arg
))
4141 s7__waitid_1
= (int)s7_integer(arg
);
4142 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
4145 s7__waitid_2
= (siginfo_t
*)s7_c_pointer_with_type(sc
, arg
, siginfo_t__symbol
, __func__
, 3);
4148 if (s7_is_integer(arg
))
4149 s7__waitid_3
= (int)s7_integer(arg
);
4150 else return(s7_wrong_type_arg_error(sc
, __func__
, 4, arg
, "integer"));
4151 return(s7_make_integer(sc
, (s7_int
)waitid(s7__waitid_0
, s7__waitid_1
, s7__waitid_2
, s7__waitid_3
)));
4155 /* -------- gethostent -------- */
4156 static s7_pointer
s7__gethostent(s7_scheme
*sc
, s7_pointer args
)
4158 return(s7_make_c_pointer_with_type(sc
, (void*)gethostent(), hostent__symbol
, s7_f(sc
)));
4162 /* -------- setnetent -------- */
4163 static s7_pointer
s7__setnetent(s7_scheme
*sc
, s7_pointer args
)
4166 int s7__setnetent_0
;
4169 if (s7_is_integer(arg
))
4170 s7__setnetent_0
= (int)s7_integer(arg
);
4171 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
4172 setnetent(s7__setnetent_0
);
4173 return(s7_unspecified(sc
));
4177 /* -------- endnetent -------- */
4178 static s7_pointer
s7__endnetent(s7_scheme
*sc
, s7_pointer args
)
4181 return(s7_unspecified(sc
));
4185 /* -------- getnetent -------- */
4186 static s7_pointer
s7__getnetent(s7_scheme
*sc
, s7_pointer args
)
4188 return(s7_make_c_pointer_with_type(sc
, (void*)getnetent(), netent__symbol
, s7_f(sc
)));
4192 /* -------- getnetbyname -------- */
4193 static s7_pointer
s7__getnetbyname(s7_scheme
*sc
, s7_pointer args
)
4196 char* s7__getnetbyname_0
;
4199 if (s7_is_string(arg
))
4200 s7__getnetbyname_0
= (char*)s7_string(arg
);
4201 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
4202 return(s7_make_c_pointer_with_type(sc
, (void*)getnetbyname(s7__getnetbyname_0
), netent__symbol
, s7_f(sc
)));
4206 /* -------- getnetbyaddr -------- */
4207 static s7_pointer
s7__getnetbyaddr(s7_scheme
*sc
, s7_pointer args
)
4210 int s7__getnetbyaddr_0
;
4211 int s7__getnetbyaddr_1
;
4214 if (s7_is_integer(arg
))
4215 s7__getnetbyaddr_0
= (int)s7_integer(arg
);
4216 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4219 if (s7_is_integer(arg
))
4220 s7__getnetbyaddr_1
= (int)s7_integer(arg
);
4221 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
4222 return(s7_make_c_pointer_with_type(sc
, (void*)getnetbyaddr(s7__getnetbyaddr_0
, s7__getnetbyaddr_1
), netent__symbol
, s7_f(sc
)));
4226 /* -------- sethostent -------- */
4227 static s7_pointer
s7__sethostent(s7_scheme
*sc
, s7_pointer args
)
4230 int s7__sethostent_0
;
4233 if (s7_is_integer(arg
))
4234 s7__sethostent_0
= (int)s7_integer(arg
);
4235 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
4236 sethostent(s7__sethostent_0
);
4237 return(s7_unspecified(sc
));
4241 /* -------- endhostent -------- */
4242 static s7_pointer
s7__endhostent(s7_scheme
*sc
, s7_pointer args
)
4245 return(s7_unspecified(sc
));
4249 /* -------- setservent -------- */
4250 static s7_pointer
s7__setservent(s7_scheme
*sc
, s7_pointer args
)
4253 int s7__setservent_0
;
4256 if (s7_is_integer(arg
))
4257 s7__setservent_0
= (int)s7_integer(arg
);
4258 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
4259 setservent(s7__setservent_0
);
4260 return(s7_unspecified(sc
));
4264 /* -------- endservent -------- */
4265 static s7_pointer
s7__endservent(s7_scheme
*sc
, s7_pointer args
)
4268 return(s7_unspecified(sc
));
4272 /* -------- getservent -------- */
4273 static s7_pointer
s7__getservent(s7_scheme
*sc
, s7_pointer args
)
4275 return(s7_make_c_pointer_with_type(sc
, (void*)getservent(), servent__symbol
, s7_f(sc
)));
4279 /* -------- setprotoent -------- */
4280 static s7_pointer
s7__setprotoent(s7_scheme
*sc
, s7_pointer args
)
4283 int s7__setprotoent_0
;
4286 if (s7_is_integer(arg
))
4287 s7__setprotoent_0
= (int)s7_integer(arg
);
4288 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
4289 setprotoent(s7__setprotoent_0
);
4290 return(s7_unspecified(sc
));
4294 /* -------- endprotoent -------- */
4295 static s7_pointer
s7__endprotoent(s7_scheme
*sc
, s7_pointer args
)
4298 return(s7_unspecified(sc
));
4302 /* -------- getprotoent -------- */
4303 static s7_pointer
s7__getprotoent(s7_scheme
*sc
, s7_pointer args
)
4305 return(s7_make_c_pointer_with_type(sc
, (void*)getprotoent(), protoent__symbol
, s7_f(sc
)));
4309 /* -------- socket -------- */
4310 static s7_pointer
s7__socket(s7_scheme
*sc
, s7_pointer args
)
4318 if (s7_is_integer(arg
))
4319 s7__socket_0
= (int)s7_integer(arg
);
4320 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4323 if (s7_is_integer(arg
))
4324 s7__socket_1
= (int)s7_integer(arg
);
4325 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
4328 if (s7_is_integer(arg
))
4329 s7__socket_2
= (int)s7_integer(arg
);
4330 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
4331 return(s7_make_integer(sc
, (s7_int
)socket(s7__socket_0
, s7__socket_1
, s7__socket_2
)));
4335 /* -------- listen -------- */
4336 static s7_pointer
s7__listen(s7_scheme
*sc
, s7_pointer args
)
4343 if (s7_is_integer(arg
))
4344 s7__listen_0
= (int)s7_integer(arg
);
4345 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4348 if (s7_is_integer(arg
))
4349 s7__listen_1
= (int)s7_integer(arg
);
4350 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
4351 return(s7_make_integer(sc
, (s7_int
)listen(s7__listen_0
, s7__listen_1
)));
4353 static s7_int
listen_i_ii(s7_int i1
, s7_int i2
) {return(listen(i1
, i2
));}
4356 /* -------- shutdown -------- */
4357 static s7_pointer
s7__shutdown(s7_scheme
*sc
, s7_pointer args
)
4364 if (s7_is_integer(arg
))
4365 s7__shutdown_0
= (int)s7_integer(arg
);
4366 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4369 if (s7_is_integer(arg
))
4370 s7__shutdown_1
= (int)s7_integer(arg
);
4371 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
4372 return(s7_make_integer(sc
, (s7_int
)shutdown(s7__shutdown_0
, s7__shutdown_1
)));
4374 static s7_int
shutdown_i_ii(s7_int i1
, s7_int i2
) {return(shutdown(i1
, i2
));}
4377 /* -------- gethostbyname -------- */
4378 static s7_pointer
s7__gethostbyname(s7_scheme
*sc
, s7_pointer args
)
4381 char* s7__gethostbyname_0
;
4384 if (s7_is_string(arg
))
4385 s7__gethostbyname_0
= (char*)s7_string(arg
);
4386 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
4387 return(s7_make_c_pointer_with_type(sc
, (void*)gethostbyname(s7__gethostbyname_0
), hostent__symbol
, s7_f(sc
)));
4391 /* -------- gethostbyaddr -------- */
4392 static s7_pointer
s7__gethostbyaddr(s7_scheme
*sc
, s7_pointer args
)
4395 void* s7__gethostbyaddr_0
;
4396 int s7__gethostbyaddr_1
;
4397 int s7__gethostbyaddr_2
;
4400 s7__gethostbyaddr_0
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 1);
4403 if (s7_is_integer(arg
))
4404 s7__gethostbyaddr_1
= (int)s7_integer(arg
);
4405 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "integer"));
4408 if (s7_is_integer(arg
))
4409 s7__gethostbyaddr_2
= (int)s7_integer(arg
);
4410 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
4411 return(s7_make_c_pointer_with_type(sc
, (void*)gethostbyaddr(s7__gethostbyaddr_0
, s7__gethostbyaddr_1
, s7__gethostbyaddr_2
), hostent__symbol
, s7_f(sc
)));
4415 /* -------- getservbyname -------- */
4416 static s7_pointer
s7__getservbyname(s7_scheme
*sc
, s7_pointer args
)
4419 char* s7__getservbyname_0
;
4420 char* s7__getservbyname_1
;
4423 if (s7_is_string(arg
))
4424 s7__getservbyname_0
= (char*)s7_string(arg
);
4425 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "string"));
4428 if (s7_is_string(arg
))
4429 s7__getservbyname_1
= (char*)s7_string(arg
);
4430 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
4431 return(s7_make_c_pointer_with_type(sc
, (void*)getservbyname(s7__getservbyname_0
, s7__getservbyname_1
), servent__symbol
, s7_f(sc
)));
4435 /* -------- getservbyport -------- */
4436 static s7_pointer
s7__getservbyport(s7_scheme
*sc
, s7_pointer args
)
4439 int s7__getservbyport_0
;
4440 char* s7__getservbyport_1
;
4443 if (s7_is_integer(arg
))
4444 s7__getservbyport_0
= (int)s7_integer(arg
);
4445 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4448 if (s7_is_string(arg
))
4449 s7__getservbyport_1
= (char*)s7_string(arg
);
4450 else return(s7_wrong_type_arg_error(sc
, __func__
, 2, arg
, "string"));
4451 return(s7_make_c_pointer_with_type(sc
, (void*)getservbyport(s7__getservbyport_0
, s7__getservbyport_1
), servent__symbol
, s7_f(sc
)));
4455 /* -------- getprotobyname -------- */
4456 static s7_pointer
s7__getprotobyname(s7_scheme
*sc
, s7_pointer args
)
4459 char* s7__getprotobyname_0
;
4462 if (s7_is_string(arg
))
4463 s7__getprotobyname_0
= (char*)s7_string(arg
);
4464 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "string"));
4465 return(s7_make_c_pointer_with_type(sc
, (void*)getprotobyname(s7__getprotobyname_0
), protoent__symbol
, s7_f(sc
)));
4469 /* -------- getprotobynumber -------- */
4470 static s7_pointer
s7__getprotobynumber(s7_scheme
*sc
, s7_pointer args
)
4473 int s7__getprotobynumber_0
;
4476 if (s7_is_integer(arg
))
4477 s7__getprotobynumber_0
= (int)s7_integer(arg
);
4478 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
4479 return(s7_make_c_pointer_with_type(sc
, (void*)getprotobynumber(s7__getprotobynumber_0
), protoent__symbol
, s7_f(sc
)));
4483 /* -------- freeaddrinfo -------- */
4484 static s7_pointer
s7__freeaddrinfo(s7_scheme
*sc
, s7_pointer args
)
4487 struct addrinfo
* s7__freeaddrinfo_0
;
4490 s7__freeaddrinfo_0
= (struct addrinfo
*)s7_c_pointer_with_type(sc
, arg
, struct_addrinfo__symbol
, __func__
, 0);
4491 freeaddrinfo(s7__freeaddrinfo_0
);
4492 return(s7_unspecified(sc
));
4496 /* -------- gai_strerror -------- */
4497 static s7_pointer
s7__gai_strerror(s7_scheme
*sc
, s7_pointer args
)
4500 int s7__gai_strerror_0
;
4503 if (s7_is_integer(arg
))
4504 s7__gai_strerror_0
= (int)s7_integer(arg
);
4505 else return(s7_wrong_type_arg_error(sc
, __func__
, 0, arg
, "integer"));
4506 return(s7_make_string(sc
, (char*)gai_strerror(s7__gai_strerror_0
)));
4510 /* -------- bind -------- */
4511 static s7_pointer
s7__bind(s7_scheme
*sc
, s7_pointer args
)
4515 const struct sockaddr
* s7__bind_1
;
4519 if (s7_is_integer(arg
))
4520 s7__bind_0
= (int)s7_integer(arg
);
4521 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4524 s7__bind_1
= (const struct sockaddr
*)s7_c_pointer_with_type(sc
, arg
, const_struct_sockaddr__symbol
, __func__
, 2);
4527 if (s7_is_integer(arg
))
4528 s7__bind_2
= (int)s7_integer(arg
);
4529 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
4530 return(s7_make_integer(sc
, (s7_int
)bind(s7__bind_0
, s7__bind_1
, s7__bind_2
)));
4534 /* -------- connect -------- */
4535 static s7_pointer
s7__connect(s7_scheme
*sc
, s7_pointer args
)
4539 const struct sockaddr
* s7__connect_1
;
4543 if (s7_is_integer(arg
))
4544 s7__connect_0
= (int)s7_integer(arg
);
4545 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4548 s7__connect_1
= (const struct sockaddr
*)s7_c_pointer_with_type(sc
, arg
, const_struct_sockaddr__symbol
, __func__
, 2);
4551 if (s7_is_integer(arg
))
4552 s7__connect_2
= (int)s7_integer(arg
);
4553 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
4554 return(s7_make_integer(sc
, (s7_int
)connect(s7__connect_0
, s7__connect_1
, s7__connect_2
)));
4558 /* -------- send -------- */
4559 static s7_pointer
s7__send(s7_scheme
*sc
, s7_pointer args
)
4568 if (s7_is_integer(arg
))
4569 s7__send_0
= (int)s7_integer(arg
);
4570 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4573 s7__send_1
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 2);
4576 if (s7_is_integer(arg
))
4577 s7__send_2
= (int)s7_integer(arg
);
4578 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
4581 if (s7_is_integer(arg
))
4582 s7__send_3
= (int)s7_integer(arg
);
4583 else return(s7_wrong_type_arg_error(sc
, __func__
, 4, arg
, "integer"));
4584 return(s7_make_integer(sc
, (s7_int
)send(s7__send_0
, s7__send_1
, s7__send_2
, s7__send_3
)));
4588 /* -------- recv -------- */
4589 static s7_pointer
s7__recv(s7_scheme
*sc
, s7_pointer args
)
4598 if (s7_is_integer(arg
))
4599 s7__recv_0
= (int)s7_integer(arg
);
4600 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4603 s7__recv_1
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 2);
4606 if (s7_is_integer(arg
))
4607 s7__recv_2
= (int)s7_integer(arg
);
4608 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
4611 if (s7_is_integer(arg
))
4612 s7__recv_3
= (int)s7_integer(arg
);
4613 else return(s7_wrong_type_arg_error(sc
, __func__
, 4, arg
, "integer"));
4614 return(s7_make_integer(sc
, (s7_int
)recv(s7__recv_0
, s7__recv_1
, s7__recv_2
, s7__recv_3
)));
4618 /* -------- sendto -------- */
4619 static s7_pointer
s7__sendto(s7_scheme
*sc
, s7_pointer args
)
4626 const struct sockaddr
* s7__sendto_4
;
4630 if (s7_is_integer(arg
))
4631 s7__sendto_0
= (int)s7_integer(arg
);
4632 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4635 s7__sendto_1
= (void*)s7_c_pointer_with_type(sc
, arg
, void__symbol
, __func__
, 2);
4638 if (s7_is_integer(arg
))
4639 s7__sendto_2
= (int)s7_integer(arg
);
4640 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
4643 if (s7_is_integer(arg
))
4644 s7__sendto_3
= (int)s7_integer(arg
);
4645 else return(s7_wrong_type_arg_error(sc
, __func__
, 4, arg
, "integer"));
4648 s7__sendto_4
= (const struct sockaddr
*)s7_c_pointer_with_type(sc
, arg
, const_struct_sockaddr__symbol
, __func__
, 5);
4651 if (s7_is_integer(arg
))
4652 s7__sendto_5
= (int)s7_integer(arg
);
4653 else return(s7_wrong_type_arg_error(sc
, __func__
, 6, arg
, "integer"));
4654 return(s7_make_integer(sc
, (s7_int
)sendto(s7__sendto_0
, s7__sendto_1
, s7__sendto_2
, s7__sendto_3
, s7__sendto_4
, s7__sendto_5
)));
4658 /* -------- sendmsg -------- */
4659 static s7_pointer
s7__sendmsg(s7_scheme
*sc
, s7_pointer args
)
4663 const struct msghdr
* s7__sendmsg_1
;
4667 if (s7_is_integer(arg
))
4668 s7__sendmsg_0
= (int)s7_integer(arg
);
4669 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4672 s7__sendmsg_1
= (const struct msghdr
*)s7_c_pointer_with_type(sc
, arg
, const_struct_msghdr__symbol
, __func__
, 2);
4675 if (s7_is_integer(arg
))
4676 s7__sendmsg_2
= (int)s7_integer(arg
);
4677 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
4678 return(s7_make_integer(sc
, (s7_int
)sendmsg(s7__sendmsg_0
, s7__sendmsg_1
, s7__sendmsg_2
)));
4682 /* -------- recvmsg -------- */
4683 static s7_pointer
s7__recvmsg(s7_scheme
*sc
, s7_pointer args
)
4687 struct msghdr
* s7__recvmsg_1
;
4691 if (s7_is_integer(arg
))
4692 s7__recvmsg_0
= (int)s7_integer(arg
);
4693 else return(s7_wrong_type_arg_error(sc
, __func__
, 1, arg
, "integer"));
4696 s7__recvmsg_1
= (struct msghdr
*)s7_c_pointer_with_type(sc
, arg
, struct_msghdr__symbol
, __func__
, 2);
4699 if (s7_is_integer(arg
))
4700 s7__recvmsg_2
= (int)s7_integer(arg
);
4701 else return(s7_wrong_type_arg_error(sc
, __func__
, 3, arg
, "integer"));
4702 return(s7_make_integer(sc
, (s7_int
)recvmsg(s7__recvmsg_0
, s7__recvmsg_1
, s7__recvmsg_2
)));
4705 static s7_pointer
g_ntohl(s7_scheme
*sc
, s7_pointer args
) {return(s7_make_integer(sc
, ntohl(s7_integer(s7_car(args
)))));}
4706 static s7_pointer
g_ntohs(s7_scheme
*sc
, s7_pointer args
) {return(s7_make_integer(sc
, ntohs(s7_integer(s7_car(args
)))));}
4707 static s7_pointer
g_htonl(s7_scheme
*sc
, s7_pointer args
) {return(s7_make_integer(sc
, htonl(s7_integer(s7_car(args
)))));}
4708 static s7_pointer
g_htons(s7_scheme
*sc
, s7_pointer args
) {return(s7_make_integer(sc
, htons(s7_integer(s7_car(args
)))));}
4710 static s7_pointer
g_addrinfo_make(s7_scheme
*sc
, s7_pointer args
)
4712 return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(struct addrinfo
)), s7_make_symbol(sc
, "addrinfo*"), s7_f(sc
)));
4715 static s7_pointer
g_addrinfo_ai_flags(s7_scheme
*sc
, s7_pointer args
)
4717 return(s7_make_integer(sc
, ((struct addrinfo
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "addrinfo*"), __func__
, 1))->ai_flags
));
4719 static s7_pointer
g_addrinfo_set_ai_flags(s7_scheme
*sc
, s7_pointer args
)
4721 ((struct addrinfo
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "addrinfo*"), __func__
, 1))->ai_flags
= (int)s7_integer(s7_cadr(args
));
4722 return(s7_cadr(args
));
4725 static s7_pointer
g_addrinfo_ai_family(s7_scheme
*sc
, s7_pointer args
)
4727 return(s7_make_integer(sc
, ((struct addrinfo
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "addrinfo*"), __func__
, 1))->ai_family
));
4729 static s7_pointer
g_addrinfo_set_ai_family(s7_scheme
*sc
, s7_pointer args
)
4731 ((struct addrinfo
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "addrinfo*"), __func__
, 1))->ai_family
= (int)s7_integer(s7_cadr(args
));
4732 return(s7_cadr(args
));
4735 static s7_pointer
g_addrinfo_ai_socktype(s7_scheme
*sc
, s7_pointer args
)
4737 return(s7_make_integer(sc
, ((struct addrinfo
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "addrinfo*"), __func__
, 1))->ai_socktype
));
4739 static s7_pointer
g_addrinfo_set_ai_socktype(s7_scheme
*sc
, s7_pointer args
)
4741 ((struct addrinfo
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "addrinfo*"), __func__
, 1))->ai_socktype
= (int)s7_integer(s7_cadr(args
));
4742 return(s7_cadr(args
));
4745 static s7_pointer
g_addrinfo_ai_protocol(s7_scheme
*sc
, s7_pointer args
)
4747 return(s7_make_integer(sc
, ((struct addrinfo
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "addrinfo*"), __func__
, 1))->ai_protocol
));
4749 static s7_pointer
g_addrinfo_set_ai_protocol(s7_scheme
*sc
, s7_pointer args
)
4751 ((struct addrinfo
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "addrinfo*"), __func__
, 1))->ai_protocol
= (int)s7_integer(s7_cadr(args
));
4752 return(s7_cadr(args
));
4754 static s7_pointer
g_addrinfo_ai_canonname(s7_scheme
*sc
, s7_pointer args
)
4756 return(s7_make_string(sc
, ((struct addrinfo
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "addrinfo*"), __func__
, 1))->ai_canonname
));
4758 static s7_pointer
g_addrinfo_ai_next(s7_scheme
*sc
, s7_pointer args
)
4760 return(s7_make_c_pointer_with_type(sc
, (void *)(((struct addrinfo
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "addrinfo*"), __func__
, 1))->ai_next
), s7_make_symbol(sc
, "addrinfo*"), s7_f(sc
)));
4763 static s7_pointer
g_getaddrinfo(s7_scheme
*sc
, s7_pointer args
)
4765 struct addrinfo
*result
;
4767 err
= getaddrinfo(s7_string(s7_car(args
)),
4768 s7_string(s7_cadr(args
)),
4769 (const struct addrinfo
*)s7_c_pointer_with_type(sc
, s7_caddr(args
), s7_make_symbol(sc
, "addrinfo*"), __func__
, 1),
4771 return(s7_list(sc
, 2, s7_make_integer(sc
, err
),
4772 s7_make_c_pointer_with_type(sc
, (void *)result
, s7_make_symbol(sc
, "addrinfo*"), s7_f(sc
))));
4775 static s7_pointer
g_getnameinfo(s7_scheme
*sc
, s7_pointer args
)
4778 #define NI_MAXHOST 1025
4781 #define NI_MAXSERV 32
4783 char *host
, *service
;
4785 host
= (char *)calloc(NI_MAXHOST
, sizeof(char));
4786 service
= (char *)calloc(NI_MAXSERV
, sizeof(char));
4787 err
= getnameinfo((const struct sockaddr
*)s7_c_pointer(s7_car(args
)), s7_integer(s7_cadr(args
)),
4789 service
, NI_MAXSERV
,
4790 s7_integer(s7_caddr(args
)));
4791 return(s7_list(sc
, 3, s7_make_integer(sc
, err
), s7_make_string(sc
, host
), s7_make_string(sc
, service
)));
4794 static s7_pointer
g_socketpair(s7_scheme
*sc
, s7_pointer args
)
4798 err
= socketpair(s7_integer(s7_car(args
)), s7_integer(s7_cadr(args
)), s7_integer(s7_caddr(args
)), fds
);
4799 return(s7_list(sc
, 3, s7_make_integer(sc
, err
), s7_make_integer(sc
, fds
[0]), s7_make_integer(sc
, fds
[1])));
4802 static s7_pointer
g_getsockname(s7_scheme
*sc
, s7_pointer args
)
4806 res
= s7_integer(s7_caddr(args
));
4807 err
= getsockname(s7_integer(s7_car(args
)), (struct sockaddr
*)s7_c_pointer(s7_cadr(args
)), &res
);
4808 return(s7_list(sc
, 2, s7_make_integer(sc
, err
), s7_make_integer(sc
, res
)));
4810 static s7_pointer
g_getpeername(s7_scheme
*sc
, s7_pointer args
)
4814 res
= s7_integer(s7_caddr(args
));
4815 err
= getpeername(s7_integer(s7_car(args
)), (struct sockaddr
*)s7_c_pointer(s7_cadr(args
)), &res
);
4816 return(s7_list(sc
, 2, s7_make_integer(sc
, err
), s7_make_integer(sc
, res
)));
4818 static s7_pointer
g_accept(s7_scheme
*sc
, s7_pointer args
)
4822 res
= s7_integer(s7_caddr(args
));
4823 err
= accept(s7_integer(s7_car(args
)), (struct sockaddr
*)s7_c_pointer(s7_cadr(args
)), &res
);
4824 return(s7_list(sc
, 2, s7_make_integer(sc
, err
), s7_make_integer(sc
, res
)));
4826 static s7_pointer
g_getsockopt(s7_scheme
*sc
, s7_pointer args
)
4830 res
= (socklen_t
)s7_integer(s7_list_ref(sc
, args
, 4));
4831 err
= getsockopt(s7_integer(s7_car(args
)), s7_integer(s7_cadr(args
)), s7_integer(s7_caddr(args
)), s7_c_pointer(s7_cadddr(args
)), &res
);
4832 return(s7_list(sc
, 2, s7_make_integer(sc
, err
), s7_make_integer(sc
, (s7_int
)res
)));
4834 static s7_pointer
g_setsockopt(s7_scheme
*sc
, s7_pointer args
)
4837 res
= (socklen_t
)s7_integer(s7_list_ref(sc
, args
, 4));
4838 return(s7_make_integer(sc
, setsockopt(s7_integer(s7_car(args
)), s7_integer(s7_cadr(args
)),
4839 s7_integer(s7_caddr(args
)), s7_c_pointer(s7_cadddr(args
)), res
)));
4841 static s7_pointer
g_recvfrom(s7_scheme
*sc
, s7_pointer args
)
4845 res
= (socklen_t
)s7_integer(s7_list_ref(sc
, args
, 5));
4846 err
= recvfrom(s7_integer(s7_car(args
)),
4847 s7_c_pointer(s7_cadr(args
)), /* void* buf */
4848 s7_integer(s7_caddr(args
)),
4849 s7_integer(s7_cadddr(args
)),
4850 (struct sockaddr
*)s7_c_pointer(s7_list_ref(sc
, args
, 4)),
4852 return(s7_list(sc
, 2, s7_make_integer(sc
, err
), s7_make_integer(sc
, (s7_int
)res
)));
4855 static s7_pointer
g_hostent_h_name(s7_scheme
*sc
, s7_pointer args
)
4856 {return(s7_make_string(sc
, ((struct hostent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "hostent*"), __func__
, 1))->h_name
));}
4857 static s7_pointer
g_netent_n_name(s7_scheme
*sc
, s7_pointer args
)
4858 {return(s7_make_string(sc
, ((struct netent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "netent*"), __func__
, 1))->n_name
));}
4859 static s7_pointer
g_servent_s_name(s7_scheme
*sc
, s7_pointer args
)
4860 {return(s7_make_string(sc
, ((struct servent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "servent*"), __func__
, 1))->s_name
));}
4861 static s7_pointer
g_servent_s_proto(s7_scheme
*sc
, s7_pointer args
)
4862 {return(s7_make_string(sc
, ((struct servent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "servent*"), __func__
, 1))->s_proto
));}
4863 static s7_pointer
g_protoent_p_name(s7_scheme
*sc
, s7_pointer args
)
4864 {return(s7_make_string(sc
, ((struct protoent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "protoent*"), __func__
, 1))->p_name
));}
4866 static s7_pointer
g_hostent_h_addrtype(s7_scheme
*sc
, s7_pointer args
)
4867 {return(s7_make_integer(sc
, ((struct hostent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "hostent*"), __func__
, 1))->h_addrtype
));}
4868 static s7_pointer
g_hostent_h_length(s7_scheme
*sc
, s7_pointer args
)
4869 {return(s7_make_integer(sc
, ((struct hostent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "hostent*"), __func__
, 1))->h_length
));}
4870 static s7_pointer
g_netent_n_addrtype(s7_scheme
*sc
, s7_pointer args
)
4871 {return(s7_make_integer(sc
, ((struct netent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "netent*"), __func__
, 1))->n_addrtype
));}
4872 static s7_pointer
g_netent_n_net(s7_scheme
*sc
, s7_pointer args
)
4873 {return(s7_make_integer(sc
, ((struct netent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "netent*"), __func__
, 1))->n_net
));}
4874 static s7_pointer
g_servent_s_port(s7_scheme
*sc
, s7_pointer args
)
4875 {return(s7_make_integer(sc
, ((struct servent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "servent*"), __func__
, 1))->s_port
));}
4876 static s7_pointer
g_protoent_p_proto(s7_scheme
*sc
, s7_pointer args
)
4877 {return(s7_make_integer(sc
, ((struct protoent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "protoent*"), __func__
, 1))->p_proto
));}
4879 static s7_pointer
g_hostent_h_aliases(s7_scheme
*sc
, s7_pointer args
)
4885 h
= (struct hostent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "hostent*"), __func__
, 1);
4886 for (str
= h
->h_aliases
; (str
) && (*str
); str
++)
4887 p
= s7_cons(sc
, s7_make_string(sc
, *str
), p
);
4890 static s7_pointer
g_servent_s_aliases(s7_scheme
*sc
, s7_pointer args
)
4896 h
= (struct servent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "servent*"), __func__
, 1);
4897 for (str
= h
->s_aliases
; (str
) && (*str
); str
++)
4898 p
= s7_cons(sc
, s7_make_string(sc
, *str
), p
);
4901 static s7_pointer
g_netent_n_aliases(s7_scheme
*sc
, s7_pointer args
)
4907 h
= (struct netent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "netvent*"), __func__
, 1);
4908 for (str
= h
->n_aliases
; (str
) && (*str
); str
++)
4909 p
= s7_cons(sc
, s7_make_string(sc
, *str
), p
);
4912 static s7_pointer
g_protoent_p_aliases(s7_scheme
*sc
, s7_pointer args
)
4918 h
= (struct protoent
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "protoent*"), __func__
, 1);
4919 for (str
= h
->p_aliases
; (str
) && (*str
); str
++)
4920 p
= s7_cons(sc
, s7_make_string(sc
, *str
), p
);
4924 static s7_pointer
g_regcomp(s7_scheme
*sc
, s7_pointer args
)
4929 regexp
= (regex_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "regex_t*"), __func__
, 1);
4930 str
= (const char *)s7_string(s7_cadr(args
));
4931 flags
= s7_integer(s7_caddr(args
));
4932 res
= regcomp(regexp
, str
, flags
);
4933 return(s7_make_integer(sc
, res
));
4936 static s7_pointer
g_regexec(s7_scheme
*sc
, s7_pointer args
)
4938 int i
, res
, flags
, nmatches
;
4941 regmatch_t
*matches
;
4945 regexp
= (regex_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "regex_t*"), __func__
, 1);
4946 str
= (const char *)s7_string(s7_cadr(args
));
4947 nmatches
= s7_integer(s7_caddr(args
));
4948 flags
= s7_integer(s7_cadddr(args
));
4950 return(s7_make_integer(sc
, regexec(regexp
, str
, 0, NULL
, flags
)));
4951 matches
= (regmatch_t
*)calloc(nmatches
, sizeof(regmatch_t
));
4952 res
= regexec(regexp
, str
, nmatches
, matches
, flags
);
4956 return(s7_make_integer(sc
, res
));
4958 subs
= s7_make_int_vector(sc
, nmatches
* 2, 1, NULL
);
4959 els
= s7_int_vector_elements(subs
);
4960 for (i
= 0; i
< nmatches
; i
++)
4962 els
[i
* 2] = matches
[i
].rm_so
;
4963 els
[i
* 2 + 1] = matches
[i
].rm_eo
;
4969 static s7_pointer
g_regex_make(s7_scheme
*sc
, s7_pointer args
)
4971 return(s7_make_c_pointer_with_type(sc
, (void *)calloc(1, sizeof(regex_t
)), s7_make_symbol(sc
, "regex_t*"), s7_f(sc
)));
4974 static s7_pointer
g_regfree(s7_scheme
*sc
, s7_pointer args
)
4976 regfree((regex_t
*)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "regex_t*"), __func__
, 1));
4980 static s7_pointer
g_regex_free(s7_scheme
*sc
, s7_pointer args
)
4982 free((void *)s7_c_pointer_with_type(sc
, s7_car(args
), s7_make_symbol(sc
, "regex_t*"), __func__
, 1));
4986 static s7_pointer
g_regerror(s7_scheme
*sc
, s7_pointer args
)
4992 errcode
= s7_integer(s7_car(args
));
4993 regexp
= (regex_t
*)s7_c_pointer_with_type(sc
, s7_cadr(args
), s7_make_symbol(sc
, "regex_t*"), __func__
, 1);
4994 len
= regerror (errcode
, regexp
, NULL
, 0);
4995 err
= (char *)malloc(len
);
4996 regerror(errcode
, regexp
, err
, len
);
4997 return(s7_make_string_with_length(sc
, err
, len
- 1));
5000 void libc_s7_init(s7_scheme
*sc
);
5001 void libc_s7_init(s7_scheme
*sc
)
5004 s7_pointer pcl_t
, pl_tx
, pl_ts
, pl_ti
, pl_txs
, pl_iixiixi
, pcl_i
, pl_ix
, pl_it
, pcl_is
, pl_is
, pcl_ix
, pcl_iix
, pcl_isi
, pl_ixi
, pl_isi
, pl_iix
, pl_isx
, pcl_ixi
, pl_isxi
, pl_iisi
, pcl_iixi
, pl_iixi
, pl_issi
, pl_ixxi
, pcl_ixsi
, pl_iiixi
, pl_ixiix
, pcl_di
, pl_ds
, pcl_s
, pl_sx
, pl_st
, pl_si
, pl_sis
, pl_ssi
, pl_sssi
, pl_ssix
, pl_sisi
, pcl_x
, pl_xs
, pcl_xi
, pl_xi
, pl_xt
, pcl_xs
, pl_xxi
, pcl_xxi
, pl_xis
, pl_xxxi
, pl_xssx
;
5006 s7_pointer t
, x
, s
, d
, i
;
5008 x
= s7_make_symbol(sc
, "c-pointer?");
5009 s
= s7_make_symbol(sc
, "string?");
5010 d
= s7_make_symbol(sc
, "float?");
5011 i
= s7_make_symbol(sc
, "integer?");
5013 pcl_t
= s7_make_circular_signature(sc
, 0, 1, t
);
5014 pl_tx
= s7_make_signature(sc
, 2, t
, x
);
5015 pl_ts
= s7_make_signature(sc
, 2, t
, s
);
5016 pl_ti
= s7_make_signature(sc
, 2, t
, i
);
5017 pl_txs
= s7_make_signature(sc
, 3, t
, x
, s
);
5018 pl_iixiixi
= s7_make_signature(sc
, 7, i
, i
, x
, i
, i
, x
, i
);
5019 pcl_i
= s7_make_circular_signature(sc
, 0, 1, i
);
5020 pl_ix
= s7_make_signature(sc
, 2, i
, x
);
5021 pl_it
= s7_make_signature(sc
, 2, i
, t
);
5022 pcl_is
= s7_make_circular_signature(sc
, 1, 2, i
, s
);
5023 pl_is
= s7_make_signature(sc
, 2, i
, s
);
5024 pcl_ix
= s7_make_circular_signature(sc
, 1, 2, i
, x
);
5025 pcl_iix
= s7_make_circular_signature(sc
, 2, 3, i
, i
, x
);
5026 pcl_isi
= s7_make_circular_signature(sc
, 2, 3, i
, s
, i
);
5027 pl_ixi
= s7_make_signature(sc
, 3, i
, x
, i
);
5028 pl_isi
= s7_make_signature(sc
, 3, i
, s
, i
);
5029 pl_iix
= s7_make_signature(sc
, 3, i
, i
, x
);
5030 pl_isx
= s7_make_signature(sc
, 3, i
, s
, x
);
5031 pcl_ixi
= s7_make_circular_signature(sc
, 2, 3, i
, x
, i
);
5032 pl_isxi
= s7_make_signature(sc
, 4, i
, s
, x
, i
);
5033 pl_iisi
= s7_make_signature(sc
, 4, i
, i
, s
, i
);
5034 pcl_iixi
= s7_make_circular_signature(sc
, 3, 4, i
, i
, x
, i
);
5035 pl_iixi
= s7_make_signature(sc
, 4, i
, i
, x
, i
);
5036 pl_issi
= s7_make_signature(sc
, 4, i
, s
, s
, i
);
5037 pl_ixxi
= s7_make_signature(sc
, 4, i
, x
, x
, i
);
5038 pcl_ixsi
= s7_make_circular_signature(sc
, 3, 4, i
, x
, s
, i
);
5039 pl_iiixi
= s7_make_signature(sc
, 5, i
, i
, i
, x
, i
);
5040 pl_ixiix
= s7_make_signature(sc
, 5, i
, x
, i
, i
, x
);
5041 pcl_di
= s7_make_circular_signature(sc
, 1, 2, d
, i
);
5042 pl_ds
= s7_make_signature(sc
, 2, d
, s
);
5043 pcl_s
= s7_make_circular_signature(sc
, 0, 1, s
);
5044 pl_sx
= s7_make_signature(sc
, 2, s
, x
);
5045 pl_st
= s7_make_signature(sc
, 2, s
, t
);
5046 pl_si
= s7_make_signature(sc
, 2, s
, i
);
5047 pl_sis
= s7_make_signature(sc
, 3, s
, i
, s
);
5048 pl_ssi
= s7_make_signature(sc
, 3, s
, s
, i
);
5049 pl_sssi
= s7_make_signature(sc
, 4, s
, s
, s
, i
);
5050 pl_ssix
= s7_make_signature(sc
, 4, s
, s
, i
, x
);
5051 pl_sisi
= s7_make_signature(sc
, 4, s
, i
, s
, i
);
5052 pcl_x
= s7_make_circular_signature(sc
, 0, 1, x
);
5053 pl_xs
= s7_make_signature(sc
, 2, x
, s
);
5054 pcl_xi
= s7_make_circular_signature(sc
, 1, 2, x
, i
);
5055 pl_xi
= s7_make_signature(sc
, 2, x
, i
);
5056 pl_xt
= s7_make_signature(sc
, 2, x
, t
);
5057 pcl_xs
= s7_make_circular_signature(sc
, 1, 2, x
, s
);
5058 pl_xxi
= s7_make_signature(sc
, 3, x
, x
, i
);
5059 pcl_xxi
= s7_make_circular_signature(sc
, 2, 3, x
, x
, i
);
5060 pl_xis
= s7_make_signature(sc
, 3, x
, i
, s
);
5061 pl_xxxi
= s7_make_signature(sc
, 4, x
, x
, x
, i
);
5062 pl_xssx
= s7_make_signature(sc
, 4, x
, s
, s
, x
);
5065 cur_env
= s7_curlet(sc
);
5067 struct_msghdr__symbol
= s7_make_symbol(sc
, "struct-msghdr*");
5068 const_struct_msghdr__symbol
= s7_make_symbol(sc
, "const-struct-msghdr*");
5069 const_struct_sockaddr__symbol
= s7_make_symbol(sc
, "const-struct-sockaddr*");
5070 struct_addrinfo__symbol
= s7_make_symbol(sc
, "struct-addrinfo*");
5071 protoent__symbol
= s7_make_symbol(sc
, "protoent*");
5072 servent__symbol
= s7_make_symbol(sc
, "servent*");
5073 netent__symbol
= s7_make_symbol(sc
, "netent*");
5074 hostent__symbol
= s7_make_symbol(sc
, "hostent*");
5075 siginfo_t__symbol
= s7_make_symbol(sc
, "siginfo_t*");
5076 struct_rlimit__symbol
= s7_make_symbol(sc
, "struct-rlimit*");
5077 sigset_t__symbol
= s7_make_symbol(sc
, "sigset_t*");
5078 glob_t__symbol
= s7_make_symbol(sc
, "glob_t*");
5079 wordexp_t__symbol
= s7_make_symbol(sc
, "wordexp_t*");
5080 passwd__symbol
= s7_make_symbol(sc
, "passwd*");
5081 tm__symbol
= s7_make_symbol(sc
, "tm*");
5082 time_t__symbol
= s7_make_symbol(sc
, "time_t*");
5083 DIR__symbol
= s7_make_symbol(sc
, "DIR*");
5084 int__symbol
= s7_make_symbol(sc
, "int*");
5085 fpos_t__symbol
= s7_make_symbol(sc
, "fpos_t*");
5086 FILE__symbol
= s7_make_symbol(sc
, "FILE*");
5087 void__symbol
= s7_make_symbol(sc
, "void*");
5088 fenv_t__symbol
= s7_make_symbol(sc
, "fenv_t*");
5089 fexcept_t__symbol
= s7_make_symbol(sc
, "fexcept_t*");
5091 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_USERRESERVED"), s7_make_integer(sc
, (s7_int
)IPPORT_USERRESERVED
));
5092 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_RESERVED"), s7_make_integer(sc
, (s7_int
)IPPORT_RESERVED
));
5093 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_ROUTESERVER"), s7_make_integer(sc
, (s7_int
)IPPORT_ROUTESERVER
));
5094 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_WHOSERVER"), s7_make_integer(sc
, (s7_int
)IPPORT_WHOSERVER
));
5095 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_BIFFUDP"), s7_make_integer(sc
, (s7_int
)IPPORT_BIFFUDP
));
5096 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_EFSSERVER"), s7_make_integer(sc
, (s7_int
)IPPORT_EFSSERVER
));
5097 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_CMDSERVER"), s7_make_integer(sc
, (s7_int
)IPPORT_CMDSERVER
));
5098 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_LOGINSERVER"), s7_make_integer(sc
, (s7_int
)IPPORT_LOGINSERVER
));
5099 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_EXECSERVER"), s7_make_integer(sc
, (s7_int
)IPPORT_EXECSERVER
));
5100 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_SUPDUP"), s7_make_integer(sc
, (s7_int
)IPPORT_SUPDUP
));
5101 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_TTYLINK"), s7_make_integer(sc
, (s7_int
)IPPORT_TTYLINK
));
5102 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_FINGER"), s7_make_integer(sc
, (s7_int
)IPPORT_FINGER
));
5103 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_RJE"), s7_make_integer(sc
, (s7_int
)IPPORT_RJE
));
5104 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_TFTP"), s7_make_integer(sc
, (s7_int
)IPPORT_TFTP
));
5105 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_MTP"), s7_make_integer(sc
, (s7_int
)IPPORT_MTP
));
5106 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_WHOIS"), s7_make_integer(sc
, (s7_int
)IPPORT_WHOIS
));
5107 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_NAMESERVER"), s7_make_integer(sc
, (s7_int
)IPPORT_NAMESERVER
));
5108 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_TIMESERVER"), s7_make_integer(sc
, (s7_int
)IPPORT_TIMESERVER
));
5109 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_SMTP"), s7_make_integer(sc
, (s7_int
)IPPORT_SMTP
));
5110 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_TELNET"), s7_make_integer(sc
, (s7_int
)IPPORT_TELNET
));
5111 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_FTP"), s7_make_integer(sc
, (s7_int
)IPPORT_FTP
));
5112 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_NETSTAT"), s7_make_integer(sc
, (s7_int
)IPPORT_NETSTAT
));
5113 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_DAYTIME"), s7_make_integer(sc
, (s7_int
)IPPORT_DAYTIME
));
5114 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_SYSTAT"), s7_make_integer(sc
, (s7_int
)IPPORT_SYSTAT
));
5115 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_DISCARD"), s7_make_integer(sc
, (s7_int
)IPPORT_DISCARD
));
5116 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPORT_ECHO"), s7_make_integer(sc
, (s7_int
)IPPORT_ECHO
));
5117 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIG_IGN"), s7_make_c_pointer_with_type(sc
, (void*)SIG_IGN
, s7_make_symbol(sc
, "void*"), s7_f(sc
)));
5118 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIG_DFL"), s7_make_c_pointer_with_type(sc
, (void*)SIG_DFL
, s7_make_symbol(sc
, "void*"), s7_f(sc
)));
5119 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIG_ERR"), s7_make_c_pointer_with_type(sc
, (void*)SIG_ERR
, s7_make_symbol(sc
, "void*"), s7_f(sc
)));
5120 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WRDE_SYNTAX"), s7_make_integer(sc
, (s7_int
)WRDE_SYNTAX
));
5121 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WRDE_CMDSUB"), s7_make_integer(sc
, (s7_int
)WRDE_CMDSUB
));
5122 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WRDE_BADVAL"), s7_make_integer(sc
, (s7_int
)WRDE_BADVAL
));
5123 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WRDE_BADCHAR"), s7_make_integer(sc
, (s7_int
)WRDE_BADCHAR
));
5124 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WRDE_NOSPACE"), s7_make_integer(sc
, (s7_int
)WRDE_NOSPACE
));
5125 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WRDE_UNDEF"), s7_make_integer(sc
, (s7_int
)WRDE_UNDEF
));
5126 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WRDE_SHOWERR"), s7_make_integer(sc
, (s7_int
)WRDE_SHOWERR
));
5127 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WRDE_REUSE"), s7_make_integer(sc
, (s7_int
)WRDE_REUSE
));
5128 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WRDE_NOCMD"), s7_make_integer(sc
, (s7_int
)WRDE_NOCMD
));
5129 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WRDE_APPEND"), s7_make_integer(sc
, (s7_int
)WRDE_APPEND
));
5130 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WRDE_DOOFFS"), s7_make_integer(sc
, (s7_int
)WRDE_DOOFFS
));
5131 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "stderr"), s7_make_c_pointer_with_type(sc
, (void*)stderr
, s7_make_symbol(sc
, "FILE*"), s7_f(sc
)));
5132 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "stdout"), s7_make_c_pointer_with_type(sc
, (void*)stdout
, s7_make_symbol(sc
, "FILE*"), s7_f(sc
)));
5133 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "stdin"), s7_make_c_pointer_with_type(sc
, (void*)stdin
, s7_make_symbol(sc
, "FILE*"), s7_f(sc
)));
5136 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_NEWLINE"), s7_make_integer(sc
, (s7_int
)REG_NEWLINE
));
5139 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_NOSUB"), s7_make_integer(sc
, (s7_int
)REG_NOSUB
));
5142 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_ICASE"), s7_make_integer(sc
, (s7_int
)REG_ICASE
));
5145 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_EXTENDED"), s7_make_integer(sc
, (s7_int
)REG_EXTENDED
));
5148 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_ERANGE"), s7_make_integer(sc
, (s7_int
)REG_ERANGE
));
5151 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_EBRACE"), s7_make_integer(sc
, (s7_int
)REG_EBRACE
));
5154 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_EPAREN"), s7_make_integer(sc
, (s7_int
)REG_EPAREN
));
5157 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_EBRACK"), s7_make_integer(sc
, (s7_int
)REG_EBRACK
));
5160 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_ESUBREG"), s7_make_integer(sc
, (s7_int
)REG_ESUBREG
));
5163 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_EESCAPE"), s7_make_integer(sc
, (s7_int
)REG_EESCAPE
));
5166 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_ECTYPE"), s7_make_integer(sc
, (s7_int
)REG_ECTYPE
));
5169 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_ECOLLATE"), s7_make_integer(sc
, (s7_int
)REG_ECOLLATE
));
5172 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_BADRPT"), s7_make_integer(sc
, (s7_int
)REG_BADRPT
));
5175 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_BADPAT"), s7_make_integer(sc
, (s7_int
)REG_BADPAT
));
5178 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_BADBR"), s7_make_integer(sc
, (s7_int
)REG_BADBR
));
5181 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_ESPACE"), s7_make_integer(sc
, (s7_int
)REG_ESPACE
));
5184 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_NOMATCH"), s7_make_integer(sc
, (s7_int
)REG_NOMATCH
));
5187 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_NOTEOL"), s7_make_integer(sc
, (s7_int
)REG_NOTEOL
));
5190 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "REG_NOTBOL"), s7_make_integer(sc
, (s7_int
)REG_NOTBOL
));
5192 #ifdef _PATH_SERVICES
5193 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PATH_SERVICES"), s7_make_string(sc
, (char*)_PATH_SERVICES
));
5195 #ifdef _PATH_PROTOCOLS
5196 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PATH_PROTOCOLS"), s7_make_string(sc
, (char*)_PATH_PROTOCOLS
));
5198 #ifdef _PATH_NSSWITCH_CONF
5199 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PATH_NSSWITCH_CONF"), s7_make_string(sc
, (char*)_PATH_NSSWITCH_CONF
));
5201 #ifdef _PATH_NETWORKS
5202 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PATH_NETWORKS"), s7_make_string(sc
, (char*)_PATH_NETWORKS
));
5205 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PATH_HOSTS"), s7_make_string(sc
, (char*)_PATH_HOSTS
));
5208 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PATH_HEQUIV"), s7_make_string(sc
, (char*)_PATH_HEQUIV
));
5211 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SHUT_RDWR"), s7_make_integer(sc
, (s7_int
)SHUT_RDWR
));
5214 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SHUT_WR"), s7_make_integer(sc
, (s7_int
)SHUT_WR
));
5217 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SHUT_RD"), s7_make_integer(sc
, (s7_int
)SHUT_RD
));
5220 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOL_IRDA"), s7_make_integer(sc
, (s7_int
)SOL_IRDA
));
5223 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOL_AAL"), s7_make_integer(sc
, (s7_int
)SOL_AAL
));
5226 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOL_ATM"), s7_make_integer(sc
, (s7_int
)SOL_ATM
));
5229 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOL_PACKET"), s7_make_integer(sc
, (s7_int
)SOL_PACKET
));
5232 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOL_X25"), s7_make_integer(sc
, (s7_int
)SOL_X25
));
5235 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOL_DECNET"), s7_make_integer(sc
, (s7_int
)SOL_DECNET
));
5238 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOL_RAW"), s7_make_integer(sc
, (s7_int
)SOL_RAW
));
5241 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_RAW"), s7_make_integer(sc
, (s7_int
)IPPROTO_RAW
));
5243 #ifdef IPPROTO_UDPLITE
5244 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_UDPLITE"), s7_make_integer(sc
, (s7_int
)IPPROTO_UDPLITE
));
5247 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_SCTP"), s7_make_integer(sc
, (s7_int
)IPPROTO_SCTP
));
5250 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_COMP"), s7_make_integer(sc
, (s7_int
)IPPROTO_COMP
));
5253 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_PIM"), s7_make_integer(sc
, (s7_int
)IPPROTO_PIM
));
5255 #ifdef IPPROTO_ENCAP
5256 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_ENCAP"), s7_make_integer(sc
, (s7_int
)IPPROTO_ENCAP
));
5259 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_MTP"), s7_make_integer(sc
, (s7_int
)IPPROTO_MTP
));
5261 #ifdef IPPROTO_DSTOPTS
5262 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_DSTOPTS"), s7_make_integer(sc
, (s7_int
)IPPROTO_DSTOPTS
));
5265 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_NONE"), s7_make_integer(sc
, (s7_int
)IPPROTO_NONE
));
5267 #ifdef IPPROTO_ICMPV6
5268 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_ICMPV6"), s7_make_integer(sc
, (s7_int
)IPPROTO_ICMPV6
));
5271 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_AH"), s7_make_integer(sc
, (s7_int
)IPPROTO_AH
));
5274 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_ESP"), s7_make_integer(sc
, (s7_int
)IPPROTO_ESP
));
5277 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_GRE"), s7_make_integer(sc
, (s7_int
)IPPROTO_GRE
));
5280 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_RSVP"), s7_make_integer(sc
, (s7_int
)IPPROTO_RSVP
));
5282 #ifdef IPPROTO_FRAGMENT
5283 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_FRAGMENT"), s7_make_integer(sc
, (s7_int
)IPPROTO_FRAGMENT
));
5285 #ifdef IPPROTO_ROUTING
5286 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_ROUTING"), s7_make_integer(sc
, (s7_int
)IPPROTO_ROUTING
));
5289 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_IPV6"), s7_make_integer(sc
, (s7_int
)IPPROTO_IPV6
));
5292 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_DCCP"), s7_make_integer(sc
, (s7_int
)IPPROTO_DCCP
));
5295 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_TP"), s7_make_integer(sc
, (s7_int
)IPPROTO_TP
));
5298 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_IDP"), s7_make_integer(sc
, (s7_int
)IPPROTO_IDP
));
5301 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_UDP"), s7_make_integer(sc
, (s7_int
)IPPROTO_UDP
));
5304 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_PUP"), s7_make_integer(sc
, (s7_int
)IPPROTO_PUP
));
5307 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_EGP"), s7_make_integer(sc
, (s7_int
)IPPROTO_EGP
));
5310 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_TCP"), s7_make_integer(sc
, (s7_int
)IPPROTO_TCP
));
5313 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_IPIP"), s7_make_integer(sc
, (s7_int
)IPPROTO_IPIP
));
5316 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_IGMP"), s7_make_integer(sc
, (s7_int
)IPPROTO_IGMP
));
5319 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_ICMP"), s7_make_integer(sc
, (s7_int
)IPPROTO_ICMP
));
5321 #ifdef IPPROTO_HOPOPTS
5322 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_HOPOPTS"), s7_make_integer(sc
, (s7_int
)IPPROTO_HOPOPTS
));
5325 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IPPROTO_IP"), s7_make_integer(sc
, (s7_int
)IPPROTO_IP
));
5327 #ifdef MSG_CMSG_CLOEXEC
5328 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_CMSG_CLOEXEC"), s7_make_integer(sc
, (s7_int
)MSG_CMSG_CLOEXEC
));
5331 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_MORE"), s7_make_integer(sc
, (s7_int
)MSG_MORE
));
5334 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_NOSIGNAL"), s7_make_integer(sc
, (s7_int
)MSG_NOSIGNAL
));
5337 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_ERRQUEUE"), s7_make_integer(sc
, (s7_int
)MSG_ERRQUEUE
));
5340 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_RST"), s7_make_integer(sc
, (s7_int
)MSG_RST
));
5343 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_CONFIRM"), s7_make_integer(sc
, (s7_int
)MSG_CONFIRM
));
5346 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_SYN"), s7_make_integer(sc
, (s7_int
)MSG_SYN
));
5349 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_FIN"), s7_make_integer(sc
, (s7_int
)MSG_FIN
));
5352 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_WAITALL"), s7_make_integer(sc
, (s7_int
)MSG_WAITALL
));
5354 #ifdef MSG_WAITFORONE
5355 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_WAITFORONE"), s7_make_integer(sc
, (s7_int
)MSG_WAITFORONE
));
5358 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_EOR"), s7_make_integer(sc
, (s7_int
)MSG_EOR
));
5361 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_DONTWAIT"), s7_make_integer(sc
, (s7_int
)MSG_DONTWAIT
));
5364 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_TRUNC"), s7_make_integer(sc
, (s7_int
)MSG_TRUNC
));
5367 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_PROXY"), s7_make_integer(sc
, (s7_int
)MSG_PROXY
));
5370 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_CTRUNC"), s7_make_integer(sc
, (s7_int
)MSG_CTRUNC
));
5372 #ifdef MSG_DONTROUTE
5373 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_DONTROUTE"), s7_make_integer(sc
, (s7_int
)MSG_DONTROUTE
));
5376 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_PEEK"), s7_make_integer(sc
, (s7_int
)MSG_PEEK
));
5379 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MSG_OOB"), s7_make_integer(sc
, (s7_int
)MSG_OOB
));
5382 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_MAX"), s7_make_integer(sc
, (s7_int
)AF_MAX
));
5384 #ifdef AF_IEEE802154
5385 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_IEEE802154"), s7_make_integer(sc
, (s7_int
)AF_IEEE802154
));
5388 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_PHONET"), s7_make_integer(sc
, (s7_int
)AF_PHONET
));
5391 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_ISDN"), s7_make_integer(sc
, (s7_int
)AF_ISDN
));
5394 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_RXRPC"), s7_make_integer(sc
, (s7_int
)AF_RXRPC
));
5397 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_IUCV"), s7_make_integer(sc
, (s7_int
)AF_IUCV
));
5400 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_BLUETOOTH"), s7_make_integer(sc
, (s7_int
)AF_BLUETOOTH
));
5403 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_TIPC"), s7_make_integer(sc
, (s7_int
)AF_TIPC
));
5406 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_CAN"), s7_make_integer(sc
, (s7_int
)AF_CAN
));
5409 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_LLC"), s7_make_integer(sc
, (s7_int
)AF_LLC
));
5412 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_WANPIPE"), s7_make_integer(sc
, (s7_int
)AF_WANPIPE
));
5415 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_PPPOX"), s7_make_integer(sc
, (s7_int
)AF_PPPOX
));
5418 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_IRDA"), s7_make_integer(sc
, (s7_int
)AF_IRDA
));
5421 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_SNA"), s7_make_integer(sc
, (s7_int
)AF_SNA
));
5424 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_RDS"), s7_make_integer(sc
, (s7_int
)AF_RDS
));
5427 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_ATMSVC"), s7_make_integer(sc
, (s7_int
)AF_ATMSVC
));
5430 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_ECONET"), s7_make_integer(sc
, (s7_int
)AF_ECONET
));
5433 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_ASH"), s7_make_integer(sc
, (s7_int
)AF_ASH
));
5436 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_PACKET"), s7_make_integer(sc
, (s7_int
)AF_PACKET
));
5439 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_ROUTE"), s7_make_integer(sc
, (s7_int
)AF_ROUTE
));
5442 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_NETLINK"), s7_make_integer(sc
, (s7_int
)AF_NETLINK
));
5445 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_KEY"), s7_make_integer(sc
, (s7_int
)AF_KEY
));
5448 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_SECURITY"), s7_make_integer(sc
, (s7_int
)AF_SECURITY
));
5451 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_NETBEUI"), s7_make_integer(sc
, (s7_int
)AF_NETBEUI
));
5454 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_DECnet"), s7_make_integer(sc
, (s7_int
)AF_DECnet
));
5457 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_ROSE"), s7_make_integer(sc
, (s7_int
)AF_ROSE
));
5460 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_INET6"), s7_make_integer(sc
, (s7_int
)AF_INET6
));
5463 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_X25"), s7_make_integer(sc
, (s7_int
)AF_X25
));
5466 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_ATMPVC"), s7_make_integer(sc
, (s7_int
)AF_ATMPVC
));
5469 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_BRIDGE"), s7_make_integer(sc
, (s7_int
)AF_BRIDGE
));
5472 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_NETROM"), s7_make_integer(sc
, (s7_int
)AF_NETROM
));
5475 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_APPLETALK"), s7_make_integer(sc
, (s7_int
)AF_APPLETALK
));
5478 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_IPX"), s7_make_integer(sc
, (s7_int
)AF_IPX
));
5481 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_AX25"), s7_make_integer(sc
, (s7_int
)AF_AX25
));
5484 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_INET"), s7_make_integer(sc
, (s7_int
)AF_INET
));
5487 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_FILE"), s7_make_integer(sc
, (s7_int
)AF_FILE
));
5490 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_UNIX"), s7_make_integer(sc
, (s7_int
)AF_UNIX
));
5493 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_LOCAL"), s7_make_integer(sc
, (s7_int
)AF_LOCAL
));
5496 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AF_UNSPEC"), s7_make_integer(sc
, (s7_int
)AF_UNSPEC
));
5499 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_MAX"), s7_make_integer(sc
, (s7_int
)PF_MAX
));
5501 #ifdef PF_IEEE802154
5502 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_IEEE802154"), s7_make_integer(sc
, (s7_int
)PF_IEEE802154
));
5505 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_PHONET"), s7_make_integer(sc
, (s7_int
)PF_PHONET
));
5508 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_ISDN"), s7_make_integer(sc
, (s7_int
)PF_ISDN
));
5511 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_RXRPC"), s7_make_integer(sc
, (s7_int
)PF_RXRPC
));
5514 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_IUCV"), s7_make_integer(sc
, (s7_int
)PF_IUCV
));
5517 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_BLUETOOTH"), s7_make_integer(sc
, (s7_int
)PF_BLUETOOTH
));
5520 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_TIPC"), s7_make_integer(sc
, (s7_int
)PF_TIPC
));
5523 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_CAN"), s7_make_integer(sc
, (s7_int
)PF_CAN
));
5526 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_LLC"), s7_make_integer(sc
, (s7_int
)PF_LLC
));
5529 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_WANPIPE"), s7_make_integer(sc
, (s7_int
)PF_WANPIPE
));
5532 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_PPPOX"), s7_make_integer(sc
, (s7_int
)PF_PPPOX
));
5535 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_IRDA"), s7_make_integer(sc
, (s7_int
)PF_IRDA
));
5538 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_SNA"), s7_make_integer(sc
, (s7_int
)PF_SNA
));
5541 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_RDS"), s7_make_integer(sc
, (s7_int
)PF_RDS
));
5544 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_ATMSVC"), s7_make_integer(sc
, (s7_int
)PF_ATMSVC
));
5547 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_ECONET"), s7_make_integer(sc
, (s7_int
)PF_ECONET
));
5550 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_ASH"), s7_make_integer(sc
, (s7_int
)PF_ASH
));
5553 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_PACKET"), s7_make_integer(sc
, (s7_int
)PF_PACKET
));
5556 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_ROUTE"), s7_make_integer(sc
, (s7_int
)PF_ROUTE
));
5559 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_NETLINK"), s7_make_integer(sc
, (s7_int
)PF_NETLINK
));
5562 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_KEY"), s7_make_integer(sc
, (s7_int
)PF_KEY
));
5565 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_SECURITY"), s7_make_integer(sc
, (s7_int
)PF_SECURITY
));
5568 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_NETBEUI"), s7_make_integer(sc
, (s7_int
)PF_NETBEUI
));
5571 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_DECnet"), s7_make_integer(sc
, (s7_int
)PF_DECnet
));
5574 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_ROSE"), s7_make_integer(sc
, (s7_int
)PF_ROSE
));
5577 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_INET6"), s7_make_integer(sc
, (s7_int
)PF_INET6
));
5580 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_X25"), s7_make_integer(sc
, (s7_int
)PF_X25
));
5583 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_ATMPVC"), s7_make_integer(sc
, (s7_int
)PF_ATMPVC
));
5586 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_BRIDGE"), s7_make_integer(sc
, (s7_int
)PF_BRIDGE
));
5589 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_NETROM"), s7_make_integer(sc
, (s7_int
)PF_NETROM
));
5592 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_APPLETALK"), s7_make_integer(sc
, (s7_int
)PF_APPLETALK
));
5595 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_IPX"), s7_make_integer(sc
, (s7_int
)PF_IPX
));
5598 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_AX25"), s7_make_integer(sc
, (s7_int
)PF_AX25
));
5601 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_INET"), s7_make_integer(sc
, (s7_int
)PF_INET
));
5604 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_FILE"), s7_make_integer(sc
, (s7_int
)PF_FILE
));
5607 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_UNIX"), s7_make_integer(sc
, (s7_int
)PF_UNIX
));
5610 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_LOCAL"), s7_make_integer(sc
, (s7_int
)PF_LOCAL
));
5613 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PF_UNSPEC"), s7_make_integer(sc
, (s7_int
)PF_UNSPEC
));
5615 #ifdef SOCK_NONBLOCK
5616 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOCK_NONBLOCK"), s7_make_integer(sc
, (s7_int
)SOCK_NONBLOCK
));
5619 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOCK_CLOEXEC"), s7_make_integer(sc
, (s7_int
)SOCK_CLOEXEC
));
5622 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOCK_PACKET"), s7_make_integer(sc
, (s7_int
)SOCK_PACKET
));
5625 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOCK_DCCP"), s7_make_integer(sc
, (s7_int
)SOCK_DCCP
));
5627 #ifdef SOCK_SEQPACKET
5628 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOCK_SEQPACKET"), s7_make_integer(sc
, (s7_int
)SOCK_SEQPACKET
));
5631 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOCK_RDM"), s7_make_integer(sc
, (s7_int
)SOCK_RDM
));
5634 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOCK_RAW"), s7_make_integer(sc
, (s7_int
)SOCK_RAW
));
5637 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOCK_DGRAM"), s7_make_integer(sc
, (s7_int
)SOCK_DGRAM
));
5640 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SOCK_STREAM"), s7_make_integer(sc
, (s7_int
)SOCK_STREAM
));
5643 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "NI_DGRAM"), s7_make_integer(sc
, (s7_int
)NI_DGRAM
));
5646 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "NI_NAMEREQD"), s7_make_integer(sc
, (s7_int
)NI_NAMEREQD
));
5649 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "NI_NOFQDN"), s7_make_integer(sc
, (s7_int
)NI_NOFQDN
));
5651 #ifdef NI_NUMERICSERV
5652 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "NI_NUMERICSERV"), s7_make_integer(sc
, (s7_int
)NI_NUMERICSERV
));
5654 #ifdef NI_NUMERICHOST
5655 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "NI_NUMERICHOST"), s7_make_integer(sc
, (s7_int
)NI_NUMERICHOST
));
5658 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EAI_OVERFLOW"), s7_make_integer(sc
, (s7_int
)EAI_OVERFLOW
));
5661 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EAI_SYSTEM"), s7_make_integer(sc
, (s7_int
)EAI_SYSTEM
));
5664 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EAI_MEMORY"), s7_make_integer(sc
, (s7_int
)EAI_MEMORY
));
5667 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EAI_SERVICE"), s7_make_integer(sc
, (s7_int
)EAI_SERVICE
));
5670 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EAI_SOCKTYPE"), s7_make_integer(sc
, (s7_int
)EAI_SOCKTYPE
));
5673 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EAI_FAMILY"), s7_make_integer(sc
, (s7_int
)EAI_FAMILY
));
5676 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EAI_FAIL"), s7_make_integer(sc
, (s7_int
)EAI_FAIL
));
5679 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EAI_AGAIN"), s7_make_integer(sc
, (s7_int
)EAI_AGAIN
));
5682 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EAI_NONAME"), s7_make_integer(sc
, (s7_int
)EAI_NONAME
));
5685 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EAI_BADFLAGS"), s7_make_integer(sc
, (s7_int
)EAI_BADFLAGS
));
5687 #ifdef AI_NUMERICSERV
5688 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AI_NUMERICSERV"), s7_make_integer(sc
, (s7_int
)AI_NUMERICSERV
));
5690 #ifdef AI_ADDRCONFIG
5691 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AI_ADDRCONFIG"), s7_make_integer(sc
, (s7_int
)AI_ADDRCONFIG
));
5694 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AI_ALL"), s7_make_integer(sc
, (s7_int
)AI_ALL
));
5697 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AI_V4MAPPED"), s7_make_integer(sc
, (s7_int
)AI_V4MAPPED
));
5699 #ifdef AI_NUMERICHOST
5700 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AI_NUMERICHOST"), s7_make_integer(sc
, (s7_int
)AI_NUMERICHOST
));
5703 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AI_CANONNAME"), s7_make_integer(sc
, (s7_int
)AI_CANONNAME
));
5706 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "AI_PASSIVE"), s7_make_integer(sc
, (s7_int
)AI_PASSIVE
));
5709 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIG_SETMASK"), s7_make_integer(sc
, (s7_int
)SIG_SETMASK
));
5712 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIG_UNBLOCK"), s7_make_integer(sc
, (s7_int
)SIG_UNBLOCK
));
5715 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIG_BLOCK"), s7_make_integer(sc
, (s7_int
)SIG_BLOCK
));
5718 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SA_STACK"), s7_make_integer(sc
, (s7_int
)SA_STACK
));
5721 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SA_ONESHOT"), s7_make_integer(sc
, (s7_int
)SA_ONESHOT
));
5724 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SA_NOMASK"), s7_make_integer(sc
, (s7_int
)SA_NOMASK
));
5727 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SA_RESETHAND"), s7_make_integer(sc
, (s7_int
)SA_RESETHAND
));
5730 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SA_NODEFER"), s7_make_integer(sc
, (s7_int
)SA_NODEFER
));
5733 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SA_RESTART"), s7_make_integer(sc
, (s7_int
)SA_RESTART
));
5736 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SA_ONSTACK"), s7_make_integer(sc
, (s7_int
)SA_ONSTACK
));
5739 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SA_SIGINFO"), s7_make_integer(sc
, (s7_int
)SA_SIGINFO
));
5742 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SA_NOCLDWAIT"), s7_make_integer(sc
, (s7_int
)SA_NOCLDWAIT
));
5745 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SA_NOCLDSTOP"), s7_make_integer(sc
, (s7_int
)SA_NOCLDSTOP
));
5748 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PRIO_USER"), s7_make_integer(sc
, (s7_int
)PRIO_USER
));
5751 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PRIO_PGRP"), s7_make_integer(sc
, (s7_int
)PRIO_PGRP
));
5754 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PRIO_PROCESS"), s7_make_integer(sc
, (s7_int
)PRIO_PROCESS
));
5757 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PRIO_MAX"), s7_make_integer(sc
, (s7_int
)PRIO_MAX
));
5760 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PRIO_MIN"), s7_make_integer(sc
, (s7_int
)PRIO_MIN
));
5763 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RUSAGE_LWP"), s7_make_integer(sc
, (s7_int
)RUSAGE_LWP
));
5765 #ifdef RUSAGE_THREAD
5766 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RUSAGE_THREAD"), s7_make_integer(sc
, (s7_int
)RUSAGE_THREAD
));
5768 #ifdef RUSAGE_CHILDREN
5769 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RUSAGE_CHILDREN"), s7_make_integer(sc
, (s7_int
)RUSAGE_CHILDREN
));
5772 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RUSAGE_SELF"), s7_make_integer(sc
, (s7_int
)RUSAGE_SELF
));
5774 #ifdef RLIM_SAVED_CUR
5775 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIM_SAVED_CUR"), s7_make_integer(sc
, (s7_int
)RLIM_SAVED_CUR
));
5777 #ifdef RLIM_SAVED_MAX
5778 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIM_SAVED_MAX"), s7_make_integer(sc
, (s7_int
)RLIM_SAVED_MAX
));
5780 #ifdef RLIM_INFINITY
5781 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIM_INFINITY"), s7_make_integer(sc
, (s7_int
)RLIM_INFINITY
));
5784 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIM_NLIMITS"), s7_make_integer(sc
, (s7_int
)RLIM_NLIMITS
));
5786 #ifdef RLIMIT_NLIMITS
5787 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_NLIMITS"), s7_make_integer(sc
, (s7_int
)RLIMIT_NLIMITS
));
5789 #ifdef RLIMIT_RTPRIO
5790 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_RTPRIO"), s7_make_integer(sc
, (s7_int
)RLIMIT_RTPRIO
));
5793 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_NICE"), s7_make_integer(sc
, (s7_int
)RLIMIT_NICE
));
5795 #ifdef RLIMIT_MSGQUEUE
5796 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_MSGQUEUE"), s7_make_integer(sc
, (s7_int
)RLIMIT_MSGQUEUE
));
5798 #ifdef RLIMIT_SIGPENDING
5799 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_SIGPENDING"), s7_make_integer(sc
, (s7_int
)RLIMIT_SIGPENDING
));
5802 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_LOCKS"), s7_make_integer(sc
, (s7_int
)RLIMIT_LOCKS
));
5804 #ifdef RLIMIT_MEMLOCK
5805 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_MEMLOCK"), s7_make_integer(sc
, (s7_int
)RLIMIT_MEMLOCK
));
5808 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_NPROC"), s7_make_integer(sc
, (s7_int
)RLIMIT_NPROC
));
5811 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_AS"), s7_make_integer(sc
, (s7_int
)RLIMIT_AS
));
5814 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_OFILE"), s7_make_integer(sc
, (s7_int
)RLIMIT_OFILE
));
5816 #ifdef RLIMIT_NOFILE
5817 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_NOFILE"), s7_make_integer(sc
, (s7_int
)RLIMIT_NOFILE
));
5820 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_RSS"), s7_make_integer(sc
, (s7_int
)RLIMIT_RSS
));
5823 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_CORE"), s7_make_integer(sc
, (s7_int
)RLIMIT_CORE
));
5826 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_STACK"), s7_make_integer(sc
, (s7_int
)RLIMIT_STACK
));
5829 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_DATA"), s7_make_integer(sc
, (s7_int
)RLIMIT_DATA
));
5832 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_FSIZE"), s7_make_integer(sc
, (s7_int
)RLIMIT_FSIZE
));
5835 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RLIMIT_CPU"), s7_make_integer(sc
, (s7_int
)RLIMIT_CPU
));
5838 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WNOWAIT"), s7_make_integer(sc
, (s7_int
)WNOWAIT
));
5841 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WCONTINUED"), s7_make_integer(sc
, (s7_int
)WCONTINUED
));
5844 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WEXITED"), s7_make_integer(sc
, (s7_int
)WEXITED
));
5847 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WSTOPPED"), s7_make_integer(sc
, (s7_int
)WSTOPPED
));
5850 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WUNTRACED"), s7_make_integer(sc
, (s7_int
)WUNTRACED
));
5853 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WNOHANG"), s7_make_integer(sc
, (s7_int
)WNOHANG
));
5856 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGUNUSED"), s7_make_integer(sc
, (s7_int
)SIGUNUSED
));
5859 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGSYS"), s7_make_integer(sc
, (s7_int
)SIGSYS
));
5862 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGPWR"), s7_make_integer(sc
, (s7_int
)SIGPWR
));
5865 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGIO"), s7_make_integer(sc
, (s7_int
)SIGIO
));
5868 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGPOLL"), s7_make_integer(sc
, (s7_int
)SIGPOLL
));
5871 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGWINCH"), s7_make_integer(sc
, (s7_int
)SIGWINCH
));
5874 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGPROF"), s7_make_integer(sc
, (s7_int
)SIGPROF
));
5877 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGVTALRM"), s7_make_integer(sc
, (s7_int
)SIGVTALRM
));
5880 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGXFSZ"), s7_make_integer(sc
, (s7_int
)SIGXFSZ
));
5883 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGXCPU"), s7_make_integer(sc
, (s7_int
)SIGXCPU
));
5886 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGURG"), s7_make_integer(sc
, (s7_int
)SIGURG
));
5889 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGTTOU"), s7_make_integer(sc
, (s7_int
)SIGTTOU
));
5892 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGTTIN"), s7_make_integer(sc
, (s7_int
)SIGTTIN
));
5895 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGTSTP"), s7_make_integer(sc
, (s7_int
)SIGTSTP
));
5898 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGSTOP"), s7_make_integer(sc
, (s7_int
)SIGSTOP
));
5901 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGCONT"), s7_make_integer(sc
, (s7_int
)SIGCONT
));
5904 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGCHLD"), s7_make_integer(sc
, (s7_int
)SIGCHLD
));
5907 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGCLD"), s7_make_integer(sc
, (s7_int
)SIGCLD
));
5910 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGSTKFLT"), s7_make_integer(sc
, (s7_int
)SIGSTKFLT
));
5913 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGTERM"), s7_make_integer(sc
, (s7_int
)SIGTERM
));
5916 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGALRM"), s7_make_integer(sc
, (s7_int
)SIGALRM
));
5919 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGPIPE"), s7_make_integer(sc
, (s7_int
)SIGPIPE
));
5922 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGUSR2"), s7_make_integer(sc
, (s7_int
)SIGUSR2
));
5925 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGSEGV"), s7_make_integer(sc
, (s7_int
)SIGSEGV
));
5928 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGUSR1"), s7_make_integer(sc
, (s7_int
)SIGUSR1
));
5931 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGKILL"), s7_make_integer(sc
, (s7_int
)SIGKILL
));
5934 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGFPE"), s7_make_integer(sc
, (s7_int
)SIGFPE
));
5937 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGBUS"), s7_make_integer(sc
, (s7_int
)SIGBUS
));
5940 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGIOT"), s7_make_integer(sc
, (s7_int
)SIGIOT
));
5943 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGABRT"), s7_make_integer(sc
, (s7_int
)SIGABRT
));
5946 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGTRAP"), s7_make_integer(sc
, (s7_int
)SIGTRAP
));
5949 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGILL"), s7_make_integer(sc
, (s7_int
)SIGILL
));
5952 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGQUIT"), s7_make_integer(sc
, (s7_int
)SIGQUIT
));
5955 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGINT"), s7_make_integer(sc
, (s7_int
)SIGINT
));
5958 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIGHUP"), s7_make_integer(sc
, (s7_int
)SIGHUP
));
5961 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_NOSYS"), s7_make_integer(sc
, (s7_int
)GLOB_NOSYS
));
5964 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_NOMATCH"), s7_make_integer(sc
, (s7_int
)GLOB_NOMATCH
));
5967 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_ABORTED"), s7_make_integer(sc
, (s7_int
)GLOB_ABORTED
));
5970 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_NOSPACE"), s7_make_integer(sc
, (s7_int
)GLOB_NOSPACE
));
5972 #ifdef GLOB_TILDE_CHECK
5973 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_TILDE_CHECK"), s7_make_integer(sc
, (s7_int
)GLOB_TILDE_CHECK
));
5976 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_ONLYDIR"), s7_make_integer(sc
, (s7_int
)GLOB_ONLYDIR
));
5979 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_TILDE"), s7_make_integer(sc
, (s7_int
)GLOB_TILDE
));
5982 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_NOMAGIC"), s7_make_integer(sc
, (s7_int
)GLOB_NOMAGIC
));
5985 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_BRACE"), s7_make_integer(sc
, (s7_int
)GLOB_BRACE
));
5987 #ifdef GLOB_ALTDIRFUNC
5988 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_ALTDIRFUNC"), s7_make_integer(sc
, (s7_int
)GLOB_ALTDIRFUNC
));
5991 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_MAGCHAR"), s7_make_integer(sc
, (s7_int
)GLOB_MAGCHAR
));
5994 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_PERIOD"), s7_make_integer(sc
, (s7_int
)GLOB_PERIOD
));
5996 #ifdef GLOB_NOESCAPE
5997 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_NOESCAPE"), s7_make_integer(sc
, (s7_int
)GLOB_NOESCAPE
));
6000 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_APPEND"), s7_make_integer(sc
, (s7_int
)GLOB_APPEND
));
6003 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_NOCHECK"), s7_make_integer(sc
, (s7_int
)GLOB_NOCHECK
));
6006 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_DOOFFS"), s7_make_integer(sc
, (s7_int
)GLOB_DOOFFS
));
6009 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_NOSORT"), s7_make_integer(sc
, (s7_int
)GLOB_NOSORT
));
6012 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_MARK"), s7_make_integer(sc
, (s7_int
)GLOB_MARK
));
6015 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "GLOB_ERR"), s7_make_integer(sc
, (s7_int
)GLOB_ERR
));
6017 #ifdef NSS_BUFLEN_PASSWD
6018 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "NSS_BUFLEN_PASSWD"), s7_make_integer(sc
, (s7_int
)NSS_BUFLEN_PASSWD
));
6021 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "TCSAFLUSH"), s7_make_integer(sc
, (s7_int
)TCSAFLUSH
));
6024 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "TCSADRAIN"), s7_make_integer(sc
, (s7_int
)TCSADRAIN
));
6027 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "TCSANOW"), s7_make_integer(sc
, (s7_int
)TCSANOW
));
6030 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "TCIOFLUSH"), s7_make_integer(sc
, (s7_int
)TCIOFLUSH
));
6033 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "TCOFLUSH"), s7_make_integer(sc
, (s7_int
)TCOFLUSH
));
6036 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "TCIFLUSH"), s7_make_integer(sc
, (s7_int
)TCIFLUSH
));
6039 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "TCION"), s7_make_integer(sc
, (s7_int
)TCION
));
6042 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "TCIOFF"), s7_make_integer(sc
, (s7_int
)TCIOFF
));
6045 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "TCOON"), s7_make_integer(sc
, (s7_int
)TCOON
));
6048 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "TCOOFF"), s7_make_integer(sc
, (s7_int
)TCOOFF
));
6051 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IEXTEN"), s7_make_integer(sc
, (s7_int
)IEXTEN
));
6054 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "TOSTOP"), s7_make_integer(sc
, (s7_int
)TOSTOP
));
6057 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "NOFLSH"), s7_make_integer(sc
, (s7_int
)NOFLSH
));
6060 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ECHONL"), s7_make_integer(sc
, (s7_int
)ECHONL
));
6063 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ECHOK"), s7_make_integer(sc
, (s7_int
)ECHOK
));
6066 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ECHOE"), s7_make_integer(sc
, (s7_int
)ECHOE
));
6069 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ECHO"), s7_make_integer(sc
, (s7_int
)ECHO
));
6072 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ICANON"), s7_make_integer(sc
, (s7_int
)ICANON
));
6075 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ISIG"), s7_make_integer(sc
, (s7_int
)ISIG
));
6078 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "OFDEL"), s7_make_integer(sc
, (s7_int
)OFDEL
));
6081 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "OFILL"), s7_make_integer(sc
, (s7_int
)OFILL
));
6084 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ONLRET"), s7_make_integer(sc
, (s7_int
)ONLRET
));
6087 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ONOCR"), s7_make_integer(sc
, (s7_int
)ONOCR
));
6090 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "OCRNL"), s7_make_integer(sc
, (s7_int
)OCRNL
));
6093 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ONLCR"), s7_make_integer(sc
, (s7_int
)ONLCR
));
6096 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "OLCUC"), s7_make_integer(sc
, (s7_int
)OLCUC
));
6099 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "OPOST"), s7_make_integer(sc
, (s7_int
)OPOST
));
6102 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IUTF8"), s7_make_integer(sc
, (s7_int
)IUTF8
));
6105 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IMAXBEL"), s7_make_integer(sc
, (s7_int
)IMAXBEL
));
6108 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IXOFF"), s7_make_integer(sc
, (s7_int
)IXOFF
));
6111 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IXANY"), s7_make_integer(sc
, (s7_int
)IXANY
));
6114 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IXON"), s7_make_integer(sc
, (s7_int
)IXON
));
6117 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IUCLC"), s7_make_integer(sc
, (s7_int
)IUCLC
));
6120 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ICRNL"), s7_make_integer(sc
, (s7_int
)ICRNL
));
6123 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IGNCR"), s7_make_integer(sc
, (s7_int
)IGNCR
));
6126 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INLCR"), s7_make_integer(sc
, (s7_int
)INLCR
));
6129 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ISTRIP"), s7_make_integer(sc
, (s7_int
)ISTRIP
));
6132 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INPCK"), s7_make_integer(sc
, (s7_int
)INPCK
));
6135 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PARMRK"), s7_make_integer(sc
, (s7_int
)PARMRK
));
6138 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IGNPAR"), s7_make_integer(sc
, (s7_int
)IGNPAR
));
6141 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "BRKINT"), s7_make_integer(sc
, (s7_int
)BRKINT
));
6144 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IGNBRK"), s7_make_integer(sc
, (s7_int
)IGNBRK
));
6147 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VEOL2"), s7_make_integer(sc
, (s7_int
)VEOL2
));
6150 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VLNEXT"), s7_make_integer(sc
, (s7_int
)VLNEXT
));
6153 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VWERASE"), s7_make_integer(sc
, (s7_int
)VWERASE
));
6156 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VDISCARD"), s7_make_integer(sc
, (s7_int
)VDISCARD
));
6159 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VREPRINT"), s7_make_integer(sc
, (s7_int
)VREPRINT
));
6162 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VEOL"), s7_make_integer(sc
, (s7_int
)VEOL
));
6165 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VSUSP"), s7_make_integer(sc
, (s7_int
)VSUSP
));
6168 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VSTOP"), s7_make_integer(sc
, (s7_int
)VSTOP
));
6171 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VSTART"), s7_make_integer(sc
, (s7_int
)VSTART
));
6174 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VSWTC"), s7_make_integer(sc
, (s7_int
)VSWTC
));
6177 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VMIN"), s7_make_integer(sc
, (s7_int
)VMIN
));
6180 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VTIME"), s7_make_integer(sc
, (s7_int
)VTIME
));
6183 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VEOF"), s7_make_integer(sc
, (s7_int
)VEOF
));
6186 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VKILL"), s7_make_integer(sc
, (s7_int
)VKILL
));
6189 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VERASE"), s7_make_integer(sc
, (s7_int
)VERASE
));
6192 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VQUIT"), s7_make_integer(sc
, (s7_int
)VQUIT
));
6195 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "VINTR"), s7_make_integer(sc
, (s7_int
)VINTR
));
6197 #ifdef CLOCK_MONOTONIC_COARSE
6198 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "CLOCK_MONOTONIC_COARSE"), s7_make_integer(sc
, (s7_int
)CLOCK_MONOTONIC_COARSE
));
6200 #ifdef CLOCK_REALTIME_COARSE
6201 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "CLOCK_REALTIME_COARSE"), s7_make_integer(sc
, (s7_int
)CLOCK_REALTIME_COARSE
));
6203 #ifdef CLOCK_MONOTONIC_RAW
6204 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "CLOCK_MONOTONIC_RAW"), s7_make_integer(sc
, (s7_int
)CLOCK_MONOTONIC_RAW
));
6206 #ifdef CLOCK_THREAD_CPUTIME_ID
6207 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "CLOCK_THREAD_CPUTIME_ID"), s7_make_integer(sc
, (s7_int
)CLOCK_THREAD_CPUTIME_ID
));
6209 #ifdef CLOCK_PROCESS_CPUTIME_ID
6210 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "CLOCK_PROCESS_CPUTIME_ID"), s7_make_integer(sc
, (s7_int
)CLOCK_PROCESS_CPUTIME_ID
));
6212 #ifdef CLOCK_MONOTONIC
6213 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "CLOCK_MONOTONIC"), s7_make_integer(sc
, (s7_int
)CLOCK_MONOTONIC
));
6215 #ifdef CLOCK_REALTIME
6216 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "CLOCK_REALTIME"), s7_make_integer(sc
, (s7_int
)CLOCK_REALTIME
));
6218 #ifdef CLOCKS_PER_SEC
6219 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "CLOCKS_PER_SEC"), s7_make_integer(sc
, (s7_int
)CLOCKS_PER_SEC
));
6222 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IFLNK"), s7_make_integer(sc
, (s7_int
)S_IFLNK
));
6225 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FTW_NS"), s7_make_integer(sc
, (s7_int
)FTW_NS
));
6228 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FTW_DNR"), s7_make_integer(sc
, (s7_int
)FTW_DNR
));
6231 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FTW_D"), s7_make_integer(sc
, (s7_int
)FTW_D
));
6234 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FTW_F"), s7_make_integer(sc
, (s7_int
)FTW_F
));
6236 #ifdef _CS_GNU_LIBPTHREAD_VERSION
6237 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_CS_GNU_LIBPTHREAD_VERSION"), s7_make_integer(sc
, (s7_int
)_CS_GNU_LIBPTHREAD_VERSION
));
6239 #ifdef _SC_LEVEL4_CACHE_ASSOC
6240 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL4_CACHE_ASSOC"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL4_CACHE_ASSOC
));
6242 #ifdef _SC_LEVEL2_CACHE_ASSOC
6243 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL2_CACHE_ASSOC"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL2_CACHE_ASSOC
));
6245 #ifdef _SC_THREAD_PRIORITY_SCHEDULING
6246 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_PRIORITY_SCHEDULING"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_PRIORITY_SCHEDULING
));
6248 #ifdef _CS_GNU_LIBC_VERSION
6249 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_CS_GNU_LIBC_VERSION"), s7_make_integer(sc
, (s7_int
)_CS_GNU_LIBC_VERSION
));
6252 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_CS_PATH"), s7_make_integer(sc
, (s7_int
)_CS_PATH
));
6254 #ifdef _SC_THREAD_ROBUST_PRIO_PROTECT
6255 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_ROBUST_PRIO_PROTECT"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_ROBUST_PRIO_PROTECT
));
6257 #ifdef _SC_THREAD_ROBUST_PRIO_INHERIT
6258 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_ROBUST_PRIO_INHERIT"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_ROBUST_PRIO_INHERIT
));
6260 #ifdef _SC_TRACE_USER_EVENT_MAX
6261 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TRACE_USER_EVENT_MAX"), s7_make_integer(sc
, (s7_int
)_SC_TRACE_USER_EVENT_MAX
));
6263 #ifdef _SC_TRACE_SYS_MAX
6264 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TRACE_SYS_MAX"), s7_make_integer(sc
, (s7_int
)_SC_TRACE_SYS_MAX
));
6266 #ifdef _SC_TRACE_NAME_MAX
6267 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TRACE_NAME_MAX"), s7_make_integer(sc
, (s7_int
)_SC_TRACE_NAME_MAX
));
6269 #ifdef _SC_TRACE_EVENT_NAME_MAX
6270 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TRACE_EVENT_NAME_MAX"), s7_make_integer(sc
, (s7_int
)_SC_TRACE_EVENT_NAME_MAX
));
6272 #ifdef _SC_SS_REPL_MAX
6273 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SS_REPL_MAX"), s7_make_integer(sc
, (s7_int
)_SC_SS_REPL_MAX
));
6275 #ifdef _SC_RAW_SOCKETS
6276 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_RAW_SOCKETS"), s7_make_integer(sc
, (s7_int
)_SC_RAW_SOCKETS
));
6279 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_IPV6"), s7_make_integer(sc
, (s7_int
)_SC_IPV6
));
6281 #ifdef _SC_LEVEL4_CACHE_LINESIZE
6282 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL4_CACHE_LINESIZE"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL4_CACHE_LINESIZE
));
6284 #ifdef _SC_LEVEL4_CACHE_SIZE
6285 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL4_CACHE_SIZE"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL4_CACHE_SIZE
));
6287 #ifdef _SC_LEVEL3_CACHE_LINESIZE
6288 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL3_CACHE_LINESIZE"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL3_CACHE_LINESIZE
));
6290 #ifdef _SC_LEVEL3_CACHE_ASSOC
6291 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL3_CACHE_ASSOC"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL3_CACHE_ASSOC
));
6293 #ifdef _SC_LEVEL3_CACHE_SIZE
6294 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL3_CACHE_SIZE"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL3_CACHE_SIZE
));
6296 #ifdef _SC_LEVEL2_CACHE_LINESIZE
6297 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL2_CACHE_LINESIZE"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL2_CACHE_LINESIZE
));
6299 #ifdef _SC_LEVEL2_CACHE_SIZE
6300 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL2_CACHE_SIZE"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL2_CACHE_SIZE
));
6302 #ifdef _SC_LEVEL1_DCACHE_LINESIZE
6303 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL1_DCACHE_LINESIZE"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL1_DCACHE_LINESIZE
));
6305 #ifdef _SC_LEVEL1_DCACHE_ASSOC
6306 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL1_DCACHE_ASSOC"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL1_DCACHE_ASSOC
));
6308 #ifdef _SC_LEVEL1_DCACHE_SIZE
6309 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL1_DCACHE_SIZE"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL1_DCACHE_SIZE
));
6311 #ifdef _SC_LEVEL1_ICACHE_LINESIZE
6312 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL1_ICACHE_LINESIZE"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL1_ICACHE_LINESIZE
));
6314 #ifdef _SC_LEVEL1_ICACHE_ASSOC
6315 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL1_ICACHE_ASSOC"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL1_ICACHE_ASSOC
));
6317 #ifdef _SC_LEVEL1_ICACHE_SIZE
6318 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LEVEL1_ICACHE_SIZE"), s7_make_integer(sc
, (s7_int
)_SC_LEVEL1_ICACHE_SIZE
));
6320 #ifdef _SC_TRACE_LOG
6321 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TRACE_LOG"), s7_make_integer(sc
, (s7_int
)_SC_TRACE_LOG
));
6323 #ifdef _SC_TRACE_INHERIT
6324 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TRACE_INHERIT"), s7_make_integer(sc
, (s7_int
)_SC_TRACE_INHERIT
));
6326 #ifdef _SC_TRACE_EVENT_FILTER
6327 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TRACE_EVENT_FILTER"), s7_make_integer(sc
, (s7_int
)_SC_TRACE_EVENT_FILTER
));
6330 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TRACE"), s7_make_integer(sc
, (s7_int
)_SC_TRACE
));
6332 #ifdef _SC_HOST_NAME_MAX
6333 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_HOST_NAME_MAX"), s7_make_integer(sc
, (s7_int
)_SC_HOST_NAME_MAX
));
6335 #ifdef _SC_2_PBS_CHECKPOINT
6336 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_PBS_CHECKPOINT"), s7_make_integer(sc
, (s7_int
)_SC_2_PBS_CHECKPOINT
));
6339 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_STREAMS"), s7_make_integer(sc
, (s7_int
)_SC_STREAMS
));
6341 #ifdef _SC_SYMLOOP_MAX
6342 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SYMLOOP_MAX"), s7_make_integer(sc
, (s7_int
)_SC_SYMLOOP_MAX
));
6344 #ifdef _SC_2_PBS_TRACK
6345 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_PBS_TRACK"), s7_make_integer(sc
, (s7_int
)_SC_2_PBS_TRACK
));
6347 #ifdef _SC_2_PBS_MESSAGE
6348 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_PBS_MESSAGE"), s7_make_integer(sc
, (s7_int
)_SC_2_PBS_MESSAGE
));
6350 #ifdef _SC_2_PBS_LOCATE
6351 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_PBS_LOCATE"), s7_make_integer(sc
, (s7_int
)_SC_2_PBS_LOCATE
));
6353 #ifdef _SC_2_PBS_ACCOUNTING
6354 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_PBS_ACCOUNTING"), s7_make_integer(sc
, (s7_int
)_SC_2_PBS_ACCOUNTING
));
6357 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_PBS"), s7_make_integer(sc
, (s7_int
)_SC_2_PBS
));
6359 #ifdef _SC_USER_GROUPS_R
6360 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_USER_GROUPS_R"), s7_make_integer(sc
, (s7_int
)_SC_USER_GROUPS_R
));
6362 #ifdef _SC_USER_GROUPS
6363 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_USER_GROUPS"), s7_make_integer(sc
, (s7_int
)_SC_USER_GROUPS
));
6365 #ifdef _SC_TYPED_MEMORY_OBJECTS
6366 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TYPED_MEMORY_OBJECTS"), s7_make_integer(sc
, (s7_int
)_SC_TYPED_MEMORY_OBJECTS
));
6369 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TIMEOUTS"), s7_make_integer(sc
, (s7_int
)_SC_TIMEOUTS
));
6371 #ifdef _SC_SYSTEM_DATABASE_R
6372 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SYSTEM_DATABASE_R"), s7_make_integer(sc
, (s7_int
)_SC_SYSTEM_DATABASE_R
));
6374 #ifdef _SC_SYSTEM_DATABASE
6375 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SYSTEM_DATABASE"), s7_make_integer(sc
, (s7_int
)_SC_SYSTEM_DATABASE
));
6377 #ifdef _SC_THREAD_SPORADIC_SERVER
6378 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_SPORADIC_SERVER"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_SPORADIC_SERVER
));
6380 #ifdef _SC_SPORADIC_SERVER
6381 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SPORADIC_SERVER"), s7_make_integer(sc
, (s7_int
)_SC_SPORADIC_SERVER
));
6384 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SPAWN"), s7_make_integer(sc
, (s7_int
)_SC_SPAWN
));
6387 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SIGNALS"), s7_make_integer(sc
, (s7_int
)_SC_SIGNALS
));
6390 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SHELL"), s7_make_integer(sc
, (s7_int
)_SC_SHELL
));
6392 #ifdef _SC_REGEX_VERSION
6393 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_REGEX_VERSION"), s7_make_integer(sc
, (s7_int
)_SC_REGEX_VERSION
));
6396 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_REGEXP"), s7_make_integer(sc
, (s7_int
)_SC_REGEXP
));
6398 #ifdef _SC_SPIN_LOCKS
6399 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SPIN_LOCKS"), s7_make_integer(sc
, (s7_int
)_SC_SPIN_LOCKS
));
6401 #ifdef _SC_READER_WRITER_LOCKS
6402 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_READER_WRITER_LOCKS"), s7_make_integer(sc
, (s7_int
)_SC_READER_WRITER_LOCKS
));
6404 #ifdef _SC_NETWORKING
6405 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_NETWORKING"), s7_make_integer(sc
, (s7_int
)_SC_NETWORKING
));
6407 #ifdef _SC_SINGLE_PROCESS
6408 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SINGLE_PROCESS"), s7_make_integer(sc
, (s7_int
)_SC_SINGLE_PROCESS
));
6410 #ifdef _SC_MULTI_PROCESS
6411 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_MULTI_PROCESS"), s7_make_integer(sc
, (s7_int
)_SC_MULTI_PROCESS
));
6413 #ifdef _SC_MONOTONIC_CLOCK
6414 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_MONOTONIC_CLOCK"), s7_make_integer(sc
, (s7_int
)_SC_MONOTONIC_CLOCK
));
6416 #ifdef _SC_FILE_SYSTEM
6417 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_FILE_SYSTEM"), s7_make_integer(sc
, (s7_int
)_SC_FILE_SYSTEM
));
6419 #ifdef _SC_FILE_LOCKING
6420 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_FILE_LOCKING"), s7_make_integer(sc
, (s7_int
)_SC_FILE_LOCKING
));
6422 #ifdef _SC_FILE_ATTRIBUTES
6423 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_FILE_ATTRIBUTES"), s7_make_integer(sc
, (s7_int
)_SC_FILE_ATTRIBUTES
));
6426 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PIPE"), s7_make_integer(sc
, (s7_int
)_SC_PIPE
));
6429 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_FIFO"), s7_make_integer(sc
, (s7_int
)_SC_FIFO
));
6432 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_FD_MGMT"), s7_make_integer(sc
, (s7_int
)_SC_FD_MGMT
));
6434 #ifdef _SC_DEVICE_SPECIFIC_R
6435 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_DEVICE_SPECIFIC_R"), s7_make_integer(sc
, (s7_int
)_SC_DEVICE_SPECIFIC_R
));
6437 #ifdef _SC_DEVICE_SPECIFIC
6438 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_DEVICE_SPECIFIC"), s7_make_integer(sc
, (s7_int
)_SC_DEVICE_SPECIFIC
));
6440 #ifdef _SC_DEVICE_IO
6441 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_DEVICE_IO"), s7_make_integer(sc
, (s7_int
)_SC_DEVICE_IO
));
6443 #ifdef _SC_THREAD_CPUTIME
6444 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_CPUTIME"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_CPUTIME
));
6447 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_CPUTIME"), s7_make_integer(sc
, (s7_int
)_SC_CPUTIME
));
6449 #ifdef _SC_CLOCK_SELECTION
6450 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_CLOCK_SELECTION"), s7_make_integer(sc
, (s7_int
)_SC_CLOCK_SELECTION
));
6452 #ifdef _SC_C_LANG_SUPPORT_R
6453 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_C_LANG_SUPPORT_R"), s7_make_integer(sc
, (s7_int
)_SC_C_LANG_SUPPORT_R
));
6455 #ifdef _SC_C_LANG_SUPPORT
6456 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_C_LANG_SUPPORT"), s7_make_integer(sc
, (s7_int
)_SC_C_LANG_SUPPORT
));
6459 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_BASE"), s7_make_integer(sc
, (s7_int
)_SC_BASE
));
6462 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_BARRIERS"), s7_make_integer(sc
, (s7_int
)_SC_BARRIERS
));
6464 #ifdef _SC_ADVISORY_INFO
6465 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_ADVISORY_INFO"), s7_make_integer(sc
, (s7_int
)_SC_ADVISORY_INFO
));
6467 #ifdef _SC_NL_TEXTMAX
6468 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_NL_TEXTMAX"), s7_make_integer(sc
, (s7_int
)_SC_NL_TEXTMAX
));
6470 #ifdef _SC_NL_SETMAX
6471 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_NL_SETMAX"), s7_make_integer(sc
, (s7_int
)_SC_NL_SETMAX
));
6474 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_NL_NMAX"), s7_make_integer(sc
, (s7_int
)_SC_NL_NMAX
));
6476 #ifdef _SC_NL_MSGMAX
6477 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_NL_MSGMAX"), s7_make_integer(sc
, (s7_int
)_SC_NL_MSGMAX
));
6479 #ifdef _SC_NL_LANGMAX
6480 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_NL_LANGMAX"), s7_make_integer(sc
, (s7_int
)_SC_NL_LANGMAX
));
6482 #ifdef _SC_NL_ARGMAX
6483 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_NL_ARGMAX"), s7_make_integer(sc
, (s7_int
)_SC_NL_ARGMAX
));
6485 #ifdef _SC_USHRT_MAX
6486 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_USHRT_MAX"), s7_make_integer(sc
, (s7_int
)_SC_USHRT_MAX
));
6488 #ifdef _SC_ULONG_MAX
6489 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_ULONG_MAX"), s7_make_integer(sc
, (s7_int
)_SC_ULONG_MAX
));
6492 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_UINT_MAX"), s7_make_integer(sc
, (s7_int
)_SC_UINT_MAX
));
6494 #ifdef _SC_UCHAR_MAX
6495 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_UCHAR_MAX"), s7_make_integer(sc
, (s7_int
)_SC_UCHAR_MAX
));
6498 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SHRT_MIN"), s7_make_integer(sc
, (s7_int
)_SC_SHRT_MIN
));
6501 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SHRT_MAX"), s7_make_integer(sc
, (s7_int
)_SC_SHRT_MAX
));
6503 #ifdef _SC_SCHAR_MIN
6504 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SCHAR_MIN"), s7_make_integer(sc
, (s7_int
)_SC_SCHAR_MIN
));
6506 #ifdef _SC_SCHAR_MAX
6507 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SCHAR_MAX"), s7_make_integer(sc
, (s7_int
)_SC_SCHAR_MAX
));
6509 #ifdef _SC_SSIZE_MAX
6510 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SSIZE_MAX"), s7_make_integer(sc
, (s7_int
)_SC_SSIZE_MAX
));
6513 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_NZERO"), s7_make_integer(sc
, (s7_int
)_SC_NZERO
));
6515 #ifdef _SC_MB_LEN_MAX
6516 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_MB_LEN_MAX"), s7_make_integer(sc
, (s7_int
)_SC_MB_LEN_MAX
));
6519 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_WORD_BIT"), s7_make_integer(sc
, (s7_int
)_SC_WORD_BIT
));
6522 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LONG_BIT"), s7_make_integer(sc
, (s7_int
)_SC_LONG_BIT
));
6525 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_INT_MIN"), s7_make_integer(sc
, (s7_int
)_SC_INT_MIN
));
6528 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_INT_MAX"), s7_make_integer(sc
, (s7_int
)_SC_INT_MAX
));
6531 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_CHAR_MIN"), s7_make_integer(sc
, (s7_int
)_SC_CHAR_MIN
));
6534 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_CHAR_MAX"), s7_make_integer(sc
, (s7_int
)_SC_CHAR_MAX
));
6537 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_CHAR_BIT"), s7_make_integer(sc
, (s7_int
)_SC_CHAR_BIT
));
6540 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_UPE"), s7_make_integer(sc
, (s7_int
)_SC_2_UPE
));
6542 #ifdef _SC_2_C_VERSION
6543 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_C_VERSION"), s7_make_integer(sc
, (s7_int
)_SC_2_C_VERSION
));
6545 #ifdef _SC_2_CHAR_TERM
6546 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_CHAR_TERM"), s7_make_integer(sc
, (s7_int
)_SC_2_CHAR_TERM
));
6549 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PASS_MAX"), s7_make_integer(sc
, (s7_int
)_SC_PASS_MAX
));
6551 #ifdef _SC_ATEXIT_MAX
6552 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_ATEXIT_MAX"), s7_make_integer(sc
, (s7_int
)_SC_ATEXIT_MAX
));
6554 #ifdef _SC_AVPHYS_PAGES
6555 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_AVPHYS_PAGES"), s7_make_integer(sc
, (s7_int
)_SC_AVPHYS_PAGES
));
6557 #ifdef _SC_PHYS_PAGES
6558 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PHYS_PAGES"), s7_make_integer(sc
, (s7_int
)_SC_PHYS_PAGES
));
6560 #ifdef _SC_NPROCESSORS_ONLN
6561 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_NPROCESSORS_ONLN"), s7_make_integer(sc
, (s7_int
)_SC_NPROCESSORS_ONLN
));
6563 #ifdef _SC_NPROCESSORS_CONF
6564 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_NPROCESSORS_CONF"), s7_make_integer(sc
, (s7_int
)_SC_NPROCESSORS_CONF
));
6566 #ifdef _SC_THREAD_PROCESS_SHARED
6567 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_PROCESS_SHARED"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_PROCESS_SHARED
));
6569 #ifdef _SC_THREAD_PRIO_PROTECT
6570 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_PRIO_PROTECT"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_PRIO_PROTECT
));
6572 #ifdef _SC_THREAD_PRIO_INHERIT
6573 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_PRIO_INHERIT"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_PRIO_INHERIT
));
6575 #ifdef _SC_THREAD_ATTR_STACKSIZE
6576 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_ATTR_STACKSIZE"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_ATTR_STACKSIZE
));
6578 #ifdef _SC_THREAD_ATTR_STACKADDR
6579 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_ATTR_STACKADDR"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_ATTR_STACKADDR
));
6581 #ifdef _SC_THREAD_THREADS_MAX
6582 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_THREADS_MAX"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_THREADS_MAX
));
6584 #ifdef _SC_THREAD_STACK_MIN
6585 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_STACK_MIN"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_STACK_MIN
));
6587 #ifdef _SC_THREAD_KEYS_MAX
6588 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_KEYS_MAX"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_KEYS_MAX
));
6590 #ifdef _SC_THREAD_DESTRUCTOR_ITERATIONS
6591 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_DESTRUCTOR_ITERATIONS"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_DESTRUCTOR_ITERATIONS
));
6593 #ifdef _SC_TTY_NAME_MAX
6594 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TTY_NAME_MAX"), s7_make_integer(sc
, (s7_int
)_SC_TTY_NAME_MAX
));
6596 #ifdef _SC_LOGIN_NAME_MAX
6597 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LOGIN_NAME_MAX"), s7_make_integer(sc
, (s7_int
)_SC_LOGIN_NAME_MAX
));
6599 #ifdef _SC_GETPW_R_SIZE_MAX
6600 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_GETPW_R_SIZE_MAX"), s7_make_integer(sc
, (s7_int
)_SC_GETPW_R_SIZE_MAX
));
6602 #ifdef _SC_GETGR_R_SIZE_MAX
6603 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_GETGR_R_SIZE_MAX"), s7_make_integer(sc
, (s7_int
)_SC_GETGR_R_SIZE_MAX
));
6605 #ifdef _SC_THREAD_SAFE_FUNCTIONS
6606 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREAD_SAFE_FUNCTIONS"), s7_make_integer(sc
, (s7_int
)_SC_THREAD_SAFE_FUNCTIONS
));
6609 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_THREADS"), s7_make_integer(sc
, (s7_int
)_SC_THREADS
));
6611 #ifdef _SC_T_IOV_MAX
6612 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_T_IOV_MAX"), s7_make_integer(sc
, (s7_int
)_SC_T_IOV_MAX
));
6614 #ifdef _SC_PII_OSI_M
6615 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PII_OSI_M"), s7_make_integer(sc
, (s7_int
)_SC_PII_OSI_M
));
6617 #ifdef _SC_PII_OSI_CLTS
6618 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PII_OSI_CLTS"), s7_make_integer(sc
, (s7_int
)_SC_PII_OSI_CLTS
));
6620 #ifdef _SC_PII_OSI_COTS
6621 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PII_OSI_COTS"), s7_make_integer(sc
, (s7_int
)_SC_PII_OSI_COTS
));
6623 #ifdef _SC_PII_INTERNET_DGRAM
6624 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PII_INTERNET_DGRAM"), s7_make_integer(sc
, (s7_int
)_SC_PII_INTERNET_DGRAM
));
6626 #ifdef _SC_PII_INTERNET_STREAM
6627 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PII_INTERNET_STREAM"), s7_make_integer(sc
, (s7_int
)_SC_PII_INTERNET_STREAM
));
6630 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_IOV_MAX"), s7_make_integer(sc
, (s7_int
)_SC_IOV_MAX
));
6632 #ifdef _SC_UIO_MAXIOV
6633 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_UIO_MAXIOV"), s7_make_integer(sc
, (s7_int
)_SC_UIO_MAXIOV
));
6636 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SELECT"), s7_make_integer(sc
, (s7_int
)_SC_SELECT
));
6639 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_POLL"), s7_make_integer(sc
, (s7_int
)_SC_POLL
));
6642 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PII_OSI"), s7_make_integer(sc
, (s7_int
)_SC_PII_OSI
));
6644 #ifdef _SC_PII_INTERNET
6645 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PII_INTERNET"), s7_make_integer(sc
, (s7_int
)_SC_PII_INTERNET
));
6647 #ifdef _SC_PII_SOCKET
6648 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PII_SOCKET"), s7_make_integer(sc
, (s7_int
)_SC_PII_SOCKET
));
6651 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PII_XTI"), s7_make_integer(sc
, (s7_int
)_SC_PII_XTI
));
6654 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PII"), s7_make_integer(sc
, (s7_int
)_SC_PII
));
6656 #ifdef _SC_2_LOCALEDEF
6657 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_LOCALEDEF"), s7_make_integer(sc
, (s7_int
)_SC_2_LOCALEDEF
));
6660 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_SW_DEV"), s7_make_integer(sc
, (s7_int
)_SC_2_SW_DEV
));
6662 #ifdef _SC_2_FORT_RUN
6663 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_FORT_RUN"), s7_make_integer(sc
, (s7_int
)_SC_2_FORT_RUN
));
6665 #ifdef _SC_2_FORT_DEV
6666 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_FORT_DEV"), s7_make_integer(sc
, (s7_int
)_SC_2_FORT_DEV
));
6669 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_C_DEV"), s7_make_integer(sc
, (s7_int
)_SC_2_C_DEV
));
6672 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_C_BIND"), s7_make_integer(sc
, (s7_int
)_SC_2_C_BIND
));
6674 #ifdef _SC_2_VERSION
6675 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_2_VERSION"), s7_make_integer(sc
, (s7_int
)_SC_2_VERSION
));
6677 #ifdef _SC_CHARCLASS_NAME_MAX
6678 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_CHARCLASS_NAME_MAX"), s7_make_integer(sc
, (s7_int
)_SC_CHARCLASS_NAME_MAX
));
6680 #ifdef _SC_RE_DUP_MAX
6681 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_RE_DUP_MAX"), s7_make_integer(sc
, (s7_int
)_SC_RE_DUP_MAX
));
6684 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_LINE_MAX"), s7_make_integer(sc
, (s7_int
)_SC_LINE_MAX
));
6686 #ifdef _SC_EXPR_NEST_MAX
6687 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_EXPR_NEST_MAX"), s7_make_integer(sc
, (s7_int
)_SC_EXPR_NEST_MAX
));
6689 #ifdef _SC_EQUIV_CLASS_MAX
6690 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_EQUIV_CLASS_MAX"), s7_make_integer(sc
, (s7_int
)_SC_EQUIV_CLASS_MAX
));
6692 #ifdef _SC_COLL_WEIGHTS_MAX
6693 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_COLL_WEIGHTS_MAX"), s7_make_integer(sc
, (s7_int
)_SC_COLL_WEIGHTS_MAX
));
6695 #ifdef _SC_BC_STRING_MAX
6696 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_BC_STRING_MAX"), s7_make_integer(sc
, (s7_int
)_SC_BC_STRING_MAX
));
6698 #ifdef _SC_BC_SCALE_MAX
6699 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_BC_SCALE_MAX"), s7_make_integer(sc
, (s7_int
)_SC_BC_SCALE_MAX
));
6701 #ifdef _SC_BC_DIM_MAX
6702 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_BC_DIM_MAX"), s7_make_integer(sc
, (s7_int
)_SC_BC_DIM_MAX
));
6704 #ifdef _SC_BC_BASE_MAX
6705 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_BC_BASE_MAX"), s7_make_integer(sc
, (s7_int
)_SC_BC_BASE_MAX
));
6707 #ifdef _SC_TIMER_MAX
6708 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TIMER_MAX"), s7_make_integer(sc
, (s7_int
)_SC_TIMER_MAX
));
6710 #ifdef _SC_SIGQUEUE_MAX
6711 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SIGQUEUE_MAX"), s7_make_integer(sc
, (s7_int
)_SC_SIGQUEUE_MAX
));
6713 #ifdef _SC_SEM_VALUE_MAX
6714 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SEM_VALUE_MAX"), s7_make_integer(sc
, (s7_int
)_SC_SEM_VALUE_MAX
));
6716 #ifdef _SC_SEM_NSEMS_MAX
6717 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SEM_NSEMS_MAX"), s7_make_integer(sc
, (s7_int
)_SC_SEM_NSEMS_MAX
));
6719 #ifdef _SC_RTSIG_MAX
6720 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_RTSIG_MAX"), s7_make_integer(sc
, (s7_int
)_SC_RTSIG_MAX
));
6722 #ifdef _SC_PAGE_SIZE
6723 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PAGE_SIZE"), s7_make_integer(sc
, (s7_int
)_SC_PAGE_SIZE
));
6726 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PAGESIZE"), s7_make_integer(sc
, (s7_int
)_SC_PAGESIZE
));
6729 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_VERSION"), s7_make_integer(sc
, (s7_int
)_SC_VERSION
));
6731 #ifdef _SC_MQ_PRIO_MAX
6732 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_MQ_PRIO_MAX"), s7_make_integer(sc
, (s7_int
)_SC_MQ_PRIO_MAX
));
6734 #ifdef _SC_MQ_OPEN_MAX
6735 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_MQ_OPEN_MAX"), s7_make_integer(sc
, (s7_int
)_SC_MQ_OPEN_MAX
));
6737 #ifdef _SC_DELAYTIMER_MAX
6738 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_DELAYTIMER_MAX"), s7_make_integer(sc
, (s7_int
)_SC_DELAYTIMER_MAX
));
6740 #ifdef _SC_AIO_PRIO_DELTA_MAX
6741 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_AIO_PRIO_DELTA_MAX"), s7_make_integer(sc
, (s7_int
)_SC_AIO_PRIO_DELTA_MAX
));
6744 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_AIO_MAX"), s7_make_integer(sc
, (s7_int
)_SC_AIO_MAX
));
6746 #ifdef _SC_AIO_LISTIO_MAX
6747 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_AIO_LISTIO_MAX"), s7_make_integer(sc
, (s7_int
)_SC_AIO_LISTIO_MAX
));
6749 #ifdef _SC_SHARED_MEMORY_OBJECTS
6750 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SHARED_MEMORY_OBJECTS"), s7_make_integer(sc
, (s7_int
)_SC_SHARED_MEMORY_OBJECTS
));
6752 #ifdef _SC_SEMAPHORES
6753 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SEMAPHORES"), s7_make_integer(sc
, (s7_int
)_SC_SEMAPHORES
));
6755 #ifdef _SC_MESSAGE_PASSING
6756 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_MESSAGE_PASSING"), s7_make_integer(sc
, (s7_int
)_SC_MESSAGE_PASSING
));
6758 #ifdef _SC_MEMORY_PROTECTION
6759 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_MEMORY_PROTECTION"), s7_make_integer(sc
, (s7_int
)_SC_MEMORY_PROTECTION
));
6761 #ifdef _SC_MEMLOCK_RANGE
6762 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_MEMLOCK_RANGE"), s7_make_integer(sc
, (s7_int
)_SC_MEMLOCK_RANGE
));
6765 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_MEMLOCK"), s7_make_integer(sc
, (s7_int
)_SC_MEMLOCK
));
6767 #ifdef _SC_MAPPED_FILES
6768 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_MAPPED_FILES"), s7_make_integer(sc
, (s7_int
)_SC_MAPPED_FILES
));
6771 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_FSYNC"), s7_make_integer(sc
, (s7_int
)_SC_FSYNC
));
6773 #ifdef _SC_SYNCHRONIZED_IO
6774 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SYNCHRONIZED_IO"), s7_make_integer(sc
, (s7_int
)_SC_SYNCHRONIZED_IO
));
6776 #ifdef _SC_PRIORITIZED_IO
6777 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PRIORITIZED_IO"), s7_make_integer(sc
, (s7_int
)_SC_PRIORITIZED_IO
));
6779 #ifdef _SC_ASYNCHRONOUS_IO
6780 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_ASYNCHRONOUS_IO"), s7_make_integer(sc
, (s7_int
)_SC_ASYNCHRONOUS_IO
));
6783 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TIMERS"), s7_make_integer(sc
, (s7_int
)_SC_TIMERS
));
6785 #ifdef _SC_PRIORITY_SCHEDULING
6786 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_PRIORITY_SCHEDULING"), s7_make_integer(sc
, (s7_int
)_SC_PRIORITY_SCHEDULING
));
6788 #ifdef _SC_REALTIME_SIGNALS
6789 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_REALTIME_SIGNALS"), s7_make_integer(sc
, (s7_int
)_SC_REALTIME_SIGNALS
));
6791 #ifdef _SC_SAVED_IDS
6792 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_SAVED_IDS"), s7_make_integer(sc
, (s7_int
)_SC_SAVED_IDS
));
6794 #ifdef _SC_JOB_CONTROL
6795 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_JOB_CONTROL"), s7_make_integer(sc
, (s7_int
)_SC_JOB_CONTROL
));
6797 #ifdef _SC_TZNAME_MAX
6798 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_TZNAME_MAX"), s7_make_integer(sc
, (s7_int
)_SC_TZNAME_MAX
));
6800 #ifdef _SC_STREAM_MAX
6801 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_STREAM_MAX"), s7_make_integer(sc
, (s7_int
)_SC_STREAM_MAX
));
6804 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_OPEN_MAX"), s7_make_integer(sc
, (s7_int
)_SC_OPEN_MAX
));
6806 #ifdef _SC_NGROUPS_MAX
6807 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_NGROUPS_MAX"), s7_make_integer(sc
, (s7_int
)_SC_NGROUPS_MAX
));
6810 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_CLK_TCK"), s7_make_integer(sc
, (s7_int
)_SC_CLK_TCK
));
6812 #ifdef _SC_CHILD_MAX
6813 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_CHILD_MAX"), s7_make_integer(sc
, (s7_int
)_SC_CHILD_MAX
));
6816 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_SC_ARG_MAX"), s7_make_integer(sc
, (s7_int
)_SC_ARG_MAX
));
6818 #ifdef _PC_2_SYMLINKS
6819 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_2_SYMLINKS"), s7_make_integer(sc
, (s7_int
)_PC_2_SYMLINKS
));
6821 #ifdef _PC_SYMLINK_MAX
6822 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_SYMLINK_MAX"), s7_make_integer(sc
, (s7_int
)_PC_SYMLINK_MAX
));
6824 #ifdef _PC_ALLOC_SIZE_MIN
6825 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_ALLOC_SIZE_MIN"), s7_make_integer(sc
, (s7_int
)_PC_ALLOC_SIZE_MIN
));
6827 #ifdef _PC_REC_XFER_ALIGN
6828 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_REC_XFER_ALIGN"), s7_make_integer(sc
, (s7_int
)_PC_REC_XFER_ALIGN
));
6830 #ifdef _PC_REC_MIN_XFER_SIZE
6831 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_REC_MIN_XFER_SIZE"), s7_make_integer(sc
, (s7_int
)_PC_REC_MIN_XFER_SIZE
));
6833 #ifdef _PC_REC_MAX_XFER_SIZE
6834 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_REC_MAX_XFER_SIZE"), s7_make_integer(sc
, (s7_int
)_PC_REC_MAX_XFER_SIZE
));
6836 #ifdef _PC_REC_INCR_XFER_SIZE
6837 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_REC_INCR_XFER_SIZE"), s7_make_integer(sc
, (s7_int
)_PC_REC_INCR_XFER_SIZE
));
6839 #ifdef _PC_FILESIZEBITS
6840 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_FILESIZEBITS"), s7_make_integer(sc
, (s7_int
)_PC_FILESIZEBITS
));
6842 #ifdef _PC_SOCK_MAXBUF
6843 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_SOCK_MAXBUF"), s7_make_integer(sc
, (s7_int
)_PC_SOCK_MAXBUF
));
6846 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_PRIO_IO"), s7_make_integer(sc
, (s7_int
)_PC_PRIO_IO
));
6849 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_ASYNC_IO"), s7_make_integer(sc
, (s7_int
)_PC_ASYNC_IO
));
6852 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_SYNC_IO"), s7_make_integer(sc
, (s7_int
)_PC_SYNC_IO
));
6855 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_VDISABLE"), s7_make_integer(sc
, (s7_int
)_PC_VDISABLE
));
6858 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_NO_TRUNC"), s7_make_integer(sc
, (s7_int
)_PC_NO_TRUNC
));
6860 #ifdef _PC_CHOWN_RESTRICTED
6861 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_CHOWN_RESTRICTED"), s7_make_integer(sc
, (s7_int
)_PC_CHOWN_RESTRICTED
));
6864 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_PIPE_BUF"), s7_make_integer(sc
, (s7_int
)_PC_PIPE_BUF
));
6867 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_PATH_MAX"), s7_make_integer(sc
, (s7_int
)_PC_PATH_MAX
));
6870 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_NAME_MAX"), s7_make_integer(sc
, (s7_int
)_PC_NAME_MAX
));
6872 #ifdef _PC_MAX_INPUT
6873 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_MAX_INPUT"), s7_make_integer(sc
, (s7_int
)_PC_MAX_INPUT
));
6875 #ifdef _PC_MAX_CANON
6876 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_MAX_CANON"), s7_make_integer(sc
, (s7_int
)_PC_MAX_CANON
));
6879 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_PC_LINK_MAX"), s7_make_integer(sc
, (s7_int
)_PC_LINK_MAX
));
6881 #ifdef STDERR_FILENO
6882 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "STDERR_FILENO"), s7_make_integer(sc
, (s7_int
)STDERR_FILENO
));
6884 #ifdef STDOUT_FILENO
6885 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "STDOUT_FILENO"), s7_make_integer(sc
, (s7_int
)STDOUT_FILENO
));
6888 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "STDIN_FILENO"), s7_make_integer(sc
, (s7_int
)STDIN_FILENO
));
6890 #ifdef _POSIX_TYPED_MEMORY_OBJECTS
6891 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_TYPED_MEMORY_OBJECTS"), s7_make_integer(sc
, (s7_int
)_POSIX_TYPED_MEMORY_OBJECTS
));
6893 #ifdef _POSIX_TRACE_LOG
6894 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_TRACE_LOG"), s7_make_integer(sc
, (s7_int
)_POSIX_TRACE_LOG
));
6896 #ifdef _POSIX_TRACE_INHERIT
6897 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_TRACE_INHERIT"), s7_make_integer(sc
, (s7_int
)_POSIX_TRACE_INHERIT
));
6899 #ifdef _POSIX_TRACE_EVENT_FILTER
6900 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_TRACE_EVENT_FILTER"), s7_make_integer(sc
, (s7_int
)_POSIX_TRACE_EVENT_FILTER
));
6903 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_TRACE"), s7_make_integer(sc
, (s7_int
)_POSIX_TRACE
));
6905 #ifdef _POSIX_THREAD_SPORADIC_SERVER
6906 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_THREAD_SPORADIC_SERVER"), s7_make_integer(sc
, (s7_int
)_POSIX_THREAD_SPORADIC_SERVER
));
6908 #ifdef _POSIX_SPORADIC_SERVER
6909 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SPORADIC_SERVER"), s7_make_integer(sc
, (s7_int
)_POSIX_SPORADIC_SERVER
));
6911 #ifdef _POSIX2_CHAR_TERM
6912 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX2_CHAR_TERM"), s7_make_integer(sc
, (s7_int
)_POSIX2_CHAR_TERM
));
6914 #ifdef _POSIX_RAW_SOCKETS
6915 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_RAW_SOCKETS"), s7_make_integer(sc
, (s7_int
)_POSIX_RAW_SOCKETS
));
6918 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_IPV6"), s7_make_integer(sc
, (s7_int
)_POSIX_IPV6
));
6920 #ifdef _POSIX_ADVISORY_INFO
6921 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_ADVISORY_INFO"), s7_make_integer(sc
, (s7_int
)_POSIX_ADVISORY_INFO
));
6923 #ifdef _POSIX_CLOCK_SELECTION
6924 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_CLOCK_SELECTION"), s7_make_integer(sc
, (s7_int
)_POSIX_CLOCK_SELECTION
));
6926 #ifdef _POSIX_MONOTONIC_CLOCK
6927 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_MONOTONIC_CLOCK"), s7_make_integer(sc
, (s7_int
)_POSIX_MONOTONIC_CLOCK
));
6929 #ifdef _POSIX_THREAD_PROCESS_SHARED
6930 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_THREAD_PROCESS_SHARED"), s7_make_integer(sc
, (s7_int
)_POSIX_THREAD_PROCESS_SHARED
));
6932 #ifdef _POSIX_MESSAGE_PASSING
6933 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_MESSAGE_PASSING"), s7_make_integer(sc
, (s7_int
)_POSIX_MESSAGE_PASSING
));
6935 #ifdef _POSIX_BARRIERS
6936 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_BARRIERS"), s7_make_integer(sc
, (s7_int
)_POSIX_BARRIERS
));
6938 #ifdef _POSIX_TIMERS
6939 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_TIMERS"), s7_make_integer(sc
, (s7_int
)_POSIX_TIMERS
));
6942 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SPAWN"), s7_make_integer(sc
, (s7_int
)_POSIX_SPAWN
));
6944 #ifdef _POSIX_SPIN_LOCKS
6945 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SPIN_LOCKS"), s7_make_integer(sc
, (s7_int
)_POSIX_SPIN_LOCKS
));
6947 #ifdef _POSIX_TIMEOUTS
6948 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_TIMEOUTS"), s7_make_integer(sc
, (s7_int
)_POSIX_TIMEOUTS
));
6951 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SHELL"), s7_make_integer(sc
, (s7_int
)_POSIX_SHELL
));
6953 #ifdef _POSIX_READER_WRITER_LOCKS
6954 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_READER_WRITER_LOCKS"), s7_make_integer(sc
, (s7_int
)_POSIX_READER_WRITER_LOCKS
));
6956 #ifdef _POSIX_REGEXP
6957 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_REGEXP"), s7_make_integer(sc
, (s7_int
)_POSIX_REGEXP
));
6959 #ifdef _POSIX_THREAD_CPUTIME
6960 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_THREAD_CPUTIME"), s7_make_integer(sc
, (s7_int
)_POSIX_THREAD_CPUTIME
));
6962 #ifdef _POSIX_CPUTIME
6963 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_CPUTIME"), s7_make_integer(sc
, (s7_int
)_POSIX_CPUTIME
));
6965 #ifdef _POSIX_SHARED_MEMORY_OBJECTS
6966 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SHARED_MEMORY_OBJECTS"), s7_make_integer(sc
, (s7_int
)_POSIX_SHARED_MEMORY_OBJECTS
));
6968 #ifdef _POSIX_PRIORITIZED_IO
6969 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_PRIORITIZED_IO"), s7_make_integer(sc
, (s7_int
)_POSIX_PRIORITIZED_IO
));
6971 #ifdef _POSIX_ASYNC_IO
6972 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_ASYNC_IO"), s7_make_integer(sc
, (s7_int
)_POSIX_ASYNC_IO
));
6974 #ifdef _POSIX_ASYNCHRONOUS_IO
6975 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_ASYNCHRONOUS_IO"), s7_make_integer(sc
, (s7_int
)_POSIX_ASYNCHRONOUS_IO
));
6977 #ifdef _POSIX_REALTIME_SIGNALS
6978 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_REALTIME_SIGNALS"), s7_make_integer(sc
, (s7_int
)_POSIX_REALTIME_SIGNALS
));
6980 #ifdef _POSIX_SEMAPHORES
6981 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SEMAPHORES"), s7_make_integer(sc
, (s7_int
)_POSIX_SEMAPHORES
));
6983 #ifdef _POSIX_THREAD_PRIO_PROTECT
6984 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_THREAD_PRIO_PROTECT"), s7_make_integer(sc
, (s7_int
)_POSIX_THREAD_PRIO_PROTECT
));
6986 #ifdef _POSIX_THREAD_PRIO_INHERIT
6987 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_THREAD_PRIO_INHERIT"), s7_make_integer(sc
, (s7_int
)_POSIX_THREAD_PRIO_INHERIT
));
6989 #ifdef _POSIX_THREAD_ATTR_STACKADDR
6990 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_THREAD_ATTR_STACKADDR"), s7_make_integer(sc
, (s7_int
)_POSIX_THREAD_ATTR_STACKADDR
));
6992 #ifdef _POSIX_THREAD_ATTR_STACKSIZE
6993 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_THREAD_ATTR_STACKSIZE"), s7_make_integer(sc
, (s7_int
)_POSIX_THREAD_ATTR_STACKSIZE
));
6995 #ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
6996 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_THREAD_PRIORITY_SCHEDULING"), s7_make_integer(sc
, (s7_int
)_POSIX_THREAD_PRIORITY_SCHEDULING
));
6998 #ifdef _POSIX_THREAD_SAFE_FUNCTIONS
6999 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_THREAD_SAFE_FUNCTIONS"), s7_make_integer(sc
, (s7_int
)_POSIX_THREAD_SAFE_FUNCTIONS
));
7001 #ifdef _POSIX_REENTRANT_FUNCTIONS
7002 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_REENTRANT_FUNCTIONS"), s7_make_integer(sc
, (s7_int
)_POSIX_REENTRANT_FUNCTIONS
));
7004 #ifdef _POSIX_THREADS
7005 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_THREADS"), s7_make_integer(sc
, (s7_int
)_POSIX_THREADS
));
7007 #ifdef _POSIX_NO_TRUNC
7008 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_NO_TRUNC"), s7_make_integer(sc
, (s7_int
)_POSIX_NO_TRUNC
));
7010 #ifdef _POSIX_VDISABLE
7011 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_VDISABLE"), s7_make_integer(sc
, (s7_int
)_POSIX_VDISABLE
));
7013 #ifdef _POSIX_CHOWN_RESTRICTED
7014 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_CHOWN_RESTRICTED"), s7_make_integer(sc
, (s7_int
)_POSIX_CHOWN_RESTRICTED
));
7016 #ifdef _POSIX_MEMORY_PROTECTION
7017 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_MEMORY_PROTECTION"), s7_make_integer(sc
, (s7_int
)_POSIX_MEMORY_PROTECTION
));
7019 #ifdef _POSIX_MEMLOCK_RANGE
7020 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_MEMLOCK_RANGE"), s7_make_integer(sc
, (s7_int
)_POSIX_MEMLOCK_RANGE
));
7022 #ifdef _POSIX_MEMLOCK
7023 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_MEMLOCK"), s7_make_integer(sc
, (s7_int
)_POSIX_MEMLOCK
));
7025 #ifdef _POSIX_MAPPED_FILES
7026 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_MAPPED_FILES"), s7_make_integer(sc
, (s7_int
)_POSIX_MAPPED_FILES
));
7029 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_FSYNC"), s7_make_integer(sc
, (s7_int
)_POSIX_FSYNC
));
7031 #ifdef _POSIX_SYNCHRONIZED_IO
7032 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SYNCHRONIZED_IO"), s7_make_integer(sc
, (s7_int
)_POSIX_SYNCHRONIZED_IO
));
7034 #ifdef _POSIX_PRIORITY_SCHEDULING
7035 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_PRIORITY_SCHEDULING"), s7_make_integer(sc
, (s7_int
)_POSIX_PRIORITY_SCHEDULING
));
7037 #ifdef _POSIX_SAVED_IDS
7038 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SAVED_IDS"), s7_make_integer(sc
, (s7_int
)_POSIX_SAVED_IDS
));
7040 #ifdef _POSIX_JOB_CONTROL
7041 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_JOB_CONTROL"), s7_make_integer(sc
, (s7_int
)_POSIX_JOB_CONTROL
));
7043 #ifdef _POSIX2_VERSION
7044 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX2_VERSION"), s7_make_integer(sc
, (s7_int
)_POSIX2_VERSION
));
7046 #ifdef _POSIX_VERSION
7047 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_VERSION"), s7_make_integer(sc
, (s7_int
)_POSIX_VERSION
));
7049 #ifdef LC_IDENTIFICATION
7050 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_IDENTIFICATION"), s7_make_integer(sc
, (s7_int
)LC_IDENTIFICATION
));
7052 #ifdef LC_MEASUREMENT
7053 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_MEASUREMENT"), s7_make_integer(sc
, (s7_int
)LC_MEASUREMENT
));
7056 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_TELEPHONE"), s7_make_integer(sc
, (s7_int
)LC_TELEPHONE
));
7059 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_ADDRESS"), s7_make_integer(sc
, (s7_int
)LC_ADDRESS
));
7062 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_NAME"), s7_make_integer(sc
, (s7_int
)LC_NAME
));
7065 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_PAPER"), s7_make_integer(sc
, (s7_int
)LC_PAPER
));
7068 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_ALL"), s7_make_integer(sc
, (s7_int
)LC_ALL
));
7071 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_MESSAGES"), s7_make_integer(sc
, (s7_int
)LC_MESSAGES
));
7074 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_MONETARY"), s7_make_integer(sc
, (s7_int
)LC_MONETARY
));
7077 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_COLLATE"), s7_make_integer(sc
, (s7_int
)LC_COLLATE
));
7080 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_TIME"), s7_make_integer(sc
, (s7_int
)LC_TIME
));
7083 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_NUMERIC"), s7_make_integer(sc
, (s7_int
)LC_NUMERIC
));
7086 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LC_CTYPE"), s7_make_integer(sc
, (s7_int
)LC_CTYPE
));
7089 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ERANGE"), s7_make_integer(sc
, (s7_int
)ERANGE
));
7092 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EDOM"), s7_make_integer(sc
, (s7_int
)EDOM
));
7095 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EPIPE"), s7_make_integer(sc
, (s7_int
)EPIPE
));
7098 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EMLINK"), s7_make_integer(sc
, (s7_int
)EMLINK
));
7101 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EROFS"), s7_make_integer(sc
, (s7_int
)EROFS
));
7104 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ESPIPE"), s7_make_integer(sc
, (s7_int
)ESPIPE
));
7107 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ENOSPC"), s7_make_integer(sc
, (s7_int
)ENOSPC
));
7110 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EFBIG"), s7_make_integer(sc
, (s7_int
)EFBIG
));
7113 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ETXTBSY"), s7_make_integer(sc
, (s7_int
)ETXTBSY
));
7116 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ENOTTY"), s7_make_integer(sc
, (s7_int
)ENOTTY
));
7119 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EMFILE"), s7_make_integer(sc
, (s7_int
)EMFILE
));
7122 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ENFILE"), s7_make_integer(sc
, (s7_int
)ENFILE
));
7125 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EINVAL"), s7_make_integer(sc
, (s7_int
)EINVAL
));
7128 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EISDIR"), s7_make_integer(sc
, (s7_int
)EISDIR
));
7131 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ENOTDIR"), s7_make_integer(sc
, (s7_int
)ENOTDIR
));
7134 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ENODEV"), s7_make_integer(sc
, (s7_int
)ENODEV
));
7137 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EXDEV"), s7_make_integer(sc
, (s7_int
)EXDEV
));
7140 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EEXIST"), s7_make_integer(sc
, (s7_int
)EEXIST
));
7143 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EBUSY"), s7_make_integer(sc
, (s7_int
)EBUSY
));
7146 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ENOTBLK"), s7_make_integer(sc
, (s7_int
)ENOTBLK
));
7149 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EFAULT"), s7_make_integer(sc
, (s7_int
)EFAULT
));
7152 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EACCES"), s7_make_integer(sc
, (s7_int
)EACCES
));
7155 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ENOMEM"), s7_make_integer(sc
, (s7_int
)ENOMEM
));
7158 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EAGAIN"), s7_make_integer(sc
, (s7_int
)EAGAIN
));
7161 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ECHILD"), s7_make_integer(sc
, (s7_int
)ECHILD
));
7164 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EBADF"), s7_make_integer(sc
, (s7_int
)EBADF
));
7167 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ENOEXEC"), s7_make_integer(sc
, (s7_int
)ENOEXEC
));
7170 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "E2BIG"), s7_make_integer(sc
, (s7_int
)E2BIG
));
7173 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ENXIO"), s7_make_integer(sc
, (s7_int
)ENXIO
));
7176 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EIO"), s7_make_integer(sc
, (s7_int
)EIO
));
7179 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EINTR"), s7_make_integer(sc
, (s7_int
)EINTR
));
7182 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ESRCH"), s7_make_integer(sc
, (s7_int
)ESRCH
));
7185 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ENOENT"), s7_make_integer(sc
, (s7_int
)ENOENT
));
7188 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EPERM"), s7_make_integer(sc
, (s7_int
)EPERM
));
7191 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EILSEQ"), s7_make_integer(sc
, (s7_int
)EILSEQ
));
7194 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ERFKILL"), s7_make_integer(sc
, (s7_int
)ERFKILL
));
7196 #ifdef ENOTRECOVERABLE
7197 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ENOTRECOVERABLE"), s7_make_integer(sc
, (s7_int
)ENOTRECOVERABLE
));
7200 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EOWNERDEAD"), s7_make_integer(sc
, (s7_int
)EOWNERDEAD
));
7203 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ECANCELED"), s7_make_integer(sc
, (s7_int
)ECANCELED
));
7205 #ifdef __GLIBC_MINOR__
7206 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "__GLIBC_MINOR__"), s7_make_integer(sc
, (s7_int
)__GLIBC_MINOR__
));
7209 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "__GLIBC__"), s7_make_integer(sc
, (s7_int
)__GLIBC__
));
7212 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "MB_CUR_MAX"), s7_make_integer(sc
, (s7_int
)MB_CUR_MAX
));
7215 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EXIT_SUCCESS"), s7_make_integer(sc
, (s7_int
)EXIT_SUCCESS
));
7218 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EXIT_FAILURE"), s7_make_integer(sc
, (s7_int
)EXIT_FAILURE
));
7221 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RAND_MAX"), s7_make_integer(sc
, (s7_int
)RAND_MAX
));
7224 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "P_tmpdir"), s7_make_string(sc
, (char*)P_tmpdir
));
7227 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "IOV_MAX"), s7_make_integer(sc
, (s7_int
)IOV_MAX
));
7230 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FOPEN_MAX"), s7_make_integer(sc
, (s7_int
)FOPEN_MAX
));
7233 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "L_cuserid"), s7_make_integer(sc
, (s7_int
)L_cuserid
));
7236 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "L_ctermid"), s7_make_integer(sc
, (s7_int
)L_ctermid
));
7239 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FILENAME_MAX"), s7_make_integer(sc
, (s7_int
)FILENAME_MAX
));
7242 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "TMP_MAX"), s7_make_integer(sc
, (s7_int
)TMP_MAX
));
7245 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "L_tmpnam"), s7_make_integer(sc
, (s7_int
)L_tmpnam
));
7248 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EOF"), s7_make_integer(sc
, (s7_int
)EOF
));
7251 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "BUFSIZ"), s7_make_integer(sc
, (s7_int
)BUFSIZ
));
7254 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_IONBF"), s7_make_integer(sc
, (s7_int
)_IONBF
));
7257 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_IOLBF"), s7_make_integer(sc
, (s7_int
)_IOLBF
));
7260 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_IOFBF"), s7_make_integer(sc
, (s7_int
)_IOFBF
));
7263 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FNM_NOMATCH"), s7_make_integer(sc
, (s7_int
)FNM_NOMATCH
));
7266 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FNM_EXTMATCH"), s7_make_integer(sc
, (s7_int
)FNM_EXTMATCH
));
7269 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FNM_CASEFOLD"), s7_make_integer(sc
, (s7_int
)FNM_CASEFOLD
));
7271 #ifdef FNM_LEADING_DIR
7272 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FNM_LEADING_DIR"), s7_make_integer(sc
, (s7_int
)FNM_LEADING_DIR
));
7274 #ifdef FNM_FILE_NAME
7275 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FNM_FILE_NAME"), s7_make_integer(sc
, (s7_int
)FNM_FILE_NAME
));
7278 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FNM_PERIOD"), s7_make_integer(sc
, (s7_int
)FNM_PERIOD
));
7281 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FNM_NOESCAPE"), s7_make_integer(sc
, (s7_int
)FNM_NOESCAPE
));
7284 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FNM_PATHNAME"), s7_make_integer(sc
, (s7_int
)FNM_PATHNAME
));
7286 #ifdef FE_TOWARDZERO
7287 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FE_TOWARDZERO"), s7_make_integer(sc
, (s7_int
)FE_TOWARDZERO
));
7290 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FE_DOWNWARD"), s7_make_integer(sc
, (s7_int
)FE_DOWNWARD
));
7293 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FE_UPWARD"), s7_make_integer(sc
, (s7_int
)FE_UPWARD
));
7296 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FE_TONEAREST"), s7_make_integer(sc
, (s7_int
)FE_TONEAREST
));
7298 #ifdef FE_ALL_EXCEPT
7299 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FE_ALL_EXCEPT"), s7_make_integer(sc
, (s7_int
)FE_ALL_EXCEPT
));
7302 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FE_INVALID"), s7_make_integer(sc
, (s7_int
)FE_INVALID
));
7305 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FE_OVERFLOW"), s7_make_integer(sc
, (s7_int
)FE_OVERFLOW
));
7308 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FE_UNDERFLOW"), s7_make_integer(sc
, (s7_int
)FE_UNDERFLOW
));
7311 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FE_DIVBYZERO"), s7_make_integer(sc
, (s7_int
)FE_DIVBYZERO
));
7314 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FE_INEXACT"), s7_make_integer(sc
, (s7_int
)FE_INEXACT
));
7316 #ifdef POSIX_FADV_NOREUSE
7317 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "POSIX_FADV_NOREUSE"), s7_make_integer(sc
, (s7_int
)POSIX_FADV_NOREUSE
));
7319 #ifdef POSIX_FADV_DONTNEED
7320 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "POSIX_FADV_DONTNEED"), s7_make_integer(sc
, (s7_int
)POSIX_FADV_DONTNEED
));
7322 #ifdef POSIX_FADV_WILLNEED
7323 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "POSIX_FADV_WILLNEED"), s7_make_integer(sc
, (s7_int
)POSIX_FADV_WILLNEED
));
7325 #ifdef POSIX_FADV_SEQUENTIAL
7326 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "POSIX_FADV_SEQUENTIAL"), s7_make_integer(sc
, (s7_int
)POSIX_FADV_SEQUENTIAL
));
7328 #ifdef POSIX_FADV_RANDOM
7329 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "POSIX_FADV_RANDOM"), s7_make_integer(sc
, (s7_int
)POSIX_FADV_RANDOM
));
7331 #ifdef POSIX_FADV_NORMAL
7332 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "POSIX_FADV_NORMAL"), s7_make_integer(sc
, (s7_int
)POSIX_FADV_NORMAL
));
7335 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_UNLCK"), s7_make_integer(sc
, (s7_int
)F_UNLCK
));
7338 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_WRLCK"), s7_make_integer(sc
, (s7_int
)F_WRLCK
));
7341 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_RDLCK"), s7_make_integer(sc
, (s7_int
)F_RDLCK
));
7344 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FD_CLOEXEC"), s7_make_integer(sc
, (s7_int
)FD_CLOEXEC
));
7347 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_SETLKW64"), s7_make_integer(sc
, (s7_int
)F_SETLKW64
));
7350 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_SETLK64"), s7_make_integer(sc
, (s7_int
)F_SETLK64
));
7353 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_GETLK64"), s7_make_integer(sc
, (s7_int
)F_GETLK64
));
7356 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_SETLKW"), s7_make_integer(sc
, (s7_int
)F_SETLKW
));
7359 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_SETLK"), s7_make_integer(sc
, (s7_int
)F_SETLK
));
7362 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_GETLK"), s7_make_integer(sc
, (s7_int
)F_GETLK
));
7365 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_SETFL"), s7_make_integer(sc
, (s7_int
)F_SETFL
));
7368 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_GETFL"), s7_make_integer(sc
, (s7_int
)F_GETFL
));
7371 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_SETFD"), s7_make_integer(sc
, (s7_int
)F_SETFD
));
7374 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_GETFD"), s7_make_integer(sc
, (s7_int
)F_GETFD
));
7377 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_DUPFD"), s7_make_integer(sc
, (s7_int
)F_DUPFD
));
7380 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_LARGEFILE"), s7_make_integer(sc
, (s7_int
)O_LARGEFILE
));
7383 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_RSYNC"), s7_make_integer(sc
, (s7_int
)O_RSYNC
));
7386 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_DSYNC"), s7_make_integer(sc
, (s7_int
)O_DSYNC
));
7389 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_ASYNC"), s7_make_integer(sc
, (s7_int
)O_ASYNC
));
7392 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_FSYNC"), s7_make_integer(sc
, (s7_int
)O_FSYNC
));
7395 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_SYNC"), s7_make_integer(sc
, (s7_int
)O_SYNC
));
7398 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_NDELAY"), s7_make_integer(sc
, (s7_int
)O_NDELAY
));
7401 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_NONBLOCK"), s7_make_integer(sc
, (s7_int
)O_NONBLOCK
));
7404 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_APPEND"), s7_make_integer(sc
, (s7_int
)O_APPEND
));
7407 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_TRUNC"), s7_make_integer(sc
, (s7_int
)O_TRUNC
));
7410 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_NOCTTY"), s7_make_integer(sc
, (s7_int
)O_NOCTTY
));
7413 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_EXCL"), s7_make_integer(sc
, (s7_int
)O_EXCL
));
7416 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_CREAT"), s7_make_integer(sc
, (s7_int
)O_CREAT
));
7419 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_RDWR"), s7_make_integer(sc
, (s7_int
)O_RDWR
));
7422 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_WRONLY"), s7_make_integer(sc
, (s7_int
)O_WRONLY
));
7425 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_RDONLY"), s7_make_integer(sc
, (s7_int
)O_RDONLY
));
7428 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "O_ACCMODE"), s7_make_integer(sc
, (s7_int
)O_ACCMODE
));
7431 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_TEST"), s7_make_integer(sc
, (s7_int
)F_TEST
));
7434 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_TLOCK"), s7_make_integer(sc
, (s7_int
)F_TLOCK
));
7437 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_LOCK"), s7_make_integer(sc
, (s7_int
)F_LOCK
));
7440 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_ULOCK"), s7_make_integer(sc
, (s7_int
)F_ULOCK
));
7443 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SEEK_END"), s7_make_integer(sc
, (s7_int
)SEEK_END
));
7446 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SEEK_CUR"), s7_make_integer(sc
, (s7_int
)SEEK_CUR
));
7449 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SEEK_SET"), s7_make_integer(sc
, (s7_int
)SEEK_SET
));
7452 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "F_OK"), s7_make_integer(sc
, (s7_int
)F_OK
));
7455 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "X_OK"), s7_make_integer(sc
, (s7_int
)X_OK
));
7458 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "W_OK"), s7_make_integer(sc
, (s7_int
)W_OK
));
7461 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "R_OK"), s7_make_integer(sc
, (s7_int
)R_OK
));
7464 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IRWXO"), s7_make_integer(sc
, (s7_int
)S_IRWXO
));
7467 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IXOTH"), s7_make_integer(sc
, (s7_int
)S_IXOTH
));
7470 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IWOTH"), s7_make_integer(sc
, (s7_int
)S_IWOTH
));
7473 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IROTH"), s7_make_integer(sc
, (s7_int
)S_IROTH
));
7476 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IRWXG"), s7_make_integer(sc
, (s7_int
)S_IRWXG
));
7479 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IXGRP"), s7_make_integer(sc
, (s7_int
)S_IXGRP
));
7482 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IWGRP"), s7_make_integer(sc
, (s7_int
)S_IWGRP
));
7485 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IRGRP"), s7_make_integer(sc
, (s7_int
)S_IRGRP
));
7488 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IRWXU"), s7_make_integer(sc
, (s7_int
)S_IRWXU
));
7491 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IXUSR"), s7_make_integer(sc
, (s7_int
)S_IXUSR
));
7494 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IWUSR"), s7_make_integer(sc
, (s7_int
)S_IWUSR
));
7497 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IRUSR"), s7_make_integer(sc
, (s7_int
)S_IRUSR
));
7500 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_ISGID"), s7_make_integer(sc
, (s7_int
)S_ISGID
));
7503 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_ISUID"), s7_make_integer(sc
, (s7_int
)S_ISUID
));
7506 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IFSOCK"), s7_make_integer(sc
, (s7_int
)S_IFSOCK
));
7509 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "__S_IFLNK"), s7_make_integer(sc
, (s7_int
)__S_IFLNK
));
7512 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IFIFO"), s7_make_integer(sc
, (s7_int
)S_IFIFO
));
7515 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IFREG"), s7_make_integer(sc
, (s7_int
)S_IFREG
));
7518 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IFBLK"), s7_make_integer(sc
, (s7_int
)S_IFBLK
));
7521 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IFCHR"), s7_make_integer(sc
, (s7_int
)S_IFCHR
));
7524 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IFDIR"), s7_make_integer(sc
, (s7_int
)S_IFDIR
));
7527 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "S_IFMT"), s7_make_integer(sc
, (s7_int
)S_IFMT
));
7529 #ifdef __LITTLE_ENDIAN
7530 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "__LITTLE_ENDIAN"), s7_make_integer(sc
, (s7_int
)__LITTLE_ENDIAN
));
7533 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "__BIG_ENDIAN"), s7_make_integer(sc
, (s7_int
)__BIG_ENDIAN
));
7536 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "__BYTE_ORDER"), s7_make_integer(sc
, (s7_int
)__BYTE_ORDER
));
7539 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WINT_MAX"), s7_make_integer(sc
, (s7_int
)WINT_MAX
));
7542 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WINT_MIN"), s7_make_integer(sc
, (s7_int
)WINT_MIN
));
7545 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WCHAR_MAX"), s7_make_integer(sc
, (s7_int
)WCHAR_MAX
));
7548 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "WCHAR_MIN"), s7_make_integer(sc
, (s7_int
)WCHAR_MIN
));
7551 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIZE_MAX"), s7_make_integer(sc
, (s7_int
)SIZE_MAX
));
7553 #ifdef SIG_ATOMIC_MAX
7554 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIG_ATOMIC_MAX"), s7_make_integer(sc
, (s7_int
)SIG_ATOMIC_MAX
));
7556 #ifdef SIG_ATOMIC_MIN
7557 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SIG_ATOMIC_MIN"), s7_make_integer(sc
, (s7_int
)SIG_ATOMIC_MIN
));
7560 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PTRDIFF_MAX"), s7_make_integer(sc
, (s7_int
)PTRDIFF_MAX
));
7563 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "PTRDIFF_MIN"), s7_make_integer(sc
, (s7_int
)PTRDIFF_MIN
));
7566 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINTMAX_MAX"), s7_make_integer(sc
, (s7_int
)UINTMAX_MAX
));
7569 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INTMAX_MAX"), s7_make_integer(sc
, (s7_int
)INTMAX_MAX
));
7572 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INTMAX_MIN"), s7_make_integer(sc
, (s7_int
)INTMAX_MIN
));
7575 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINTPTR_MAX"), s7_make_integer(sc
, (s7_int
)UINTPTR_MAX
));
7578 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INTPTR_MAX"), s7_make_integer(sc
, (s7_int
)INTPTR_MAX
));
7581 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INTPTR_MIN"), s7_make_integer(sc
, (s7_int
)INTPTR_MIN
));
7583 #ifdef UINT_FAST64_MAX
7584 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT_FAST64_MAX"), s7_make_integer(sc
, (s7_int
)UINT_FAST64_MAX
));
7586 #ifdef UINT_FAST32_MAX
7587 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT_FAST32_MAX"), s7_make_integer(sc
, (s7_int
)UINT_FAST32_MAX
));
7589 #ifdef UINT_FAST16_MAX
7590 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT_FAST16_MAX"), s7_make_integer(sc
, (s7_int
)UINT_FAST16_MAX
));
7592 #ifdef UINT_FAST8_MAX
7593 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT_FAST8_MAX"), s7_make_integer(sc
, (s7_int
)UINT_FAST8_MAX
));
7595 #ifdef INT_FAST64_MAX
7596 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_FAST64_MAX"), s7_make_integer(sc
, (s7_int
)INT_FAST64_MAX
));
7598 #ifdef INT_FAST32_MAX
7599 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_FAST32_MAX"), s7_make_integer(sc
, (s7_int
)INT_FAST32_MAX
));
7601 #ifdef INT_FAST16_MAX
7602 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_FAST16_MAX"), s7_make_integer(sc
, (s7_int
)INT_FAST16_MAX
));
7604 #ifdef INT_FAST8_MAX
7605 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_FAST8_MAX"), s7_make_integer(sc
, (s7_int
)INT_FAST8_MAX
));
7607 #ifdef INT_FAST64_MIN
7608 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_FAST64_MIN"), s7_make_integer(sc
, (s7_int
)INT_FAST64_MIN
));
7610 #ifdef INT_FAST32_MIN
7611 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_FAST32_MIN"), s7_make_integer(sc
, (s7_int
)INT_FAST32_MIN
));
7613 #ifdef INT_FAST16_MIN
7614 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_FAST16_MIN"), s7_make_integer(sc
, (s7_int
)INT_FAST16_MIN
));
7616 #ifdef INT_FAST8_MIN
7617 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_FAST8_MIN"), s7_make_integer(sc
, (s7_int
)INT_FAST8_MIN
));
7619 #ifdef UINT_LEAST64_MAX
7620 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT_LEAST64_MAX"), s7_make_integer(sc
, (s7_int
)UINT_LEAST64_MAX
));
7622 #ifdef UINT_LEAST32_MAX
7623 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT_LEAST32_MAX"), s7_make_integer(sc
, (s7_int
)UINT_LEAST32_MAX
));
7625 #ifdef UINT_LEAST16_MAX
7626 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT_LEAST16_MAX"), s7_make_integer(sc
, (s7_int
)UINT_LEAST16_MAX
));
7628 #ifdef UINT_LEAST8_MAX
7629 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT_LEAST8_MAX"), s7_make_integer(sc
, (s7_int
)UINT_LEAST8_MAX
));
7631 #ifdef INT_LEAST64_MAX
7632 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_LEAST64_MAX"), s7_make_integer(sc
, (s7_int
)INT_LEAST64_MAX
));
7634 #ifdef INT_LEAST32_MAX
7635 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_LEAST32_MAX"), s7_make_integer(sc
, (s7_int
)INT_LEAST32_MAX
));
7637 #ifdef INT_LEAST16_MAX
7638 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_LEAST16_MAX"), s7_make_integer(sc
, (s7_int
)INT_LEAST16_MAX
));
7640 #ifdef INT_LEAST8_MAX
7641 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_LEAST8_MAX"), s7_make_integer(sc
, (s7_int
)INT_LEAST8_MAX
));
7643 #ifdef INT_LEAST64_MIN
7644 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_LEAST64_MIN"), s7_make_integer(sc
, (s7_int
)INT_LEAST64_MIN
));
7646 #ifdef INT_LEAST32_MIN
7647 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_LEAST32_MIN"), s7_make_integer(sc
, (s7_int
)INT_LEAST32_MIN
));
7649 #ifdef INT_LEAST16_MIN
7650 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_LEAST16_MIN"), s7_make_integer(sc
, (s7_int
)INT_LEAST16_MIN
));
7652 #ifdef INT_LEAST8_MIN
7653 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_LEAST8_MIN"), s7_make_integer(sc
, (s7_int
)INT_LEAST8_MIN
));
7656 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT64_MAX"), s7_make_integer(sc
, (s7_int
)UINT64_MAX
));
7659 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT32_MAX"), s7_make_integer(sc
, (s7_int
)UINT32_MAX
));
7662 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT16_MAX"), s7_make_integer(sc
, (s7_int
)UINT16_MAX
));
7665 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT8_MAX"), s7_make_integer(sc
, (s7_int
)UINT8_MAX
));
7668 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT64_MAX"), s7_make_integer(sc
, (s7_int
)INT64_MAX
));
7671 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT32_MAX"), s7_make_integer(sc
, (s7_int
)INT32_MAX
));
7674 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT16_MAX"), s7_make_integer(sc
, (s7_int
)INT16_MAX
));
7677 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT8_MAX"), s7_make_integer(sc
, (s7_int
)INT8_MAX
));
7680 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT64_MIN"), s7_make_integer(sc
, (s7_int
)INT64_MIN
));
7683 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT32_MIN"), s7_make_integer(sc
, (s7_int
)INT32_MIN
));
7686 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT16_MIN"), s7_make_integer(sc
, (s7_int
)INT16_MIN
));
7689 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT8_MIN"), s7_make_integer(sc
, (s7_int
)INT8_MIN
));
7692 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LDBL_MIN"), s7_make_real(sc
, (s7_double
)LDBL_MIN
));
7695 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "DBL_MIN"), s7_make_real(sc
, (s7_double
)DBL_MIN
));
7698 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FLT_MIN"), s7_make_real(sc
, (s7_double
)FLT_MIN
));
7701 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LDBL_EPSILON"), s7_make_real(sc
, (s7_double
)LDBL_EPSILON
));
7704 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "DBL_EPSILON"), s7_make_real(sc
, (s7_double
)DBL_EPSILON
));
7707 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FLT_EPSILON"), s7_make_real(sc
, (s7_double
)FLT_EPSILON
));
7710 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LDBL_MAX"), s7_make_real(sc
, (s7_double
)LDBL_MAX
));
7713 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "DBL_MAX"), s7_make_real(sc
, (s7_double
)DBL_MAX
));
7716 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FLT_MAX"), s7_make_real(sc
, (s7_double
)FLT_MAX
));
7718 #ifdef FLT_EVAL_METHOD
7719 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FLT_EVAL_METHOD"), s7_make_integer(sc
, (s7_int
)FLT_EVAL_METHOD
));
7722 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FLT_ROUNDS"), s7_make_integer(sc
, (s7_int
)FLT_ROUNDS
));
7724 #ifdef LDBL_MAX_10_EXP
7725 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LDBL_MAX_10_EXP"), s7_make_integer(sc
, (s7_int
)LDBL_MAX_10_EXP
));
7727 #ifdef DBL_MAX_10_EXP
7728 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "DBL_MAX_10_EXP"), s7_make_integer(sc
, (s7_int
)DBL_MAX_10_EXP
));
7730 #ifdef FLT_MAX_10_EXP
7731 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FLT_MAX_10_EXP"), s7_make_integer(sc
, (s7_int
)FLT_MAX_10_EXP
));
7734 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LDBL_MAX_EXP"), s7_make_integer(sc
, (s7_int
)LDBL_MAX_EXP
));
7737 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "DBL_MAX_EXP"), s7_make_integer(sc
, (s7_int
)DBL_MAX_EXP
));
7740 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FLT_MAX_EXP"), s7_make_integer(sc
, (s7_int
)FLT_MAX_EXP
));
7742 #ifdef LDBL_MIN_10_EXP
7743 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LDBL_MIN_10_EXP"), s7_make_integer(sc
, (s7_int
)LDBL_MIN_10_EXP
));
7745 #ifdef DBL_MIN_10_EXP
7746 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "DBL_MIN_10_EXP"), s7_make_integer(sc
, (s7_int
)DBL_MIN_10_EXP
));
7748 #ifdef FLT_MIN_10_EXP
7749 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FLT_MIN_10_EXP"), s7_make_integer(sc
, (s7_int
)FLT_MIN_10_EXP
));
7752 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LDBL_MIN_EXP"), s7_make_integer(sc
, (s7_int
)LDBL_MIN_EXP
));
7755 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "DBL_MIN_EXP"), s7_make_integer(sc
, (s7_int
)DBL_MIN_EXP
));
7758 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FLT_MIN_EXP"), s7_make_integer(sc
, (s7_int
)FLT_MIN_EXP
));
7761 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LDBL_DIG"), s7_make_integer(sc
, (s7_int
)LDBL_DIG
));
7764 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "DBL_DIG"), s7_make_integer(sc
, (s7_int
)DBL_DIG
));
7767 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FLT_DIG"), s7_make_integer(sc
, (s7_int
)FLT_DIG
));
7769 #ifdef LDBL_MANT_DIG
7770 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LDBL_MANT_DIG"), s7_make_integer(sc
, (s7_int
)LDBL_MANT_DIG
));
7773 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "DBL_MANT_DIG"), s7_make_integer(sc
, (s7_int
)DBL_MANT_DIG
));
7776 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FLT_MANT_DIG"), s7_make_integer(sc
, (s7_int
)FLT_MANT_DIG
));
7779 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "FLT_RADIX"), s7_make_integer(sc
, (s7_int
)FLT_RADIX
));
7782 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "RE_DUP_MAX"), s7_make_integer(sc
, (s7_int
)RE_DUP_MAX
));
7784 #ifdef CHARCLASS_NAME_MAX
7785 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "CHARCLASS_NAME_MAX"), s7_make_integer(sc
, (s7_int
)CHARCLASS_NAME_MAX
));
7788 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LINE_MAX"), s7_make_integer(sc
, (s7_int
)LINE_MAX
));
7790 #ifdef EXPR_NEST_MAX
7791 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "EXPR_NEST_MAX"), s7_make_integer(sc
, (s7_int
)EXPR_NEST_MAX
));
7793 #ifdef COLL_WEIGHTS_MAX
7794 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "COLL_WEIGHTS_MAX"), s7_make_integer(sc
, (s7_int
)COLL_WEIGHTS_MAX
));
7796 #ifdef BC_STRING_MAX
7797 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "BC_STRING_MAX"), s7_make_integer(sc
, (s7_int
)BC_STRING_MAX
));
7800 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "BC_SCALE_MAX"), s7_make_integer(sc
, (s7_int
)BC_SCALE_MAX
));
7803 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "BC_DIM_MAX"), s7_make_integer(sc
, (s7_int
)BC_DIM_MAX
));
7806 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "BC_BASE_MAX"), s7_make_integer(sc
, (s7_int
)BC_BASE_MAX
));
7808 #ifdef _POSIX2_CHARCLASS_NAME_MAX
7809 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX2_CHARCLASS_NAME_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX2_CHARCLASS_NAME_MAX
));
7811 #ifdef _POSIX2_RE_DUP_MAX
7812 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX2_RE_DUP_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX2_RE_DUP_MAX
));
7814 #ifdef _POSIX2_LINE_MAX
7815 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX2_LINE_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX2_LINE_MAX
));
7817 #ifdef _POSIX2_EXPR_NEST_MAX
7818 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX2_EXPR_NEST_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX2_EXPR_NEST_MAX
));
7820 #ifdef _POSIX2_COLL_WEIGHTS_MAX
7821 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX2_COLL_WEIGHTS_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX2_COLL_WEIGHTS_MAX
));
7823 #ifdef _POSIX2_BC_STRING_MAX
7824 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX2_BC_STRING_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX2_BC_STRING_MAX
));
7826 #ifdef _POSIX2_BC_SCALE_MAX
7827 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX2_BC_SCALE_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX2_BC_SCALE_MAX
));
7829 #ifdef _POSIX2_BC_DIM_MAX
7830 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX2_BC_DIM_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX2_BC_DIM_MAX
));
7832 #ifdef _POSIX2_BC_BASE_MAX
7833 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX2_BC_BASE_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX2_BC_BASE_MAX
));
7836 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "NGROUPS_MAX"), s7_make_integer(sc
, (s7_int
)NGROUPS_MAX
));
7839 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SSIZE_MAX"), s7_make_integer(sc
, (s7_int
)SSIZE_MAX
));
7841 #ifdef _POSIX_CLOCKRES_MIN
7842 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_CLOCKRES_MIN"), s7_make_integer(sc
, (s7_int
)_POSIX_CLOCKRES_MIN
));
7844 #ifdef _POSIX_UIO_MAXIOV
7845 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_UIO_MAXIOV"), s7_make_integer(sc
, (s7_int
)_POSIX_UIO_MAXIOV
));
7848 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_HIWAT"), s7_make_integer(sc
, (s7_int
)_POSIX_HIWAT
));
7850 #ifdef _POSIX_QLIMIT
7851 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_QLIMIT"), s7_make_integer(sc
, (s7_int
)_POSIX_QLIMIT
));
7853 #ifdef _POSIX_TZNAME_MAX
7854 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_TZNAME_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_TZNAME_MAX
));
7856 #ifdef _POSIX_TTY_NAME_MAX
7857 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_TTY_NAME_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_TTY_NAME_MAX
));
7859 #ifdef _POSIX_TIMER_MAX
7860 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_TIMER_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_TIMER_MAX
));
7862 #ifdef _POSIX_SYMLOOP_MAX
7863 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SYMLOOP_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_SYMLOOP_MAX
));
7865 #ifdef _POSIX_SYMLINK_MAX
7866 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SYMLINK_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_SYMLINK_MAX
));
7868 #ifdef _POSIX_STREAM_MAX
7869 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_STREAM_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_STREAM_MAX
));
7871 #ifdef _POSIX_SSIZE_MAX
7872 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SSIZE_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_SSIZE_MAX
));
7874 #ifdef _POSIX_SIGQUEUE_MAX
7875 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SIGQUEUE_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_SIGQUEUE_MAX
));
7877 #ifdef _POSIX_SEM_VALUE_MAX
7878 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SEM_VALUE_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_SEM_VALUE_MAX
));
7880 #ifdef _POSIX_SEM_NSEMS_MAX
7881 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_SEM_NSEMS_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_SEM_NSEMS_MAX
));
7883 #ifdef _POSIX_RTSIG_MAX
7884 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_RTSIG_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_RTSIG_MAX
));
7886 #ifdef _POSIX_RE_DUP_MAX
7887 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_RE_DUP_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_RE_DUP_MAX
));
7889 #ifdef _POSIX_PIPE_BUF
7890 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_PIPE_BUF"), s7_make_integer(sc
, (s7_int
)_POSIX_PIPE_BUF
));
7892 #ifdef _POSIX_PATH_MAX
7893 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_PATH_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_PATH_MAX
));
7895 #ifdef _POSIX_FD_SETSIZE
7896 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_FD_SETSIZE"), s7_make_integer(sc
, (s7_int
)_POSIX_FD_SETSIZE
));
7898 #ifdef _POSIX_OPEN_MAX
7899 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_OPEN_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_OPEN_MAX
));
7901 #ifdef _POSIX_NGROUPS_MAX
7902 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_NGROUPS_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_NGROUPS_MAX
));
7904 #ifdef _POSIX_NAME_MAX
7905 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_NAME_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_NAME_MAX
));
7907 #ifdef _POSIX_MQ_PRIO_MAX
7908 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_MQ_PRIO_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_MQ_PRIO_MAX
));
7910 #ifdef _POSIX_MQ_OPEN_MAX
7911 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_MQ_OPEN_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_MQ_OPEN_MAX
));
7913 #ifdef _POSIX_MAX_INPUT
7914 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_MAX_INPUT"), s7_make_integer(sc
, (s7_int
)_POSIX_MAX_INPUT
));
7916 #ifdef _POSIX_MAX_CANON
7917 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_MAX_CANON"), s7_make_integer(sc
, (s7_int
)_POSIX_MAX_CANON
));
7919 #ifdef _POSIX_LOGIN_NAME_MAX
7920 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_LOGIN_NAME_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_LOGIN_NAME_MAX
));
7922 #ifdef _POSIX_LINK_MAX
7923 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_LINK_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_LINK_MAX
));
7925 #ifdef _POSIX_HOST_NAME_MAX
7926 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_HOST_NAME_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_HOST_NAME_MAX
));
7928 #ifdef _POSIX_DELAYTIMER_MAX
7929 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_DELAYTIMER_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_DELAYTIMER_MAX
));
7931 #ifdef _POSIX_CHILD_MAX
7932 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_CHILD_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_CHILD_MAX
));
7934 #ifdef _POSIX_ARG_MAX
7935 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_ARG_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_ARG_MAX
));
7937 #ifdef _POSIX_AIO_MAX
7938 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_AIO_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_AIO_MAX
));
7940 #ifdef _POSIX_AIO_LISTIO_MAX
7941 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "_POSIX_AIO_LISTIO_MAX"), s7_make_integer(sc
, (s7_int
)_POSIX_AIO_LISTIO_MAX
));
7944 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ULLONG_MAX"), s7_make_integer(sc
, (s7_int
)ULLONG_MAX
));
7947 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LLONG_MAX"), s7_make_integer(sc
, (s7_int
)LLONG_MAX
));
7950 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LLONG_MIN"), s7_make_integer(sc
, (s7_int
)LLONG_MIN
));
7953 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "ULONG_MAX"), s7_make_integer(sc
, (s7_int
)ULONG_MAX
));
7956 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LONG_MAX"), s7_make_integer(sc
, (s7_int
)LONG_MAX
));
7959 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "LONG_MIN"), s7_make_integer(sc
, (s7_int
)LONG_MIN
));
7962 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UINT_MAX"), s7_make_integer(sc
, (s7_int
)UINT_MAX
));
7965 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_MAX"), s7_make_integer(sc
, (s7_int
)INT_MAX
));
7968 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "INT_MIN"), s7_make_integer(sc
, (s7_int
)INT_MIN
));
7971 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "USHRT_MAX"), s7_make_integer(sc
, (s7_int
)USHRT_MAX
));
7974 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SHRT_MAX"), s7_make_integer(sc
, (s7_int
)SHRT_MAX
));
7977 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SHRT_MIN"), s7_make_integer(sc
, (s7_int
)SHRT_MIN
));
7980 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "__WORDSIZE"), s7_make_integer(sc
, (s7_int
)__WORDSIZE
));
7983 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "CHAR_MAX"), s7_make_integer(sc
, (s7_int
)CHAR_MAX
));
7986 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "CHAR_MIN"), s7_make_integer(sc
, (s7_int
)CHAR_MIN
));
7989 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "CHAR_BIT"), s7_make_integer(sc
, (s7_int
)CHAR_BIT
));
7992 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "UCHAR_MAX"), s7_make_integer(sc
, (s7_int
)UCHAR_MAX
));
7995 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SCHAR_MAX"), s7_make_integer(sc
, (s7_int
)SCHAR_MAX
));
7998 s7_define(sc
, cur_env
, s7_make_symbol(sc
, "SCHAR_MIN"), s7_make_integer(sc
, (s7_int
)SCHAR_MIN
));
8001 s7_define(sc
, cur_env
,
8002 s7_make_symbol(sc
, "regerror"),
8003 s7_make_typed_function(sc
, "regerror", g_regerror
, 2, 0, false, "regerror", NULL
));
8005 s7_define(sc
, cur_env
,
8006 s7_make_symbol(sc
, "regexec"),
8007 s7_make_typed_function(sc
, "regexec", g_regexec
, 4, 0, false, "regexec", NULL
));
8009 s7_define(sc
, cur_env
,
8010 s7_make_symbol(sc
, "regcomp"),
8011 s7_make_typed_function(sc
, "regcomp", g_regcomp
, 3, 0, false, "regcomp", NULL
));
8013 s7_define(sc
, cur_env
,
8014 s7_make_symbol(sc
, "regfree"),
8015 s7_make_typed_function(sc
, "regfree", g_regfree
, 1, 0, false, "regfree", NULL
));
8017 s7_define(sc
, cur_env
,
8018 s7_make_symbol(sc
, "regex.free"),
8019 s7_make_typed_function(sc
, "regex.free", g_regex_free
, 1, 0, false, "regex.free", NULL
));
8021 s7_define(sc
, cur_env
,
8022 s7_make_symbol(sc
, "regex.make"),
8023 s7_make_typed_function(sc
, "regex.make", g_regex_make
, 0, 0, false, "regex.make", NULL
));
8025 s7_define(sc
, cur_env
,
8026 s7_make_symbol(sc
, "recvfrom"),
8027 s7_make_typed_function(sc
, "recvfrom", g_recvfrom
, 6, 0, false, "recvfrom", NULL
));
8029 s7_define(sc
, cur_env
,
8030 s7_make_symbol(sc
, "setsockopt"),
8031 s7_make_typed_function(sc
, "setsockopt", g_setsockopt
, 5, 0, false, "setsockopt", NULL
));
8033 s7_define(sc
, cur_env
,
8034 s7_make_symbol(sc
, "getsockopt"),
8035 s7_make_typed_function(sc
, "getsockopt", g_getsockopt
, 5, 0, false, "getsockopt", NULL
));
8037 s7_define(sc
, cur_env
,
8038 s7_make_symbol(sc
, "accept"),
8039 s7_make_typed_function(sc
, "accept", g_accept
, 3, 0, false, "accept", NULL
));
8041 s7_define(sc
, cur_env
,
8042 s7_make_symbol(sc
, "getpeername"),
8043 s7_make_typed_function(sc
, "getpeername", g_getpeername
, 3, 0, false, "getpeername", NULL
));
8045 s7_define(sc
, cur_env
,
8046 s7_make_symbol(sc
, "getsockname"),
8047 s7_make_typed_function(sc
, "getsockname", g_getsockname
, 3, 0, false, "getsockname", NULL
));
8049 s7_define(sc
, cur_env
,
8050 s7_make_symbol(sc
, "socketpair"),
8051 s7_make_typed_function(sc
, "socketpair", g_socketpair
, 3, 0, false, "socketpair", NULL
));
8053 s7_define(sc
, cur_env
,
8054 s7_make_symbol(sc
, "protoent.p_aliases"),
8055 s7_make_typed_function(sc
, "protoent.p_aliases", g_protoent_p_aliases
, 1, 0, false, "protoent.p_aliases", NULL
));
8057 s7_define(sc
, cur_env
,
8058 s7_make_symbol(sc
, "netent.n_aliases"),
8059 s7_make_typed_function(sc
, "netent.n_aliases", g_netent_n_aliases
, 1, 0, false, "netent.n_aliases", NULL
));
8061 s7_define(sc
, cur_env
,
8062 s7_make_symbol(sc
, "servent.s_aliases"),
8063 s7_make_typed_function(sc
, "servent.s_aliases", g_servent_s_aliases
, 1, 0, false, "servent.s_aliases", NULL
));
8065 s7_define(sc
, cur_env
,
8066 s7_make_symbol(sc
, "hostent.h_aliases"),
8067 s7_make_typed_function(sc
, "hostent.h_aliases", g_hostent_h_aliases
, 1, 0, false, "hostent.h_aliases", NULL
));
8069 s7_define(sc
, cur_env
,
8070 s7_make_symbol(sc
, "protoent.p_proto"),
8071 s7_make_typed_function(sc
, "protoent.p_proto", g_protoent_p_proto
, 1, 0, false, "protoent.p_proto", NULL
));
8073 s7_define(sc
, cur_env
,
8074 s7_make_symbol(sc
, "servent.s_port"),
8075 s7_make_typed_function(sc
, "servent.s_port", g_servent_s_port
, 1, 0, false, "servent.s_port", NULL
));
8077 s7_define(sc
, cur_env
,
8078 s7_make_symbol(sc
, "netent.n_net"),
8079 s7_make_typed_function(sc
, "netent.n_net", g_netent_n_net
, 1, 0, false, "netent.n_net", NULL
));
8081 s7_define(sc
, cur_env
,
8082 s7_make_symbol(sc
, "netent.n_addrtype"),
8083 s7_make_typed_function(sc
, "netent.n_addrtype", g_netent_n_addrtype
, 1, 0, false, "netent.n_addrtype", NULL
));
8085 s7_define(sc
, cur_env
,
8086 s7_make_symbol(sc
, "hostent.h_length"),
8087 s7_make_typed_function(sc
, "hostent.h_length", g_hostent_h_length
, 1, 0, false, "hostent.h_length", NULL
));
8089 s7_define(sc
, cur_env
,
8090 s7_make_symbol(sc
, "hostent.h_addrtype"),
8091 s7_make_typed_function(sc
, "hostent.h_addrtype", g_hostent_h_addrtype
, 1, 0, false, "hostent.h_addrtype", NULL
));
8093 s7_define(sc
, cur_env
,
8094 s7_make_symbol(sc
, "protoent.p_name"),
8095 s7_make_typed_function(sc
, "protoent.p_name", g_protoent_p_name
, 1, 0, false, "protoent.p_name", NULL
));
8097 s7_define(sc
, cur_env
,
8098 s7_make_symbol(sc
, "servent.s_proto"),
8099 s7_make_typed_function(sc
, "servent.s_proto", g_servent_s_proto
, 1, 0, false, "servent.s_proto", NULL
));
8101 s7_define(sc
, cur_env
,
8102 s7_make_symbol(sc
, "servent.s_name"),
8103 s7_make_typed_function(sc
, "servent.s_name", g_servent_s_name
, 1, 0, false, "servent.s_name", NULL
));
8105 s7_define(sc
, cur_env
,
8106 s7_make_symbol(sc
, "netent.n_name"),
8107 s7_make_typed_function(sc
, "netent.n_name", g_netent_n_name
, 1, 0, false, "netent.n_name", NULL
));
8109 s7_define(sc
, cur_env
,
8110 s7_make_symbol(sc
, "hostent.h_name"),
8111 s7_make_typed_function(sc
, "hostent.h_name", g_hostent_h_name
, 1, 0, false, "hostent.h_name", NULL
));
8113 s7_define(sc
, cur_env
,
8114 s7_make_symbol(sc
, "addrinfo.ai_next"),
8115 s7_make_typed_function(sc
, "addrinfo.ai_next", g_addrinfo_ai_next
, 1, 0, false, "addrinfo.ai_next", NULL
));
8117 s7_define(sc
, cur_env
,
8118 s7_make_symbol(sc
, "addrinfo.ai_canonname"),
8119 s7_make_typed_function(sc
, "addrinfo.ai_canonname", g_addrinfo_ai_canonname
, 1, 0, false, "addrinfo.ai_canonname", NULL
));
8121 s7_define(sc
, cur_env
,
8122 s7_make_symbol(sc
, "addrinfo.set_ai_protocol"),
8123 s7_make_typed_function(sc
, "addrinfo.set_ai_protocol", g_addrinfo_set_ai_protocol
, 2, 0, false, "addrinfo.set_ai_protocol", NULL
));
8125 s7_define(sc
, cur_env
,
8126 s7_make_symbol(sc
, "addrinfo.ai_protocol"),
8127 s7_make_typed_function(sc
, "addrinfo.ai_protocol", g_addrinfo_ai_protocol
, 1, 0, false, "addrinfo.ai_protocol", NULL
));
8129 s7_define(sc
, cur_env
,
8130 s7_make_symbol(sc
, "addrinfo.set_ai_socktype"),
8131 s7_make_typed_function(sc
, "addrinfo.set_ai_socktype", g_addrinfo_set_ai_socktype
, 2, 0, false, "addrinfo.set_ai_socktype", NULL
));
8133 s7_define(sc
, cur_env
,
8134 s7_make_symbol(sc
, "addrinfo.ai_socktype"),
8135 s7_make_typed_function(sc
, "addrinfo.ai_socktype", g_addrinfo_ai_socktype
, 1, 0, false, "addrinfo.ai_socktype", NULL
));
8137 s7_define(sc
, cur_env
,
8138 s7_make_symbol(sc
, "addrinfo.set_ai_family"),
8139 s7_make_typed_function(sc
, "addrinfo.set_ai_family", g_addrinfo_set_ai_family
, 2, 0, false, "addrinfo.set_ai_family", NULL
));
8141 s7_define(sc
, cur_env
,
8142 s7_make_symbol(sc
, "addrinfo.ai_family"),
8143 s7_make_typed_function(sc
, "addrinfo.ai_family", g_addrinfo_ai_family
, 1, 0, false, "addrinfo.ai_family", NULL
));
8145 s7_define(sc
, cur_env
,
8146 s7_make_symbol(sc
, "addrinfo.set_ai_flags"),
8147 s7_make_typed_function(sc
, "addrinfo.set_ai_flags", g_addrinfo_set_ai_flags
, 2, 0, false, "addrinfo.set_ai_flags", NULL
));
8149 s7_define(sc
, cur_env
,
8150 s7_make_symbol(sc
, "addrinfo.ai_flags"),
8151 s7_make_typed_function(sc
, "addrinfo.ai_flags", g_addrinfo_ai_flags
, 1, 0, false, "addrinfo.ai_flags", NULL
));
8153 s7_define(sc
, cur_env
,
8154 s7_make_symbol(sc
, "addrinfo.make"),
8155 s7_make_typed_function(sc
, "addrinfo.make", g_addrinfo_make
, 0, 0, false, "addrinfo.make", NULL
));
8157 s7_define(sc
, cur_env
,
8158 s7_make_symbol(sc
, "getnameinfo"),
8159 s7_make_typed_function(sc
, "getnameinfo", g_getnameinfo
, 3, 0, false, "getnameinfo", NULL
));
8161 s7_define(sc
, cur_env
,
8162 s7_make_symbol(sc
, "getaddrinfo"),
8163 s7_make_typed_function(sc
, "getaddrinfo", g_getaddrinfo
, 3, 0, false, "getaddrinfo", NULL
));
8165 s7_define(sc
, cur_env
,
8166 s7_make_symbol(sc
, "ntohs"),
8167 s7_make_typed_function(sc
, "ntohs", g_ntohs
, 1, 0, false, "ntohs", NULL
));
8169 s7_define(sc
, cur_env
,
8170 s7_make_symbol(sc
, "ntohl"),
8171 s7_make_typed_function(sc
, "ntohl", g_ntohl
, 1, 0, false, "ntohl", NULL
));
8173 s7_define(sc
, cur_env
,
8174 s7_make_symbol(sc
, "htons"),
8175 s7_make_typed_function(sc
, "htons", g_htons
, 1, 0, false, "htons", NULL
));
8177 s7_define(sc
, cur_env
,
8178 s7_make_symbol(sc
, "htonl"),
8179 s7_make_typed_function(sc
, "htonl", g_htonl
, 1, 0, false, "htonl", NULL
));
8181 s7_define(sc
, cur_env
,
8182 s7_make_symbol(sc
, "recvmsg"),
8183 s7_make_typed_function(sc
, "recvmsg", s7__recvmsg
, 3, 0, false, "int recvmsg(int struct-msghdr* int)", pl_iixi
));
8185 s7_define(sc
, cur_env
,
8186 s7_make_symbol(sc
, "sendmsg"),
8187 s7_make_typed_function(sc
, "sendmsg", s7__sendmsg
, 3, 0, false, "int sendmsg(int const-struct-msghdr* int)", pl_iixi
));
8189 s7_define(sc
, cur_env
,
8190 s7_make_symbol(sc
, "sendto"),
8191 s7_make_typed_function(sc
, "sendto", s7__sendto
, 6, 0, false, "int sendto(int void* int int const-struct-sockaddr* int)", pl_iixiixi
));
8193 s7_define(sc
, cur_env
,
8194 s7_make_symbol(sc
, "recv"),
8195 s7_make_typed_function(sc
, "recv", s7__recv
, 4, 0, false, "int recv(int void* int int)", pcl_iixi
));
8197 s7_define(sc
, cur_env
,
8198 s7_make_symbol(sc
, "send"),
8199 s7_make_typed_function(sc
, "send", s7__send
, 4, 0, false, "int send(int void* int int)", pcl_iixi
));
8201 s7_define(sc
, cur_env
,
8202 s7_make_symbol(sc
, "connect"),
8203 s7_make_typed_function(sc
, "connect", s7__connect
, 3, 0, false, "int connect(int const-struct-sockaddr* int)", pl_iixi
));
8205 s7_define(sc
, cur_env
,
8206 s7_make_symbol(sc
, "bind"),
8207 s7_make_typed_function(sc
, "bind", s7__bind
, 3, 0, false, "int bind(int const-struct-sockaddr* int)", pl_iixi
));
8209 s7_define(sc
, cur_env
,
8210 s7_make_symbol(sc
, "gai_strerror"),
8211 s7_make_typed_function(sc
, "gai_strerror", s7__gai_strerror
, 1, 0, false, "char* gai_strerror(int)", pl_si
));
8213 s7_define(sc
, cur_env
,
8214 s7_make_symbol(sc
, "freeaddrinfo"),
8215 s7_make_typed_function(sc
, "freeaddrinfo", s7__freeaddrinfo
, 1, 0, false, "void freeaddrinfo(struct-addrinfo*)", pl_tx
));
8217 s7_define(sc
, cur_env
,
8218 s7_make_symbol(sc
, "getprotobynumber"),
8219 s7_make_typed_function(sc
, "getprotobynumber", s7__getprotobynumber
, 1, 0, false, "protoent* getprotobynumber(int)", pl_xi
));
8221 s7_define(sc
, cur_env
,
8222 s7_make_symbol(sc
, "getprotobyname"),
8223 s7_make_typed_function(sc
, "getprotobyname", s7__getprotobyname
, 1, 0, false, "protoent* getprotobyname(char*)", pl_xs
));
8225 s7_define(sc
, cur_env
,
8226 s7_make_symbol(sc
, "getservbyport"),
8227 s7_make_typed_function(sc
, "getservbyport", s7__getservbyport
, 2, 0, false, "servent* getservbyport(int char*)", pl_xis
));
8229 s7_define(sc
, cur_env
,
8230 s7_make_symbol(sc
, "getservbyname"),
8231 s7_make_typed_function(sc
, "getservbyname", s7__getservbyname
, 2, 0, false, "servent* getservbyname(char* char*)", pcl_xs
));
8233 s7_define(sc
, cur_env
,
8234 s7_make_symbol(sc
, "gethostbyaddr"),
8235 s7_make_typed_function(sc
, "gethostbyaddr", s7__gethostbyaddr
, 3, 0, false, "hostent* gethostbyaddr(void* int int)", pcl_xxi
));
8237 s7_define(sc
, cur_env
,
8238 s7_make_symbol(sc
, "gethostbyname"),
8239 s7_make_typed_function(sc
, "gethostbyname", s7__gethostbyname
, 1, 0, false, "hostent* gethostbyname(char*)", pl_xs
));
8241 s7_define(sc
, cur_env
,
8242 s7_make_symbol(sc
, "shutdown"),
8243 s7_make_typed_function(sc
, "shutdown", s7__shutdown
, 2, 0, false, "int shutdown(int int)", pcl_i
));
8245 s7_define(sc
, cur_env
,
8246 s7_make_symbol(sc
, "listen"),
8247 s7_make_typed_function(sc
, "listen", s7__listen
, 2, 0, false, "int listen(int int)", pcl_i
));
8249 s7_define(sc
, cur_env
,
8250 s7_make_symbol(sc
, "socket"),
8251 s7_make_typed_function(sc
, "socket", s7__socket
, 3, 0, false, "int socket(int int int)", pcl_i
));
8253 s7_define(sc
, cur_env
,
8254 s7_make_symbol(sc
, "getprotoent"),
8255 s7_make_typed_function(sc
, "getprotoent", s7__getprotoent
, 0, 0, false, "protoent* getprotoent(void)", pl_xt
));
8257 s7_define(sc
, cur_env
,
8258 s7_make_symbol(sc
, "endprotoent"),
8259 s7_make_typed_function(sc
, "endprotoent", s7__endprotoent
, 0, 0, false, "void endprotoent(void)", pcl_t
));
8261 s7_define(sc
, cur_env
,
8262 s7_make_symbol(sc
, "setprotoent"),
8263 s7_make_typed_function(sc
, "setprotoent", s7__setprotoent
, 1, 0, false, "void setprotoent(int)", pl_ti
));
8265 s7_define(sc
, cur_env
,
8266 s7_make_symbol(sc
, "getservent"),
8267 s7_make_typed_function(sc
, "getservent", s7__getservent
, 0, 0, false, "servent* getservent(void)", pl_xt
));
8269 s7_define(sc
, cur_env
,
8270 s7_make_symbol(sc
, "endservent"),
8271 s7_make_typed_function(sc
, "endservent", s7__endservent
, 0, 0, false, "void endservent(void)", pcl_t
));
8273 s7_define(sc
, cur_env
,
8274 s7_make_symbol(sc
, "setservent"),
8275 s7_make_typed_function(sc
, "setservent", s7__setservent
, 1, 0, false, "void setservent(int)", pl_ti
));
8277 s7_define(sc
, cur_env
,
8278 s7_make_symbol(sc
, "endhostent"),
8279 s7_make_typed_function(sc
, "endhostent", s7__endhostent
, 0, 0, false, "void endhostent(void)", pcl_t
));
8281 s7_define(sc
, cur_env
,
8282 s7_make_symbol(sc
, "sethostent"),
8283 s7_make_typed_function(sc
, "sethostent", s7__sethostent
, 1, 0, false, "void sethostent(int)", pl_ti
));
8285 s7_define(sc
, cur_env
,
8286 s7_make_symbol(sc
, "getnetbyaddr"),
8287 s7_make_typed_function(sc
, "getnetbyaddr", s7__getnetbyaddr
, 2, 0, false, "netent* getnetbyaddr(int int)", pcl_xi
));
8289 s7_define(sc
, cur_env
,
8290 s7_make_symbol(sc
, "getnetbyname"),
8291 s7_make_typed_function(sc
, "getnetbyname", s7__getnetbyname
, 1, 0, false, "netent* getnetbyname(char*)", pl_xs
));
8293 s7_define(sc
, cur_env
,
8294 s7_make_symbol(sc
, "getnetent"),
8295 s7_make_typed_function(sc
, "getnetent", s7__getnetent
, 0, 0, false, "netent* getnetent(void)", pl_xt
));
8297 s7_define(sc
, cur_env
,
8298 s7_make_symbol(sc
, "endnetent"),
8299 s7_make_typed_function(sc
, "endnetent", s7__endnetent
, 0, 0, false, "void endnetent(void)", pcl_t
));
8301 s7_define(sc
, cur_env
,
8302 s7_make_symbol(sc
, "setnetent"),
8303 s7_make_typed_function(sc
, "setnetent", s7__setnetent
, 1, 0, false, "void setnetent(int)", pl_ti
));
8305 s7_define(sc
, cur_env
,
8306 s7_make_symbol(sc
, "gethostent"),
8307 s7_make_typed_function(sc
, "gethostent", s7__gethostent
, 0, 0, false, "hostent* gethostent(void)", pl_xt
));
8309 s7_define(sc
, cur_env
,
8310 s7_make_symbol(sc
, "waitid"),
8311 s7_make_typed_function(sc
, "waitid", s7__waitid
, 4, 0, false, "int waitid((idtype_t int) int siginfo_t* int)", pl_iiixi
));
8313 s7_define(sc
, cur_env
,
8314 s7_make_symbol(sc
, "sigwaitinfo"),
8315 s7_make_typed_function(sc
, "sigwaitinfo", s7__sigwaitinfo
, 2, 0, false, "int sigwaitinfo(sigset_t* siginfo_t*)", pcl_ix
));
8317 s7_define(sc
, cur_env
,
8318 s7_make_symbol(sc
, "setrlimit"),
8319 s7_make_typed_function(sc
, "setrlimit", s7__setrlimit
, 2, 0, false, "int setrlimit(int struct-rlimit*)", pl_iix
));
8321 s7_define(sc
, cur_env
,
8322 s7_make_symbol(sc
, "getrlimit"),
8323 s7_make_typed_function(sc
, "getrlimit", s7__getrlimit
, 2, 0, false, "int getrlimit(int struct-rlimit*)", pl_iix
));
8325 s7_define(sc
, cur_env
,
8326 s7_make_symbol(sc
, "signal"),
8327 s7_make_typed_function(sc
, "signal", g_signal
, 2, 0, false, "signal", NULL
));
8329 s7_define(sc
, cur_env
,
8330 s7_make_symbol(sc
, "sigset.make"),
8331 s7_make_typed_function(sc
, "sigset.make", g_sigset_make
, 0, 0, false, "sigset.make", NULL
));
8333 s7_define(sc
, cur_env
,
8334 s7_make_symbol(sc
, "sigtimedwait"),
8335 s7_make_typed_function(sc
, "sigtimedwait", g_sigtimedwait
, 3, 0, false, "sigtimedwait", NULL
));
8337 s7_define(sc
, cur_env
,
8338 s7_make_symbol(sc
, "sigaction"),
8339 s7_make_typed_function(sc
, "sigaction", g_sigaction
, 3, 0, false, "sigaction", NULL
));
8341 s7_define(sc
, cur_env
,
8342 s7_make_symbol(sc
, "sigwait"),
8343 s7_make_typed_function(sc
, "sigwait", g_sigwait
, 1, 0, false, "sigwait", NULL
));
8345 s7_define(sc
, cur_env
,
8346 s7_make_symbol(sc
, "sigqueue"),
8347 s7_make_typed_function(sc
, "sigqueue", g_sigqueue
, 3, 0, false, "sigqueue", NULL
));
8349 s7_define(sc
, cur_env
,
8350 s7_make_symbol(sc
, "waitpid"),
8351 s7_make_typed_function(sc
, "waitpid", g_waitpid
, 2, 0, false, "waitpid", NULL
));
8353 s7_define(sc
, cur_env
,
8354 s7_make_symbol(sc
, "wait"),
8355 s7_make_typed_function(sc
, "wait", g_wait
, 0, 0, false, "wait", NULL
));
8357 s7_define(sc
, cur_env
,
8358 s7_make_symbol(sc
, "WIFSTOPPED"),
8359 s7_make_typed_function(sc
, "WIFSTOPPED", g_WIFSTOPPED
, 1, 0, false, "WIFSTOPPED", NULL
));
8361 s7_define(sc
, cur_env
,
8362 s7_make_symbol(sc
, "WIFSIGNALED"),
8363 s7_make_typed_function(sc
, "WIFSIGNALED", g_WIFSIGNALED
, 1, 0, false, "WIFSIGNALED", NULL
));
8365 s7_define(sc
, cur_env
,
8366 s7_make_symbol(sc
, "WIFEXITED"),
8367 s7_make_typed_function(sc
, "WIFEXITED", g_WIFEXITED
, 1, 0, false, "WIFEXITED", NULL
));
8369 s7_define(sc
, cur_env
,
8370 s7_make_symbol(sc
, "WSTOPSIG"),
8371 s7_make_typed_function(sc
, "WSTOPSIG", g_WSTOPSIG
, 1, 0, false, "WSTOPSIG", NULL
));
8373 s7_define(sc
, cur_env
,
8374 s7_make_symbol(sc
, "WTERMSIG"),
8375 s7_make_typed_function(sc
, "WTERMSIG", g_WTERMSIG
, 1, 0, false, "WTERMSIG", NULL
));
8377 s7_define(sc
, cur_env
,
8378 s7_make_symbol(sc
, "WEXITSTATUS"),
8379 s7_make_typed_function(sc
, "WEXITSTATUS", g_WEXITSTATUS
, 1, 0, false, "WEXITSTATUS", NULL
));
8381 s7_define(sc
, cur_env
,
8382 s7_make_symbol(sc
, "sigaction.set_sa_flags"),
8383 s7_make_typed_function(sc
, "sigaction.set_sa_flags", g_sigaction_set_sa_flags
, 2, 0, false, "sigaction.set_sa_flags", NULL
));
8385 s7_define(sc
, cur_env
,
8386 s7_make_symbol(sc
, "sigaction.set_sa_handler"),
8387 s7_make_typed_function(sc
, "sigaction.set_sa_handler", g_sigaction_set_sa_handler
, 2, 0, false, "sigaction.set_sa_handler", NULL
));
8389 s7_define(sc
, cur_env
,
8390 s7_make_symbol(sc
, "sigaction.sa_mask"),
8391 s7_make_typed_function(sc
, "sigaction.sa_mask", g_sigaction_sa_mask
, 1, 0, false, "sigaction.sa_mask", NULL
));
8393 s7_define(sc
, cur_env
,
8394 s7_make_symbol(sc
, "sigaction.sa_flags"),
8395 s7_make_typed_function(sc
, "sigaction.sa_flags", g_sigaction_sa_flags
, 1, 0, false, "sigaction.sa_flags", NULL
));
8397 s7_define(sc
, cur_env
,
8398 s7_make_symbol(sc
, "sigaction.sa_handler"),
8399 s7_make_typed_function(sc
, "sigaction.sa_handler", g_sigaction_sa_handler
, 1, 0, false, "sigaction.sa_handler", NULL
));
8401 s7_define(sc
, cur_env
,
8402 s7_make_symbol(sc
, "sigaction.make"),
8403 s7_make_typed_function(sc
, "sigaction.make", g_sigaction_make
, 0, 0, false, "sigaction.make", NULL
));
8405 s7_define(sc
, cur_env
,
8406 s7_make_symbol(sc
, "timespec.tv_nsec"),
8407 s7_make_typed_function(sc
, "timespec.tv_nsec", g_timespec_tv_nsec
, 1, 0, false, "timespec.tv_nsec", NULL
));
8409 s7_define(sc
, cur_env
,
8410 s7_make_symbol(sc
, "timespec.tv_sec"),
8411 s7_make_typed_function(sc
, "timespec.tv_sec", g_timespec_tv_sec
, 1, 0, false, "timespec.tv_sec", NULL
));
8413 s7_define(sc
, cur_env
,
8414 s7_make_symbol(sc
, "timespec.make"),
8415 s7_make_typed_function(sc
, "timespec.make", g_timespec_make
, 0, 0, false, "timespec.make", NULL
));
8417 s7_define(sc
, cur_env
,
8418 s7_make_symbol(sc
, "siginfo.si_addr"),
8419 s7_make_typed_function(sc
, "siginfo.si_addr", g_siginfo_si_addr
, 1, 0, false, "siginfo.si_addr", NULL
));
8421 s7_define(sc
, cur_env
,
8422 s7_make_symbol(sc
, "siginfo.si_ptr"),
8423 s7_make_typed_function(sc
, "siginfo.si_ptr", g_siginfo_si_ptr
, 1, 0, false, "siginfo.si_ptr", NULL
));
8425 s7_define(sc
, cur_env
,
8426 s7_make_symbol(sc
, "siginfo.si_fd"),
8427 s7_make_typed_function(sc
, "siginfo.si_fd", g_siginfo_si_fd
, 1, 0, false, "siginfo.si_fd", NULL
));
8429 s7_define(sc
, cur_env
,
8430 s7_make_symbol(sc
, "siginfo.si_band"),
8431 s7_make_typed_function(sc
, "siginfo.si_band", g_siginfo_si_band
, 1, 0, false, "siginfo.si_band", NULL
));
8433 s7_define(sc
, cur_env
,
8434 s7_make_symbol(sc
, "siginfo.si_timerid"),
8435 s7_make_typed_function(sc
, "siginfo.si_timerid", g_siginfo_si_timerid
, 1, 0, false, "siginfo.si_timerid", NULL
));
8437 s7_define(sc
, cur_env
,
8438 s7_make_symbol(sc
, "siginfo.si_overrun"),
8439 s7_make_typed_function(sc
, "siginfo.si_overrun", g_siginfo_si_overrun
, 1, 0, false, "siginfo.si_overrun", NULL
));
8441 s7_define(sc
, cur_env
,
8442 s7_make_symbol(sc
, "siginfo.si_int"),
8443 s7_make_typed_function(sc
, "siginfo.si_int", g_siginfo_si_int
, 1, 0, false, "siginfo.si_int", NULL
));
8445 s7_define(sc
, cur_env
,
8446 s7_make_symbol(sc
, "siginfo.si_value"),
8447 s7_make_typed_function(sc
, "siginfo.si_value", g_siginfo_si_value
, 1, 0, false, "siginfo.si_value", NULL
));
8449 s7_define(sc
, cur_env
,
8450 s7_make_symbol(sc
, "siginfo.si_stime"),
8451 s7_make_typed_function(sc
, "siginfo.si_stime", g_siginfo_si_stime
, 1, 0, false, "siginfo.si_stime", NULL
));
8453 s7_define(sc
, cur_env
,
8454 s7_make_symbol(sc
, "siginfo.si_utime"),
8455 s7_make_typed_function(sc
, "siginfo.si_utime", g_siginfo_si_utime
, 1, 0, false, "siginfo.si_utime", NULL
));
8457 s7_define(sc
, cur_env
,
8458 s7_make_symbol(sc
, "siginfo.si_status"),
8459 s7_make_typed_function(sc
, "siginfo.si_status", g_siginfo_si_status
, 1, 0, false, "siginfo.si_status", NULL
));
8461 s7_define(sc
, cur_env
,
8462 s7_make_symbol(sc
, "siginfo.si_uid"),
8463 s7_make_typed_function(sc
, "siginfo.si_uid", g_siginfo_si_uid
, 1, 0, false, "siginfo.si_uid", NULL
));
8465 s7_define(sc
, cur_env
,
8466 s7_make_symbol(sc
, "siginfo.si_pid"),
8467 s7_make_typed_function(sc
, "siginfo.si_pid", g_siginfo_si_pid
, 1, 0, false, "siginfo.si_pid", NULL
));
8469 s7_define(sc
, cur_env
,
8470 s7_make_symbol(sc
, "siginfo.si_code"),
8471 s7_make_typed_function(sc
, "siginfo.si_code", g_siginfo_si_code
, 1, 0, false, "siginfo.si_code", NULL
));
8473 s7_define(sc
, cur_env
,
8474 s7_make_symbol(sc
, "siginfo.si_errno"),
8475 s7_make_typed_function(sc
, "siginfo.si_errno", g_siginfo_si_errno
, 1, 0, false, "siginfo.si_errno", NULL
));
8477 s7_define(sc
, cur_env
,
8478 s7_make_symbol(sc
, "siginfo.si_signo"),
8479 s7_make_typed_function(sc
, "siginfo.si_signo", g_siginfo_si_signo
, 1, 0, false, "siginfo.si_signo", NULL
));
8481 s7_define(sc
, cur_env
,
8482 s7_make_symbol(sc
, "siginfo.make"),
8483 s7_make_typed_function(sc
, "siginfo.make", g_siginfo_make
, 0, 0, false, "siginfo.make", NULL
));
8485 s7_define(sc
, cur_env
,
8486 s7_make_symbol(sc
, "rusage.ru_stime"),
8487 s7_make_typed_function(sc
, "rusage.ru_stime", g_rusage_ru_stime
, 1, 0, false, "rusage.ru_stime", NULL
));
8489 s7_define(sc
, cur_env
,
8490 s7_make_symbol(sc
, "rusage.ru_utime"),
8491 s7_make_typed_function(sc
, "rusage.ru_utime", g_rusage_ru_utime
, 1, 0, false, "rusage.ru_utime", NULL
));
8493 s7_define(sc
, cur_env
,
8494 s7_make_symbol(sc
, "rusage.ru_nivcsw"),
8495 s7_make_typed_function(sc
, "rusage.ru_nivcsw", g_rusage_ru_nivcsw
, 1, 0, false, "rusage.ru_nivcsw", NULL
));
8497 s7_define(sc
, cur_env
,
8498 s7_make_symbol(sc
, "rusage.ru_nvcsw"),
8499 s7_make_typed_function(sc
, "rusage.ru_nvcsw", g_rusage_ru_nvcsw
, 1, 0, false, "rusage.ru_nvcsw", NULL
));
8501 s7_define(sc
, cur_env
,
8502 s7_make_symbol(sc
, "rusage.ru_oublock"),
8503 s7_make_typed_function(sc
, "rusage.ru_oublock", g_rusage_ru_oublock
, 1, 0, false, "rusage.ru_oublock", NULL
));
8505 s7_define(sc
, cur_env
,
8506 s7_make_symbol(sc
, "rusage.ru_inblock"),
8507 s7_make_typed_function(sc
, "rusage.ru_inblock", g_rusage_ru_inblock
, 1, 0, false, "rusage.ru_inblock", NULL
));
8509 s7_define(sc
, cur_env
,
8510 s7_make_symbol(sc
, "rusage.ru_majflt"),
8511 s7_make_typed_function(sc
, "rusage.ru_majflt", g_rusage_ru_majflt
, 1, 0, false, "rusage.ru_majflt", NULL
));
8513 s7_define(sc
, cur_env
,
8514 s7_make_symbol(sc
, "rusage.ru_minflt"),
8515 s7_make_typed_function(sc
, "rusage.ru_minflt", g_rusage_ru_minflt
, 1, 0, false, "rusage.ru_minflt", NULL
));
8517 s7_define(sc
, cur_env
,
8518 s7_make_symbol(sc
, "rusage.ru_maxrss"),
8519 s7_make_typed_function(sc
, "rusage.ru_maxrss", g_rusage_ru_maxrss
, 1, 0, false, "rusage.ru_maxrss", NULL
));
8521 s7_define(sc
, cur_env
,
8522 s7_make_symbol(sc
, "getrusage"),
8523 s7_make_typed_function(sc
, "getrusage", g_getrusage
, 2, 0, false, "getrusage", NULL
));
8525 s7_define(sc
, cur_env
,
8526 s7_make_symbol(sc
, "rusage.make"),
8527 s7_make_typed_function(sc
, "rusage.make", g_rusage_make
, 0, 0, false, "rusage.make", NULL
));
8529 s7_define(sc
, cur_env
,
8530 s7_make_symbol(sc
, "rlimit.rlim_max"),
8531 s7_make_typed_function(sc
, "rlimit.rlim_max", g_rlimit_rlim_max
, 1, 0, false, "rlimit.rlim_max", NULL
));
8533 s7_define(sc
, cur_env
,
8534 s7_make_symbol(sc
, "rlimit.rlim_cur"),
8535 s7_make_typed_function(sc
, "rlimit.rlim_cur", g_rlimit_rlim_cur
, 1, 0, false, "rlimit.rlim_cur", NULL
));
8537 s7_define(sc
, cur_env
,
8538 s7_make_symbol(sc
, "rlimit.make"),
8539 s7_make_typed_function(sc
, "rlimit.make", g_rlimit_make
, 0, 0, false, "rlimit.make", NULL
));
8541 s7_define(sc
, cur_env
,
8542 s7_make_symbol(sc
, "setpriority"),
8543 s7_make_typed_function(sc
, "setpriority", s7__setpriority
, 3, 0, false, "int setpriority(int int int)", pcl_i
));
8545 s7_define(sc
, cur_env
,
8546 s7_make_symbol(sc
, "getpriority"),
8547 s7_make_typed_function(sc
, "getpriority", s7__getpriority
, 2, 0, false, "int getpriority(int int)", pcl_i
));
8549 s7_define(sc
, cur_env
,
8550 s7_make_symbol(sc
, "sigpending"),
8551 s7_make_typed_function(sc
, "sigpending", s7__sigpending
, 1, 0, false, "int sigpending(sigset_t*)", pl_ix
));
8553 s7_define(sc
, cur_env
,
8554 s7_make_symbol(sc
, "sigsuspend"),
8555 s7_make_typed_function(sc
, "sigsuspend", s7__sigsuspend
, 1, 0, false, "int sigsuspend(sigset_t*)", pl_ix
));
8557 s7_define(sc
, cur_env
,
8558 s7_make_symbol(sc
, "sigprocmask"),
8559 s7_make_typed_function(sc
, "sigprocmask", s7__sigprocmask
, 3, 0, false, "int sigprocmask(int sigset_t* sigset_t*)", pcl_iix
));
8561 s7_define(sc
, cur_env
,
8562 s7_make_symbol(sc
, "sigismember"),
8563 s7_make_typed_function(sc
, "sigismember", s7__sigismember
, 2, 0, false, "int sigismember(sigset_t* int)", pl_ixi
));
8565 s7_define(sc
, cur_env
,
8566 s7_make_symbol(sc
, "sigdelset"),
8567 s7_make_typed_function(sc
, "sigdelset", s7__sigdelset
, 2, 0, false, "int sigdelset(sigset_t* int)", pl_ixi
));
8569 s7_define(sc
, cur_env
,
8570 s7_make_symbol(sc
, "sigaddset"),
8571 s7_make_typed_function(sc
, "sigaddset", s7__sigaddset
, 2, 0, false, "int sigaddset(sigset_t* int)", pl_ixi
));
8573 s7_define(sc
, cur_env
,
8574 s7_make_symbol(sc
, "sigfillset"),
8575 s7_make_typed_function(sc
, "sigfillset", s7__sigfillset
, 1, 0, false, "int sigfillset(sigset_t*)", pl_ix
));
8577 s7_define(sc
, cur_env
,
8578 s7_make_symbol(sc
, "sigemptyset"),
8579 s7_make_typed_function(sc
, "sigemptyset", s7__sigemptyset
, 1, 0, false, "int sigemptyset(sigset_t*)", pl_ix
));
8581 s7_define(sc
, cur_env
,
8582 s7_make_symbol(sc
, "raise"),
8583 s7_make_typed_function(sc
, "raise", s7__raise
, 1, 0, false, "int raise(int)", pcl_i
));
8585 s7_define(sc
, cur_env
,
8586 s7_make_symbol(sc
, "kill"),
8587 s7_make_typed_function(sc
, "kill", s7__kill
, 2, 0, false, "int kill(int int)", pcl_i
));
8589 s7_define(sc
, cur_env
,
8590 s7_make_symbol(sc
, "glob"),
8591 s7_make_typed_function(sc
, "glob", g_glob
, 3, 0, false, "glob", NULL
));
8593 s7_define(sc
, cur_env
,
8594 s7_make_symbol(sc
, "glob.gl_pathv"),
8595 s7_make_typed_function(sc
, "glob.gl_pathv", g_glob_gl_pathv
, 1, 0, false, "glob.gl_pathv", NULL
));
8597 s7_define(sc
, cur_env
,
8598 s7_make_symbol(sc
, "glob.gl_pathc"),
8599 s7_make_typed_function(sc
, "glob.gl_pathc", g_glob_gl_pathc
, 1, 0, false, "glob.gl_pathc", NULL
));
8601 s7_define(sc
, cur_env
,
8602 s7_make_symbol(sc
, "glob.make"),
8603 s7_make_typed_function(sc
, "glob.make", g_glob_make
, 0, 0, false, "glob.make", NULL
));
8605 s7_define(sc
, cur_env
,
8606 s7_make_symbol(sc
, "globfree"),
8607 s7_make_typed_function(sc
, "globfree", s7__globfree
, 1, 0, false, "void globfree(glob_t*)", pl_tx
));
8609 s7_define(sc
, cur_env
,
8610 s7_make_symbol(sc
, "wordexp.we_wordv"),
8611 s7_make_typed_function(sc
, "wordexp.we_wordv", g_wordexp_we_wordv
, 1, 0, false, "wordexp.we_wordv", NULL
));
8613 s7_define(sc
, cur_env
,
8614 s7_make_symbol(sc
, "wordexp.we_wordc"),
8615 s7_make_typed_function(sc
, "wordexp.we_wordc", g_wordexp_we_wordc
, 1, 0, false, "wordexp.we_wordc", NULL
));
8617 s7_define(sc
, cur_env
,
8618 s7_make_symbol(sc
, "wordexp.make"),
8619 s7_make_typed_function(sc
, "wordexp.make", g_wordexp_make
, 0, 0, false, "wordexp.make", NULL
));
8621 s7_define(sc
, cur_env
,
8622 s7_make_symbol(sc
, "wordfree"),
8623 s7_make_typed_function(sc
, "wordfree", s7__wordfree
, 1, 0, false, "void wordfree(wordexp_t*)", pl_tx
));
8625 s7_define(sc
, cur_env
,
8626 s7_make_symbol(sc
, "wordexp"),
8627 s7_make_typed_function(sc
, "wordexp", s7__wordexp
, 3, 0, false, "int wordexp(char* wordexp_t* int)", pl_isxi
));
8629 s7_define(sc
, cur_env
,
8630 s7_make_symbol(sc
, "passwd.pw_shell"),
8631 s7_make_typed_function(sc
, "passwd.pw_shell", g_passwd_pw_shell
, 1, 0, false, "passwd.pw_shell", NULL
));
8633 s7_define(sc
, cur_env
,
8634 s7_make_symbol(sc
, "passwd.pw_dir"),
8635 s7_make_typed_function(sc
, "passwd.pw_dir", g_passwd_pw_dir
, 1, 0, false, "passwd.pw_dir", NULL
));
8637 s7_define(sc
, cur_env
,
8638 s7_make_symbol(sc
, "passwd.pw_gecos"),
8639 s7_make_typed_function(sc
, "passwd.pw_gecos", g_passwd_pw_gecos
, 1, 0, false, "passwd.pw_gecos", NULL
));
8641 s7_define(sc
, cur_env
,
8642 s7_make_symbol(sc
, "passwd.pw_gid"),
8643 s7_make_typed_function(sc
, "passwd.pw_gid", g_passwd_pw_gid
, 1, 0, false, "passwd.pw_gid", NULL
));
8645 s7_define(sc
, cur_env
,
8646 s7_make_symbol(sc
, "passwd.pw_uid"),
8647 s7_make_typed_function(sc
, "passwd.pw_uid", g_passwd_pw_uid
, 1, 0, false, "passwd.pw_uid", NULL
));
8649 s7_define(sc
, cur_env
,
8650 s7_make_symbol(sc
, "passwd.pw_passwd"),
8651 s7_make_typed_function(sc
, "passwd.pw_passwd", g_passwd_pw_passwd
, 1, 0, false, "passwd.pw_passwd", NULL
));
8653 s7_define(sc
, cur_env
,
8654 s7_make_symbol(sc
, "passwd.pw_name"),
8655 s7_make_typed_function(sc
, "passwd.pw_name", g_passwd_pw_name
, 1, 0, false, "passwd.pw_name", NULL
));
8657 s7_define(sc
, cur_env
,
8658 s7_make_symbol(sc
, "getpwnam"),
8659 s7_make_typed_function(sc
, "getpwnam", s7__getpwnam
, 1, 0, false, "passwd* getpwnam(char*)", pl_xs
));
8661 s7_define(sc
, cur_env
,
8662 s7_make_symbol(sc
, "getpwuid"),
8663 s7_make_typed_function(sc
, "getpwuid", s7__getpwuid
, 1, 0, false, "passwd* getpwuid(int)", pl_xi
));
8665 s7_define(sc
, cur_env
,
8666 s7_make_symbol(sc
, "getpwent"),
8667 s7_make_typed_function(sc
, "getpwent", s7__getpwent
, 0, 0, false, "passwd* getpwent(void)", pl_xt
));
8669 s7_define(sc
, cur_env
,
8670 s7_make_symbol(sc
, "endpwent"),
8671 s7_make_typed_function(sc
, "endpwent", s7__endpwent
, 0, 0, false, "void endpwent(void)", pcl_t
));
8673 s7_define(sc
, cur_env
,
8674 s7_make_symbol(sc
, "setpwent"),
8675 s7_make_typed_function(sc
, "setpwent", s7__setpwent
, 0, 0, false, "void setpwent(void)", pcl_t
));
8677 s7_define(sc
, cur_env
,
8678 s7_make_symbol(sc
, "group.gr_mem"),
8679 s7_make_typed_function(sc
, "group.gr_mem", g_group_gr_mem
, 1, 0, false, "group.gr_mem", NULL
));
8681 s7_define(sc
, cur_env
,
8682 s7_make_symbol(sc
, "group.gr_gid"),
8683 s7_make_typed_function(sc
, "group.gr_gid", g_group_gr_gid
, 1, 0, false, "group.gr_gid", NULL
));
8685 s7_define(sc
, cur_env
,
8686 s7_make_symbol(sc
, "group.gr_passwd"),
8687 s7_make_typed_function(sc
, "group.gr_passwd", g_group_gr_passwd
, 1, 0, false, "group.gr_passwd", NULL
));
8689 s7_define(sc
, cur_env
,
8690 s7_make_symbol(sc
, "group.gr_name"),
8691 s7_make_typed_function(sc
, "group.gr_name", g_group_gr_name
, 1, 0, false, "group.gr_name", NULL
));
8693 s7_define(sc
, cur_env
,
8694 s7_make_symbol(sc
, "getgrnam"),
8695 s7_make_typed_function(sc
, "getgrnam", g_getgrnam
, 1, 0, false, "getgrnam", NULL
));
8697 s7_define(sc
, cur_env
,
8698 s7_make_symbol(sc
, "getgrgid"),
8699 s7_make_typed_function(sc
, "getgrgid", g_getgrgid
, 1, 0, false, "getgrgid", NULL
));
8701 s7_define(sc
, cur_env
,
8702 s7_make_symbol(sc
, "termios.set_c_cc"),
8703 s7_make_typed_function(sc
, "termios.set_c_cc", g_termios_set_c_cc
, 3, 0, false, "termios.set_c_cc", NULL
));
8705 s7_define(sc
, cur_env
,
8706 s7_make_symbol(sc
, "termios.set_c_lflag"),
8707 s7_make_typed_function(sc
, "termios.set_c_lflag", g_termios_set_c_lflag
, 2, 0, false, "termios.set_c_lflag", NULL
));
8709 s7_define(sc
, cur_env
,
8710 s7_make_symbol(sc
, "termios.c_lflag"),
8711 s7_make_typed_function(sc
, "termios.c_lflag", g_termios_c_lflag
, 1, 0, false, "termios.c_lflag", NULL
));
8713 s7_define(sc
, cur_env
,
8714 s7_make_symbol(sc
, "termios.make"),
8715 s7_make_typed_function(sc
, "termios.make", g_termios_make
, 0, 0, false, "termios.make", NULL
));
8717 s7_define(sc
, cur_env
,
8718 s7_make_symbol(sc
, "tcsetattr"),
8719 s7_make_typed_function(sc
, "tcsetattr", g_tcsetattr
, 3, 0, false, "tcsetattr", NULL
));
8721 s7_define(sc
, cur_env
,
8722 s7_make_symbol(sc
, "tcgetattr"),
8723 s7_make_typed_function(sc
, "tcgetattr", g_tcgetattr
, 2, 0, false, "tcgetattr", NULL
));
8725 s7_define(sc
, cur_env
,
8726 s7_make_symbol(sc
, "cfsetispeed"),
8727 s7_make_typed_function(sc
, "cfsetispeed", g_cfsetispeed
, 2, 0, false, "cfsetispeed", NULL
));
8729 s7_define(sc
, cur_env
,
8730 s7_make_symbol(sc
, "cfsetospeed"),
8731 s7_make_typed_function(sc
, "cfsetospeed", g_cfsetospeed
, 2, 0, false, "cfsetospeed", NULL
));
8733 s7_define(sc
, cur_env
,
8734 s7_make_symbol(sc
, "cfgetispeed"),
8735 s7_make_typed_function(sc
, "cfgetispeed", g_cfgetispeed
, 1, 0, false, "cfgetispeed", NULL
));
8737 s7_define(sc
, cur_env
,
8738 s7_make_symbol(sc
, "cfgetospeed"),
8739 s7_make_typed_function(sc
, "cfgetospeed", g_cfgetospeed
, 1, 0, false, "cfgetospeed", NULL
));
8741 s7_define(sc
, cur_env
,
8742 s7_make_symbol(sc
, "tcflow"),
8743 s7_make_typed_function(sc
, "tcflow", s7__tcflow
, 2, 0, false, "int tcflow(int int)", pcl_i
));
8745 s7_define(sc
, cur_env
,
8746 s7_make_symbol(sc
, "tcflush"),
8747 s7_make_typed_function(sc
, "tcflush", s7__tcflush
, 2, 0, false, "int tcflush(int int)", pcl_i
));
8749 s7_define(sc
, cur_env
,
8750 s7_make_symbol(sc
, "tcdrain"),
8751 s7_make_typed_function(sc
, "tcdrain", s7__tcdrain
, 1, 0, false, "int tcdrain(int)", pcl_i
));
8753 s7_define(sc
, cur_env
,
8754 s7_make_symbol(sc
, "tcsendbreak"),
8755 s7_make_typed_function(sc
, "tcsendbreak", s7__tcsendbreak
, 2, 0, false, "int tcsendbreak(int int)", pcl_i
));
8757 s7_define(sc
, cur_env
,
8758 s7_make_symbol(sc
, "utime"),
8759 s7_make_typed_function(sc
, "utime", g_utime
, 3, 0, false, "utime", NULL
));
8761 s7_define(sc
, cur_env
,
8762 s7_make_symbol(sc
, "clock_nanosleep"),
8763 s7_make_typed_function(sc
, "clock_nanosleep", g_clock_nanosleep
, 4, 0, false, "clock_nanosleep", NULL
));
8765 s7_define(sc
, cur_env
,
8766 s7_make_symbol(sc
, "clock_getcpuclockid"),
8767 s7_make_typed_function(sc
, "clock_getcpuclockid", g_clock_getcpuclockid
, 1, 0, false, "clock_getcpuclockid", NULL
));
8769 s7_define(sc
, cur_env
,
8770 s7_make_symbol(sc
, "clock_settime"),
8771 s7_make_typed_function(sc
, "clock_settime", g_clock_settime
, 3, 0, false, "clock_settime", NULL
));
8773 s7_define(sc
, cur_env
,
8774 s7_make_symbol(sc
, "clock_gettime"),
8775 s7_make_typed_function(sc
, "clock_gettime", g_clock_gettime
, 1, 0, false, "clock_gettime", NULL
));
8777 s7_define(sc
, cur_env
,
8778 s7_make_symbol(sc
, "clock_getres"),
8779 s7_make_typed_function(sc
, "clock_getres", g_clock_getres
, 1, 0, false, "clock_getres", NULL
));
8781 s7_define(sc
, cur_env
,
8782 s7_make_symbol(sc
, "nanosleep"),
8783 s7_make_typed_function(sc
, "nanosleep", g_nanosleep
, 2, 0, false, "nanosleep", NULL
));
8785 s7_define(sc
, cur_env
,
8786 s7_make_symbol(sc
, "gettimeofday"),
8787 s7_make_typed_function(sc
, "gettimeofday", g_gettimeofday
, 0, 0, false, "gettimeofday", NULL
));
8789 s7_define(sc
, cur_env
,
8790 s7_make_symbol(sc
, "strftime"),
8791 s7_make_typed_function(sc
, "strftime", g_strftime
, 4, 0, false, "strftime", NULL
));
8793 s7_define(sc
, cur_env
,
8794 s7_make_symbol(sc
, "asctime"),
8795 s7_make_typed_function(sc
, "asctime", g_asctime
, 1, 0, false, "asctime", NULL
));
8797 s7_define(sc
, cur_env
,
8798 s7_make_symbol(sc
, "mktime"),
8799 s7_make_typed_function(sc
, "mktime", g_mktime
, 1, 0, false, "mktime", NULL
));
8801 s7_define(sc
, cur_env
,
8802 s7_make_symbol(sc
, "time.make"),
8803 s7_make_typed_function(sc
, "time.make", g_time_make
, 1, 0, false, "time.make", NULL
));
8805 s7_define(sc
, cur_env
,
8806 s7_make_symbol(sc
, "localtime"),
8807 s7_make_typed_function(sc
, "localtime", s7__localtime
, 1, 0, false, "tm* localtime(time_t*)", pcl_x
));
8809 s7_define(sc
, cur_env
,
8810 s7_make_symbol(sc
, "ctime"),
8811 s7_make_typed_function(sc
, "ctime", s7__ctime
, 1, 0, false, "char* ctime(time_t*)", pl_sx
));
8813 s7_define(sc
, cur_env
,
8814 s7_make_symbol(sc
, "gmtime"),
8815 s7_make_typed_function(sc
, "gmtime", s7__gmtime
, 1, 0, false, "tm* gmtime(time_t*)", pcl_x
));
8817 s7_define(sc
, cur_env
,
8818 s7_make_symbol(sc
, "difftime"),
8819 s7_make_typed_function(sc
, "difftime", s7__difftime
, 2, 0, false, "double difftime((time_t integer) (time_t integer))", pcl_di
));
8821 s7_define(sc
, cur_env
,
8822 s7_make_symbol(sc
, "time"),
8823 s7_make_typed_function(sc
, "time", s7__time
, 1, 0, false, "int time(time_t*)", pl_ix
));
8825 s7_define(sc
, cur_env
,
8826 s7_make_symbol(sc
, "clock"),
8827 s7_make_typed_function(sc
, "clock", s7__clock
, 0, 0, false, "int clock(void)", pl_it
));
8829 s7_define(sc
, cur_env
,
8830 s7_make_symbol(sc
, "stat.make"),
8831 s7_make_typed_function(sc
, "stat.make", g_stat_make
, 0, 0, false, "stat.make", NULL
));
8833 s7_define(sc
, cur_env
,
8834 s7_make_symbol(sc
, "stat.st_ctime"),
8835 s7_make_typed_function(sc
, "stat.st_ctime", g_st_ctime
, 1, 0, false, "stat.st_ctime", NULL
));
8837 s7_define(sc
, cur_env
,
8838 s7_make_symbol(sc
, "stat.st_mtime"),
8839 s7_make_typed_function(sc
, "stat.st_mtime", g_st_mtime
, 1, 0, false, "stat.st_mtime", NULL
));
8841 s7_define(sc
, cur_env
,
8842 s7_make_symbol(sc
, "stat.st_atime"),
8843 s7_make_typed_function(sc
, "stat.st_atime", g_st_atime
, 1, 0, false, "stat.st_atime", NULL
));
8845 s7_define(sc
, cur_env
,
8846 s7_make_symbol(sc
, "stat.st_blocks"),
8847 s7_make_typed_function(sc
, "stat.st_blocks", g_st_blocks
, 1, 0, false, "stat.st_blocks", NULL
));
8849 s7_define(sc
, cur_env
,
8850 s7_make_symbol(sc
, "stat.st_blksize"),
8851 s7_make_typed_function(sc
, "stat.st_blksize", g_st_blksize
, 1, 0, false, "stat.st_blksize", NULL
));
8853 s7_define(sc
, cur_env
,
8854 s7_make_symbol(sc
, "stat.st_size"),
8855 s7_make_typed_function(sc
, "stat.st_size", g_st_size
, 1, 0, false, "stat.st_size", NULL
));
8857 s7_define(sc
, cur_env
,
8858 s7_make_symbol(sc
, "stat.st_rdev"),
8859 s7_make_typed_function(sc
, "stat.st_rdev", g_st_rdev
, 1, 0, false, "stat.st_rdev", NULL
));
8861 s7_define(sc
, cur_env
,
8862 s7_make_symbol(sc
, "stat.st_gid"),
8863 s7_make_typed_function(sc
, "stat.st_gid", g_st_gid
, 1, 0, false, "stat.st_gid", NULL
));
8865 s7_define(sc
, cur_env
,
8866 s7_make_symbol(sc
, "stat.st_uid"),
8867 s7_make_typed_function(sc
, "stat.st_uid", g_st_uid
, 1, 0, false, "stat.st_uid", NULL
));
8869 s7_define(sc
, cur_env
,
8870 s7_make_symbol(sc
, "stat.st_nlink"),
8871 s7_make_typed_function(sc
, "stat.st_nlink", g_st_nlink
, 1, 0, false, "stat.st_nlink", NULL
));
8873 s7_define(sc
, cur_env
,
8874 s7_make_symbol(sc
, "stat.st_mode"),
8875 s7_make_typed_function(sc
, "stat.st_mode", g_st_mode
, 1, 0, false, "stat.st_mode", NULL
));
8877 s7_define(sc
, cur_env
,
8878 s7_make_symbol(sc
, "stat.st_ino"),
8879 s7_make_typed_function(sc
, "stat.st_ino", g_st_ino
, 1, 0, false, "stat.st_ino", NULL
));
8881 s7_define(sc
, cur_env
,
8882 s7_make_symbol(sc
, "stat.st_dev"),
8883 s7_make_typed_function(sc
, "stat.st_dev", g_st_dev
, 1, 0, false, "stat.st_dev", NULL
));
8885 s7_define(sc
, cur_env
,
8886 s7_make_symbol(sc
, "S_ISSOCK"),
8887 s7_make_typed_function(sc
, "S_ISSOCK", g_issock
, 1, 0, false, "S_ISSOCK", NULL
));
8889 s7_define(sc
, cur_env
,
8890 s7_make_symbol(sc
, "S_ISLNK"),
8891 s7_make_typed_function(sc
, "S_ISLNK", g_islnk
, 1, 0, false, "S_ISLNK", NULL
));
8893 s7_define(sc
, cur_env
,
8894 s7_make_symbol(sc
, "S_ISFIFO"),
8895 s7_make_typed_function(sc
, "S_ISFIFO", g_isfifo
, 1, 0, false, "S_ISFIFO", NULL
));
8897 s7_define(sc
, cur_env
,
8898 s7_make_symbol(sc
, "S_ISREG"),
8899 s7_make_typed_function(sc
, "S_ISREG", g_isreg
, 1, 0, false, "S_ISREG", NULL
));
8901 s7_define(sc
, cur_env
,
8902 s7_make_symbol(sc
, "S_ISBLK"),
8903 s7_make_typed_function(sc
, "S_ISBLK", g_isblk
, 1, 0, false, "S_ISBLK", NULL
));
8905 s7_define(sc
, cur_env
,
8906 s7_make_symbol(sc
, "S_ISCHR"),
8907 s7_make_typed_function(sc
, "S_ISCHR", g_ischr
, 1, 0, false, "S_ISCHR", NULL
));
8909 s7_define(sc
, cur_env
,
8910 s7_make_symbol(sc
, "S_ISDIR"),
8911 s7_make_typed_function(sc
, "S_ISDIR", g_isdir
, 1, 0, false, "S_ISDIR", NULL
));
8913 s7_define(sc
, cur_env
,
8914 s7_make_symbol(sc
, "mkfifo"),
8915 s7_make_typed_function(sc
, "mkfifo", s7__mkfifo
, 2, 0, false, "int mkfifo(char* int)", pl_isi
));
8917 s7_define(sc
, cur_env
,
8918 s7_make_symbol(sc
, "mknod"),
8919 s7_make_typed_function(sc
, "mknod", s7__mknod
, 3, 0, false, "int mknod(char* int int)", pcl_isi
));
8921 s7_define(sc
, cur_env
,
8922 s7_make_symbol(sc
, "mkdir"),
8923 s7_make_typed_function(sc
, "mkdir", s7__mkdir
, 2, 0, false, "int mkdir(char* int)", pl_isi
));
8925 s7_define(sc
, cur_env
,
8926 s7_make_symbol(sc
, "chmod"),
8927 s7_make_typed_function(sc
, "chmod", s7__chmod
, 2, 0, false, "int chmod(char* int)", pl_isi
));
8929 s7_define(sc
, cur_env
,
8930 s7_make_symbol(sc
, "lstat"),
8931 s7_make_typed_function(sc
, "lstat", g_lstat
, 2, 0, false, "lstat", NULL
));
8933 s7_define(sc
, cur_env
,
8934 s7_make_symbol(sc
, "fstat"),
8935 s7_make_typed_function(sc
, "fstat", g_fstat
, 2, 0, false, "fstat", NULL
));
8937 s7_define(sc
, cur_env
,
8938 s7_make_symbol(sc
, "stat"),
8939 s7_make_typed_function(sc
, "stat", g_stat
, 2, 0, false, "stat", NULL
));
8941 s7_define(sc
, cur_env
,
8942 s7_make_symbol(sc
, "ftw"),
8943 s7_make_typed_function(sc
, "ftw", g_ftw
, 3, 0, false, "ftw", NULL
));
8945 s7_define(sc
, cur_env
,
8946 s7_make_symbol(sc
, "read_dir"),
8947 s7_make_typed_function(sc
, "read_dir", s7__read_dir
, 1, 0, false, "char* read_dir(DIR*)", pl_sx
));
8949 s7_define(sc
, cur_env
,
8950 s7_make_symbol(sc
, "rewinddir"),
8951 s7_make_typed_function(sc
, "rewinddir", s7__rewinddir
, 1, 0, false, "void rewinddir(DIR*)", pl_tx
));
8953 s7_define(sc
, cur_env
,
8954 s7_make_symbol(sc
, "closedir"),
8955 s7_make_typed_function(sc
, "closedir", s7__closedir
, 1, 0, false, "int closedir(DIR*)", pl_ix
));
8957 s7_define(sc
, cur_env
,
8958 s7_make_symbol(sc
, "opendir"),
8959 s7_make_typed_function(sc
, "opendir", s7__opendir
, 1, 0, false, "DIR* opendir(char*)", pl_xs
));
8961 s7_define(sc
, cur_env
,
8962 s7_make_symbol(sc
, "getgroups"),
8963 s7_make_typed_function(sc
, "getgroups", g_getgroups
, 1, 0, false, "getgroups", NULL
));
8965 s7_define(sc
, cur_env
,
8966 s7_make_symbol(sc
, "getenvs"),
8967 s7_make_typed_function(sc
, "getenvs", getenvs
, 0, 0, false, "(getenvs) returns all the environment variables in an alist", NULL
));
8969 s7_define(sc
, cur_env
,
8970 s7_make_symbol(sc
, "ftruncate"),
8971 s7_make_typed_function(sc
, "ftruncate", s7__ftruncate
, 2, 0, false, "int ftruncate(int int)", pcl_i
));
8973 s7_define(sc
, cur_env
,
8974 s7_make_symbol(sc
, "truncate"),
8975 s7_make_typed_function(sc
, "truncate", s7__truncate
, 2, 0, false, "int truncate(char* int)", pl_isi
));
8977 s7_define(sc
, cur_env
,
8978 s7_make_symbol(sc
, "getlogin"),
8979 s7_make_typed_function(sc
, "getlogin", s7__getlogin
, 0, 0, false, "char* getlogin(void)", pl_st
));
8981 s7_define(sc
, cur_env
,
8982 s7_make_symbol(sc
, "tcsetpgrp"),
8983 s7_make_typed_function(sc
, "tcsetpgrp", s7__tcsetpgrp
, 2, 0, false, "int tcsetpgrp(int int)", pcl_i
));
8985 s7_define(sc
, cur_env
,
8986 s7_make_symbol(sc
, "tcgetpgrp"),
8987 s7_make_typed_function(sc
, "tcgetpgrp", s7__tcgetpgrp
, 1, 0, false, "int tcgetpgrp(int)", pcl_i
));
8989 s7_define(sc
, cur_env
,
8990 s7_make_symbol(sc
, "rmdir"),
8991 s7_make_typed_function(sc
, "rmdir", s7__rmdir
, 1, 0, false, "int rmdir(char*)", pl_is
));
8993 s7_define(sc
, cur_env
,
8994 s7_make_symbol(sc
, "unlink"),
8995 s7_make_typed_function(sc
, "unlink", s7__unlink
, 1, 0, false, "int unlink(char*)", pl_is
));
8997 s7_define(sc
, cur_env
,
8998 s7_make_symbol(sc
, "link"),
8999 s7_make_typed_function(sc
, "link", s7__link
, 2, 0, false, "int link(char* char*)", pcl_is
));
9001 s7_define(sc
, cur_env
,
9002 s7_make_symbol(sc
, "isatty"),
9003 s7_make_typed_function(sc
, "isatty", s7__isatty
, 1, 0, false, "int isatty(int)", pcl_i
));
9005 s7_define(sc
, cur_env
,
9006 s7_make_symbol(sc
, "ttyname"),
9007 s7_make_typed_function(sc
, "ttyname", s7__ttyname
, 1, 0, false, "char* ttyname(int)", pl_si
));
9009 s7_define(sc
, cur_env
,
9010 s7_make_symbol(sc
, "fork"),
9011 s7_make_typed_function(sc
, "fork", s7__fork
, 0, 0, false, "int fork(void)", pl_it
));
9013 s7_define(sc
, cur_env
,
9014 s7_make_symbol(sc
, "setgid"),
9015 s7_make_typed_function(sc
, "setgid", s7__setgid
, 1, 0, false, "int setgid(int)", pcl_i
));
9017 s7_define(sc
, cur_env
,
9018 s7_make_symbol(sc
, "setuid"),
9019 s7_make_typed_function(sc
, "setuid", s7__setuid
, 1, 0, false, "int setuid(int)", pcl_i
));
9021 s7_define(sc
, cur_env
,
9022 s7_make_symbol(sc
, "getegid"),
9023 s7_make_typed_function(sc
, "getegid", s7__getegid
, 0, 0, false, "int getegid(void)", pl_it
));
9025 s7_define(sc
, cur_env
,
9026 s7_make_symbol(sc
, "getgid"),
9027 s7_make_typed_function(sc
, "getgid", s7__getgid
, 0, 0, false, "int getgid(void)", pl_it
));
9029 s7_define(sc
, cur_env
,
9030 s7_make_symbol(sc
, "geteuid"),
9031 s7_make_typed_function(sc
, "geteuid", s7__geteuid
, 0, 0, false, "int geteuid(void)", pl_it
));
9033 s7_define(sc
, cur_env
,
9034 s7_make_symbol(sc
, "getuid"),
9035 s7_make_typed_function(sc
, "getuid", s7__getuid
, 0, 0, false, "int getuid(void)", pl_it
));
9037 s7_define(sc
, cur_env
,
9038 s7_make_symbol(sc
, "getsid"),
9039 s7_make_typed_function(sc
, "getsid", s7__getsid
, 1, 0, false, "int getsid(int)", pcl_i
));
9041 s7_define(sc
, cur_env
,
9042 s7_make_symbol(sc
, "setsid"),
9043 s7_make_typed_function(sc
, "setsid", s7__setsid
, 0, 0, false, "int setsid(void)", pl_it
));
9045 s7_define(sc
, cur_env
,
9046 s7_make_symbol(sc
, "setpgid"),
9047 s7_make_typed_function(sc
, "setpgid", s7__setpgid
, 2, 0, false, "int setpgid(int int)", pcl_i
));
9049 s7_define(sc
, cur_env
,
9050 s7_make_symbol(sc
, "getpgid"),
9051 s7_make_typed_function(sc
, "getpgid", s7__getpgid
, 1, 0, false, "int getpgid(int)", pcl_i
));
9053 s7_define(sc
, cur_env
,
9054 s7_make_symbol(sc
, "getppid"),
9055 s7_make_typed_function(sc
, "getppid", s7__getppid
, 0, 0, false, "int getppid(void)", pl_it
));
9057 s7_define(sc
, cur_env
,
9058 s7_make_symbol(sc
, "getpid"),
9059 s7_make_typed_function(sc
, "getpid", s7__getpid
, 0, 0, false, "int getpid(void)", pl_it
));
9061 s7_define(sc
, cur_env
,
9062 s7_make_symbol(sc
, "confstr"),
9063 s7_make_typed_function(sc
, "confstr", s7__confstr
, 3, 0, false, "size_t confstr(int char* size_t)", pl_iisi
));
9065 s7_define(sc
, cur_env
,
9066 s7_make_symbol(sc
, "sysconf"),
9067 s7_make_typed_function(sc
, "sysconf", s7__sysconf
, 1, 0, false, "int sysconf(int)", pcl_i
));
9069 s7_define(sc
, cur_env
,
9070 s7_make_symbol(sc
, "fpathconf"),
9071 s7_make_typed_function(sc
, "fpathconf", s7__fpathconf
, 2, 0, false, "int fpathconf(int int)", pcl_i
));
9073 s7_define(sc
, cur_env
,
9074 s7_make_symbol(sc
, "pathconf"),
9075 s7_make_typed_function(sc
, "pathconf", s7__pathconf
, 2, 0, false, "int pathconf(char* int)", pl_isi
));
9077 s7_define(sc
, cur_env
,
9078 s7_make_symbol(sc
, "_exit"),
9079 s7_make_typed_function(sc
, "_exit", s7___exit
, 1, 0, false, "void _exit(int)", pl_ti
));
9081 s7_define(sc
, cur_env
,
9082 s7_make_symbol(sc
, "dup2"),
9083 s7_make_typed_function(sc
, "dup2", s7__dup2
, 2, 0, false, "int dup2(int int)", pcl_i
));
9085 s7_define(sc
, cur_env
,
9086 s7_make_symbol(sc
, "dup"),
9087 s7_make_typed_function(sc
, "dup", s7__dup
, 1, 0, false, "int dup(int)", pcl_i
));
9089 s7_define(sc
, cur_env
,
9090 s7_make_symbol(sc
, "getcwd"),
9091 s7_make_typed_function(sc
, "getcwd", s7__getcwd
, 2, 0, false, "char* getcwd(char* size_t)", pl_ssi
));
9093 s7_define(sc
, cur_env
,
9094 s7_make_symbol(sc
, "chdir"),
9095 s7_make_typed_function(sc
, "chdir", s7__chdir
, 1, 0, false, "int chdir(char*)", pl_is
));
9097 s7_define(sc
, cur_env
,
9098 s7_make_symbol(sc
, "chown"),
9099 s7_make_typed_function(sc
, "chown", s7__chown
, 3, 0, false, "int chown(char* int int)", pcl_isi
));
9101 s7_define(sc
, cur_env
,
9102 s7_make_symbol(sc
, "pause"),
9103 s7_make_typed_function(sc
, "pause", s7__pause
, 0, 0, false, "int pause(void)", pl_it
));
9105 s7_define(sc
, cur_env
,
9106 s7_make_symbol(sc
, "sleep"),
9107 s7_make_typed_function(sc
, "sleep", s7__sleep
, 1, 0, false, "int sleep(int)", pcl_i
));
9109 s7_define(sc
, cur_env
,
9110 s7_make_symbol(sc
, "alarm"),
9111 s7_make_typed_function(sc
, "alarm", s7__alarm
, 1, 0, false, "int alarm(int)", pcl_i
));
9113 s7_define(sc
, cur_env
,
9114 s7_make_symbol(sc
, "pipe"),
9115 s7_make_typed_function(sc
, "pipe", s7__pipe
, 1, 0, false, "int pipe(int*)", pl_ix
));
9117 s7_define(sc
, cur_env
,
9118 s7_make_symbol(sc
, "pwrite"),
9119 s7_make_typed_function(sc
, "pwrite", s7__pwrite
, 4, 0, false, "ssize_t pwrite(int void* size_t int)", pcl_iixi
));
9121 s7_define(sc
, cur_env
,
9122 s7_make_symbol(sc
, "pread"),
9123 s7_make_typed_function(sc
, "pread", s7__pread
, 4, 0, false, "ssize_t pread(int void* size_t int)", pcl_iixi
));
9125 s7_define(sc
, cur_env
,
9126 s7_make_symbol(sc
, "write"),
9127 s7_make_typed_function(sc
, "write", s7__write
, 3, 0, false, "ssize_t write(int void* size_t)", pl_iixi
));
9129 s7_define(sc
, cur_env
,
9130 s7_make_symbol(sc
, "read"),
9131 s7_make_typed_function(sc
, "read", s7__read
, 3, 0, false, "ssize_t read(int void* size_t)", pl_iixi
));
9133 s7_define(sc
, cur_env
,
9134 s7_make_symbol(sc
, "close"),
9135 s7_make_typed_function(sc
, "close", s7__close
, 1, 0, false, "int close(int)", pcl_i
));
9137 s7_define(sc
, cur_env
,
9138 s7_make_symbol(sc
, "lseek"),
9139 s7_make_typed_function(sc
, "lseek", s7__lseek
, 3, 0, false, "int lseek(int int int)", pcl_i
));
9141 s7_define(sc
, cur_env
,
9142 s7_make_symbol(sc
, "access"),
9143 s7_make_typed_function(sc
, "access", s7__access
, 2, 0, false, "int access(char* int)", pl_isi
));
9145 s7_define(sc
, cur_env
,
9146 s7_make_symbol(sc
, "uname"),
9147 s7_make_typed_function(sc
, "uname", g_uname
, 0, 0, false, "uname", NULL
));
9149 s7_define(sc
, cur_env
,
9150 s7_make_symbol(sc
, "localeconv"),
9151 s7_make_typed_function(sc
, "localeconv", g_localeconv
, 0, 0, false, "localeconv", NULL
));
9153 s7_define(sc
, cur_env
,
9154 s7_make_symbol(sc
, "setlocale"),
9155 s7_make_typed_function(sc
, "setlocale", s7__setlocale
, 2, 0, false, "char* setlocale(int char*)", pl_sis
));
9157 s7_define(sc
, cur_env
,
9158 s7_make_symbol(sc
, "set_errno"),
9159 s7_make_typed_function(sc
, "set_errno", g_set_errno
, 1, 0, false, "set_errno", NULL
));
9161 s7_define(sc
, cur_env
,
9162 s7_make_symbol(sc
, "errno"),
9163 s7_make_typed_function(sc
, "errno", g_errno
, 0, 0, false, "errno", NULL
));
9165 s7_define(sc
, cur_env
,
9166 s7_make_symbol(sc
, "realpath"),
9167 s7_make_typed_function(sc
, "realpath", g_realpath
, 2, 0, false, "realpath", NULL
));
9169 s7_define(sc
, cur_env
,
9170 s7_make_symbol(sc
, "ldiv"),
9171 s7_make_typed_function(sc
, "ldiv", g_ldiv
, 2, 0, false, "ldiv", NULL
));
9173 s7_define(sc
, cur_env
,
9174 s7_make_symbol(sc
, "div"),
9175 s7_make_typed_function(sc
, "div", g_ldiv
, 2, 0, false, "div", NULL
));
9177 s7_define(sc
, cur_env
,
9178 s7_make_symbol(sc
, "strtoll"),
9179 s7_make_typed_function(sc
, "strtoll", g_strtoll
, 2, 0, false, "strtoll", NULL
));
9181 s7_define(sc
, cur_env
,
9182 s7_make_symbol(sc
, "strtol"),
9183 s7_make_typed_function(sc
, "strtol", g_strtol
, 2, 0, false, "strtol", NULL
));
9185 s7_define(sc
, cur_env
,
9186 s7_make_symbol(sc
, "strtof"),
9187 s7_make_typed_function(sc
, "strtof", g_strtof
, 1, 0, false, "strtof", NULL
));
9189 s7_define(sc
, cur_env
,
9190 s7_make_symbol(sc
, "strtod"),
9191 s7_make_typed_function(sc
, "strtod", g_strtod
, 1, 0, false, "strtod", NULL
));
9193 s7_define(sc
, cur_env
,
9194 s7_make_symbol(sc
, "free"),
9195 s7_make_typed_function(sc
, "free", g_free
, 1, 0, false, "free", NULL
));
9197 s7_define(sc
, cur_env
,
9198 s7_make_symbol(sc
, "llabs"),
9199 s7_make_typed_function(sc
, "llabs", g_llabs
, 1, 0, false, "llabs", NULL
));
9201 s7_define(sc
, cur_env
,
9202 s7_make_symbol(sc
, "labs"),
9203 s7_make_typed_function(sc
, "labs", s7__labs
, 1, 0, false, "int labs(int)", pcl_i
));
9205 s7_define(sc
, cur_env
,
9206 s7_make_symbol(sc
, "abs"),
9207 s7_make_typed_function(sc
, "abs", s7__abs
, 1, 0, false, "int abs(int)", pcl_i
));
9209 s7_define(sc
, cur_env
,
9210 s7_make_symbol(sc
, "system"),
9211 s7_make_typed_function(sc
, "system", s7__system
, 1, 0, false, "int system(char*)", pl_is
));
9213 s7_define(sc
, cur_env
,
9214 s7_make_symbol(sc
, "mkstemp"),
9215 s7_make_typed_function(sc
, "mkstemp", s7__mkstemp
, 1, 0, false, "int mkstemp(char*)", pl_is
));
9217 s7_define(sc
, cur_env
,
9218 s7_make_symbol(sc
, "unsetenv"),
9219 s7_make_typed_function(sc
, "unsetenv", s7__unsetenv
, 1, 0, false, "int unsetenv(char*)", pl_is
));
9221 s7_define(sc
, cur_env
,
9222 s7_make_symbol(sc
, "setenv"),
9223 s7_make_typed_function(sc
, "setenv", s7__setenv
, 3, 0, false, "int setenv(char* char* int)", pl_issi
));
9225 s7_define(sc
, cur_env
,
9226 s7_make_symbol(sc
, "putenv"),
9227 s7_make_typed_function(sc
, "putenv", s7__putenv
, 1, 0, false, "int putenv(char*)", pl_is
));
9229 s7_define(sc
, cur_env
,
9230 s7_make_symbol(sc
, "getenv"),
9231 s7_make_typed_function(sc
, "getenv", s7__getenv
, 1, 0, false, "char* getenv(char*)", pcl_s
));
9233 s7_define(sc
, cur_env
,
9234 s7_make_symbol(sc
, "exit"),
9235 s7_make_typed_function(sc
, "exit", s7__exit
, 1, 0, false, "void exit(int)", pl_ti
));
9237 s7_define(sc
, cur_env
,
9238 s7_make_symbol(sc
, "abort"),
9239 s7_make_typed_function(sc
, "abort", s7__abort
, 0, 0, false, "void abort(void)", pcl_t
));
9241 s7_define(sc
, cur_env
,
9242 s7_make_symbol(sc
, "realloc"),
9243 s7_make_typed_function(sc
, "realloc", s7__realloc
, 2, 0, false, "void* realloc(void* size_t)", pl_xxi
));
9245 s7_define(sc
, cur_env
,
9246 s7_make_symbol(sc
, "calloc"),
9247 s7_make_typed_function(sc
, "calloc", s7__calloc
, 2, 0, false, "void* calloc(size_t size_t)", pcl_xi
));
9249 s7_define(sc
, cur_env
,
9250 s7_make_symbol(sc
, "malloc"),
9251 s7_make_typed_function(sc
, "malloc", s7__malloc
, 1, 0, false, "void* malloc(size_t)", pl_xi
));
9253 s7_define(sc
, cur_env
,
9254 s7_make_symbol(sc
, "srand"),
9255 s7_make_typed_function(sc
, "srand", s7__srand
, 1, 0, false, "void srand(int)", pl_ti
));
9257 s7_define(sc
, cur_env
,
9258 s7_make_symbol(sc
, "rand"),
9259 s7_make_typed_function(sc
, "rand", s7__rand
, 0, 0, false, "int rand(void)", pl_it
));
9261 s7_define(sc
, cur_env
,
9262 s7_make_symbol(sc
, "setstate"),
9263 s7_make_typed_function(sc
, "setstate", s7__setstate
, 1, 0, false, "char* setstate(char*)", pcl_s
));
9265 s7_define(sc
, cur_env
,
9266 s7_make_symbol(sc
, "initstate"),
9267 s7_make_typed_function(sc
, "initstate", s7__initstate
, 3, 0, false, "char* initstate(int char* size_t)", pl_sisi
));
9269 s7_define(sc
, cur_env
,
9270 s7_make_symbol(sc
, "srandom"),
9271 s7_make_typed_function(sc
, "srandom", s7__srandom
, 1, 0, false, "void srandom(int)", pl_ti
));
9273 s7_define(sc
, cur_env
,
9274 s7_make_symbol(sc
, "random"),
9275 s7_make_typed_function(sc
, "random", s7__random
, 0, 0, false, "int random(void)", pl_it
));
9277 s7_define(sc
, cur_env
,
9278 s7_make_symbol(sc
, "atoll"),
9279 s7_make_typed_function(sc
, "atoll", s7__atoll
, 1, 0, false, "int atoll(char*)", pl_is
));
9281 s7_define(sc
, cur_env
,
9282 s7_make_symbol(sc
, "atol"),
9283 s7_make_typed_function(sc
, "atol", s7__atol
, 1, 0, false, "int atol(char*)", pl_is
));
9285 s7_define(sc
, cur_env
,
9286 s7_make_symbol(sc
, "atoi"),
9287 s7_make_typed_function(sc
, "atoi", s7__atoi
, 1, 0, false, "int atoi(char*)", pl_is
));
9289 s7_define(sc
, cur_env
,
9290 s7_make_symbol(sc
, "atof"),
9291 s7_make_typed_function(sc
, "atof", s7__atof
, 1, 0, false, "double atof(char*)", pl_ds
));
9293 s7_define(sc
, cur_env
,
9294 s7_make_symbol(sc
, "funlockfile"),
9295 s7_make_typed_function(sc
, "funlockfile", s7__funlockfile
, 1, 0, false, "void funlockfile(FILE*)", pl_tx
));
9297 s7_define(sc
, cur_env
,
9298 s7_make_symbol(sc
, "ftrylockfile"),
9299 s7_make_typed_function(sc
, "ftrylockfile", s7__ftrylockfile
, 1, 0, false, "int ftrylockfile(FILE*)", pl_ix
));
9301 s7_define(sc
, cur_env
,
9302 s7_make_symbol(sc
, "flockfile"),
9303 s7_make_typed_function(sc
, "flockfile", s7__flockfile
, 1, 0, false, "void flockfile(FILE*)", pl_tx
));
9305 s7_define(sc
, cur_env
,
9306 s7_make_symbol(sc
, "ctermid"),
9307 s7_make_typed_function(sc
, "ctermid", s7__ctermid
, 1, 0, false, "char* ctermid(char*)", pcl_s
));
9309 s7_define(sc
, cur_env
,
9310 s7_make_symbol(sc
, "pclose"),
9311 s7_make_typed_function(sc
, "pclose", s7__pclose
, 1, 0, false, "int pclose(FILE*)", pl_ix
));
9313 s7_define(sc
, cur_env
,
9314 s7_make_symbol(sc
, "popen"),
9315 s7_make_typed_function(sc
, "popen", s7__popen
, 2, 0, false, "FILE* popen(char* char*)", pcl_xs
));
9317 s7_define(sc
, cur_env
,
9318 s7_make_symbol(sc
, "fileno"),
9319 s7_make_typed_function(sc
, "fileno", s7__fileno
, 1, 0, false, "int fileno(FILE*)", pl_ix
));
9321 s7_define(sc
, cur_env
,
9322 s7_make_symbol(sc
, "perror"),
9323 s7_make_typed_function(sc
, "perror", s7__perror
, 1, 0, false, "void perror(char*)", pl_ts
));
9325 s7_define(sc
, cur_env
,
9326 s7_make_symbol(sc
, "ferror"),
9327 s7_make_typed_function(sc
, "ferror", s7__ferror
, 1, 0, false, "int ferror(FILE*)", pl_ix
));
9329 s7_define(sc
, cur_env
,
9330 s7_make_symbol(sc
, "feof"),
9331 s7_make_typed_function(sc
, "feof", s7__feof
, 1, 0, false, "int feof(FILE*)", pl_ix
));
9333 s7_define(sc
, cur_env
,
9334 s7_make_symbol(sc
, "clearerr"),
9335 s7_make_typed_function(sc
, "clearerr", s7__clearerr
, 1, 0, false, "void clearerr(FILE*)", pl_tx
));
9337 s7_define(sc
, cur_env
,
9338 s7_make_symbol(sc
, "fsetpos"),
9339 s7_make_typed_function(sc
, "fsetpos", s7__fsetpos
, 2, 0, false, "int fsetpos(FILE* fpos_t*)", pcl_ix
));
9341 s7_define(sc
, cur_env
,
9342 s7_make_symbol(sc
, "fgetpos"),
9343 s7_make_typed_function(sc
, "fgetpos", s7__fgetpos
, 2, 0, false, "int fgetpos(FILE* fpos_t*)", pcl_ix
));
9345 s7_define(sc
, cur_env
,
9346 s7_make_symbol(sc
, "rewind"),
9347 s7_make_typed_function(sc
, "rewind", s7__rewind
, 1, 0, false, "void rewind(FILE*)", pl_tx
));
9349 s7_define(sc
, cur_env
,
9350 s7_make_symbol(sc
, "ftell"),
9351 s7_make_typed_function(sc
, "ftell", s7__ftell
, 1, 0, false, "int ftell(FILE*)", pl_ix
));
9353 s7_define(sc
, cur_env
,
9354 s7_make_symbol(sc
, "fseek"),
9355 s7_make_typed_function(sc
, "fseek", s7__fseek
, 3, 0, false, "int fseek(FILE* int int)", pcl_ixi
));
9357 s7_define(sc
, cur_env
,
9358 s7_make_symbol(sc
, "fwrite"),
9359 s7_make_typed_function(sc
, "fwrite", s7__fwrite
, 4, 0, false, "size_t fwrite(void* size_t size_t FILE*)", pl_ixiix
));
9361 s7_define(sc
, cur_env
,
9362 s7_make_symbol(sc
, "fread"),
9363 s7_make_typed_function(sc
, "fread", s7__fread
, 4, 0, false, "size_t fread(void* size_t size_t FILE*)", pl_ixiix
));
9365 s7_define(sc
, cur_env
,
9366 s7_make_symbol(sc
, "ungetc"),
9367 s7_make_typed_function(sc
, "ungetc", s7__ungetc
, 2, 0, false, "int ungetc(int FILE*)", pl_iix
));
9369 s7_define(sc
, cur_env
,
9370 s7_make_symbol(sc
, "puts"),
9371 s7_make_typed_function(sc
, "puts", s7__puts
, 1, 0, false, "int puts(char*)", pl_is
));
9373 s7_define(sc
, cur_env
,
9374 s7_make_symbol(sc
, "fputs"),
9375 s7_make_typed_function(sc
, "fputs", s7__fputs
, 2, 0, false, "int fputs(char* FILE*)", pl_isx
));
9377 s7_define(sc
, cur_env
,
9378 s7_make_symbol(sc
, "fgets"),
9379 s7_make_typed_function(sc
, "fgets", s7__fgets
, 3, 0, false, "char* fgets(char* int FILE*)", pl_ssix
));
9381 s7_define(sc
, cur_env
,
9382 s7_make_symbol(sc
, "putchar"),
9383 s7_make_typed_function(sc
, "putchar", s7__putchar
, 1, 0, false, "int putchar(int)", pcl_i
));
9385 s7_define(sc
, cur_env
,
9386 s7_make_symbol(sc
, "putc"),
9387 s7_make_typed_function(sc
, "putc", s7__putc
, 2, 0, false, "int putc(int FILE*)", pl_iix
));
9389 s7_define(sc
, cur_env
,
9390 s7_make_symbol(sc
, "fputc"),
9391 s7_make_typed_function(sc
, "fputc", s7__fputc
, 2, 0, false, "int fputc(int FILE*)", pl_iix
));
9393 s7_define(sc
, cur_env
,
9394 s7_make_symbol(sc
, "getchar"),
9395 s7_make_typed_function(sc
, "getchar", s7__getchar
, 0, 0, false, "int getchar(void)", pl_it
));
9397 s7_define(sc
, cur_env
,
9398 s7_make_symbol(sc
, "getc"),
9399 s7_make_typed_function(sc
, "getc", s7__getc
, 1, 0, false, "int getc(FILE*)", pl_ix
));
9401 s7_define(sc
, cur_env
,
9402 s7_make_symbol(sc
, "fgetc"),
9403 s7_make_typed_function(sc
, "fgetc", s7__fgetc
, 1, 0, false, "int fgetc(FILE*)", pl_ix
));
9405 s7_define(sc
, cur_env
,
9406 s7_make_symbol(sc
, "setlinebuf"),
9407 s7_make_typed_function(sc
, "setlinebuf", s7__setlinebuf
, 1, 0, false, "void setlinebuf(FILE*)", pl_tx
));
9409 s7_define(sc
, cur_env
,
9410 s7_make_symbol(sc
, "setvbuf"),
9411 s7_make_typed_function(sc
, "setvbuf", s7__setvbuf
, 4, 0, false, "int setvbuf(FILE* char* int size_t)", pcl_ixsi
));
9413 s7_define(sc
, cur_env
,
9414 s7_make_symbol(sc
, "setbuf"),
9415 s7_make_typed_function(sc
, "setbuf", s7__setbuf
, 2, 0, false, "void setbuf(FILE* char*)", pl_txs
));
9417 s7_define(sc
, cur_env
,
9418 s7_make_symbol(sc
, "fdopen"),
9419 s7_make_typed_function(sc
, "fdopen", s7__fdopen
, 2, 0, false, "FILE* fdopen(int char*)", pl_xis
));
9421 s7_define(sc
, cur_env
,
9422 s7_make_symbol(sc
, "freopen"),
9423 s7_make_typed_function(sc
, "freopen", s7__freopen
, 3, 0, false, "FILE* freopen(char* char* FILE*)", pl_xssx
));
9425 s7_define(sc
, cur_env
,
9426 s7_make_symbol(sc
, "fopen"),
9427 s7_make_typed_function(sc
, "fopen", s7__fopen
, 2, 0, false, "FILE* fopen(char* char*)", pcl_xs
));
9429 s7_define(sc
, cur_env
,
9430 s7_make_symbol(sc
, "fflush"),
9431 s7_make_typed_function(sc
, "fflush", s7__fflush
, 1, 0, false, "int fflush(FILE*)", pl_ix
));
9433 s7_define(sc
, cur_env
,
9434 s7_make_symbol(sc
, "fclose"),
9435 s7_make_typed_function(sc
, "fclose", s7__fclose
, 1, 0, false, "int fclose(FILE*)", pl_ix
));
9437 s7_define(sc
, cur_env
,
9438 s7_make_symbol(sc
, "tmpfile"),
9439 s7_make_typed_function(sc
, "tmpfile", s7__tmpfile
, 0, 0, false, "FILE* tmpfile(void)", pl_xt
));
9441 s7_define(sc
, cur_env
,
9442 s7_make_symbol(sc
, "rename"),
9443 s7_make_typed_function(sc
, "rename", s7__rename
, 2, 0, false, "int rename(char* char*)", pcl_is
));
9445 s7_define(sc
, cur_env
,
9446 s7_make_symbol(sc
, "remove"),
9447 s7_make_typed_function(sc
, "remove", s7__remove
, 1, 0, false, "int remove(char*)", pl_is
));
9449 s7_define(sc
, cur_env
,
9450 s7_make_symbol(sc
, "strncasecmp"),
9451 s7_make_typed_function(sc
, "strncasecmp", s7__strncasecmp
, 3, 0, false, "int strncasecmp(char* char* size_t)", pl_issi
));
9453 s7_define(sc
, cur_env
,
9454 s7_make_symbol(sc
, "strcasecmp"),
9455 s7_make_typed_function(sc
, "strcasecmp", s7__strcasecmp
, 2, 0, false, "int strcasecmp(char* char*)", pcl_is
));
9457 s7_define(sc
, cur_env
,
9458 s7_make_symbol(sc
, "strerror"),
9459 s7_make_typed_function(sc
, "strerror", s7__strerror
, 1, 0, false, "char* strerror(int)", pl_si
));
9461 s7_define(sc
, cur_env
,
9462 s7_make_symbol(sc
, "strnlen"),
9463 s7_make_typed_function(sc
, "strnlen", s7__strnlen
, 2, 0, false, "size_t strnlen(char* size_t)", pl_isi
));
9465 s7_define(sc
, cur_env
,
9466 s7_make_symbol(sc
, "strlen"),
9467 s7_make_typed_function(sc
, "strlen", s7__strlen
, 1, 0, false, "size_t strlen(char*)", pl_is
));
9469 s7_define(sc
, cur_env
,
9470 s7_make_symbol(sc
, "strtok"),
9471 s7_make_typed_function(sc
, "strtok", s7__strtok
, 2, 0, false, "char* strtok(char* char*)", pcl_s
));
9473 s7_define(sc
, cur_env
,
9474 s7_make_symbol(sc
, "strstr"),
9475 s7_make_typed_function(sc
, "strstr", s7__strstr
, 2, 0, false, "char* strstr(char* char*)", pcl_s
));
9477 s7_define(sc
, cur_env
,
9478 s7_make_symbol(sc
, "strpbrk"),
9479 s7_make_typed_function(sc
, "strpbrk", s7__strpbrk
, 2, 0, false, "char* strpbrk(char* char*)", pcl_s
));
9481 s7_define(sc
, cur_env
,
9482 s7_make_symbol(sc
, "strspn"),
9483 s7_make_typed_function(sc
, "strspn", s7__strspn
, 2, 0, false, "size_t strspn(char* char*)", pcl_is
));
9485 s7_define(sc
, cur_env
,
9486 s7_make_symbol(sc
, "strcspn"),
9487 s7_make_typed_function(sc
, "strcspn", s7__strcspn
, 2, 0, false, "size_t strcspn(char* char*)", pcl_is
));
9489 s7_define(sc
, cur_env
,
9490 s7_make_symbol(sc
, "strrchr"),
9491 s7_make_typed_function(sc
, "strrchr", s7__strrchr
, 2, 0, false, "char* strrchr(char* int)", pl_ssi
));
9493 s7_define(sc
, cur_env
,
9494 s7_make_symbol(sc
, "strchr"),
9495 s7_make_typed_function(sc
, "strchr", s7__strchr
, 2, 0, false, "char* strchr(char* int)", pl_ssi
));
9497 s7_define(sc
, cur_env
,
9498 s7_make_symbol(sc
, "strxfrm"),
9499 s7_make_typed_function(sc
, "strxfrm", s7__strxfrm
, 3, 0, false, "size_t strxfrm(char* char* size_t)", pl_issi
));
9501 s7_define(sc
, cur_env
,
9502 s7_make_symbol(sc
, "strcoll"),
9503 s7_make_typed_function(sc
, "strcoll", s7__strcoll
, 2, 0, false, "int strcoll(char* char*)", pcl_is
));
9505 s7_define(sc
, cur_env
,
9506 s7_make_symbol(sc
, "strncmp"),
9507 s7_make_typed_function(sc
, "strncmp", s7__strncmp
, 3, 0, false, "int strncmp(char* char* size_t)", pl_issi
));
9509 s7_define(sc
, cur_env
,
9510 s7_make_symbol(sc
, "strcmp"),
9511 s7_make_typed_function(sc
, "strcmp", s7__strcmp
, 2, 0, false, "int strcmp(char* char*)", pcl_is
));
9513 s7_define(sc
, cur_env
,
9514 s7_make_symbol(sc
, "strncat"),
9515 s7_make_typed_function(sc
, "strncat", s7__strncat
, 3, 0, false, "char* strncat(char* char* size_t)", pl_sssi
));
9517 s7_define(sc
, cur_env
,
9518 s7_make_symbol(sc
, "strcat"),
9519 s7_make_typed_function(sc
, "strcat", s7__strcat
, 2, 0, false, "char* strcat(char* char*)", pcl_s
));
9521 s7_define(sc
, cur_env
,
9522 s7_make_symbol(sc
, "strncpy"),
9523 s7_make_typed_function(sc
, "strncpy", s7__strncpy
, 3, 0, false, "char* strncpy(char* char* size_t)", pl_sssi
));
9525 s7_define(sc
, cur_env
,
9526 s7_make_symbol(sc
, "strcpy"),
9527 s7_make_typed_function(sc
, "strcpy", s7__strcpy
, 2, 0, false, "char* strcpy(char* char*)", pcl_s
));
9529 s7_define(sc
, cur_env
,
9530 s7_make_symbol(sc
, "memchr"),
9531 s7_make_typed_function(sc
, "memchr", s7__memchr
, 3, 0, false, "void* memchr(void* int size_t)", pcl_xxi
));
9533 s7_define(sc
, cur_env
,
9534 s7_make_symbol(sc
, "memcmp"),
9535 s7_make_typed_function(sc
, "memcmp", s7__memcmp
, 3, 0, false, "int memcmp(void* void* size_t)", pl_ixxi
));
9537 s7_define(sc
, cur_env
,
9538 s7_make_symbol(sc
, "memset"),
9539 s7_make_typed_function(sc
, "memset", s7__memset
, 3, 0, false, "void* memset(void* int size_t)", pcl_xxi
));
9541 s7_define(sc
, cur_env
,
9542 s7_make_symbol(sc
, "memmove"),
9543 s7_make_typed_function(sc
, "memmove", s7__memmove
, 3, 0, false, "void* memmove(void* void* size_t)", pl_xxxi
));
9545 s7_define(sc
, cur_env
,
9546 s7_make_symbol(sc
, "memcpy"),
9547 s7_make_typed_function(sc
, "memcpy", s7__memcpy
, 3, 0, false, "void* memcpy(void* void* size_t)", pl_xxxi
));
9549 s7_define(sc
, cur_env
,
9550 s7_make_symbol(sc
, "fnmatch"),
9551 s7_make_typed_function(sc
, "fnmatch", s7__fnmatch
, 3, 0, false, "int fnmatch(char* char* int)", pl_issi
));
9553 s7_define(sc
, cur_env
,
9554 s7_make_symbol(sc
, "fenv_t.make"),
9555 s7_make_typed_function(sc
, "fenv_t.make", g_fenv_t_make
, 0, 0, false, "fenv_t.make", NULL
));
9557 s7_define(sc
, cur_env
,
9558 s7_make_symbol(sc
, "feupdateenv"),
9559 s7_make_typed_function(sc
, "feupdateenv", s7__feupdateenv
, 1, 0, false, "int feupdateenv(fenv_t*)", pl_ix
));
9561 s7_define(sc
, cur_env
,
9562 s7_make_symbol(sc
, "fesetenv"),
9563 s7_make_typed_function(sc
, "fesetenv", s7__fesetenv
, 1, 0, false, "int fesetenv(fenv_t*)", pl_ix
));
9565 s7_define(sc
, cur_env
,
9566 s7_make_symbol(sc
, "feholdexcept"),
9567 s7_make_typed_function(sc
, "feholdexcept", s7__feholdexcept
, 1, 0, false, "int feholdexcept(fenv_t*)", pl_ix
));
9569 s7_define(sc
, cur_env
,
9570 s7_make_symbol(sc
, "fegetenv"),
9571 s7_make_typed_function(sc
, "fegetenv", s7__fegetenv
, 1, 0, false, "int fegetenv(fenv_t*)", pl_ix
));
9573 s7_define(sc
, cur_env
,
9574 s7_make_symbol(sc
, "fesetround"),
9575 s7_make_typed_function(sc
, "fesetround", s7__fesetround
, 1, 0, false, "int fesetround(int)", pcl_i
));
9577 s7_define(sc
, cur_env
,
9578 s7_make_symbol(sc
, "fegetround"),
9579 s7_make_typed_function(sc
, "fegetround", s7__fegetround
, 0, 0, false, "int fegetround(void)", pl_it
));
9581 s7_define(sc
, cur_env
,
9582 s7_make_symbol(sc
, "fetestexcept"),
9583 s7_make_typed_function(sc
, "fetestexcept", s7__fetestexcept
, 1, 0, false, "int fetestexcept(int)", pcl_i
));
9585 s7_define(sc
, cur_env
,
9586 s7_make_symbol(sc
, "fesetexceptflag"),
9587 s7_make_typed_function(sc
, "fesetexceptflag", s7__fesetexceptflag
, 2, 0, false, "int fesetexceptflag(fexcept_t* int)", pl_ixi
));
9589 s7_define(sc
, cur_env
,
9590 s7_make_symbol(sc
, "feraiseexcept"),
9591 s7_make_typed_function(sc
, "feraiseexcept", s7__feraiseexcept
, 1, 0, false, "int feraiseexcept(int)", pcl_i
));
9593 s7_define(sc
, cur_env
,
9594 s7_make_symbol(sc
, "fegetexceptflag"),
9595 s7_make_typed_function(sc
, "fegetexceptflag", s7__fegetexceptflag
, 2, 0, false, "int fegetexceptflag(fexcept_t* int)", pl_ixi
));
9597 s7_define(sc
, cur_env
,
9598 s7_make_symbol(sc
, "feclearexcept"),
9599 s7_make_typed_function(sc
, "feclearexcept", s7__feclearexcept
, 1, 0, false, "int feclearexcept(int)", pcl_i
));
9601 s7_define(sc
, cur_env
,
9602 s7_make_symbol(sc
, "posix_fallocate"),
9603 s7_make_typed_function(sc
, "posix_fallocate", s7__posix_fallocate
, 3, 0, false, "int posix_fallocate(int int int)", pcl_i
));
9605 s7_define(sc
, cur_env
,
9606 s7_make_symbol(sc
, "posix_fadvise"),
9607 s7_make_typed_function(sc
, "posix_fadvise", s7__posix_fadvise
, 4, 0, false, "int posix_fadvise(int int int int)", pcl_i
));
9609 s7_define(sc
, cur_env
,
9610 s7_make_symbol(sc
, "lockf"),
9611 s7_make_typed_function(sc
, "lockf", s7__lockf
, 3, 0, false, "int lockf(int int int)", pcl_i
));
9613 s7_define(sc
, cur_env
,
9614 s7_make_symbol(sc
, "creat"),
9615 s7_make_typed_function(sc
, "creat", s7__creat
, 2, 0, false, "int creat(char* (mode_t int))", pl_isi
));
9617 s7_define(sc
, cur_env
,
9618 s7_make_symbol(sc
, "open"),
9619 s7_make_typed_function(sc
, "open", g_c_open
, 2, 1, false, "open", NULL
));
9621 s7_define(sc
, cur_env
,
9622 s7_make_symbol(sc
, "fcntl"),
9623 s7_make_typed_function(sc
, "fcntl", s7__fcntl
, 2, 0, false, "int fcntl(int int)", pcl_i
));
9625 s7_define(sc
, cur_env
,
9626 s7_make_symbol(sc
, "toupper"),
9627 s7_make_typed_function(sc
, "toupper", s7__toupper
, 1, 0, false, "int toupper(int)", pcl_i
));
9629 s7_define(sc
, cur_env
,
9630 s7_make_symbol(sc
, "tolower"),
9631 s7_make_typed_function(sc
, "tolower", s7__tolower
, 1, 0, false, "int tolower(int)", pcl_i
));
9633 s7_define(sc
, cur_env
,
9634 s7_make_symbol(sc
, "isxdigit"),
9635 s7_make_typed_function(sc
, "isxdigit", s7__isxdigit
, 1, 0, false, "int isxdigit(int)", pcl_i
));
9637 s7_define(sc
, cur_env
,
9638 s7_make_symbol(sc
, "isupper"),
9639 s7_make_typed_function(sc
, "isupper", s7__isupper
, 1, 0, false, "int isupper(int)", pcl_i
));
9641 s7_define(sc
, cur_env
,
9642 s7_make_symbol(sc
, "isspace"),
9643 s7_make_typed_function(sc
, "isspace", s7__isspace
, 1, 0, false, "int isspace(int)", pcl_i
));
9645 s7_define(sc
, cur_env
,
9646 s7_make_symbol(sc
, "ispunct"),
9647 s7_make_typed_function(sc
, "ispunct", s7__ispunct
, 1, 0, false, "int ispunct(int)", pcl_i
));
9649 s7_define(sc
, cur_env
,
9650 s7_make_symbol(sc
, "isprint"),
9651 s7_make_typed_function(sc
, "isprint", s7__isprint
, 1, 0, false, "int isprint(int)", pcl_i
));
9653 s7_define(sc
, cur_env
,
9654 s7_make_symbol(sc
, "isgraph"),
9655 s7_make_typed_function(sc
, "isgraph", s7__isgraph
, 1, 0, false, "int isgraph(int)", pcl_i
));
9657 s7_define(sc
, cur_env
,
9658 s7_make_symbol(sc
, "islower"),
9659 s7_make_typed_function(sc
, "islower", s7__islower
, 1, 0, false, "int islower(int)", pcl_i
));
9661 s7_define(sc
, cur_env
,
9662 s7_make_symbol(sc
, "isdigit"),
9663 s7_make_typed_function(sc
, "isdigit", s7__isdigit
, 1, 0, false, "int isdigit(int)", pcl_i
));
9665 s7_define(sc
, cur_env
,
9666 s7_make_symbol(sc
, "iscntrl"),
9667 s7_make_typed_function(sc
, "iscntrl", s7__iscntrl
, 1, 0, false, "int iscntrl(int)", pcl_i
));
9669 s7_define(sc
, cur_env
,
9670 s7_make_symbol(sc
, "isalpha"),
9671 s7_make_typed_function(sc
, "isalpha", s7__isalpha
, 1, 0, false, "int isalpha(int)", pcl_i
));
9673 s7_define(sc
, cur_env
,
9674 s7_make_symbol(sc
, "isalnum"),
9675 s7_make_typed_function(sc
, "isalnum", s7__isalnum
, 1, 0, false, "int isalnum(int)", pcl_i
));
9677 s7_define(sc
, cur_env
,
9678 s7_make_symbol(sc
, "string->c-pointer"),
9679 s7_make_typed_function(sc
, "string->c-pointer", g_string_to_c_pointer
, 1, 0, false, "string->c-pointer", NULL
));
9681 s7_define(sc
, cur_env
,
9682 s7_make_symbol(sc
, "c-pointer->string"),
9683 s7_make_typed_function(sc
, "c-pointer->string", g_c_pointer_to_string
, 2, 0, false, "c-pointer->string", NULL
));
9685 /* int optimizer connections */
9686 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "shutdown"), shutdown_i_ii
);
9687 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "listen"), listen_i_ii
);
9688 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "getpriority"), getpriority_i_ii
);
9689 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "raise"), raise_i_i
);
9690 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "kill"), kill_i_ii
);
9691 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "tcflow"), tcflow_i_ii
);
9692 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "tcflush"), tcflush_i_ii
);
9693 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "tcdrain"), tcdrain_i_i
);
9694 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "tcsendbreak"), tcsendbreak_i_ii
);
9695 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "ftruncate"), ftruncate_i_ii
);
9696 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "tcsetpgrp"), tcsetpgrp_i_ii
);
9697 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "tcgetpgrp"), tcgetpgrp_i_i
);
9698 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "isatty"), isatty_i_i
);
9699 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "setgid"), setgid_i_i
);
9700 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "setuid"), setuid_i_i
);
9701 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "getsid"), getsid_i_i
);
9702 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "setpgid"), setpgid_i_ii
);
9703 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "getpgid"), getpgid_i_i
);
9704 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "sysconf"), sysconf_i_i
);
9705 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "fpathconf"), fpathconf_i_ii
);
9706 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "dup2"), dup2_i_ii
);
9707 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "dup"), dup_i_i
);
9708 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "sleep"), sleep_i_i
);
9709 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "alarm"), alarm_i_i
);
9710 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "close"), close_i_i
);
9711 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "labs"), labs_i_i
);
9712 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "putchar"), putchar_i_i
);
9713 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "fesetround"), fesetround_i_i
);
9714 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "fetestexcept"), fetestexcept_i_i
);
9715 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "feraiseexcept"), feraiseexcept_i_i
);
9716 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "feclearexcept"), feclearexcept_i_i
);
9717 s7_set_i_ii_function(sc
, s7_name_to_value(sc
, "fcntl"), fcntl_i_ii
);
9718 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "toupper"), toupper_i_i
);
9719 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "tolower"), tolower_i_i
);
9720 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "isxdigit"), isxdigit_i_i
);
9721 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "isupper"), isupper_i_i
);
9722 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "isspace"), isspace_i_i
);
9723 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "ispunct"), ispunct_i_i
);
9724 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "isprint"), isprint_i_i
);
9725 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "isgraph"), isgraph_i_i
);
9726 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "islower"), islower_i_i
);
9727 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "isdigit"), isdigit_i_i
);
9728 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "iscntrl"), iscntrl_i_i
);
9729 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "isalpha"), isalpha_i_i
);
9730 s7_set_i_i_function(sc
, s7_name_to_value(sc
, "isalnum"), isalnum_i_i
);