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>
23 [CCode (cprefix = "", lower_case_cprefix = "")]
25 [CCode (cheader_filename = "assert.h")]
26 public void assert (bool expression);
28 [CCode (cheader_filename = "ctype.h")]
29 public bool isalnum (int c);
30 [CCode (cheader_filename = "ctype.h")]
31 public bool isalpha (int c);
32 [CCode (cheader_filename = "ctype.h")]
33 public bool isascii (int c);
34 [CCode (cheader_filename = "ctype.h")]
35 public bool iscntrl (int c);
36 [CCode (cheader_filename = "ctype.h")]
37 public bool isdigit (int c);
38 [CCode (cheader_filename = "ctype.h")]
39 public bool isgraph (int c);
40 [CCode (cheader_filename = "ctype.h")]
41 public bool islower (int c);
42 [CCode (cheader_filename = "ctype.h")]
43 public bool isprint (int c);
44 [CCode (cheader_filename = "ctype.h")]
45 public bool ispunct (int c);
46 [CCode (cheader_filename = "ctype.h")]
47 public bool isspace (int c);
48 [CCode (cheader_filename = "ctype.h")]
49 public bool isupper (int c);
50 [CCode (cheader_filename = "ctype.h")]
51 public bool isxdigit (int c);
52 [CCode (cheader_filename = "ctype.h")]
53 public int toascii (int c);
54 [CCode (cheader_filename = "ctype.h")]
55 public int tolower (int c);
56 [CCode (cheader_filename = "ctype.h")]
57 public int toupper (int c);
59 [CCode (cheader_filename = "errno.h")]
61 [CCode (cheader_filename = "errno.h")]
62 public const int E2BIG;
63 [CCode (cheader_filename = "errno.h")]
64 public const int EACCES;
65 [CCode (cheader_filename = "errno.h")]
66 public const int EADDRINUSE;
67 [CCode (cheader_filename = "errno.h")]
68 public const int EADDRNOTAVAIL;
69 [CCode (cheader_filename = "errno.h")]
70 public const int EAFNOSUPPORT;
71 [CCode (cheader_filename = "errno.h")]
72 public const int EAGAIN;
73 [CCode (cheader_filename = "errno.h")]
74 public const int EALREADY;
75 [CCode (cheader_filename = "errno.h")]
76 public const int EBADF;
77 [CCode (cheader_filename = "errno.h")]
78 public const int EBADMSG;
79 [CCode (cheader_filename = "errno.h")]
80 public const int EBUSY;
81 [CCode (cheader_filename = "errno.h")]
82 public const int ECANCELED;
83 [CCode (cheader_filename = "errno.h")]
84 public const int ECHILD;
85 [CCode (cheader_filename = "errno.h")]
86 public const int ECONNABORTED;
87 [CCode (cheader_filename = "errno.h")]
88 public const int ECONNREFUSED;
89 [CCode (cheader_filename = "errno.h")]
90 public const int ECONNRESET;
91 [CCode (cheader_filename = "errno.h")]
92 public const int EDEADLK;
93 [CCode (cheader_filename = "errno.h")]
94 public const int EDESTADDRREQ;
95 [CCode (cheader_filename = "errno.h")]
96 public const int EDOM;
97 [CCode (cheader_filename = "errno.h")]
98 public const int EDQUOT;
99 [CCode (cheader_filename = "errno.h")]
100 public const int EEXIST;
101 [CCode (cheader_filename = "errno.h")]
102 public const int EFAULT;
103 [CCode (cheader_filename = "errno.h")]
104 public const int EFBIG;
105 [CCode (cheader_filename = "errno.h")]
106 public const int EHOSTUNREACH;
107 [CCode (cheader_filename = "errno.h")]
108 public const int EIDRM;
109 [CCode (cheader_filename = "errno.h")]
110 public const int EILSEQ;
111 [CCode (cheader_filename = "errno.h")]
112 public const int EINPROGRESS;
113 [CCode (cheader_filename = "errno.h")]
114 public const int EINTR;
115 [CCode (cheader_filename = "errno.h")]
116 public const int EINVAL;
117 [CCode (cheader_filename = "errno.h")]
118 public const int EIO;
119 [CCode (cheader_filename = "errno.h")]
120 public const int EISCONN;
121 [CCode (cheader_filename = "errno.h")]
122 public const int EISDIR;
123 [CCode (cheader_filename = "errno.h")]
124 public const int ELOOP;
125 [CCode (cheader_filename = "errno.h")]
126 public const int EMFILE;
127 [CCode (cheader_filename = "errno.h")]
128 public const int EMLINK;
129 [CCode (cheader_filename = "errno.h")]
130 public const int EMSGSIZE;
131 [CCode (cheader_filename = "errno.h")]
132 public const int EMULTIHOP;
133 [CCode (cheader_filename = "errno.h")]
134 public const int ENAMETOOLONG;
135 [CCode (cheader_filename = "errno.h")]
136 public const int ENETDOWN;
137 [CCode (cheader_filename = "errno.h")]
138 public const int ENETRESET;
139 [CCode (cheader_filename = "errno.h")]
140 public const int ENETUNREACH;
141 [CCode (cheader_filename = "errno.h")]
142 public const int ENFILE;
143 [CCode (cheader_filename = "errno.h")]
144 public const int ENOBUFS;
145 [CCode (cheader_filename = "errno.h")]
146 public const int ENODATA;
147 [CCode (cheader_filename = "errno.h")]
148 public const int ENODEV;
149 [CCode (cheader_filename = "errno.h")]
150 public const int ENOENT;
151 [CCode (cheader_filename = "errno.h")]
152 public const int ENOEXEC;
153 [CCode (cheader_filename = "errno.h")]
154 public const int ENOLCK;
155 [CCode (cheader_filename = "errno.h")]
156 public const int ENOLINK;
157 [CCode (cheader_filename = "errno.h")]
158 public const int ENOMEM;
159 [CCode (cheader_filename = "errno.h")]
160 public const int ENOMSG;
161 [CCode (cheader_filename = "errno.h")]
162 public const int ENOPROTOOPT;
163 [CCode (cheader_filename = "errno.h")]
164 public const int ENOSPC;
165 [CCode (cheader_filename = "errno.h")]
166 public const int ENOSR;
167 [CCode (cheader_filename = "errno.h")]
168 public const int ENOSTR;
169 [CCode (cheader_filename = "errno.h")]
170 public const int ENOSYS;
171 [CCode (cheader_filename = "errno.h")]
172 public const int ENOTCONN;
173 [CCode (cheader_filename = "errno.h")]
174 public const int ENOTDIR;
175 [CCode (cheader_filename = "errno.h")]
176 public const int ENOTEMPTY;
177 [CCode (cheader_filename = "errno.h")]
178 public const int ENOTSOCK;
179 [CCode (cheader_filename = "errno.h")]
180 public const int ENOTSUP;
181 [CCode (cheader_filename = "errno.h")]
182 public const int ENOTTY;
183 [CCode (cheader_filename = "errno.h")]
184 public const int ENXIO;
185 [CCode (cheader_filename = "errno.h")]
186 public const int EOPNOTSUPP;
187 [CCode (cheader_filename = "errno.h")]
188 public const int EOVERFLOW;
189 [CCode (cheader_filename = "errno.h")]
190 public const int EPERM;
191 [CCode (cheader_filename = "errno.h")]
192 public const int EPIPE;
193 [CCode (cheader_filename = "errno.h")]
194 public const int EPROTO;
195 [CCode (cheader_filename = "errno.h")]
196 public const int EPROTONOSUPPORT;
197 [CCode (cheader_filename = "errno.h")]
198 public const int EPROTOTYPE;
199 [CCode (cheader_filename = "errno.h")]
200 public const int ERANGE;
201 [CCode (cheader_filename = "errno.h")]
202 public const int EROFS;
203 [CCode (cheader_filename = "errno.h")]
204 public const int ESPIPE;
205 [CCode (cheader_filename = "errno.h")]
206 public const int ESRCH;
207 [CCode (cheader_filename = "errno.h")]
208 public const int ESTALE;
209 [CCode (cheader_filename = "errno.h")]
210 public const int ETIME;
211 [CCode (cheader_filename = "errno.h")]
212 public const int ETIMEDOUT;
213 [CCode (cheader_filename = "errno.h")]
214 public const int ETXTBSY;
215 [CCode (cheader_filename = "errno.h")]
216 public const int EWOULDBLOCK;
217 [CCode (cheader_filename = "errno.h")]
218 public const int EXDEV;
220 [CCode (cheader_filename = "fcntl.h")]
221 public const int F_DUPFD;
222 [CCode (cheader_filename = "fcntl.h")]
223 public const int F_GETFD;
224 [CCode (cheader_filename = "fcntl.h")]
225 public const int F_SETFD;
226 [CCode (cheader_filename = "fcntl.h")]
227 public const int F_GETFL;
228 [CCode (cheader_filename = "fcntl.h")]
229 public const int F_SETFL;
230 [CCode (cheader_filename = "fcntl.h")]
231 public const int F_GETLK;
232 [CCode (cheader_filename = "fcntl.h")]
233 public const int F_SETLK;
234 [CCode (cheader_filename = "fcntl.h")]
235 public const int F_SETLKW;
236 [CCode (cheader_filename = "fcntl.h")]
237 public const int F_GETOWN;
238 [CCode (cheader_filename = "fcntl.h")]
239 public const int F_SETOWN;
240 [CCode (cheader_filename = "fcntl.h")]
241 public const int FD_CLOEXEC;
242 [CCode (cheader_filename = "fcntl.h")]
243 public const int F_RDLCK;
244 [CCode (cheader_filename = "fcntl.h")]
245 public const int F_UNLCK;
246 [CCode (cheader_filename = "fcntl.h")]
247 public const int F_WRLCK;
248 [CCode (cheader_filename = "fcntl.h")]
249 public const int O_CREAT;
250 [CCode (cheader_filename = "fcntl.h")]
251 public const int O_EXCL;
252 [CCode (cheader_filename = "fcntl.h")]
253 public const int O_NOCTTY;
254 [CCode (cheader_filename = "fcntl.h")]
255 public const int O_TRUNC;
256 [CCode (cheader_filename = "fcntl.h")]
257 public const int O_APPEND;
258 [CCode (cheader_filename = "fcntl.h")]
259 public const int O_DSYNC;
260 [CCode (cheader_filename = "fcntl.h")]
261 public const int O_NONBLOCK;
262 [CCode (cheader_filename = "fcntl.h")]
263 public const int O_RSYNC;
264 [CCode (cheader_filename = "fcntl.h")]
265 public const int O_SYNC;
266 [CCode (cheader_filename = "fcntl.h")]
267 public const int O_ACCMODE;
268 [CCode (cheader_filename = "fcntl.h")]
269 public const int O_RDONLY;
270 [CCode (cheader_filename = "fcntl.h")]
271 public const int O_RDWR;
272 [CCode (cheader_filename = "fcntl.h")]
273 public const int O_WRONLY;
274 [CCode (cheader_filename = "fcntl.h")]
275 public const int POSIX_FADV_NORMAL;
276 [CCode (cheader_filename = "fcntl.h")]
277 public const int POSIX_FADV_SEQUENTIAL;
278 [CCode (cheader_filename = "fcntl.h")]
279 public const int POSIX_FADV_RANDOM;
280 [CCode (cheader_filename = "fcntl.h")]
281 public const int POSIX_FADV_WILLNEED;
282 [CCode (cheader_filename = "fcntl.h")]
283 public const int POSIX_FADV_DONTNEED;
284 [CCode (cheader_filename = "fcntl.h")]
285 public const int POSIX_FADV_NOREUSE;
286 [CCode (cheader_filename = "fcntl.h")]
287 public int creat (string path, mode_t mode);
288 [CCode (cheader_filename = "fcntl.h")]
289 public int fcntl (int fd, int cmd, ...);
290 [CCode (cheader_filename = "fcntl.h")]
291 public int open (string path, int oflag, mode_t mode=0);
292 [CCode (cheader_filename = "fcntl.h")]
293 public int posix_fadvice (int fd, long offset, long len, int advice);
294 [CCode (cheader_filename = "fcntl.h")]
295 public int posix_fallocate (int fd, long offset, long len);
297 [CCode (cheader_filename = "signal.h")]
298 public const int SIGABRT;
299 [CCode (cheader_filename = "signal.h")]
300 public const int SIGALRM;
301 [CCode (cheader_filename = "signal.h")]
302 public const int SIGBUS;
303 [CCode (cheader_filename = "signal.h")]
304 public const int SIGCHLD;
305 [CCode (cheader_filename = "signal.h")]
306 public const int SIGCONT;
307 [CCode (cheader_filename = "signal.h")]
308 public const int SIGFPE;
309 [CCode (cheader_filename = "signal.h")]
310 public const int SIGHUP;
311 [CCode (cheader_filename = "signal.h")]
312 public const int SIGILL;
313 [CCode (cheader_filename = "signal.h")]
314 public const int SIGINT;
315 [CCode (cheader_filename = "signal.h")]
316 public const int SIGKILL;
317 [CCode (cheader_filename = "signal.h")]
318 public const int SIGPIPE;
319 [CCode (cheader_filename = "signal.h")]
320 public const int SIGQUIT;
321 [CCode (cheader_filename = "signal.h")]
322 public const int SIGSEGV;
323 [CCode (cheader_filename = "signal.h")]
324 public const int SIGSTOP;
325 [CCode (cheader_filename = "signal.h")]
326 public const int SIGTERM;
327 [CCode (cheader_filename = "signal.h")]
328 public const int SIGTSTP;
329 [CCode (cheader_filename = "signal.h")]
330 public const int SIGTTIN;
331 [CCode (cheader_filename = "signal.h")]
332 public const int SIGTTOU;
333 [CCode (cheader_filename = "signal.h")]
334 public const int SIGUSR1;
335 [CCode (cheader_filename = "signal.h")]
336 public const int SIGUSR2;
337 [CCode (cheader_filename = "signal.h")]
338 public const int SIGPOLL;
339 [CCode (cheader_filename = "signal.h")]
340 public const int SIGPROF;
341 [CCode (cheader_filename = "signal.h")]
342 public const int SIGSYS;
343 [CCode (cheader_filename = "signal.h")]
344 public const int SIGTRAP;
345 [CCode (cheader_filename = "signal.h")]
346 public const int SIGURG;
347 [CCode (cheader_filename = "signal.h")]
348 public const int SIGVTALRM;
349 [CCode (cheader_filename = "signal.h")]
350 public const int SIGXCPU;
351 [CCode (cheader_filename = "signal.h")]
352 public const int SIGXFSZ;
353 [CCode (cheader_filename = "signal.h")]
354 public const int SIGIOT;
355 [CCode (cheader_filename = "signal.h")]
356 public const int SIGSTKFLT;
358 public static delegate void sighandler_t (int signal);
361 [CCode (cname = "pid_t", default_value = "0", cheader_filename = "sys/types.h")]
362 public struct pid_t {
364 [CCode (cheader_filename = "signal.h")]
365 public sighandler_t signal (int signum, sighandler_t handler);
366 [CCode (cheader_filename = "signal.h")]
367 public int kill (pid_t pid, int signum);
370 [CCode (cheader_filename = "string.h")]
371 public int memcmp (void* s1, void* s2, size_t n);
372 [CCode (cheader_filename = "string.h")]
373 public unowned string strerror (int errnum);
375 [CCode (cheader_filename = "stropts.h")]
376 public const int I_PUSH;
377 [CCode (cheader_filename = "stropts.h")]
378 public const int I_POP;
379 [CCode (cheader_filename = "stropts.h")]
380 public const int I_LOOK;
381 [CCode (cheader_filename = "stropts.h")]
382 public const int I_FLUSH;
383 [CCode (cheader_filename = "stropts.h")]
384 public const int I_FLUSHBAND;
385 [CCode (cheader_filename = "stropts.h")]
386 public const int I_SETSIG;
387 [CCode (cheader_filename = "stropts.h")]
388 public const int I_GETSIG;
389 [CCode (cheader_filename = "stropts.h")]
390 public const int I_FIND;
391 [CCode (cheader_filename = "stropts.h")]
392 public const int I_PEEK;
393 [CCode (cheader_filename = "stropts.h")]
394 public const int I_SRDOPT;
395 [CCode (cheader_filename = "stropts.h")]
396 public const int I_GRDOPT;
397 [CCode (cheader_filename = "stropts.h")]
398 public const int I_NREAD;
399 [CCode (cheader_filename = "stropts.h")]
400 public const int I_FDINSERT;
401 [CCode (cheader_filename = "stropts.h")]
402 public const int I_STR;
403 [CCode (cheader_filename = "stropts.h")]
404 public const int I_SWROPT;
405 [CCode (cheader_filename = "stropts.h")]
406 public const int I_GWROPT;
407 [CCode (cheader_filename = "stropts.h")]
408 public const int I_SENDFD;
409 [CCode (cheader_filename = "stropts.h")]
410 public const int I_RECVFD;
411 [CCode (cheader_filename = "stropts.h")]
412 public const int I_LIST;
413 [CCode (cheader_filename = "stropts.h")]
414 public const int I_ATMARK;
415 [CCode (cheader_filename = "stropts.h")]
416 public const int I_CKBAND;
417 [CCode (cheader_filename = "stropts.h")]
418 public const int I_GETBAND;
419 [CCode (cheader_filename = "stropts.h")]
420 public const int I_CANPUT;
421 [CCode (cheader_filename = "stropts.h")]
422 public const int I_SETCLTIME;
423 [CCode (cheader_filename = "stropts.h")]
424 public const int I_GETCLTIME;
425 [CCode (cheader_filename = "stropts.h")]
426 public const int I_LINK;
427 [CCode (cheader_filename = "stropts.h")]
428 public const int I_UNLINK;
429 [CCode (cheader_filename = "stropts.h")]
430 public const int I_PLINK;
431 [CCode (cheader_filename = "stropts.h")]
432 public const int I_PUNLINK;
433 [CCode (cheader_filename = "stropts.h")]
434 public const int FLUSHR;
435 [CCode (cheader_filename = "stropts.h")]
436 public const int FLUSHW;
437 [CCode (cheader_filename = "stropts.h")]
438 public const int FLUSHRW;
439 [CCode (cheader_filename = "stropts.h")]
440 public const int S_RDNORM;
441 [CCode (cheader_filename = "stropts.h")]
442 public const int S_RDBAND;
443 [CCode (cheader_filename = "stropts.h")]
444 public const int S_INPUT;
445 [CCode (cheader_filename = "stropts.h")]
446 public const int S_HIPRI;
447 [CCode (cheader_filename = "stropts.h")]
448 public const int S_OUTPUT;
449 [CCode (cheader_filename = "stropts.h")]
450 public const int S_WRNORM;
451 [CCode (cheader_filename = "stropts.h")]
452 public const int S_WRBAND;
453 [CCode (cheader_filename = "stropts.h")]
454 public const int S_MSG;
455 [CCode (cheader_filename = "stropts.h")]
456 public const int S_ERROR;
457 [CCode (cheader_filename = "stropts.h")]
458 public const int S_HANGUP;
459 [CCode (cheader_filename = "stropts.h")]
460 public const int S_BANDURG;
461 [CCode (cheader_filename = "stropts.h")]
462 public const int RS_HIPRI;
463 [CCode (cheader_filename = "stropts.h")]
464 public const int RNORM;
465 [CCode (cheader_filename = "stropts.h")]
466 public const int RMSGD;
467 [CCode (cheader_filename = "stropts.h")]
468 public const int RMSGN;
469 [CCode (cheader_filename = "stropts.h")]
470 public const int RPROTNORN;
471 [CCode (cheader_filename = "stropts.h")]
472 public const int RPROTDAT;
473 [CCode (cheader_filename = "stropts.h")]
474 public const int RPROTDIS;
475 [CCode (cheader_filename = "stropts.h")]
476 public const int SNDZERO;
477 [CCode (cheader_filename = "stropts.h")]
478 public const int ANYMARK;
479 [CCode (cheader_filename = "stropts.h")]
480 public const int LASTMARK;
481 [CCode (cheader_filename = "stropts.h")]
482 public const int MUXID_ALL;
483 [CCode (cheader_filename = "stropts.h")]
484 public const int MSG_ANY;
485 [CCode (cheader_filename = "stropts.h")]
486 public const int MSG_BAND;
487 [CCode (cheader_filename = "stropts.h")]
488 public const int MSG_HIPRI;
489 [CCode (cheader_filename = "stropts.h")]
490 public const int MORECTL;
491 [CCode (cheader_filename = "stropts.h")]
492 public const int MOREDATA;
493 [CCode (cheader_filename = "stropts.h")]
494 public int ioctl (int fildes, int request, ...);
496 [CCode (cheader_filename = "syslog.h")]
497 public void openlog (string ident, int option, int facility );
499 [CCode (cheader_filename = "syslog.h")]
500 public void syslog (int priority, string format, ... );
502 [CCode (cheader_filename = "syslog.h")]
503 public void closelog ();
505 [CCode (cheader_filename = "syslog.h")]
506 public const int LOG_PID;
507 [CCode (cheader_filename = "syslog.h")]
508 public const int LOG_CONS;
509 [CCode (cheader_filename = "syslog.h")]
510 public const int LOG_ODELAY;
511 [CCode (cheader_filename = "syslog.h")]
512 public const int LOG_NDELAY;
513 [CCode (cheader_filename = "syslog.h")]
514 public const int LOG_NOWAIT;
515 [CCode (cheader_filename = "syslog.h")]
516 public const int LOG_EMERG;
517 [CCode (cheader_filename = "syslog.h")]
518 public const int LOG_ALERT;
519 [CCode (cheader_filename = "syslog.h")]
520 public const int LOG_CRIT;
521 [CCode (cheader_filename = "syslog.h")]
522 public const int LOG_ERR;
523 [CCode (cheader_filename = "syslog.h")]
524 public const int LOG_WARNING;
525 [CCode (cheader_filename = "syslog.h")]
526 public const int LOG_NOTICE;
527 [CCode (cheader_filename = "syslog.h")]
528 public const int LOG_INFO;
529 [CCode (cheader_filename = "syslog.h")]
530 public const int LOG_DEBUG;
531 [CCode (cheader_filename = "syslog.h")]
532 public const int LOG_KERN;
533 [CCode (cheader_filename = "syslog.h")]
534 public const int LOG_USER;
535 [CCode (cheader_filename = "syslog.h")]
536 public const int LOG_MAIL;
537 [CCode (cheader_filename = "syslog.h")]
538 public const int LOG_DAEMON;
539 [CCode (cheader_filename = "syslog.h")]
540 public const int LOG_SYSLOG;
541 [CCode (cheader_filename = "syslog.h")]
542 public const int LOG_LPR;
543 [CCode (cheader_filename = "syslog.h")]
544 public const int LOG_NEWS;
545 [CCode (cheader_filename = "syslog.h")]
546 public const int LOG_UUCP;
547 [CCode (cheader_filename = "syslog.h")]
548 public const int LOG_CRON;
549 [CCode (cheader_filename = "syslog.h")]
550 public const int LOG_AUTHPRIV;
551 [CCode (cheader_filename = "syslog.h")]
552 public const int LOG_FTP;
553 [CCode (cheader_filename = "syslog.h")]
554 public const int LOG_LOCAL0;
555 [CCode (cheader_filename = "syslog.h")]
556 public const int LOG_LOCAL1;
557 [CCode (cheader_filename = "syslog.h")]
558 public const int LOG_LOCAL2;
559 [CCode (cheader_filename = "syslog.h")]
560 public const int LOG_LOCAL3;
561 [CCode (cheader_filename = "syslog.h")]
562 public const int LOG_LOCAL4;
563 [CCode (cheader_filename = "syslog.h")]
564 public const int LOG_LOCAL5;
565 [CCode (cheader_filename = "syslog.h")]
566 public const int LOG_LOCAL6;
567 [CCode (cheader_filename = "syslog.h")]
568 public const int LOG_LOCAL7;
570 [CCode (cheader_filename = "sys/socket.h")]
571 public const int SOCK_DGRAM;
572 [CCode (cheader_filename = "sys/socket.h")]
573 public const int SOCK_RAW;
574 [CCode (cheader_filename = "sys/socket.h")]
575 public const int SOCK_SEQPACKET;
576 [CCode (cheader_filename = "sys/socket.h")]
577 public const int SOCK_STREAM;
578 [CCode (cheader_filename = "sys/socket.h")]
579 public const int AF_INET;
580 [CCode (cheader_filename = "sys/socket.h")]
581 public const int AF_INET6;
582 [CCode (cheader_filename = "sys/socket.h")]
583 public const int AF_UNIX;
584 [CCode (cheader_filename = "sys/socket.h")]
585 public int socket (int domain, int type, int protocol);
587 [CCode (cheader_filename = "sys/stat.h")]
588 public const mode_t S_IFMT;
589 [CCode (cheader_filename = "sys/stat.h")]
590 public const mode_t S_IFBLK;
591 [CCode (cheader_filename = "sys/stat.h")]
592 public const mode_t S_IFCHR;
593 [CCode (cheader_filename = "sys/stat.h")]
594 public const mode_t S_IFIFO;
595 [CCode (cheader_filename = "sys/stat.h")]
596 public const mode_t S_IFREG;
597 [CCode (cheader_filename = "sys/stat.h")]
598 public const mode_t S_IFDIR;
599 [CCode (cheader_filename = "sys/stat.h")]
600 public const mode_t S_IFLNK;
601 [CCode (cheader_filename = "sys/stat.h")]
602 public const mode_t S_IFSOCK;
604 [CCode (cheader_filename = "sys/stat.h")]
605 public const mode_t S_IRWXU;
606 [CCode (cheader_filename = "sys/stat.h")]
607 public const mode_t S_IRUSR;
608 [CCode (cheader_filename = "sys/stat.h")]
609 public const mode_t S_IWUSR;
610 [CCode (cheader_filename = "sys/stat.h")]
611 public const mode_t S_IXUSR;
612 [CCode (cheader_filename = "sys/stat.h")]
613 public const mode_t S_IRWXG;
614 [CCode (cheader_filename = "sys/stat.h")]
615 public const mode_t S_IRGRP;
616 [CCode (cheader_filename = "sys/stat.h")]
617 public const mode_t S_IWGRP;
618 [CCode (cheader_filename = "sys/stat.h")]
619 public const mode_t S_IXGRP;
620 [CCode (cheader_filename = "sys/stat.h")]
621 public const mode_t S_IRWXO;
622 [CCode (cheader_filename = "sys/stat.h")]
623 public const mode_t S_IROTH;
624 [CCode (cheader_filename = "sys/stat.h")]
625 public const mode_t S_IWOTH;
626 [CCode (cheader_filename = "sys/stat.h")]
627 public const mode_t S_IXOTH;
628 [CCode (cheader_filename = "sys/stat.h")]
629 public const mode_t S_ISUID;
630 [CCode (cheader_filename = "sys/stat.h")]
631 public const mode_t S_ISGID;
632 [CCode (cheader_filename = "sys/stat.h")]
633 public const mode_t S_ISVTX;
635 [CCode (cheader_filename = "sys/stat.h")]
636 public bool S_ISBLK (mode_t mode);
637 [CCode (cheader_filename = "sys/stat.h")]
638 public bool S_ISCHR (mode_t mode);
639 [CCode (cheader_filename = "sys/stat.h")]
640 public bool S_ISDIR (mode_t mode);
641 [CCode (cheader_filename = "sys/stat.h")]
642 public bool S_ISFIFO (mode_t mode);
643 [CCode (cheader_filename = "sys/stat.h")]
644 public bool S_ISREG (mode_t mode);
645 [CCode (cheader_filename = "sys/stat.h")]
646 public bool S_ISLNK (mode_t mode);
647 [CCode (cheader_filename = "sys/stat.h")]
648 public bool S_ISSOCK (mode_t mode);
650 [CCode (cheader_filename = "sys/stat.h", cname = "struct stat")]
654 public mode_t st_mode;
655 public nlink_t st_nlink;
658 public dev_t st_rdev;
659 public size_t st_size;
660 public time_t st_atime;
661 public time_t st_mtime;
662 public time_t st_ctime;
663 public blksize_t st_blksize;
664 public blkcnt_t st_blocks;
668 [IntegerType (rank = 9)]
669 [CCode (cheader_filename = "sys/statvfs.h")]
670 public struct fsblkcnt_t {
674 [IntegerType (rank = 9)]
675 [CCode (cheader_filename = "sys/statvfs.h")]
676 public struct fsfilcnt_t {
679 [CCode (cheader_filename = "sys/statvfs.h", cname = "struct statvfs")]
680 public struct statvfs {
681 public ulong f_bsize;
682 public ulong f_frsize;
683 public fsblkcnt_t f_blocks;
684 public fsblkcnt_t f_bfree;
685 public fsblkcnt_t f_bavail;
686 public fsfilcnt_t f_files;
687 public fsfilcnt_t f_ffree;
688 public fsfilcnt_t f_favail;
692 [IntegerType (rank = 9)]
693 [CCode (cheader_filename = "sys/types.h")]
694 public struct off_t {
698 [IntegerType (rank = 9)]
699 [CCode (cheader_filename = "sys/types.h")]
700 public struct uid_t {
704 [IntegerType (rank = 9)]
705 [CCode (cheader_filename = "sys/types.h")]
706 public struct gid_t {
710 [IntegerType (rank = 9)]
711 [CCode (cheader_filename = "sys/types.h")]
712 public struct mode_t {
716 [IntegerType (rank = 9)]
717 [CCode (cheader_filename = "sys/types.h")]
718 public struct dev_t {
722 [IntegerType (rank = 9)]
723 [CCode (cheader_filename = "sys/types.h")]
724 public struct ino_t {
728 [IntegerType (rank = 9)]
729 [CCode (cheader_filename = "sys/types.h")]
730 public struct nlink_t {
734 [IntegerType (rank = 9)]
735 [CCode (cheader_filename = "sys/types.h")]
736 public struct blksize_t {
740 [IntegerType (rank = 9)]
741 [CCode (cheader_filename = "sys/types.h")]
742 public struct blkcnt_t {
745 [CCode (cheader_filename = "time.h")]
758 [CCode (cheader_filename = "time.h")]
759 public struct timespec {
764 [CCode (cheader_filename = "unistd.h")]
765 public int close (int fd);
766 [CCode (cheader_filename = "unistd.h")]
767 public int execl (string path, params string[] arg);
768 [CCode (cheader_filename = "unistd.h")]
769 public ssize_t read (int fd, void* buf, size_t count);
770 [CCode (cheader_filename = "unistd.h")]
771 public ssize_t write (int fd, void* buf, size_t count);