3 * Copyright (C) 2008-2009 Jürg Billeter
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 * Jürg Billeter <j@bitron.ch>
24 [CCode (cname = "bool", cheader_filename = "stdbool.h", default_value = "false")]
29 [CCode (cname = "char", default_value = "\'\\0\'")]
30 [IntegerType (rank = 2, min = 0, max = 127)]
34 [CCode (cname = "unsigned char", default_value = "\'\\0\'")]
35 [IntegerType (rank = 3, min = 0, max = 255)]
39 [CCode (cname = "int", default_value = "0")]
40 [IntegerType (rank = 6)]
44 [CCode (cname = "unsigned int", default_value = "0U")]
45 [IntegerType (rank = 7)]
49 [CCode (cname = "short", default_value = "0")]
50 [IntegerType (rank = 4, min = -32768, max = 32767)]
54 [CCode (cname = "unsigned short", default_value = "0U")]
55 [IntegerType (rank = 5, min = 0, max = 65535)]
56 public struct ushort {
59 [CCode (cname = "long", default_value = "0L")]
60 [IntegerType (rank = 8)]
64 [CCode (cname = "unsigned long", default_value = "0UL")]
65 [IntegerType (rank = 9)]
69 [CCode (cname = "size_t", cheader_filename = "sys/types.h", default_value = "0UL")]
70 [IntegerType (rank = 9)]
71 public struct size_t {
74 [CCode (cname = "ssize_t", cheader_filename = "sys/types.h", default_value = "0L")]
75 [IntegerType (rank = 8)]
76 public struct ssize_t {
79 [CCode (cname = "int8_t", cheader_filename = "stdint.h", default_value = "0")]
80 [IntegerType (rank = 1, min = -128, max = 127)]
84 [CCode (cname = "uint8_t", cheader_filename = "stdint.h", default_value = "0U")]
85 [IntegerType (rank = 3, min = 0, max = 255)]
89 [CCode (cname = "int16_t", cheader_filename = "stdint.h", default_value = "0")]
90 [IntegerType (rank = 4, min = -32768, max = 32767)]
94 [CCode (cname = "uint16_t", cheader_filename = "stdint.h", default_value = "0U")]
95 [IntegerType (rank = 5, min = 0, max = 65535)]
96 public struct uint16 {
99 [CCode (cname = "int32_t", cheader_filename = "stdint.h", default_value = "0")]
100 [IntegerType (rank = 6)]
101 public struct int32 {
104 [CCode (cname = "uint32_t", cheader_filename = "stdint.h", default_value = "0U")]
105 [IntegerType (rank = 7)]
106 public struct uint32 {
109 [CCode (cname = "int64_t", cheader_filename = "stdint.h", default_value = "0LL")]
110 [IntegerType (rank = 10)]
111 public struct int64 {
114 [CCode (cname = "uint64_t", cheader_filename = "stdint.h", default_value = "0ULL")]
115 [IntegerType (rank = 11)]
116 public struct uint64 {
119 [CCode (cname = "float", default_value = "0.0F")]
120 [FloatingType (rank = 1)]
121 public struct float {
124 [CCode (cname = "double", default_value = "0.0")]
125 [FloatingType (rank = 2)]
126 public struct double {
129 [CCode (cheader_filename = "time.h")]
130 [IntegerType (rank = 8)]
131 public struct time_t {
132 [CCode (cname = "time")]
138 [CCode (cname = "char", const_cname = "const char", copy_function = "strdup", free_function = "free", cheader_filename = "stdlib.h,string.h")]
139 public class string {
143 [CCode (cprefix = "", lower_case_cprefix = "")]
145 [CCode (cheader_filename = "assert.h")]
146 public void assert (bool expression);
148 [CCode (cheader_filename = "ctype.h")]
149 public bool isalnum (int c);
150 [CCode (cheader_filename = "ctype.h")]
151 public bool isalpha (int c);
152 [CCode (cheader_filename = "ctype.h")]
153 public bool isascii (int c);
154 [CCode (cheader_filename = "ctype.h")]
155 public bool iscntrl (int c);
156 [CCode (cheader_filename = "ctype.h")]
157 public bool isdigit (int c);
158 [CCode (cheader_filename = "ctype.h")]
159 public bool isgraph (int c);
160 [CCode (cheader_filename = "ctype.h")]
161 public bool islower (int c);
162 [CCode (cheader_filename = "ctype.h")]
163 public bool isprint (int c);
164 [CCode (cheader_filename = "ctype.h")]
165 public bool ispunct (int c);
166 [CCode (cheader_filename = "ctype.h")]
167 public bool isspace (int c);
168 [CCode (cheader_filename = "ctype.h")]
169 public bool isupper (int c);
170 [CCode (cheader_filename = "ctype.h")]
171 public bool isxdigit (int c);
172 [CCode (cheader_filename = "ctype.h")]
173 public int toascii (int c);
174 [CCode (cheader_filename = "ctype.h")]
175 public int tolower (int c);
176 [CCode (cheader_filename = "ctype.h")]
177 public int toupper (int c);
180 [CCode (cname = "struct dirent", cheader_filename = "dirent.h")]
181 public class DirEnt {
184 public ushort d_reclen;
186 public char d_name[256];
190 [CCode (cname = "DIR", free_function = "closedir", cheader_filename = "dirent.h")]
194 [CCode (cheader_filename = "dirent.h")]
195 public int dirfd (Dir dir);
196 [CCode (cheader_filename = "dirent.h")]
197 public Dir? opendir (string filename);
198 [CCode (cheader_filename = "dirent.h")]
199 public Dir? fdopendir (int fd);
200 [CCode (cheader_filename = "dirent.h")]
201 public unowned DirEnt? readdir (Dir dir);
202 [CCode (cheader_filename = "dirent.h")]
203 public void rewinddir (Dir dir);
204 [CCode (cheader_filename = "dirent.h")]
205 public void seekdir (Dir dir, long pos);
206 [CCode (cheader_filename = "dirent.h")]
207 public long telldir (Dir dir);
209 [CCode (cheader_filename = "errno.h")]
211 [CCode (cheader_filename = "errno.h")]
212 public const int E2BIG;
213 [CCode (cheader_filename = "errno.h")]
214 public const int EACCES;
215 [CCode (cheader_filename = "errno.h")]
216 public const int EADDRINUSE;
217 [CCode (cheader_filename = "errno.h")]
218 public const int EADDRNOTAVAIL;
219 [CCode (cheader_filename = "errno.h")]
220 public const int EAFNOSUPPORT;
221 [CCode (cheader_filename = "errno.h")]
222 public const int EAGAIN;
223 [CCode (cheader_filename = "errno.h")]
224 public const int EALREADY;
225 [CCode (cheader_filename = "errno.h")]
226 public const int EBADF;
227 [CCode (cheader_filename = "errno.h")]
228 public const int EBADMSG;
229 [CCode (cheader_filename = "errno.h")]
230 public const int EBUSY;
231 [CCode (cheader_filename = "errno.h")]
232 public const int ECANCELED;
233 [CCode (cheader_filename = "errno.h")]
234 public const int ECHILD;
235 [CCode (cheader_filename = "errno.h")]
236 public const int ECONNABORTED;
237 [CCode (cheader_filename = "errno.h")]
238 public const int ECONNREFUSED;
239 [CCode (cheader_filename = "errno.h")]
240 public const int ECONNRESET;
241 [CCode (cheader_filename = "errno.h")]
242 public const int EDEADLK;
243 [CCode (cheader_filename = "errno.h")]
244 public const int EDESTADDRREQ;
245 [CCode (cheader_filename = "errno.h")]
246 public const int EDOM;
247 [CCode (cheader_filename = "errno.h")]
248 public const int EDQUOT;
249 [CCode (cheader_filename = "errno.h")]
250 public const int EEXIST;
251 [CCode (cheader_filename = "errno.h")]
252 public const int EFAULT;
253 [CCode (cheader_filename = "errno.h")]
254 public const int EFBIG;
255 [CCode (cheader_filename = "errno.h")]
256 public const int EHOSTUNREACH;
257 [CCode (cheader_filename = "errno.h")]
258 public const int EIDRM;
259 [CCode (cheader_filename = "errno.h")]
260 public const int EILSEQ;
261 [CCode (cheader_filename = "errno.h")]
262 public const int EINPROGRESS;
263 [CCode (cheader_filename = "errno.h")]
264 public const int EINTR;
265 [CCode (cheader_filename = "errno.h")]
266 public const int EINVAL;
267 [CCode (cheader_filename = "errno.h")]
268 public const int EIO;
269 [CCode (cheader_filename = "errno.h")]
270 public const int EISCONN;
271 [CCode (cheader_filename = "errno.h")]
272 public const int EISDIR;
273 [CCode (cheader_filename = "errno.h")]
274 public const int ELOOP;
275 [CCode (cheader_filename = "errno.h")]
276 public const int EMFILE;
277 [CCode (cheader_filename = "errno.h")]
278 public const int EMLINK;
279 [CCode (cheader_filename = "errno.h")]
280 public const int EMSGSIZE;
281 [CCode (cheader_filename = "errno.h")]
282 public const int EMULTIHOP;
283 [CCode (cheader_filename = "errno.h")]
284 public const int ENAMETOOLONG;
285 [CCode (cheader_filename = "errno.h")]
286 public const int ENETDOWN;
287 [CCode (cheader_filename = "errno.h")]
288 public const int ENETRESET;
289 [CCode (cheader_filename = "errno.h")]
290 public const int ENETUNREACH;
291 [CCode (cheader_filename = "errno.h")]
292 public const int ENFILE;
293 [CCode (cheader_filename = "errno.h")]
294 public const int ENOBUFS;
295 [CCode (cheader_filename = "errno.h")]
296 public const int ENODATA;
297 [CCode (cheader_filename = "errno.h")]
298 public const int ENODEV;
299 [CCode (cheader_filename = "errno.h")]
300 public const int ENOENT;
301 [CCode (cheader_filename = "errno.h")]
302 public const int ENOEXEC;
303 [CCode (cheader_filename = "errno.h")]
304 public const int ENOLCK;
305 [CCode (cheader_filename = "errno.h")]
306 public const int ENOLINK;
307 [CCode (cheader_filename = "errno.h")]
308 public const int ENOMEM;
309 [CCode (cheader_filename = "errno.h")]
310 public const int ENOMSG;
311 [CCode (cheader_filename = "errno.h")]
312 public const int ENOPROTOOPT;
313 [CCode (cheader_filename = "errno.h")]
314 public const int ENOSPC;
315 [CCode (cheader_filename = "errno.h")]
316 public const int ENOSR;
317 [CCode (cheader_filename = "errno.h")]
318 public const int ENOSTR;
319 [CCode (cheader_filename = "errno.h")]
320 public const int ENOSYS;
321 [CCode (cheader_filename = "errno.h")]
322 public const int ENOTCONN;
323 [CCode (cheader_filename = "errno.h")]
324 public const int ENOTDIR;
325 [CCode (cheader_filename = "errno.h")]
326 public const int ENOTEMPTY;
327 [CCode (cheader_filename = "errno.h")]
328 public const int ENOTSOCK;
329 [CCode (cheader_filename = "errno.h")]
330 public const int ENOTSUP;
331 [CCode (cheader_filename = "errno.h")]
332 public const int ENOTTY;
333 [CCode (cheader_filename = "errno.h")]
334 public const int ENXIO;
335 [CCode (cheader_filename = "errno.h")]
336 public const int EOPNOTSUPP;
337 [CCode (cheader_filename = "errno.h")]
338 public const int EOVERFLOW;
339 [CCode (cheader_filename = "errno.h")]
340 public const int EPERM;
341 [CCode (cheader_filename = "errno.h")]
342 public const int EPIPE;
343 [CCode (cheader_filename = "errno.h")]
344 public const int EPROTO;
345 [CCode (cheader_filename = "errno.h")]
346 public const int EPROTONOSUPPORT;
347 [CCode (cheader_filename = "errno.h")]
348 public const int EPROTOTYPE;
349 [CCode (cheader_filename = "errno.h")]
350 public const int ERANGE;
351 [CCode (cheader_filename = "errno.h")]
352 public const int EROFS;
353 [CCode (cheader_filename = "errno.h")]
354 public const int ESPIPE;
355 [CCode (cheader_filename = "errno.h")]
356 public const int ESRCH;
357 [CCode (cheader_filename = "errno.h")]
358 public const int ESTALE;
359 [CCode (cheader_filename = "errno.h")]
360 public const int ETIME;
361 [CCode (cheader_filename = "errno.h")]
362 public const int ETIMEDOUT;
363 [CCode (cheader_filename = "errno.h")]
364 public const int ETXTBSY;
365 [CCode (cheader_filename = "errno.h")]
366 public const int EWOULDBLOCK;
367 [CCode (cheader_filename = "errno.h")]
368 public const int EXDEV;
370 [CCode (cheader_filename = "fcntl.h")]
371 public const int F_DUPFD;
372 [CCode (cheader_filename = "fcntl.h")]
373 public const int F_GETFD;
374 [CCode (cheader_filename = "fcntl.h")]
375 public const int F_SETFD;
376 [CCode (cheader_filename = "fcntl.h")]
377 public const int F_GETFL;
378 [CCode (cheader_filename = "fcntl.h")]
379 public const int F_SETFL;
380 [CCode (cheader_filename = "fcntl.h")]
381 public const int F_GETLK;
382 [CCode (cheader_filename = "fcntl.h")]
383 public const int F_SETLK;
384 [CCode (cheader_filename = "fcntl.h")]
385 public const int F_SETLKW;
386 [CCode (cheader_filename = "fcntl.h")]
387 public const int F_GETOWN;
388 [CCode (cheader_filename = "fcntl.h")]
389 public const int F_SETOWN;
390 [CCode (cheader_filename = "fcntl.h")]
391 public const int FD_CLOEXEC;
392 [CCode (cheader_filename = "fcntl.h")]
393 public const int F_RDLCK;
394 [CCode (cheader_filename = "fcntl.h")]
395 public const int F_UNLCK;
396 [CCode (cheader_filename = "fcntl.h")]
397 public const int F_WRLCK;
398 [CCode (cheader_filename = "fcntl.h")]
399 public const int O_CREAT;
400 [CCode (cheader_filename = "fcntl.h")]
401 public const int O_EXCL;
402 [CCode (cheader_filename = "fcntl.h")]
403 public const int O_NOCTTY;
404 [CCode (cheader_filename = "fcntl.h")]
405 public const int O_TRUNC;
406 [CCode (cheader_filename = "fcntl.h")]
407 public const int O_APPEND;
408 [CCode (cheader_filename = "fcntl.h")]
409 public const int O_DSYNC;
410 [CCode (cheader_filename = "fcntl.h")]
411 public const int O_NONBLOCK;
412 [CCode (cheader_filename = "fcntl.h")]
413 public const int O_RSYNC;
414 [CCode (cheader_filename = "fcntl.h")]
415 public const int O_SYNC;
416 [CCode (cheader_filename = "fcntl.h")]
417 public const int O_ACCMODE;
418 [CCode (cheader_filename = "fcntl.h")]
419 public const int O_RDONLY;
420 [CCode (cheader_filename = "fcntl.h")]
421 public const int O_RDWR;
422 [CCode (cheader_filename = "fcntl.h")]
423 public const int O_WRONLY;
424 [CCode (cheader_filename = "fcntl.h")]
425 public const int POSIX_FADV_NORMAL;
426 [CCode (cheader_filename = "fcntl.h")]
427 public const int POSIX_FADV_SEQUENTIAL;
428 [CCode (cheader_filename = "fcntl.h")]
429 public const int POSIX_FADV_RANDOM;
430 [CCode (cheader_filename = "fcntl.h")]
431 public const int POSIX_FADV_WILLNEED;
432 [CCode (cheader_filename = "fcntl.h")]
433 public const int POSIX_FADV_DONTNEED;
434 [CCode (cheader_filename = "fcntl.h")]
435 public const int POSIX_FADV_NOREUSE;
436 [CCode (cheader_filename = "fcntl.h")]
437 public int creat (string path, mode_t mode);
438 [CCode (cheader_filename = "fcntl.h")]
439 public int fcntl (int fd, int cmd, ...);
440 [CCode (cheader_filename = "fcntl.h")]
441 public int open (string path, int oflag, mode_t mode=0);
442 [CCode (cheader_filename = "fcntl.h")]
443 public int posix_fadvice (int fd, long offset, long len, int advice);
444 [CCode (cheader_filename = "fcntl.h")]
445 public int posix_fallocate (int fd, long offset, long len);
448 [CCode (cname = "struct group", cheader_filename = "grp.h")]
450 public string gr_name;
451 public string gr_passwd;
453 public string[] gr_mem;
455 [CCode (cheader_filename = "grp.h")]
456 public void endgrent ();
457 public unowned Group? getgrent ();
458 public void setgrent ();
460 [CCode (cheader_filename = "math.h")]
461 public double acos (double x);
462 [CCode (cheader_filename = "math.h")]
463 public float acosf (float x);
464 [CCode (cheader_filename = "math.h")]
465 public double asin (double x);
466 [CCode (cheader_filename = "math.h")]
467 public float asinf (float x);
468 [CCode (cheader_filename = "math.h")]
469 public double atan (double x);
470 [CCode (cheader_filename = "math.h")]
471 public float atanf (float x);
472 [CCode (cheader_filename = "math.h")]
473 public double atan2 (double y, double x);
474 [CCode (cheader_filename = "math.h")]
475 public float atan2f (float y, float x);
476 [CCode (cheader_filename = "math.h")]
477 public double cos (double x);
478 [CCode (cheader_filename = "math.h")]
479 public float cosf (float x);
480 [CCode (cheader_filename = "math.h")]
481 public double sin (double x);
482 [CCode (cheader_filename = "math.h")]
483 public float sinf (float x);
484 [CCode (cheader_filename = "math.h")]
485 public double tan (double x);
486 [CCode (cheader_filename = "math.h")]
487 public float tanf (float x);
488 [CCode (cheader_filename = "math.h")]
489 public double cosh (double x);
490 [CCode (cheader_filename = "math.h")]
491 public float coshf (float x);
492 [CCode (cheader_filename = "math.h")]
493 public double sinh (double x);
494 [CCode (cheader_filename = "math.h")]
495 public float sinhf (float x);
496 [CCode (cheader_filename = "math.h")]
497 public double tanh (double x);
498 [CCode (cheader_filename = "math.h")]
499 public float tanhf (float x);
500 [CCode (cheader_filename = "math.h")]
501 public void sincos (double x, out double sinx, out double cosx);
502 [CCode (cheader_filename = "math.h")]
503 public void sincosf (float x, out float sinx, out float cosx);
504 [CCode (cheader_filename = "math.h")]
505 public double acosh (double x);
506 [CCode (cheader_filename = "math.h")]
507 public float acoshf (float x);
508 [CCode (cheader_filename = "math.h")]
509 public double asinh (double x);
510 [CCode (cheader_filename = "math.h")]
511 public float asinhf (float x);
512 [CCode (cheader_filename = "math.h")]
513 public double atanh (double x);
514 [CCode (cheader_filename = "math.h")]
515 public float atanhf (float x);
516 [CCode (cheader_filename = "math.h")]
517 public double exp (double x);
518 [CCode (cheader_filename = "math.h")]
519 public float expf (float x);
520 [CCode (cheader_filename = "math.h")]
521 public double frexp (double x, out int exponent);
522 [CCode (cheader_filename = "math.h")]
523 public float frexpf (float x, out int exponent);
524 [CCode (cheader_filename = "math.h")]
525 public double ldexp (double x, int exponent);
526 [CCode (cheader_filename = "math.h")]
527 public float ldexpf (float x, int exponent);
528 [CCode (cheader_filename = "math.h")]
529 public double log (double x);
530 [CCode (cheader_filename = "math.h")]
531 public float logf (float x);
532 [CCode (cheader_filename = "math.h")]
533 public double log10 (double x);
534 [CCode (cheader_filename = "math.h")]
535 public float log10f (float x);
536 [CCode (cheader_filename = "math.h")]
537 public double modf (double x, out double iptr);
538 [CCode (cheader_filename = "math.h")]
539 public float modff (float x, out float iptr);
540 [CCode (cheader_filename = "math.h")]
541 public double exp10 (double x);
542 [CCode (cheader_filename = "math.h")]
543 public float exp10f (float x);
544 [CCode (cheader_filename = "math.h")]
545 public double pow10 (double x);
546 [CCode (cheader_filename = "math.h")]
547 public float pow10f (float x);
548 [CCode (cheader_filename = "math.h")]
549 public double expm1 (double x);
550 [CCode (cheader_filename = "math.h")]
551 public float expm1f (float x);
552 [CCode (cheader_filename = "math.h")]
553 public double log1p (double x);
554 [CCode (cheader_filename = "math.h")]
555 public float log1pf (float x);
556 [CCode (cheader_filename = "math.h")]
557 public double logb (double x);
558 [CCode (cheader_filename = "math.h")]
559 public float logbf (float x);
560 [CCode (cheader_filename = "math.h")]
561 public double exp2 (double x);
562 [CCode (cheader_filename = "math.h")]
563 public float exp2f (float x);
564 [CCode (cheader_filename = "math.h")]
565 public double log2 (double x);
566 [CCode (cheader_filename = "math.h")]
567 public float log2f (float x);
568 [CCode (cheader_filename = "math.h")]
569 public double pow (double x, double y);
570 [CCode (cheader_filename = "math.h")]
571 public float powf (float x, float y);
572 [CCode (cheader_filename = "math.h")]
573 public double sqrt (double x);
574 [CCode (cheader_filename = "math.h")]
575 public float sqrtf (float x);
576 [CCode (cheader_filename = "math.h")]
577 public double hypot (double x, double y);
578 [CCode (cheader_filename = "math.h")]
579 public float hypotf (float x, float y);
580 [CCode (cheader_filename = "math.h")]
581 public double cbrt (double x);
582 [CCode (cheader_filename = "math.h")]
583 public float cbrtf (float x);
584 [CCode (cheader_filename = "math.h")]
585 public double ceil (double x);
586 [CCode (cheader_filename = "math.h")]
587 public float ceilf (float x);
588 [CCode (cheader_filename = "math.h")]
589 public double fabs (double x);
590 [CCode (cheader_filename = "math.h")]
591 public float fabsf (float x);
592 [CCode (cheader_filename = "math.h")]
593 public double floor (double x);
594 [CCode (cheader_filename = "math.h")]
595 public float floorf (float x);
596 [CCode (cheader_filename = "math.h")]
597 public double fmod (double x, double y);
598 [CCode (cheader_filename = "math.h")]
599 public float fmodf (float x, float y);
600 [CCode (cheader_filename = "math.h")]
601 public int isinf (double value);
602 [CCode (cheader_filename = "math.h")]
603 public int isinff (float value);
604 [CCode (cheader_filename = "math.h")]
605 public int finite (double value);
606 [CCode (cheader_filename = "math.h")]
607 public int finitef (float value);
608 [CCode (cheader_filename = "math.h")]
609 public double drem (double x, double y);
610 [CCode (cheader_filename = "math.h")]
611 public float dremf (float x, float y);
612 [CCode (cheader_filename = "math.h")]
613 public double significand (double x);
614 [CCode (cheader_filename = "math.h")]
615 public float significandf (float x);
616 [CCode (cheader_filename = "math.h")]
617 public double copysign (double x, double y);
618 [CCode (cheader_filename = "math.h")]
619 public float copysignf (float x, float y);
620 [CCode (cheader_filename = "math.h")]
621 public double nan (string tagb);
622 [CCode (cheader_filename = "math.h")]
623 public float nanf (string tagb);
624 [CCode (cheader_filename = "math.h")]
625 public int isnan (double value);
626 [CCode (cheader_filename = "math.h")]
627 public int isnanf (float value);
628 [CCode (cheader_filename = "math.h")]
629 public double j0 (double x0);
630 [CCode (cheader_filename = "math.h")]
631 public float j0f (float x0);
632 [CCode (cheader_filename = "math.h")]
633 public double j1 (double x0);
634 [CCode (cheader_filename = "math.h")]
635 public float j1f (float x0);
636 [CCode (cheader_filename = "math.h")]
637 public double jn (int x0, double x1);
638 [CCode (cheader_filename = "math.h")]
639 public float jnf (int x0, float x1);
640 [CCode (cheader_filename = "math.h")]
641 public double y0 (double x0);
642 [CCode (cheader_filename = "math.h")]
643 public float y0f (float x0);
644 [CCode (cheader_filename = "math.h")]
645 public double y1 (double x0);
646 [CCode (cheader_filename = "math.h")]
647 public float y1f (float x0);
648 [CCode (cheader_filename = "math.h")]
649 public double yn (int x0, double x1);
650 [CCode (cheader_filename = "math.h")]
651 public float ynf (int x0, float x1);
652 [CCode (cheader_filename = "math.h")]
653 public double erf (double x0);
654 [CCode (cheader_filename = "math.h")]
655 public float erff (float x0);
656 [CCode (cheader_filename = "math.h")]
657 public double erfc (double x0);
658 [CCode (cheader_filename = "math.h")]
659 public float erfcf (float x0);
660 [CCode (cheader_filename = "math.h")]
661 public double lgamma (double x0);
662 [CCode (cheader_filename = "math.h")]
663 public float lgammaf (float x0);
664 [CCode (cheader_filename = "math.h")]
665 public double tgamma (double x0);
666 [CCode (cheader_filename = "math.h")]
667 public float tgammaf (float x0);
668 [CCode (cheader_filename = "math.h")]
669 public double gamma (double x0);
670 [CCode (cheader_filename = "math.h")]
671 public float gammaf (float x0);
672 [CCode (cheader_filename = "math.h")]
673 public double lgamma_r (double x0, out int signgamp);
674 [CCode (cheader_filename = "math.h")]
675 public float lgamma_rf (float x0, out int signgamp);
676 [CCode (cheader_filename = "math.h")]
677 public double rint (double x);
678 [CCode (cheader_filename = "math.h")]
679 public float rintf (float x);
680 [CCode (cheader_filename = "math.h")]
681 public double nextafter (double x, double y);
682 [CCode (cheader_filename = "math.h")]
683 public float nextafterf (float x, float y);
684 [CCode (cheader_filename = "math.h")]
685 public double nexttoward (double x, double y);
686 [CCode (cheader_filename = "math.h")]
687 public float nexttowardf (float x, double y);
688 [CCode (cheader_filename = "math.h")]
689 public double remainder (double x, double y);
690 [CCode (cheader_filename = "math.h")]
691 public float remainderf (float x, float y);
692 [CCode (cheader_filename = "math.h")]
693 public double scalbn (double x, int n);
694 [CCode (cheader_filename = "math.h")]
695 public float scalbnf (float x, int n);
696 [CCode (cheader_filename = "math.h")]
697 public int ilogb (double x);
698 [CCode (cheader_filename = "math.h")]
699 public int ilogbf (float x);
700 [CCode (cheader_filename = "math.h")]
701 public double scalbln (double x, long n);
702 [CCode (cheader_filename = "math.h")]
703 public float scalblnf (float x, long n);
704 [CCode (cheader_filename = "math.h")]
705 public double nearbyint (double x);
706 [CCode (cheader_filename = "math.h")]
707 public float nearbyintf (float x);
708 [CCode (cheader_filename = "math.h")]
709 public double round (double x);
710 [CCode (cheader_filename = "math.h")]
711 public float roundf (float x);
712 [CCode (cheader_filename = "math.h")]
713 public double trunc (double x);
714 [CCode (cheader_filename = "math.h")]
715 public float truncf (float x);
716 [CCode (cheader_filename = "math.h")]
717 public double remquo (double x, double y, out int quo);
718 [CCode (cheader_filename = "math.h")]
719 public float remquof (float x, float y, out int quo);
720 [CCode (cheader_filename = "math.h")]
721 public long lrint (double x);
722 [CCode (cheader_filename = "math.h")]
723 public long lrintf (float x);
724 [CCode (cheader_filename = "math.h")]
725 public int64 llrint (double x);
726 [CCode (cheader_filename = "math.h")]
727 public int64 llrintf (float x);
728 [CCode (cheader_filename = "math.h")]
729 public long lround (double x);
730 [CCode (cheader_filename = "math.h")]
731 public long lroundf (float x);
732 [CCode (cheader_filename = "math.h")]
733 public int64 llround (double x);
734 [CCode (cheader_filename = "math.h")]
735 public int64 llroundf (float x);
736 [CCode (cheader_filename = "math.h")]
737 public double fdim (double x, double y);
738 [CCode (cheader_filename = "math.h")]
739 public float fdimf (float x, float y);
740 [CCode (cheader_filename = "math.h")]
741 public double fmax (double x, double y);
742 [CCode (cheader_filename = "math.h")]
743 public float fmaxf (float x, float y);
744 [CCode (cheader_filename = "math.h")]
745 public double fmin (double x, double y);
746 [CCode (cheader_filename = "math.h")]
747 public float fminf (float x, float y);
748 [CCode (cheader_filename = "math.h")]
749 public double fma (double x, double y, double z);
750 [CCode (cheader_filename = "math.h")]
751 public float fmaf (float x, float y, float z);
752 [CCode (cheader_filename = "math.h")]
753 public double scalb (double x, double n);
754 [CCode (cheader_filename = "math.h")]
755 public float scalbf (float x, float n);
757 [CCode (cheader_filename = "poll.h", cname = "struct pollfd")]
758 public struct pollfd {
764 [CCode (cheader_filename = "poll.h")]
765 public const int POLLIN;
766 [CCode (cheader_filename = "poll.h")]
767 public const int POLLPRI;
768 [CCode (cheader_filename = "poll.h")]
769 public const int POLLOUT;
770 [CCode (cheader_filename = "poll.h")]
771 public const int POLLRDHUP;
772 [CCode (cheader_filename = "poll.h")]
773 public const int POLLERR;
774 [CCode (cheader_filename = "poll.h")]
775 public const int POLLHUP;
776 [CCode (cheader_filename = "poll.h")]
777 public const int POLLNVAL;
780 [IntegerType (rank = 9)]
781 [CCode (cheader_filename = "poll.h", cname = "nfds_t")]
782 public struct nfds_t {
785 [CCode (cheader_filename = "poll.h")]
786 public int poll (pollfd fds, nfds_t nfds, int timeout);
787 [CCode (cheader_filename = "poll.h")]
788 public int ppoll (pollfd fds, nfds_t nfds, timespec? timeout, sigset_t? sigmask);
791 [CCode (cname = "struct passwd", cheader_filename = "pwd.h")]
792 public class Passwd {
793 public string pw_name;
794 public string pw_passwd;
797 public string pw_gecos;
798 public string pw_dir;
799 public string pw_shell;
801 [CCode (cheader_filename = "pwd.h")]
802 public void endpwent ();
803 public unowned Passwd? getpwent ();
804 public void setpwent ();
806 [CCode (cheader_filename = "signal.h")]
807 public const int SIGABRT;
808 [CCode (cheader_filename = "signal.h")]
809 public const int SIGALRM;
810 [CCode (cheader_filename = "signal.h")]
811 public const int SIGBUS;
812 [CCode (cheader_filename = "signal.h")]
813 public const int SIGCHLD;
814 [CCode (cheader_filename = "signal.h")]
815 public const int SIGCONT;
816 [CCode (cheader_filename = "signal.h")]
817 public const int SIGFPE;
818 [CCode (cheader_filename = "signal.h")]
819 public const int SIGHUP;
820 [CCode (cheader_filename = "signal.h")]
821 public const int SIGILL;
822 [CCode (cheader_filename = "signal.h")]
823 public const int SIGINT;
824 [CCode (cheader_filename = "signal.h")]
825 public const int SIGKILL;
826 [CCode (cheader_filename = "signal.h")]
827 public const int SIGPIPE;
828 [CCode (cheader_filename = "signal.h")]
829 public const int SIGQUIT;
830 [CCode (cheader_filename = "signal.h")]
831 public const int SIGSEGV;
832 [CCode (cheader_filename = "signal.h")]
833 public const int SIGSTOP;
834 [CCode (cheader_filename = "signal.h")]
835 public const int SIGTERM;
836 [CCode (cheader_filename = "signal.h")]
837 public const int SIGTSTP;
838 [CCode (cheader_filename = "signal.h")]
839 public const int SIGTTIN;
840 [CCode (cheader_filename = "signal.h")]
841 public const int SIGTTOU;
842 [CCode (cheader_filename = "signal.h")]
843 public const int SIGUSR1;
844 [CCode (cheader_filename = "signal.h")]
845 public const int SIGUSR2;
846 [CCode (cheader_filename = "signal.h")]
847 public const int SIGPOLL;
848 [CCode (cheader_filename = "signal.h")]
849 public const int SIGPROF;
850 [CCode (cheader_filename = "signal.h")]
851 public const int SIGSYS;
852 [CCode (cheader_filename = "signal.h")]
853 public const int SIGTRAP;
854 [CCode (cheader_filename = "signal.h")]
855 public const int SIGURG;
856 [CCode (cheader_filename = "signal.h")]
857 public const int SIGVTALRM;
858 [CCode (cheader_filename = "signal.h")]
859 public const int SIGXCPU;
860 [CCode (cheader_filename = "signal.h")]
861 public const int SIGXFSZ;
862 [CCode (cheader_filename = "signal.h")]
863 public const int SIGIOT;
864 [CCode (cheader_filename = "signal.h")]
865 public const int SIGSTKFLT;
868 [IntegerType (rank = 6)]
869 [CCode (cname = "pid_t", default_value = "0", cheader_filename = "sys/types.h")]
870 public struct pid_t {
872 [CCode (cheader_filename = "signal.h")]
873 public int kill (pid_t pid, int signum);
874 [CCode (cheader_filename = "signal.h")]
875 public int killpg (pid_t pgpr, int signum);
876 [CCode (cheader_filename = "signal.h")]
877 public int raise (int signum);
878 [CCode (cheader_filename = "signal.h")]
879 public int sigemptyset (sigset_t sigset);
880 [CCode (cheader_filename = "signal.h")]
881 public int sigfillset (sigset_t sigset);
882 [CCode (cheader_filename = "signal.h")]
883 public int sigaddset (sigset_t sigset, int signo);
884 [CCode (cheader_filename = "signal.h")]
885 public int sigdelset (sigset_t sigset, int __signo);
886 [CCode (cheader_filename = "signal.h")]
887 public int sigismember (sigset_t sigset, int __signo);
888 [CCode (cheader_filename = "signal.h")]
889 public int sigprocmask (int how, sigset_t sigset, sigset_t oset);
890 [CCode (cheader_filename = "signal.h")]
891 public int sigsuspend (sigset_t sigset);
892 [CCode (cheader_filename = "signal.h")]
893 public int sigpending (sigset_t sigset);
894 [CCode (cheader_filename = "signal.h")]
895 public int sigwait (sigset_t sigset, out int sig);
897 [CCode (cheader_filename = "signal.h")]
898 public static delegate void sighandler_t (int signal);
900 [CCode (cheader_filename = "signal.h")]
901 public sighandler_t signal (int signum, sighandler_t? handler);
903 [CCode (cheader_filename = "stdio.h")]
905 public void printf (string format,...);
907 [CCode (cheader_filename = "stdlib.h")]
908 public void abort ();
909 [CCode (cheader_filename = "stdlib.h")]
910 public void exit (int status);
912 [CCode (cheader_filename = "stdlib.h")]
913 public void _exit (int status);
915 public delegate void AtExitFunc ();
917 [CCode (cheader_filename = "stdlib.h")]
918 public void atexit (AtExitFunc func);
920 [CCode (cheader_filename = "stdlib.h")]
921 public int mkstemp (string template);
923 [CCode (cheader_filename = "stdlib.h")]
924 public int mkostemp (string template, int flags);
926 [CCode (cheader_filename = "stdlib.h")]
927 public int posix_openpt (int flags);
928 [CCode (cheader_filename = "stdlib.h")]
929 public int grantpt (int fd);
930 [CCode (cheader_filename = "stdlib.h")]
931 public int unlockpt (int fd);
933 [CCode (cheader_filename = "stdlib.h")]
934 public int system (string command);
936 public delegate int compar_fn_t (void* key1, void* key2);
938 [CCode (cheader_filename = "stdlib.h")]
939 public void* bsearch (void* key, void* base, size_t nmemb, size_t size, compar_fn_t func);
941 [CCode (cheader_filename = "stdlib.h")]
942 public void qsort (void* base, size_t nmemb, size_t size, compar_fn_t func);
944 [CCode (cheader_filename = "stdlib.h")]
945 public void qsort_r (void* base, size_t nmemb, size_t size, compar_fn_t func, void* arg);
947 [CCode (cheader_filename = "stdlib.h")]
948 public const int EXIT_FAILURE;
949 [CCode (cheader_filename = "stdlib.h")]
950 public const int EXIT_SUCCESS;
952 [CCode (cheader_filename = "string.h")]
953 public void* memccpy (void* s1, void* s2, int c, size_t n);
954 [CCode (cheader_filename = "string.h")]
955 public void* memchr (void* s, int c, size_t n);
956 [CCode (cheader_filename = "string.h")]
957 public int memcmp (void* s1, void* s2, size_t n);
958 [CCode (cheader_filename = "string.h")]
959 public void* memcpy (void* s1, void* s2, size_t n);
960 [CCode (cheader_filename = "string.h")]
961 public void* memmove (void* s1, void* s2, size_t n);
962 [CCode (cheader_filename = "string.h")]
963 public void* memset (void* s, int c, size_t n);
964 [CCode (cheader_filename = "string.h")]
965 public unowned string strcat (string s1, string s2);
966 [CCode (cheader_filename = "string.h")]
967 public unowned string strchr (string s, int c);
968 [CCode (cheader_filename = "string.h")]
969 public int strcmp (string s1, string s2);
970 [CCode (cheader_filename = "string.h")]
971 public int strcoll (string s1, string s2);
972 [CCode (cheader_filename = "string.h")]
973 public unowned string strcpy (string s1, string s2);
974 [CCode (cheader_filename = "string.h")]
975 public size_t strcspn (string s1, string s2);
976 [CCode (cheader_filename = "string.h")]
977 public unowned string strdup (string s1);
978 [CCode (cheader_filename = "string.h")]
979 public unowned string strerror (int errnum);
980 [CCode (cheader_filename = "string.h")]
981 public int* strerror_r (int errnum, string strerrbuf, size_t buflen);
982 [CCode (cheader_filename = "string.h")]
983 public size_t strlen (string s);
984 [CCode (cheader_filename = "string.h")]
985 public unowned string strncat (string s1, string s2, size_t n);
986 [CCode (cheader_filename = "string.h")]
987 public int strncmp (string s1, string s2, size_t n);
988 [CCode (cheader_filename = "string.h")]
989 public unowned string strncpy (string s1, string s2, size_t n);
990 [CCode (cheader_filename = "string.h")]
991 public unowned string strpbrk (string s1, string s2);
992 [CCode (cheader_filename = "string.h")]
993 public unowned string strrchr (string s, int c);
994 [CCode (cheader_filename = "string.h")]
995 public size_t strspn (string s1, string s2);
996 [CCode (cheader_filename = "string.h")]
997 public unowned string strstr (string s1, string s2);
998 [CCode (cheader_filename = "string.h")]
999 public unowned string strtok (string s1, string s2);
1000 [CCode (cheader_filename = "string.h")]
1001 public unowned string strtok_r (string s, string sep, out string lasts);
1002 [CCode (cheader_filename = "string.h")]
1003 public size_t strxfrm (string s1, string s2, size_t n);
1005 [CCode (cheader_filename = "stropts.h")]
1006 public const int I_PUSH;
1007 [CCode (cheader_filename = "stropts.h")]
1008 public const int I_POP;
1009 [CCode (cheader_filename = "stropts.h")]
1010 public const int I_LOOK;
1011 [CCode (cheader_filename = "stropts.h")]
1012 public const int I_FLUSH;
1013 [CCode (cheader_filename = "stropts.h")]
1014 public const int I_FLUSHBAND;
1015 [CCode (cheader_filename = "stropts.h")]
1016 public const int I_SETSIG;
1017 [CCode (cheader_filename = "stropts.h")]
1018 public const int I_GETSIG;
1019 [CCode (cheader_filename = "stropts.h")]
1020 public const int I_FIND;
1021 [CCode (cheader_filename = "stropts.h")]
1022 public const int I_PEEK;
1023 [CCode (cheader_filename = "stropts.h")]
1024 public const int I_SRDOPT;
1025 [CCode (cheader_filename = "stropts.h")]
1026 public const int I_GRDOPT;
1027 [CCode (cheader_filename = "stropts.h")]
1028 public const int I_NREAD;
1029 [CCode (cheader_filename = "stropts.h")]
1030 public const int I_FDINSERT;
1031 [CCode (cheader_filename = "stropts.h")]
1032 public const int I_STR;
1033 [CCode (cheader_filename = "stropts.h")]
1034 public const int I_SWROPT;
1035 [CCode (cheader_filename = "stropts.h")]
1036 public const int I_GWROPT;
1037 [CCode (cheader_filename = "stropts.h")]
1038 public const int I_SENDFD;
1039 [CCode (cheader_filename = "stropts.h")]
1040 public const int I_RECVFD;
1041 [CCode (cheader_filename = "stropts.h")]
1042 public const int I_LIST;
1043 [CCode (cheader_filename = "stropts.h")]
1044 public const int I_ATMARK;
1045 [CCode (cheader_filename = "stropts.h")]
1046 public const int I_CKBAND;
1047 [CCode (cheader_filename = "stropts.h")]
1048 public const int I_GETBAND;
1049 [CCode (cheader_filename = "stropts.h")]
1050 public const int I_CANPUT;
1051 [CCode (cheader_filename = "stropts.h")]
1052 public const int I_SETCLTIME;
1053 [CCode (cheader_filename = "stropts.h")]
1054 public const int I_GETCLTIME;
1055 [CCode (cheader_filename = "stropts.h")]
1056 public const int I_LINK;
1057 [CCode (cheader_filename = "stropts.h")]
1058 public const int I_UNLINK;
1059 [CCode (cheader_filename = "stropts.h")]
1060 public const int I_PLINK;
1061 [CCode (cheader_filename = "stropts.h")]
1062 public const int I_PUNLINK;
1063 [CCode (cheader_filename = "stropts.h")]
1064 public const int FLUSHR;
1065 [CCode (cheader_filename = "stropts.h")]
1066 public const int FLUSHW;
1067 [CCode (cheader_filename = "stropts.h")]
1068 public const int FLUSHRW;
1069 [CCode (cheader_filename = "stropts.h")]
1070 public const int S_RDNORM;
1071 [CCode (cheader_filename = "stropts.h")]
1072 public const int S_RDBAND;
1073 [CCode (cheader_filename = "stropts.h")]
1074 public const int S_INPUT;
1075 [CCode (cheader_filename = "stropts.h")]
1076 public const int S_HIPRI;
1077 [CCode (cheader_filename = "stropts.h")]
1078 public const int S_OUTPUT;
1079 [CCode (cheader_filename = "stropts.h")]
1080 public const int S_WRNORM;
1081 [CCode (cheader_filename = "stropts.h")]
1082 public const int S_WRBAND;
1083 [CCode (cheader_filename = "stropts.h")]
1084 public const int S_MSG;
1085 [CCode (cheader_filename = "stropts.h")]
1086 public const int S_ERROR;
1087 [CCode (cheader_filename = "stropts.h")]
1088 public const int S_HANGUP;
1089 [CCode (cheader_filename = "stropts.h")]
1090 public const int S_BANDURG;
1091 [CCode (cheader_filename = "stropts.h")]
1092 public const int RS_HIPRI;
1093 [CCode (cheader_filename = "stropts.h")]
1094 public const int RNORM;
1095 [CCode (cheader_filename = "stropts.h")]
1096 public const int RMSGD;
1097 [CCode (cheader_filename = "stropts.h")]
1098 public const int RMSGN;
1099 [CCode (cheader_filename = "stropts.h")]
1100 public const int RPROTNORN;
1101 [CCode (cheader_filename = "stropts.h")]
1102 public const int RPROTDAT;
1103 [CCode (cheader_filename = "stropts.h")]
1104 public const int RPROTDIS;
1105 [CCode (cheader_filename = "stropts.h")]
1106 public const int SNDZERO;
1107 [CCode (cheader_filename = "stropts.h")]
1108 public const int ANYMARK;
1109 [CCode (cheader_filename = "stropts.h")]
1110 public const int LASTMARK;
1111 [CCode (cheader_filename = "stropts.h")]
1112 public const int MUXID_ALL;
1113 [CCode (cheader_filename = "stropts.h")]
1114 public const int MSG_ANY;
1115 [CCode (cheader_filename = "stropts.h")]
1116 public const int MSG_BAND;
1117 [CCode (cheader_filename = "stropts.h")]
1118 public const int MSG_HIPRI;
1119 [CCode (cheader_filename = "stropts.h")]
1120 public const int MORECTL;
1121 [CCode (cheader_filename = "stropts.h")]
1122 public const int MOREDATA;
1123 [CCode (cheader_filename = "stropts.h", sentinel = "")]
1124 public int ioctl (int fildes, int request, ...);
1126 [CCode (cheader_filename = "syslog.h")]
1127 public void openlog (string ident, int option, int facility );
1129 [CCode (cheader_filename = "syslog.h")]
1130 public void syslog (int priority, string format, ... );
1132 [CCode (cheader_filename = "syslog.h")]
1133 public void closelog ();
1135 [CCode (cheader_filename = "syslog.h")]
1136 public const int LOG_PID;
1137 [CCode (cheader_filename = "syslog.h")]
1138 public const int LOG_CONS;
1139 [CCode (cheader_filename = "syslog.h")]
1140 public const int LOG_ODELAY;
1141 [CCode (cheader_filename = "syslog.h")]
1142 public const int LOG_NDELAY;
1143 [CCode (cheader_filename = "syslog.h")]
1144 public const int LOG_NOWAIT;
1145 [CCode (cheader_filename = "syslog.h")]
1146 public const int LOG_EMERG;
1147 [CCode (cheader_filename = "syslog.h")]
1148 public const int LOG_ALERT;
1149 [CCode (cheader_filename = "syslog.h")]
1150 public const int LOG_CRIT;
1151 [CCode (cheader_filename = "syslog.h")]
1152 public const int LOG_ERR;
1153 [CCode (cheader_filename = "syslog.h")]
1154 public const int LOG_WARNING;
1155 [CCode (cheader_filename = "syslog.h")]
1156 public const int LOG_NOTICE;
1157 [CCode (cheader_filename = "syslog.h")]
1158 public const int LOG_INFO;
1159 [CCode (cheader_filename = "syslog.h")]
1160 public const int LOG_DEBUG;
1161 [CCode (cheader_filename = "syslog.h")]
1162 public const int LOG_KERN;
1163 [CCode (cheader_filename = "syslog.h")]
1164 public const int LOG_USER;
1165 [CCode (cheader_filename = "syslog.h")]
1166 public const int LOG_MAIL;
1167 [CCode (cheader_filename = "syslog.h")]
1168 public const int LOG_DAEMON;
1169 [CCode (cheader_filename = "syslog.h")]
1170 public const int LOG_SYSLOG;
1171 [CCode (cheader_filename = "syslog.h")]
1172 public const int LOG_LPR;
1173 [CCode (cheader_filename = "syslog.h")]
1174 public const int LOG_NEWS;
1175 [CCode (cheader_filename = "syslog.h")]
1176 public const int LOG_UUCP;
1177 [CCode (cheader_filename = "syslog.h")]
1178 public const int LOG_CRON;
1179 [CCode (cheader_filename = "syslog.h")]
1180 public const int LOG_AUTHPRIV;
1181 [CCode (cheader_filename = "syslog.h")]
1182 public const int LOG_FTP;
1183 [CCode (cheader_filename = "syslog.h")]
1184 public const int LOG_LOCAL0;
1185 [CCode (cheader_filename = "syslog.h")]
1186 public const int LOG_LOCAL1;
1187 [CCode (cheader_filename = "syslog.h")]
1188 public const int LOG_LOCAL2;
1189 [CCode (cheader_filename = "syslog.h")]
1190 public const int LOG_LOCAL3;
1191 [CCode (cheader_filename = "syslog.h")]
1192 public const int LOG_LOCAL4;
1193 [CCode (cheader_filename = "syslog.h")]
1194 public const int LOG_LOCAL5;
1195 [CCode (cheader_filename = "syslog.h")]
1196 public const int LOG_LOCAL6;
1197 [CCode (cheader_filename = "syslog.h")]
1198 public const int LOG_LOCAL7;
1200 [CCode (cheader_filename = "sys/socket.h")]
1201 public const int SOCK_DGRAM;
1202 [CCode (cheader_filename = "sys/socket.h")]
1203 public const int SOCK_RAW;
1204 [CCode (cheader_filename = "sys/socket.h")]
1205 public const int SOCK_SEQPACKET;
1206 [CCode (cheader_filename = "sys/socket.h")]
1207 public const int SOCK_STREAM;
1208 [CCode (cheader_filename = "sys/socket.h")]
1209 public const int AF_INET;
1210 [CCode (cheader_filename = "sys/socket.h")]
1211 public const int AF_INET6;
1212 [CCode (cheader_filename = "sys/socket.h")]
1213 public const int AF_UNIX;
1214 [CCode (cheader_filename = "sys/socket.h", sentinel = "")]
1215 public int bind (int sockfd, ...);
1216 [CCode (cheader_filename = "sys/socket.h")]
1217 public int socket (int domain, int type, int protocol);
1219 [CCode (cheader_filename = "sys/socket.h")]
1220 public int socketpair (int domain, int type, int protocol, int[] sv);
1222 [CCode (cname = "struct sock_addr", cheader_filename = "sys/socket.h", destroy_function = "")]
1223 public struct SockAddr {
1226 [CCode (cheader_filename = "sys/stat.h")]
1227 public int mkfifo (string filename, mode_t mode);
1229 [CCode (cheader_filename = "sys/stat.h")]
1230 public const mode_t S_IFMT;
1231 [CCode (cheader_filename = "sys/stat.h")]
1232 public const mode_t S_IFBLK;
1233 [CCode (cheader_filename = "sys/stat.h")]
1234 public const mode_t S_IFCHR;
1235 [CCode (cheader_filename = "sys/stat.h")]
1236 public const mode_t S_IFIFO;
1237 [CCode (cheader_filename = "sys/stat.h")]
1238 public const mode_t S_IFREG;
1239 [CCode (cheader_filename = "sys/stat.h")]
1240 public const mode_t S_IFDIR;
1241 [CCode (cheader_filename = "sys/stat.h")]
1242 public const mode_t S_IFLNK;
1243 [CCode (cheader_filename = "sys/stat.h")]
1244 public const mode_t S_IFSOCK;
1246 [CCode (cheader_filename = "sys/stat.h")]
1247 public const mode_t S_IRWXU;
1248 [CCode (cheader_filename = "sys/stat.h")]
1249 public const mode_t S_IRUSR;
1250 [CCode (cheader_filename = "sys/stat.h")]
1251 public const mode_t S_IWUSR;
1252 [CCode (cheader_filename = "sys/stat.h")]
1253 public const mode_t S_IXUSR;
1254 [CCode (cheader_filename = "sys/stat.h")]
1255 public const mode_t S_IRWXG;
1256 [CCode (cheader_filename = "sys/stat.h")]
1257 public const mode_t S_IRGRP;
1258 [CCode (cheader_filename = "sys/stat.h")]
1259 public const mode_t S_IWGRP;
1260 [CCode (cheader_filename = "sys/stat.h")]
1261 public const mode_t S_IXGRP;
1262 [CCode (cheader_filename = "sys/stat.h")]
1263 public const mode_t S_IRWXO;
1264 [CCode (cheader_filename = "sys/stat.h")]
1265 public const mode_t S_IROTH;
1266 [CCode (cheader_filename = "sys/stat.h")]
1267 public const mode_t S_IWOTH;
1268 [CCode (cheader_filename = "sys/stat.h")]
1269 public const mode_t S_IXOTH;
1270 [CCode (cheader_filename = "sys/stat.h")]
1271 public const mode_t S_ISUID;
1272 [CCode (cheader_filename = "sys/stat.h")]
1273 public const mode_t S_ISGID;
1274 [CCode (cheader_filename = "sys/stat.h")]
1275 public const mode_t S_ISVTX;
1277 [CCode (cheader_filename = "sys/stat.h")]
1278 public bool S_ISBLK (mode_t mode);
1279 [CCode (cheader_filename = "sys/stat.h")]
1280 public bool S_ISCHR (mode_t mode);
1281 [CCode (cheader_filename = "sys/stat.h")]
1282 public bool S_ISDIR (mode_t mode);
1283 [CCode (cheader_filename = "sys/stat.h")]
1284 public bool S_ISFIFO (mode_t mode);
1285 [CCode (cheader_filename = "sys/stat.h")]
1286 public bool S_ISREG (mode_t mode);
1287 [CCode (cheader_filename = "sys/stat.h")]
1288 public bool S_ISLNK (mode_t mode);
1289 [CCode (cheader_filename = "sys/stat.h")]
1290 public bool S_ISSOCK (mode_t mode);
1292 [CCode (cheader_filename = "sys/stat.h", cname = "struct stat")]
1293 public struct Stat {
1294 public dev_t st_dev;
1295 public ino_t st_ino;
1296 public mode_t st_mode;
1297 public nlink_t st_nlink;
1298 public uid_t st_uid;
1299 public gid_t st_gid;
1300 public dev_t st_rdev;
1301 public size_t st_size;
1302 public time_t st_atime;
1303 public time_t st_mtime;
1304 public time_t st_ctime;
1305 public blksize_t st_blksize;
1306 public blkcnt_t st_blocks;
1308 [CCode (cheader_filename = "sys/stat.h")]
1309 int fstat( int fd, out Stat buf);
1310 [CCode (cheader_filename = "sys/stat.h")]
1311 int stat (string filename, out Stat buf);
1313 [CCode (cheader_filename = "sys/stat.h")]
1314 public int chmod (string filename, mode_t mode);
1315 [CCode (cheader_filename = "sys/stat.h")]
1316 public mode_t umask (mode_t mask);
1317 [CCode (cheader_filename = "sys/stat.h")]
1318 public int mkdir (string path, mode_t mode);
1319 [CCode (cheader_filename = "sys/types.h,sys/stat.h,fcntl.h,unistd.h")]
1320 public pid_t mknod (string pathname, mode_t mode, dev_t dev);
1322 [CCode (cheader_filename = "sys/wait.h")]
1323 public pid_t wait (out int status);
1324 [CCode (cheader_filename = "sys/wait.h")]
1325 public pid_t waitpid (pid_t pid, out int status, int options);
1328 [IntegerType (rank = 9)]
1329 [CCode (cheader_filename = "sys/types.h", cname = "key_t")]
1330 public struct key_t {
1334 [IntegerType (rank = 9)]
1335 [CCode (cheader_filename = "sys/statvfs.h")]
1336 public struct fsblkcnt_t {
1340 [IntegerType (rank = 9)]
1341 [CCode (cheader_filename = "sys/statvfs.h")]
1342 public struct fsfilcnt_t {
1345 [CCode (cheader_filename = "sys/statvfs.h", cname = "struct statvfs")]
1346 public struct statvfs {
1347 public ulong f_bsize;
1348 public ulong f_frsize;
1349 public fsblkcnt_t f_blocks;
1350 public fsblkcnt_t f_bfree;
1351 public fsblkcnt_t f_bavail;
1352 public fsfilcnt_t f_files;
1353 public fsfilcnt_t f_ffree;
1354 public fsfilcnt_t f_favail;
1358 [IntegerType (rank = 9)]
1359 [CCode (cname="off_t", cheader_filename = "sys/types.h")]
1360 public struct off_t {
1364 [IntegerType (rank = 9)]
1365 [CCode (cheader_filename = "sys/types.h")]
1366 public struct uid_t {
1370 [IntegerType (rank = 9)]
1371 [CCode (cheader_filename = "sys/types.h")]
1372 public struct gid_t {
1376 [IntegerType (rank = 9)]
1377 [CCode (cname = "mode_t", cheader_filename = "sys/types.h")]
1378 public struct mode_t {
1382 [IntegerType (rank = 9)]
1383 [CCode (cheader_filename = "sys/types.h")]
1384 public struct dev_t {
1388 [IntegerType (rank = 9)]
1389 [CCode (cheader_filename = "sys/types.h")]
1390 public struct ino_t {
1394 [IntegerType (rank = 9)]
1395 [CCode (cheader_filename = "sys/types.h")]
1396 public struct nlink_t {
1400 [IntegerType (rank = 9)]
1401 [CCode (cheader_filename = "sys/types.h")]
1402 public struct blksize_t {
1406 [IntegerType (rank = 9)]
1407 [CCode (cheader_filename = "sys/types.h")]
1408 public struct blkcnt_t {
1411 [CCode (cheader_filename = "time.h")]
1421 public int tm_isdst;
1424 [CCode (cheader_filename = "time.h")]
1425 public struct timespec {
1426 public time_t tv_sec;
1427 public long tv_nsec;
1430 [CCode (cheader_filename = "unistd.h")]
1431 public int close (int fd);
1432 [CCode (cheader_filename = "unistd.h")]
1433 public int execl (string path, params string[] arg);
1434 [CCode (cheader_filename = "unistd.h")]
1435 public int pipe ([CCode (array_length = false, null_terminated = false)] int[] pipefd);
1436 [CCode (cheader_filename = "unistd.h")]
1437 public ssize_t read (int fd, void* buf, size_t count);
1438 [CCode (cheader_filename = "unistd.h")]
1439 public ssize_t readlink (string path, char[] buf);
1440 [CCode (cheader_filename = "unistd.h,sys/types.h")]
1441 public int setgid (gid_t gid);
1442 [CCode (cheader_filename = "unistd.h,sys/types.h")]
1443 public int setuid (uid_t uid);
1444 [CCode (cheader_filename = "unistd.h")]
1445 public int unlink (string filename);
1446 [CCode (cheader_filename = "unistd.h")]
1447 public ssize_t write (int fd, void* buf, size_t count);
1448 [CCode (cheader_filename = "unistd.h")]
1449 public off_t lseek(int fildes, off_t offset, int whence);
1451 [CCode (cheader_filename = "unistd.h")]
1452 public const int SEEK_SET;
1453 [CCode (cheader_filename = "unistd.h")]
1454 public const int SEEK_CUR;
1455 [CCode (cheader_filename = "unistd.h")]
1456 public const int SEEK_END;
1458 [CCode (cheader_filename = "unistd.h")]
1459 public pid_t fork ();
1460 [CCode (cheader_filename = "unistd.h")]
1461 public pid_t vfork ();
1462 [CCode (cheader_filename = "unistd.h")]
1463 public unowned string ttyname (int fd);
1464 [CCode (cheader_filename = "unistd.h")]
1465 public int ttyname_r (int fd, char[] buf);
1466 [CCode (cheader_filename = "unistd.h")]
1467 public bool isatty (int fd);
1468 [CCode (cheader_filename = "unistd.h")]
1469 public int link (string from, string to);
1470 [CCode (cheader_filename = "unistd.h")]
1471 public int symlink (string from, string to);
1472 [CCode (cheader_filename = "unistd.h")]
1473 public int rmdir (string path);
1474 [CCode (cheader_filename = "unistd.h")]
1475 public pid_t tcgetpgrp (int fd);
1476 [CCode (cheader_filename = "unistd.h")]
1477 public int tcsetpgrp (int fd, pid_t pgrp_id);
1478 [CCode (cheader_filename = "unistd.h")]
1479 public unowned string getlogin ();
1480 [CCode (cheader_filename = "unistd.h")]
1481 public int vhangup ();
1482 [CCode (cheader_filename = "unistd.h")]
1483 public int revoke (string file);
1484 [CCode (cheader_filename = "unistd.h")]
1485 public int acct (string name);
1486 [CCode (cheader_filename = "unistd.h")]
1487 public unowned string getusershell ();
1488 [CCode (cheader_filename = "unistd.h")]
1489 public void endusershell ();
1490 [CCode (cheader_filename = "unistd.h")]
1491 public void setusershell ();
1492 [CCode (cheader_filename = "unistd.h")]
1493 public int chroot (string path);
1494 [CCode (cheader_filename = "unistd.h")]
1495 public unowned string getpass (string promt);
1496 [CCode (cheader_filename = "unistd.h")]
1497 public int getpagesize ();
1498 [CCode (cheader_filename = "unistd.h")]
1499 public int getdtablesize ();
1501 [CCode (cheader_filename = "unistd.h")]
1502 public const int STDIN_FILENO;
1503 [CCode (cheader_filename = "unistd.h")]
1504 public const int STDOUT_FILENO;
1505 [CCode (cheader_filename = "unistd.h")]
1506 public const int STDERR_FILENO;
1507 [CCode (cheader_filename = "unistd.h")]
1508 public const int R_OK;
1509 [CCode (cheader_filename = "unistd.h")]
1510 public const int W_OK;
1511 [CCode (cheader_filename = "unistd.h")]
1512 public const int X_OK;
1513 [CCode (cheader_filename = "unistd.h")]
1514 public const int F_OK;
1516 [CCode (cheader_filename = "unistd.h")]
1517 public int access (string patchname, int mode);
1518 [CCode (cheader_filename = "unistd.h")]
1519 public int euidaccess (string patchname, int mode);
1520 [CCode (cheader_filename = "unistd.h")]
1521 public int eaccess (string patchname, int mode);
1523 [CCode (cheader_filename = "unistd.h")]
1524 public uint alarm (uint seconds);
1525 [CCode (cheader_filename = "unistd.h")]
1526 public uint ualarm (uint useconds);
1527 [CCode (cheader_filename = "unistd.h")]
1528 public uint sleep (uint seconds);
1529 [CCode (cheader_filename = "unistd.h")]
1530 public uint usleep (uint useconds);
1531 [CCode (cheader_filename = "unistd.h")]
1532 public int pause ();
1533 [CCode (cheader_filename = "unistd.h")]
1534 public int chown (string filename, uid_t owner, gid_t group);
1535 [CCode (cheader_filename = "unistd.h")]
1536 public int fchown (int fd, uid_t owner, gid_t group);
1537 [CCode (cheader_filename = "unistd.h")]
1538 public int lchown (string filename, uid_t owner, gid_t group);
1539 [CCode (cheader_filename = "unistd.h")]
1540 public int chdir (string filepath);
1541 [CCode (cheader_filename = "unistd.h")]
1542 public int fchdir (int file);
1543 [CCode (cheader_filename = "unistd.h")]
1544 public int dup (int fd);
1545 [CCode (cheader_filename = "unistd.h")]
1546 public int dup2 (int fd1, int fd2);
1547 [CCode (cheader_filename = "unistd.h")]
1548 public pid_t getpid ();
1549 [CCode (cheader_filename = "unistd.h")]
1550 public pid_t getppid ();
1551 [CCode (cheader_filename = "unistd.h")]
1552 public pid_t getpgrp ();
1553 [CCode (cheader_filename = "unistd.h")]
1554 public pid_t getpgid (pid_t pid);
1555 [CCode (cheader_filename = "unistd.h")]
1556 public int setpgid (pid_t pid, pid_t pgid);
1557 [CCode (cheader_filename = "unistd.h")]
1558 public pid_t setpgrp ();
1559 [CCode (cheader_filename = "unistd.h")]
1560 public pid_t getsid (pid_t pid);
1561 [CCode (cheader_filename = "unistd.h")]
1562 public uid_t getuid ();
1563 [CCode (cheader_filename = "unistd.h")]
1564 public uid_t geteuid ();
1565 [CCode (cheader_filename = "unistd.h")]
1566 public gid_t getgid ();
1567 [CCode (cheader_filename = "unistd.h")]
1568 public gid_t getegid ();
1569 [CCode (cheader_filename = "unistd.h")]
1570 public int group_member (gid_t gid);
1571 [CCode (cheader_filename = "unistd.h")]
1572 public pid_t setsid ();
1573 [CCode (cheader_filename = "unistd.h")]
1574 public pid_t tcgetsid (int fd);
1576 [CCode (cheader_filename = "unistd.h")]
1577 public int fsync (int fd);
1578 [CCode (cheader_filename = "unistd.h")]
1579 public int fdatasync (int fd);
1580 [CCode (cheader_filename = "unistd.h")]
1583 [CCode (cheader_filename = "unistd.h")]
1584 public int ftruncate(int fd, off_t length);
1585 [CCode (cheader_filename = "unistd.h")]
1586 public int truncate(string path, off_t length);
1589 [CCode (cname = "cc_t", cheader_filename = "termios.h")]
1590 [IntegerType (rank = 3, min = 0, max = 255)]
1591 public struct cc_t {
1595 [CCode (cname = "speed_t", cheader_filename = "termios.h")]
1596 [IntegerType (rank = 7)]
1597 public struct speed_t {
1601 [CCode (cname = "tcflag_t", cheader_filename = "termios.h")]
1602 [IntegerType (rank = 7)]
1603 public struct tcflag_t {
1606 [CCode (cname="struct termios", cheader_filename = "termios.h")]
1607 public struct termios
1609 public tcflag_t c_iflag;
1610 public tcflag_t c_oflag;
1611 public tcflag_t c_cflag;
1612 public tcflag_t c_lflag;
1614 public unowned cc_t[] c_cc;
1615 public speed_t c_ispeed;
1616 public speed_t c_ospeed;
1619 [CCode (cheader_filename = "termios.h")]
1620 public int tcgetattr (int fd, termios termios_p);
1621 [CCode (cheader_filename = "termios.h")]
1622 public int tcsetattr (int fd, int optional_actions, termios termios_p);
1623 [CCode (cheader_filename = "termios.h")]
1624 public int tcsendbreak (int fd, int duration);
1625 [CCode (cheader_filename = "termios.h")]
1626 public int tcdrain (int fd);
1627 [CCode (cheader_filename = "termios.h")]
1628 public int tcflush (int fd, int queue_selector);
1629 [CCode (cheader_filename = "termios.h")]
1630 public int tcflow (int fd, int action);
1631 [CCode (cheader_filename = "termios.h")]
1632 public void cfmakeraw (termios termios_p);
1633 [CCode (cheader_filename = "termios.h")]
1634 public speed_t cfgetispeed (termios termios_p);
1635 [CCode (cheader_filename = "termios.h")]
1636 public speed_t cfgetospeed (termios termios_p);
1637 [CCode (cheader_filename = "termios.h")]
1638 public int cfsetispeed (termios termios_p, speed_t speed);
1639 [CCode (cheader_filename = "termios.h")]
1640 public int cfsetospeed (termios termios_p, speed_t speed);
1641 [CCode (cheader_filename = "termios.h")]
1642 public int cfsetspeed (termios termios, speed_t speed);
1645 [CCode (cheader_filename = "termios.h")]
1646 public const tcflag_t IGNBRK;
1647 [CCode (cheader_filename = "termios.h")]
1648 public const tcflag_t BRKINT;
1649 [CCode (cheader_filename = "termios.h")]
1650 public const tcflag_t IGNPAR;
1651 [CCode (cheader_filename = "termios.h")]
1652 public const tcflag_t PARMRK;
1653 [CCode (cheader_filename = "termios.h")]
1654 public const tcflag_t INPCK;
1655 [CCode (cheader_filename = "termios.h")]
1656 public const tcflag_t ISTRIP;
1657 [CCode (cheader_filename = "termios.h")]
1658 public const tcflag_t INLCR;
1659 [CCode (cheader_filename = "termios.h")]
1660 public const tcflag_t IGNCR;
1661 [CCode (cheader_filename = "termios.h")]
1662 public const tcflag_t IXON;
1663 [CCode (cheader_filename = "termios.h")]
1664 public const tcflag_t IXANY;
1665 [CCode (cheader_filename = "termios.h")]
1666 public const tcflag_t IXOFF;
1667 [CCode (cheader_filename = "termios.h")]
1668 public const tcflag_t ICRNL;
1671 [CCode (cheader_filename = "termios.h")]
1672 public const tcflag_t OPOST;
1673 [CCode (cheader_filename = "termios.h")]
1674 public const tcflag_t ONLCR;
1675 [CCode (cheader_filename = "termios.h")]
1676 public const tcflag_t OCRNL;
1677 [CCode (cheader_filename = "termios.h")]
1678 public const tcflag_t ONOCR;
1679 [CCode (cheader_filename = "termios.h")]
1680 public const tcflag_t ONLRET;
1681 [CCode (cheader_filename = "termios.h")]
1682 public const tcflag_t OFILL;
1683 [CCode (cheader_filename = "termios.h")]
1684 public const tcflag_t NLDLY;
1685 [CCode (cheader_filename = "termios.h")]
1686 public const tcflag_t NL0;
1687 [CCode (cheader_filename = "termios.h")]
1688 public const tcflag_t NL1;
1689 [CCode (cheader_filename = "termios.h")]
1690 public const tcflag_t CRDLY;
1691 [CCode (cheader_filename = "termios.h")]
1692 public const tcflag_t CR0;
1693 [CCode (cheader_filename = "termios.h")]
1694 public const tcflag_t CR1;
1695 [CCode (cheader_filename = "termios.h")]
1696 public const tcflag_t CR2;
1697 [CCode (cheader_filename = "termios.h")]
1698 public const tcflag_t CR3;
1699 [CCode (cheader_filename = "termios.h")]
1700 public const tcflag_t TABDLY;
1701 [CCode (cheader_filename = "termios.h")]
1702 public const tcflag_t TAB0;
1703 [CCode (cheader_filename = "termios.h")]
1704 public const tcflag_t TAB1;
1705 [CCode (cheader_filename = "termios.h")]
1706 public const tcflag_t TAB2;
1707 [CCode (cheader_filename = "termios.h")]
1708 public const tcflag_t TAB3;
1709 [CCode (cheader_filename = "termios.h")]
1710 public const tcflag_t BSDLY;
1711 [CCode (cheader_filename = "termios.h")]
1712 public const tcflag_t BS0;
1713 [CCode (cheader_filename = "termios.h")]
1714 public const tcflag_t BS1;
1715 [CCode (cheader_filename = "termios.h")]
1716 public const tcflag_t VTDLY;
1717 [CCode (cheader_filename = "termios.h")]
1718 public const tcflag_t VT0;
1719 [CCode (cheader_filename = "termios.h")]
1720 public const tcflag_t VT1;
1721 [CCode (cheader_filename = "termios.h")]
1722 public const tcflag_t FFDLY;
1723 [CCode (cheader_filename = "termios.h")]
1724 public const tcflag_t FF0;
1725 [CCode (cheader_filename = "termios.h")]
1726 public const tcflag_t FF1;
1729 [CCode (cheader_filename = "termios.h")]
1730 public const tcflag_t CSIZE;
1731 [CCode (cheader_filename = "termios.h")]
1732 public const tcflag_t CS5;
1733 [CCode (cheader_filename = "termios.h")]
1734 public const tcflag_t CS6;
1735 [CCode (cheader_filename = "termios.h")]
1736 public const tcflag_t CS7;
1737 [CCode (cheader_filename = "termios.h")]
1738 public const tcflag_t CS8;
1739 [CCode (cheader_filename = "termios.h")]
1740 public const tcflag_t CSTOPB;
1741 [CCode (cheader_filename = "termios.h")]
1742 public const tcflag_t CREAD;
1743 [CCode (cheader_filename = "termios.h")]
1744 public const tcflag_t PARENB;
1745 [CCode (cheader_filename = "termios.h")]
1746 public const tcflag_t PARODD;
1747 [CCode (cheader_filename = "termios.h")]
1748 public const tcflag_t HUPCL;
1749 [CCode (cheader_filename = "termios.h")]
1750 public const tcflag_t CLOCAL;
1753 [CCode (cheader_filename = "termios.h")]
1754 public const tcflag_t ISIG;
1755 [CCode (cheader_filename = "termios.h")]
1756 public const tcflag_t ICANON;
1757 [CCode (cheader_filename = "termios.h")]
1758 public const tcflag_t ECHO;
1759 [CCode (cheader_filename = "termios.h")]
1760 public const tcflag_t ECHOE;
1761 [CCode (cheader_filename = "termios.h")]
1762 public const tcflag_t ECHOK;
1763 [CCode (cheader_filename = "termios.h")]
1764 public const tcflag_t ECHONL;
1765 [CCode (cheader_filename = "termios.h")]
1766 public const tcflag_t NOFLSH;
1767 [CCode (cheader_filename = "termios.h")]
1768 public const tcflag_t TOSTOP;
1769 [CCode (cheader_filename = "termios.h")]
1770 public const tcflag_t IEXTEN;
1773 [CCode (cheader_filename = "termios.h")]
1774 public const int VINTR;
1775 [CCode (cheader_filename = "termios.h")]
1776 public const int VQUIT;
1777 [CCode (cheader_filename = "termios.h")]
1778 public const int VERASE;
1779 [CCode (cheader_filename = "termios.h")]
1780 public const int VKILL;
1781 [CCode (cheader_filename = "termios.h")]
1782 public const int VEOF;
1783 [CCode (cheader_filename = "termios.h")]
1784 public const int VMIN;
1785 [CCode (cheader_filename = "termios.h")]
1786 public const int VEOL;
1787 [CCode (cheader_filename = "termios.h")]
1788 public const int VTIME;
1789 [CCode (cheader_filename = "termios.h")]
1790 public const int VSTART;
1791 [CCode (cheader_filename = "termios.h")]
1792 public const int VSTOP;
1793 [CCode (cheader_filename = "termios.h")]
1794 public const int VSUSP;
1797 [CCode (cheader_filename = "termios.h")]
1798 public const int TCSANOW;
1799 [CCode (cheader_filename = "termios.h")]
1800 public const int TCSADRAIN;
1801 [CCode (cheader_filename = "termios.h")]
1802 public const int TCSAFLUSH;
1805 [CCode (cheader_filename = "termios.h")]
1806 public const int TCIFLUSH;
1807 [CCode (cheader_filename = "termios.h")]
1808 public const int TCOFLUSH;
1809 [CCode (cheader_filename = "termios.h")]
1810 public const int TCIOFLUSH;
1813 [CCode (cheader_filename = "termios.h")]
1814 public const int TCOOFF;
1815 [CCode (cheader_filename = "termios.h")]
1816 public const int TCOON;
1817 [CCode (cheader_filename = "termios.h")]
1818 public const int TCIOFF;
1819 [CCode (cheader_filename = "termios.h")]
1820 public const int TCION;
1823 [CCode (cheader_filename = "termios.h")]
1824 public const speed_t B0;
1825 [CCode (cheader_filename = "termios.h")]
1826 public const speed_t B50;
1827 [CCode (cheader_filename = "termios.h")]
1828 public const speed_t B75;
1829 [CCode (cheader_filename = "termios.h")]
1830 public const speed_t B110;
1831 [CCode (cheader_filename = "termios.h")]
1832 public const speed_t B134;
1833 [CCode (cheader_filename = "termios.h")]
1834 public const speed_t B150;
1835 [CCode (cheader_filename = "termios.h")]
1836 public const speed_t B200;
1837 [CCode (cheader_filename = "termios.h")]
1838 public const speed_t B300;
1839 [CCode (cheader_filename = "termios.h")]
1840 public const speed_t B600;
1841 [CCode (cheader_filename = "termios.h")]
1842 public const speed_t B1200;
1843 [CCode (cheader_filename = "termios.h")]
1844 public const speed_t B1800;
1845 [CCode (cheader_filename = "termios.h")]
1846 public const speed_t B2400;
1847 [CCode (cheader_filename = "termios.h")]
1848 public const speed_t B4800;
1849 [CCode (cheader_filename = "termios.h")]
1850 public const speed_t B9600;
1851 [CCode (cheader_filename = "termios.h")]
1852 public const speed_t B19200;
1853 [CCode (cheader_filename = "termios.h")]
1854 public const speed_t B38400;
1855 [CCode (cheader_filename = "termios.h")]
1856 public const speed_t B57600;
1857 [CCode (cheader_filename = "termios.h")]
1858 public const speed_t B115200;
1859 [CCode (cheader_filename = "termios.h")]
1860 public const speed_t B230400;
1862 [CCode (cname = "fd_set", cheader_filename = "sys/select.h")]
1863 public struct fd_set {
1866 [CCode (cname = "struct timeval", cheader_filename = "sys/time.h")]
1867 public struct timeval {
1868 public time_t tv_sec;
1869 public long tv_usec;
1870 [CCode (cname = "gettimeofday")]
1871 public int get_time_of_day (void * timezone = null);
1872 [CCode (cname = "settimeofday")]
1873 public int set_time_of_day (void * timezone = null);
1876 [CCode (cname = "sigset_t", cheader_filename = "sys/select.h")]
1877 public struct sigset_t {
1880 [CCode (cheader_filename = "sys/select.h")]
1881 public int select (int nfds, fd_set? readfds, fd_set? writefds, fd_set? exceptfds, timeval timeout);
1882 [CCode (cheader_filename = "sys/select.h")]
1883 public void FD_CLR (int fd, fd_set @set);
1884 [CCode (cheader_filename = "sys/select.h")]
1885 public int FD_ISSET (int fd, fd_set @set);
1886 [CCode (cheader_filename = "sys/select.h")]
1887 public void FD_SET (int fd, fd_set @set);
1888 [CCode (cheader_filename = "sys/select.h")]
1889 public void FD_ZERO (fd_set @set);
1890 [CCode (cheader_filename = "sys/select.h")]
1891 public int pselect (int nfds, fd_set? readfds, fd_set? writefds, fd_set? exceptfds, timespec timeout, sigset_t sigmask);
1893 // sys/mman.h - Posix mmap(), munmap(), mprotect()
1894 [CCode (cheader_filename = "sys/mman.h")]
1895 public void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
1896 [CCode (cheader_filename = "sys/mman.h")]
1897 public int munmap(void *addr, size_t length);
1898 [CCode (cheader_filename = "sys/mman.h")]
1899 public int mprotect(void *addr, size_t len, int prot);
1900 [CCode (cheader_filename = "sys/mman.h")]
1901 public const int PROT_READ;
1902 [CCode (cheader_filename = "sys/mman.h")]
1903 public const int PROT_WRITE;
1904 [CCode (cheader_filename = "sys/mman.h")]
1905 public const int PROT_EXEC;
1906 [CCode (cheader_filename = "sys/mman.h")]
1907 public const int MAP_SHARED;
1908 [CCode (cheader_filename = "sys/mman.h")]
1909 public const int MAP_PRIVATE;
1910 [CCode (cheader_filename = "sys/mman.h")]
1911 public const int MAP_FIXED;
1912 [CCode (cheader_filename = "sys/mman.h")]
1913 public void *MAP_FAILED;
1914 // sys/mman.h - [MLR] Range Memory Locking
1915 [CCode (cheader_filename = "sys/mman.h")]
1916 public int mlock(void *addr, size_t len);
1917 [CCode (cheader_filename = "sys/mman.h")]
1918 public int munlock(void *addr, size_t len);
1919 // sys/mman.h - [XSI] X/Open System Interfaces
1920 [CCode (cheader_filename = "sys/mman.h")]
1921 public int msync(void *addr, size_t len, int flags);
1922 [CCode (cheader_filename = "sys/mman.h")]
1923 public const int MS_ASYNC;
1924 [CCode (cheader_filename = "sys/mman.h")]
1925 public const int MS_INVALIDATE;
1926 [CCode (cheader_filename = "sys/mman.h")]
1927 public const int MS_SYNC;