]> git.wh0rd.org - ICEs.git/blob - 147739/gconf.i.0
initial import
[ICEs.git] / 147739 / gconf.i.0
1 # 1 "gconf.c"
2 # 1 "<built-in>"
3 #define __STDC_HOSTED__ 1
4 #define __GNUC__ 3
5 #define __GNUC_MINOR__ 4
6 #define __GNUC_PATCHLEVEL__ 6
7 #define __SIZE_TYPE__ unsigned int
8 #define __PTRDIFF_TYPE__ int
9 #define __WCHAR_TYPE__ long int
10 #define __WINT_TYPE__ unsigned int
11 #define __GXX_ABI_VERSION 1002
12 #define __SCHAR_MAX__ 127
13 #define __SHRT_MAX__ 32767
14 #define __INT_MAX__ 2147483647
15 #define __LONG_MAX__ 2147483647L
16 #define __LONG_LONG_MAX__ 9223372036854775807LL
17 #define __WCHAR_MAX__ 2147483647
18 #define __CHAR_BIT__ 8
19 #define __FLT_EVAL_METHOD__ 0
20 #define __FLT_RADIX__ 2
21 #define __FLT_MANT_DIG__ 24
22 #define __FLT_DIG__ 6
23 #define __FLT_MIN_EXP__ (-125)
24 #define __FLT_MIN_10_EXP__ (-37)
25 #define __FLT_MAX_EXP__ 128
26 #define __FLT_MAX_10_EXP__ 38
27 #define __FLT_MAX__ 3.40282347e+38F
28 #define __FLT_MIN__ 1.17549435e-38F
29 #define __FLT_EPSILON__ 1.19209290e-7F
30 #define __FLT_DENORM_MIN__ 1.40129846e-45F
31 #define __FLT_HAS_INFINITY__ 1
32 #define __FLT_HAS_QUIET_NAN__ 1
33 #define __DBL_MANT_DIG__ 53
34 #define __DBL_DIG__ 15
35 #define __DBL_MIN_EXP__ (-1021)
36 #define __DBL_MIN_10_EXP__ (-307)
37 #define __DBL_MAX_EXP__ 1024
38 #define __DBL_MAX_10_EXP__ 308
39 #define __DBL_MAX__ 1.7976931348623157e+308
40 #define __DBL_MIN__ 2.2250738585072014e-308
41 #define __DBL_EPSILON__ 2.2204460492503131e-16
42 #define __DBL_DENORM_MIN__ 4.9406564584124654e-324
43 #define __DBL_HAS_INFINITY__ 1
44 #define __DBL_HAS_QUIET_NAN__ 1
45 #define __LDBL_MANT_DIG__ 64
46 #define __LDBL_DIG__ 18
47 #define __LDBL_MIN_EXP__ (-16381)
48 #define __LDBL_MIN_10_EXP__ (-4931)
49 #define __LDBL_MAX_EXP__ 16384
50 #define __LDBL_MAX_10_EXP__ 4932
51 #define __DECIMAL_DIG__ 21
52 #define __LDBL_MAX__ 1.18973149535723176502e+4932L
53 #define __LDBL_MIN__ 3.36210314311209350626e-4932L
54 #define __LDBL_EPSILON__ 1.08420217248550443401e-19L
55 #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
56 #define __LDBL_HAS_INFINITY__ 1
57 #define __LDBL_HAS_QUIET_NAN__ 1
58 #define __REGISTER_PREFIX__
59 #define __USER_LABEL_PREFIX__
60 #define __VERSION__ "3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)"
61 #define __OPTIMIZE_SIZE__ 1
62 #define __OPTIMIZE__ 1
63 #define __FINITE_MATH_ONLY__ 0
64
65
66 #define __i386 1
67 #define __i386__ 1
68 #define i386 1
69 #define __tune_pentium4__ 1
70 #define __MMX__ 1
71 #define __SSE__ 1
72 #define __SSE2__ 1
73 #define __SSE_MATH__ 1
74 #define __SSE2_MATH__ 1
75 #define __gnu_linux__ 1
76 #define __linux 1
77 #define __linux__ 1
78 #define linux 1
79 #define __unix 1
80 #define __unix__ 1
81 #define unix 1
82
83
84
85 #define __PIC__ 1
86 #define __pic__ 1
87 #define __ELF__ 1
88 # 1 "<command line>"
89 #define HAVE_CONFIG_H 1
90 #define PIC 1
91 # 1 "gconf.c"
92 # 33 "gconf.c"
93 # 1 "../../src/include/platform.h" 1
94 # 29 "../../src/include/platform.h"
95 #define PLATFORM_H
96
97
98 #define HAVE_USED_CONFIG_H
99 # 1 "../../config.h" 1
100
101
102
103 #define _GNU_SOURCE 1
104
105
106
107
108
109 #define CURSES_LOC <ncurses.h>
110
111
112
113
114
115 #define DATADIR "/usr/share/GNUnet/"
116 # 26 "../../config.h"
117 #define HAVE_ARGZ_APPEND 1
118
119
120 #define HAVE_ARGZ_CREATE_SEP 1
121
122
123 #define HAVE_ARGZ_H 1
124
125
126 #define HAVE_ARGZ_INSERT 1
127
128
129 #define HAVE_ARGZ_NEXT 1
130
131
132 #define HAVE_ARGZ_STRINGIFY 1
133
134
135 #define HAVE_ARPA_INET_H 1
136
137
138 #define HAVE_ASSERT_H 1
139
140
141 #define HAVE_ATOLL 1
142 # 59 "../../config.h"
143 #define HAVE_CLOSEDIR 1
144
145
146 #define HAVE_CTYPE_H 1
147
148
149 #define HAVE_CURSES 1
150
151
152
153
154
155
156
157 #define HAVE_DIRENT_H 1
158 # 82 "../../config.h"
159 #define HAVE_DLERROR 1
160
161
162 #define HAVE_DLFCN_H 1
163 # 94 "../../config.h"
164 #define HAVE_DUP2 1
165
166
167
168
169
170 #define HAVE_ERRNO_H 1
171
172
173 #define HAVE_ERROR_T 1
174
175
176 #define HAVE_EXTRACTOR_H 1
177
178
179 #define HAVE_FCNTL_H 1
180
181
182 #define HAVE_FDATASYNC 1
183
184
185 #define HAVE_FLOOR 1
186
187
188 #define HAVE_FORK 1
189
190
191 #define HAVE_FSEEKO 1
192
193
194 #define HAVE_FTRUNCATE 1
195
196
197 #define HAVE_GETCWD 1
198
199
200 #define HAVE_GETHOSTBYNAME 1
201
202
203 #define HAVE_GETHOSTNAME 1
204
205
206 #define HAVE_GETLOADAVG 1
207
208
209 #define HAVE_GETRUSAGE 1
210
211
212
213
214
215 #define HAVE_GETTIMEOFDAY 1
216
217
218 #define HAVE_GMP_H 1
219
220
221 #define HAVE_GMTIME 1
222
223
224 #define HAVE_GMTIME_R 1
225
226
227 #define HAVE_GTK 1
228 # 166 "../../config.h"
229 #define HAVE_INTTYPES_H 1
230 # 175 "../../config.h"
231 #define HAVE_LANGINFO_H 1
232
233
234 #define HAVE_LIBDL 1
235
236
237 #define HAVE_LIBGMP 1
238
239
240
241
242
243 #define HAVE_LIBINTL_H 1
244 # 196 "../../config.h"
245 #define HAVE_LIBM 1
246
247
248 #define HAVE_LIBNCURSES 1
249
250
251 #define HAVE_LIBNSL 1
252 # 214 "../../config.h"
253 #define HAVE_LIBZ 1
254
255
256 #define HAVE_LIMITS_H 1
257
258
259 #define HAVE_LOCALE_H 1
260
261
262
263
264
265 #define HAVE_MALLOC_H 1
266
267
268 #define HAVE_MATH_H 1
269
270
271 #define HAVE_MEMCPY 1
272
273
274 #define HAVE_MEMMOVE 1
275
276
277 #define HAVE_MEMORY_H 1
278
279
280 #define HAVE_MEMSET 1
281
282
283 #define HAVE_MKDIR 1
284
285
286 #define HAVE_MKFIFO 1
287
288
289 #define HAVE_MKTIME 1
290
291
292 #define HAVE_MYSQL_MYSQL_H 1
293
294
295
296
297
298 #define HAVE_NETDB_H 1
299
300
301 #define HAVE_NETINET_IN_H 1
302
303
304
305
306
307 #define HAVE_OFF_T 1
308
309
310 #define HAVE_OPENDIR 1
311
312
313 #define HAVE_PRELOADED_SYMBOLS 1
314
315
316 #define HAVE_PTHREAD_H 1
317
318
319 #define HAVE_RAND 1
320
321
322 #define HAVE_READDIR 1
323
324
325
326
327
328 #define HAVE_RMDIR 1
329
330
331 #define HAVE_SELECT 1
332
333
334 #define HAVE_SETLOCALE 1
335
336
337
338
339
340 #define HAVE_SIGSET_T 1
341
342
343 #define HAVE_SIZE_T 1
344
345
346 #define HAVE_SOCKET 1
347
348
349
350
351
352 #define HAVE_STAT64 1
353
354
355
356
357
358
359 #define HAVE_STDINT_H 1
360
361
362 #define HAVE_STDIO_H 1
363
364
365 #define HAVE_STDLIB_H 1
366
367
368 #define HAVE_STRCASECMP 1
369
370
371 #define HAVE_STRCHR 1
372
373
374 #define HAVE_STRCMP 1
375
376
377 #define HAVE_STRDUP 1
378
379
380 #define HAVE_STRERROR 1
381
382
383 #define HAVE_STRFTIME 1
384
385
386 #define HAVE_STRINGS_H 1
387
388
389 #define HAVE_STRING_H 1
390 # 359 "../../config.h"
391 #define HAVE_STRNCASECMP 1
392
393
394 #define HAVE_STRRCHR 1
395
396
397 #define HAVE_STRSTR 1
398
399
400 #define HAVE_STRTOL 1
401 # 378 "../../config.h"
402 #define HAVE_SYS_FILE_H 1
403
404
405 #define HAVE_SYS_IOCTL_H 1
406
407
408 #define HAVE_SYS_MOUNT_H 1
409
410
411
412
413
414
415 #define HAVE_SYS_PARAM_H 1
416
417
418 #define HAVE_SYS_SELECT_H 1
419
420
421 #define HAVE_SYS_SOCKET_H 1
422
423
424 #define HAVE_SYS_STATVFS_H 1
425
426
427 #define HAVE_SYS_STAT_H 1
428
429
430 #define HAVE_SYS_SYSINFO_H 1
431
432
433 #define HAVE_SYS_TIME_H 1
434
435
436 #define HAVE_SYS_TYPES_H 1
437
438
439 #define HAVE_SYS_VFS_H 1
440
441
442 #define HAVE_SYS_WAIT_H 1
443
444
445 #define HAVE_UNAME 1
446
447
448 #define HAVE_UNISTD_H 1
449
450
451 #define HAVE_VFORK 1
452
453
454
455
456
457 #define HAVE_VPRINTF 1
458
459
460 #define HAVE_WORKING_FORK 1
461
462
463 #define HAVE_WORKING_VFORK 1
464
465
466 #define LINUX 1
467
468
469 #define LOCALEDIR "/usr/share/locale/"
470
471
472
473 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
474
475
476
477
478
479
480 #define LTDL_OBJDIR ".libs/"
481
482
483
484 #define LTDL_SHLIBPATH_VAR "LD_LIBRARY_PATH"
485
486
487 #define LTDL_SHLIB_EXT ".so"
488
489
490 #define LTDL_SYSSEARCHPATH "/lib:/usr/lib:/usr/local/lib://usr//lib/opengl/xorg-x11/lib:/usr/i686-pc-linux-gnu/lib:/usr/lib/gcc/i686-pc-linux-gnu/3.4.6:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6:/usr/lib/gcc/i686-pc-linux-gnu/4.1.1:/usr/lib/nspr:/usr/lib/nss:/usr/lib:/usr/lib/openmotif-2.2:/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/:/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/native_threads/:/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/client/:/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/server/:/usr/lib/qt4:/usr/kde/3.5/lib:/usr/qt/3/lib:/usr/kde/3.4/lib:/usr/kde/3.3/lib:/usr/games/lib:/usr/lib/jahshaka:/usr/lib/fltk-1.1:/usr/lib/octave-2.1.72"
491 # 487 "../../config.h"
492 #define PACKAGE "GNUnet"
493
494
495 #define PACKAGE_BUGREPORT "bug-gnunet@gnu.org"
496
497
498 #define PACKAGE_NAME "GNUnet"
499
500
501 #define PACKAGE_STRING "GNUnet 0.7.0d"
502
503
504 #define PACKAGE_TARNAME "gnunet"
505
506
507 #define PACKAGE_VERSION "0.7.0d"
508
509
510 #define RETSIGTYPE void
511
512
513 #define SELECT_TYPE_ARG1 int
514
515
516 #define SELECT_TYPE_ARG234 (fd_set *)
517
518
519 #define SELECT_TYPE_ARG5 (struct timeval *)
520 # 523 "../../config.h"
521 #define STDC_HEADERS 1
522
523
524 #define TIME_WITH_SYS_TIME 1
525
526
527
528
529
530 #define USE_IPV6 1
531
532
533 #define VERSION "0.7.0d"
534
535
536
537
538
539 #define _FILE_OFFSET_BITS 64
540 # 34 "../../src/include/platform.h" 2
541
542
543 # 1 "../../src/include/plibc.h" 1
544 # 29 "../../src/include/plibc.h"
545 #define _PLIBC_H_
546
547
548 #define SIGALRM 14
549 # 428 "../../src/include/plibc.h"
550 #define DIR_SEPARATOR '/'
551 #define DIR_SEPARATOR_STR "/"
552 #define NEWLINE "\n"
553
554
555
556
557 #define CREAT(p,m) creat(p, m)
558 #undef FOPEN
559 #define FOPEN(f,m) fopen(f, m)
560 #define OPENDIR(d) opendir(d)
561 #define OPEN(f) open(f)
562 #define CHDIR(d) chdir(d)
563 #define CLOSE(f) close(f)
564 #define RMDIR(f) rmdir(f)
565 #define ACCESS(p,m) access(p, m)
566 #define CHMOD(f,p) chmod(f, p)
567 #define FSTAT(h,b) fstat(h, b)
568 #define PIPE(h) pipe(h)
569 #define REMOVE(p) remove(p)
570 #define RENAME(o,n) rename(o, n)
571 #define STAT(p,b) stat(p, b)
572 #define STAT64(p,b) stat64(p, b)
573 #define UNLINK(f) unlink(f)
574 #define WRITE(f,b,n) write(f, b, n)
575 #define READ(f,b,n) read(f, b, n)
576 #define GN_FREAD(b,s,c,f) fread(b, s, c, f)
577 #define GN_FWRITE(b,s,c,f) fwrite(b, s, c, f)
578 #define SYMLINK(a,b) symlink(a, b)
579 #define MMAP(s,l,p,f,d,o) mmap(s, l, p, f, d, o)
580 #define MUNMAP(s,l) munmap(s, l)
581 #define STRERROR(i) strerror(i)
582 #define RANDOM() random()
583 #define READLINK(p,b,s) readlink(p, b, s)
584 #define LSTAT(p,b) lstat(p, b)
585 #define LSTAT64(p,b) lstat64(p, b)
586 #define PRINTF printf
587 #define FPRINTF fprintf
588 #define VPRINTF(f,a) vprintf(f, a)
589 #define VFPRINTF(s,f,a) vfprintf(s, f, a)
590 #define VSPRINTF(d,f,a) vsprintf(d, f, a)
591 #define VSNPRINTF(str,size,fmt,a) vsnprintf(str, size, fmt, a)
592 #define _REAL_SNPRINTF snprintf
593 #define SPRINTF sprintf
594 #define VSSCANF(s,f,a) vsscanf(s, f, a)
595 #define SSCANF sscanf
596 #define VFSCANF(s,f,a) vfscanf(s, f, a)
597 #define VSCANF(f,a) vscanf(f, a)
598 #define SCANF scanf
599 #define FSCANF fscanf
600 #define WAITPID(p,s,o) waitpid(p, s, o)
601 #define ACCEPT(s,a,l) accept(s, a, l)
602 #define BIND(s,n,l) bind(s, n, l)
603 #define CONNECT(s,n,l) connect(s, n, l)
604 #define GETPEERNAME(s,n,l) getpeername(s, n, l)
605 #define GETSOCKNAME(s,n,l) getsockname(s, n, l)
606 #define GETSOCKOPT(s,l,o,v,p) getsockopt(s, l, o, v, p)
607 #define LISTEN(s,b) listen(s, b)
608 #define RECV(s,b,l,f) recv(s, b, l, f)
609 #define RECVFROM(s,b,l,f,r,o) recvfrom(s, b, l, f, r, o)
610 #define SELECT(n,r,w,e,t) select(n, r, w, e, t)
611 #define SEND(s,b,l,f) send(s, b, l, f)
612 #define SENDTO(s,b,l,f,o,n) sendto(s, b, l, f, o, n)
613 #define SETSOCKOPT(s,l,o,v,n) setsockopt(s, l, o, v, n)
614 #define SHUTDOWN(s,h) shutdown(s, h)
615 #define SOCKET(a,t,p) socket(a, t, p)
616 #define GETHOSTBYADDR(a,l,t) gethostbyname(a, l, t)
617 #define GETHOSTBYNAME(n) gethostbyname(n)
618 # 37 "../../src/include/platform.h" 2
619
620
621
622
623
624 #define _XOPEN_SOURCE
625
626
627
628
629
630 #define VERBOSE_STATS 0
631
632
633
634
635
636
637 # 1 "/usr/include/pthread.h" 1 3 4
638 # 20 "/usr/include/pthread.h" 3 4
639 #define _PTHREAD_H 1
640
641 # 1 "/usr/include/features.h" 1 3 4
642 # 21 "/usr/include/features.h" 3 4
643 #define _FEATURES_H 1
644 # 93 "/usr/include/features.h" 3 4
645 #undef __USE_ISOC99
646 #undef __USE_POSIX
647 #undef __USE_POSIX2
648 #undef __USE_POSIX199309
649 #undef __USE_POSIX199506
650 #undef __USE_XOPEN
651 #undef __USE_XOPEN_EXTENDED
652 #undef __USE_UNIX98
653 #undef __USE_XOPEN2K
654 #undef __USE_LARGEFILE
655 #undef __USE_LARGEFILE64
656 #undef __USE_FILE_OFFSET64
657 #undef __USE_BSD
658 #undef __USE_SVID
659 #undef __USE_MISC
660 #undef __USE_ATFILE
661 #undef __USE_GNU
662 #undef __USE_REENTRANT
663 #undef __USE_FORTIFY_LEVEL
664 #undef __FAVOR_BSD
665 #undef __KERNEL_STRICT_NAMES
666
667
668
669
670 #define __KERNEL_STRICT_NAMES
671
672
673
674 #define __USE_ANSI 1
675 # 132 "/usr/include/features.h" 3 4
676 #define __GNUC_PREREQ(maj,min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
677 # 149 "/usr/include/features.h" 3 4
678 #undef _ISOC99_SOURCE
679 #define _ISOC99_SOURCE 1
680 #undef _POSIX_SOURCE
681 #define _POSIX_SOURCE 1
682 #undef _POSIX_C_SOURCE
683 #define _POSIX_C_SOURCE 199506L
684 #undef _XOPEN_SOURCE
685 #define _XOPEN_SOURCE 600
686 #undef _XOPEN_SOURCE_EXTENDED
687 #define _XOPEN_SOURCE_EXTENDED 1
688 #undef _LARGEFILE64_SOURCE
689 #define _LARGEFILE64_SOURCE 1
690 #undef _BSD_SOURCE
691 #define _BSD_SOURCE 1
692 #undef _SVID_SOURCE
693 #define _SVID_SOURCE 1
694 #undef _ATFILE_SOURCE
695 #define _ATFILE_SOURCE 1
696 # 185 "/usr/include/features.h" 3 4
697 #define __USE_ISOC99 1
698 # 203 "/usr/include/features.h" 3 4
699 #define __USE_POSIX 1
700
701
702
703 #define __USE_POSIX2 1
704
705
706
707 #define __USE_POSIX199309 1
708
709
710
711 #define __USE_POSIX199506 1
712
713
714
715
716
717
718
719 #define __USE_XOPEN 1
720
721 #define __USE_XOPEN_EXTENDED 1
722 #define __USE_UNIX98 1
723 #undef _LARGEFILE_SOURCE
724 #define _LARGEFILE_SOURCE 1
725
726 #define __USE_XOPEN2K 1
727 #undef __USE_ISOC99
728 #define __USE_ISOC99 1
729 # 242 "/usr/include/features.h" 3 4
730 #define __USE_LARGEFILE 1
731
732
733
734 #define __USE_LARGEFILE64 1
735
736
737
738 #define __USE_FILE_OFFSET64 1
739
740
741
742 #define __USE_MISC 1
743
744
745
746 #define __USE_BSD 1
747
748
749
750 #define __USE_SVID 1
751
752
753
754 #define __USE_ATFILE 1
755
756
757
758 #define __USE_GNU 1
759 # 285 "/usr/include/features.h" 3 4
760 #define __USE_FORTIFY_LEVEL 0
761
762
763
764 #define __STDC_IEC_559__ 1
765 #define __STDC_IEC_559_COMPLEX__ 1
766
767
768 #define __STDC_ISO_10646__ 200009L
769
770
771
772
773
774
775
776 #undef __GNU_LIBRARY__
777 #define __GNU_LIBRARY__ 6
778
779
780
781 #define __GLIBC__ 2
782 #define __GLIBC_MINOR__ 4
783
784 #define __GLIBC_PREREQ(maj,min) ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
785
786
787
788
789
790
791
792 #define __GLIBC_HAVE_LONG_LONG 1
793
794
795
796
797
798 # 1 "/usr/include/sys/cdefs.h" 1 3 4
799 # 21 "/usr/include/sys/cdefs.h" 3 4
800 #define _SYS_CDEFS_H 1
801 # 36 "/usr/include/sys/cdefs.h" 3 4
802 #undef __P
803 #undef __PMT
804 # 47 "/usr/include/sys/cdefs.h" 3 4
805 #define __THROW __attribute__ ((__nothrow__))
806 #define __NTH(fct) __attribute__ ((__nothrow__)) fct
807 # 74 "/usr/include/sys/cdefs.h" 3 4
808 #define __P(args) args
809 #define __PMT(args) args
810
811
812
813
814 #define __CONCAT(x,y) x ## y
815 #define __STRING(x) #x
816
817
818 #define __ptr_t void *
819 #define __long_double_t long double
820
821
822
823
824
825
826
827 #define __BEGIN_DECLS
828 #define __END_DECLS
829 # 114 "/usr/include/sys/cdefs.h" 3 4
830 #define __BEGIN_NAMESPACE_STD
831 #define __END_NAMESPACE_STD
832 #define __USING_NAMESPACE_STD(name)
833 #define __BEGIN_NAMESPACE_C99
834 #define __END_NAMESPACE_C99
835 #define __USING_NAMESPACE_C99(name)
836
837
838
839
840
841 #define __bounded
842 #define __unbounded
843 #define __ptrvalue
844
845
846
847
848 #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1)
849 #define __bos0(ptr) __builtin_object_size (ptr, 0)
850 #define __warndecl(name,msg) extern void name (void)
851
852
853
854
855
856 #define __flexarr []
857 # 167 "/usr/include/sys/cdefs.h" 3 4
858 #define __REDIRECT(name,proto,alias) name proto __asm__ (__ASMNAME (#alias))
859
860
861
862
863 #define __REDIRECT_NTH(name,proto,alias) name proto __asm__ (__ASMNAME (#alias)) __THROW
864
865
866 #define __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
867 #define __ASMNAME2(prefix,cname) __STRING (prefix) cname
868 # 197 "/usr/include/sys/cdefs.h" 3 4
869 #define __attribute_malloc__ __attribute__ ((__malloc__))
870 # 206 "/usr/include/sys/cdefs.h" 3 4
871 #define __attribute_pure__ __attribute__ ((__pure__))
872 # 215 "/usr/include/sys/cdefs.h" 3 4
873 #define __attribute_used__ __attribute__ ((__used__))
874 #define __attribute_noinline__ __attribute__ ((__noinline__))
875
876
877
878
879
880
881
882 #define __attribute_deprecated__ __attribute__ ((__deprecated__))
883 # 236 "/usr/include/sys/cdefs.h" 3 4
884 #define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x)))
885 # 246 "/usr/include/sys/cdefs.h" 3 4
886 #define __attribute_format_strfmon__(a,b) __attribute__ ((__format__ (__strfmon__, a, b)))
887 # 255 "/usr/include/sys/cdefs.h" 3 4
888 #define __nonnull(params) __attribute__ ((__nonnull__ params))
889
890
891
892
893
894
895
896 #define __attribute_warn_unused_result__ __attribute__ ((__warn_unused_result__))
897 # 272 "/usr/include/sys/cdefs.h" 3 4
898 #define __wur
899
900
901
902
903 #define __always_inline __inline __attribute__ ((__always_inline__))
904 # 299 "/usr/include/sys/cdefs.h" 3 4
905 #define __restrict_arr __restrict
906 # 313 "/usr/include/sys/cdefs.h" 3 4
907 # 1 "/usr/include/bits/wordsize.h" 1 3 4
908 # 19 "/usr/include/bits/wordsize.h" 3 4
909 #define __WORDSIZE 32
910 # 314 "/usr/include/sys/cdefs.h" 2 3 4
911 # 331 "/usr/include/sys/cdefs.h" 3 4
912 #define __LDBL_REDIR1(name,proto,alias) name proto
913 #define __LDBL_REDIR(name,proto) name proto
914 #define __LDBL_REDIR1_NTH(name,proto,alias) name proto __THROW
915 #define __LDBL_REDIR_NTH(name,proto) name proto __THROW
916 #define __LDBL_REDIR_DECL(name)
917 # 324 "/usr/include/features.h" 2 3 4
918 # 346 "/usr/include/features.h" 3 4
919 # 1 "/usr/include/gnu/stubs.h" 1 3 4
920
921
922
923 # 1 "/usr/include/bits/wordsize.h" 1 3 4
924 # 19 "/usr/include/bits/wordsize.h" 3 4
925 #define __WORDSIZE 32
926 # 5 "/usr/include/gnu/stubs.h" 2 3 4
927
928
929 # 1 "/usr/include/gnu/stubs-32.h" 1 3 4
930 # 10 "/usr/include/gnu/stubs-32.h" 3 4
931 #define __stub___kernel_cosl
932 #define __stub___kernel_sinl
933 #define __stub___kernel_tanl
934 #define __stub_chflags
935 #define __stub_fattach
936 #define __stub_fchflags
937 #define __stub_fdetach
938 #define __stub_gtty
939 #define __stub_inotify_add_watch
940 #define __stub_inotify_init
941 #define __stub_inotify_rm_watch
942 #define __stub_lchmod
943 #define __stub_lutimes
944 #define __stub_revoke
945 #define __stub_setlogin
946 #define __stub_sigreturn
947 #define __stub_sstk
948 #define __stub_stty
949 #define __stub_unshare
950 # 8 "/usr/include/gnu/stubs.h" 2 3 4
951 # 347 "/usr/include/features.h" 2 3 4
952 # 23 "/usr/include/pthread.h" 2 3 4
953 # 1 "/usr/include/sched.h" 1 3 4
954 # 21 "/usr/include/sched.h" 3 4
955 #define _SCHED_H 1
956
957
958
959
960 # 1 "/usr/include/bits/types.h" 1 3 4
961 # 25 "/usr/include/bits/types.h" 3 4
962 #define _BITS_TYPES_H 1
963
964
965 # 1 "/usr/include/bits/wordsize.h" 1 3 4
966 # 19 "/usr/include/bits/wordsize.h" 3 4
967 #define __WORDSIZE 32
968 # 29 "/usr/include/bits/types.h" 2 3 4
969
970 #define __need_size_t
971 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4
972 # 188 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4
973 #define __size_t__
974 #define __SIZE_T__
975 #define _SIZE_T
976 #define _SYS_SIZE_T_H
977 #define _T_SIZE_
978 #define _T_SIZE
979 #define __SIZE_T
980 #define _SIZE_T_
981 #define _BSD_SIZE_T_
982 #define _SIZE_T_DEFINED_
983 #define _SIZE_T_DEFINED
984 #define _BSD_SIZE_T_DEFINED_
985 #define _SIZE_T_DECLARED
986 #define ___int_size_t_h
987 #define _GCC_SIZE_T
988 #define _SIZET_
989
990
991
992 #define __size_t
993
994
995
996
997
998 typedef unsigned int size_t;
999 # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4
1000 #undef __need_size_t
1001 # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4
1002 #undef __need_NULL
1003 # 32 "/usr/include/bits/types.h" 2 3 4
1004
1005
1006 typedef unsigned char __u_char;
1007 typedef unsigned short int __u_short;
1008 typedef unsigned int __u_int;
1009 typedef unsigned long int __u_long;
1010
1011
1012 typedef signed char __int8_t;
1013 typedef unsigned char __uint8_t;
1014 typedef signed short int __int16_t;
1015 typedef unsigned short int __uint16_t;
1016 typedef signed int __int32_t;
1017 typedef unsigned int __uint32_t;
1018
1019
1020
1021
1022 __extension__ typedef signed long long int __int64_t;
1023 __extension__ typedef unsigned long long int __uint64_t;
1024
1025
1026
1027
1028
1029
1030
1031 __extension__ typedef long long int __quad_t;
1032 __extension__ typedef unsigned long long int __u_quad_t;
1033 # 102 "/usr/include/bits/types.h" 3 4
1034 #define __S16_TYPE short int
1035 #define __U16_TYPE unsigned short int
1036 #define __S32_TYPE int
1037 #define __U32_TYPE unsigned int
1038 #define __SLONGWORD_TYPE long int
1039 #define __ULONGWORD_TYPE unsigned long int
1040
1041 #define __SQUAD_TYPE __quad_t
1042 #define __UQUAD_TYPE __u_quad_t
1043 #define __SWORD_TYPE int
1044 #define __UWORD_TYPE unsigned int
1045 #define __SLONG32_TYPE long int
1046 #define __ULONG32_TYPE unsigned long int
1047 #define __S64_TYPE __quad_t
1048 #define __U64_TYPE __u_quad_t
1049
1050
1051 #define __STD_TYPE __extension__ typedef
1052 # 134 "/usr/include/bits/types.h" 3 4
1053 # 1 "/usr/include/bits/typesizes.h" 1 3 4
1054 # 25 "/usr/include/bits/typesizes.h" 3 4
1055 #define _BITS_TYPESIZES_H 1
1056
1057
1058
1059
1060 #define __DEV_T_TYPE __UQUAD_TYPE
1061 #define __UID_T_TYPE __U32_TYPE
1062 #define __GID_T_TYPE __U32_TYPE
1063 #define __INO_T_TYPE __ULONGWORD_TYPE
1064 #define __INO64_T_TYPE __UQUAD_TYPE
1065 #define __MODE_T_TYPE __U32_TYPE
1066 #define __NLINK_T_TYPE __UWORD_TYPE
1067 #define __OFF_T_TYPE __SLONGWORD_TYPE
1068 #define __OFF64_T_TYPE __SQUAD_TYPE
1069 #define __PID_T_TYPE __S32_TYPE
1070 #define __RLIM_T_TYPE __ULONGWORD_TYPE
1071 #define __RLIM64_T_TYPE __UQUAD_TYPE
1072 #define __BLKCNT_T_TYPE __SLONGWORD_TYPE
1073 #define __BLKCNT64_T_TYPE __SQUAD_TYPE
1074 #define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
1075 #define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
1076 #define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
1077 #define __FSFILCNT64_T_TYPE __UQUAD_TYPE
1078 #define __ID_T_TYPE __U32_TYPE
1079 #define __CLOCK_T_TYPE __SLONGWORD_TYPE
1080 #define __TIME_T_TYPE __SLONGWORD_TYPE
1081 #define __USECONDS_T_TYPE __U32_TYPE
1082 #define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
1083 #define __DADDR_T_TYPE __S32_TYPE
1084 #define __SWBLK_T_TYPE __SLONGWORD_TYPE
1085 #define __KEY_T_TYPE __S32_TYPE
1086 #define __CLOCKID_T_TYPE __S32_TYPE
1087 #define __TIMER_T_TYPE void *
1088 #define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
1089 #define __FSID_T_TYPE struct { int __val[2]; }
1090 #define __SSIZE_T_TYPE __SWORD_TYPE
1091
1092
1093 #define __FD_SETSIZE 1024
1094 # 135 "/usr/include/bits/types.h" 2 3 4
1095
1096
1097 __extension__ typedef __u_quad_t __dev_t;
1098 __extension__ typedef unsigned int __uid_t;
1099 __extension__ typedef unsigned int __gid_t;
1100 __extension__ typedef unsigned long int __ino_t;
1101 __extension__ typedef __u_quad_t __ino64_t;
1102 __extension__ typedef unsigned int __mode_t;
1103 __extension__ typedef unsigned int __nlink_t;
1104 __extension__ typedef long int __off_t;
1105 __extension__ typedef __quad_t __off64_t;
1106 __extension__ typedef int __pid_t;
1107 __extension__ typedef struct { int __val[2]; } __fsid_t;
1108 __extension__ typedef long int __clock_t;
1109 __extension__ typedef unsigned long int __rlim_t;
1110 __extension__ typedef __u_quad_t __rlim64_t;
1111 __extension__ typedef unsigned int __id_t;
1112 __extension__ typedef long int __time_t;
1113 __extension__ typedef unsigned int __useconds_t;
1114 __extension__ typedef long int __suseconds_t;
1115
1116 __extension__ typedef int __daddr_t;
1117 __extension__ typedef long int __swblk_t;
1118 __extension__ typedef int __key_t;
1119
1120
1121 __extension__ typedef int __clockid_t;
1122
1123
1124 __extension__ typedef void * __timer_t;
1125
1126
1127 __extension__ typedef long int __blksize_t;
1128
1129
1130
1131
1132 __extension__ typedef long int __blkcnt_t;
1133 __extension__ typedef __quad_t __blkcnt64_t;
1134
1135
1136 __extension__ typedef unsigned long int __fsblkcnt_t;
1137 __extension__ typedef __u_quad_t __fsblkcnt64_t;
1138
1139
1140 __extension__ typedef unsigned long int __fsfilcnt_t;
1141 __extension__ typedef __u_quad_t __fsfilcnt64_t;
1142
1143 __extension__ typedef int __ssize_t;
1144
1145
1146
1147 typedef __off64_t __loff_t;
1148 typedef __quad_t *__qaddr_t;
1149 typedef char *__caddr_t;
1150
1151
1152 __extension__ typedef int __intptr_t;
1153
1154
1155 __extension__ typedef unsigned int __socklen_t;
1156
1157
1158 #undef __STD_TYPE
1159 # 27 "/usr/include/sched.h" 2 3 4
1160
1161 #define __need_timespec
1162 # 1 "/usr/include/time.h" 1 3 4
1163 # 68 "/usr/include/time.h" 3 4
1164 #undef __need_clock_t
1165 # 84 "/usr/include/time.h" 3 4
1166 #undef __need_time_t
1167 # 96 "/usr/include/time.h" 3 4
1168 #undef __clockid_time_t
1169 # 108 "/usr/include/time.h" 3 4
1170 #undef __need_timer_t
1171
1172
1173
1174
1175
1176
1177 #define __timespec_defined 1
1178
1179
1180
1181
1182
1183 struct timespec
1184 {
1185 __time_t tv_sec;
1186 long int tv_nsec;
1187 };
1188
1189
1190 #undef __need_timespec
1191 # 30 "/usr/include/sched.h" 2 3 4
1192
1193
1194 # 1 "/usr/include/bits/sched.h" 1 3 4
1195 # 29 "/usr/include/bits/sched.h" 3 4
1196 #define SCHED_OTHER 0
1197 #define SCHED_FIFO 1
1198 #define SCHED_RR 2
1199
1200 #define SCHED_BATCH 3
1201
1202
1203
1204
1205 #define CSIGNAL 0x000000ff
1206 #define CLONE_VM 0x00000100
1207 #define CLONE_FS 0x00000200
1208 #define CLONE_FILES 0x00000400
1209 #define CLONE_SIGHAND 0x00000800
1210 #define CLONE_PTRACE 0x00002000
1211 #define CLONE_VFORK 0x00004000
1212
1213 #define CLONE_PARENT 0x00008000
1214
1215 #define CLONE_THREAD 0x00010000
1216 #define CLONE_NEWNS 0x00020000
1217 #define CLONE_SYSVSEM 0x00040000
1218 #define CLONE_SETTLS 0x00080000
1219 #define CLONE_PARENT_SETTID 0x00100000
1220
1221 #define CLONE_CHILD_CLEARTID 0x00200000
1222
1223 #define CLONE_DETACHED 0x00400000
1224 #define CLONE_UNTRACED 0x00800000
1225
1226 #define CLONE_CHILD_SETTID 0x01000000
1227
1228 #define CLONE_STOPPED 0x02000000
1229
1230
1231
1232 struct sched_param
1233 {
1234 int __sched_priority;
1235 };
1236
1237
1238
1239
1240
1241 extern int clone (int (*__fn) (void *__arg), void *__child_stack,
1242 int __flags, void *__arg, ...) __attribute__ ((__nothrow__));
1243
1244
1245 extern int unshare (int __flags) __attribute__ ((__nothrow__));
1246
1247
1248
1249
1250
1251
1252
1253
1254 #define __defined_schedparam 1
1255
1256 struct __sched_param
1257 {
1258 int __sched_priority;
1259 };
1260 #undef __need_schedparam
1261
1262
1263
1264
1265 #define __cpu_set_t_defined
1266
1267 #define __CPU_SETSIZE 1024
1268 #define __NCPUBITS (8 * sizeof (__cpu_mask))
1269
1270
1271 typedef unsigned long int __cpu_mask;
1272
1273
1274 #define __CPUELT(cpu) ((cpu) / __NCPUBITS)
1275 #define __CPUMASK(cpu) ((__cpu_mask) 1 << ((cpu) % __NCPUBITS))
1276
1277
1278 typedef struct
1279 {
1280 __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))];
1281 } cpu_set_t;
1282
1283
1284 #define __CPU_ZERO(cpusetp) do { unsigned int __i; cpu_set_t *__arr = (cpusetp); for (__i = 0; __i < sizeof (cpu_set_t) / sizeof (__cpu_mask); ++__i) __arr->__bits[__i] = 0; } while (0)
1285
1286
1287
1288
1289
1290
1291 #define __CPU_SET(cpu,cpusetp) ((cpusetp)->__bits[__CPUELT (cpu)] |= __CPUMASK (cpu))
1292
1293 #define __CPU_CLR(cpu,cpusetp) ((cpusetp)->__bits[__CPUELT (cpu)] &= ~__CPUMASK (cpu))
1294
1295 #define __CPU_ISSET(cpu,cpusetp) (((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0)
1296 # 33 "/usr/include/sched.h" 2 3 4
1297
1298 #define sched_priority __sched_priority
1299
1300
1301
1302
1303
1304 extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param)
1305 __attribute__ ((__nothrow__));
1306
1307
1308 extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __attribute__ ((__nothrow__));
1309
1310
1311 extern int sched_setscheduler (__pid_t __pid, int __policy,
1312 __const struct sched_param *__param) __attribute__ ((__nothrow__));
1313
1314
1315 extern int sched_getscheduler (__pid_t __pid) __attribute__ ((__nothrow__));
1316
1317
1318 extern int sched_yield (void) __attribute__ ((__nothrow__));
1319
1320
1321 extern int sched_get_priority_max (int __algorithm) __attribute__ ((__nothrow__));
1322
1323
1324 extern int sched_get_priority_min (int __algorithm) __attribute__ ((__nothrow__));
1325
1326
1327 extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __attribute__ ((__nothrow__));
1328
1329
1330
1331
1332 #define CPU_SETSIZE __CPU_SETSIZE
1333 #define CPU_SET(cpu,cpusetp) __CPU_SET (cpu, cpusetp)
1334 #define CPU_CLR(cpu,cpusetp) __CPU_CLR (cpu, cpusetp)
1335 #define CPU_ISSET(cpu,cpusetp) __CPU_ISSET (cpu, cpusetp)
1336 #define CPU_ZERO(cpusetp) __CPU_ZERO (cpusetp)
1337
1338
1339
1340 extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
1341 __const cpu_set_t *__cpuset) __attribute__ ((__nothrow__));
1342
1343
1344 extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
1345 cpu_set_t *__cpuset) __attribute__ ((__nothrow__));
1346
1347
1348
1349 # 24 "/usr/include/pthread.h" 2 3 4
1350 # 1 "/usr/include/time.h" 1 3 4
1351 # 28 "/usr/include/time.h" 3 4
1352 #define _TIME_H 1
1353
1354
1355
1356
1357
1358
1359
1360
1361 #define __need_size_t
1362 #define __need_NULL
1363 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4
1364 # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4
1365 #undef __need_size_t
1366 # 397 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4
1367 #undef NULL
1368
1369
1370
1371
1372 #define NULL ((void *)0)
1373
1374
1375
1376
1377
1378 #undef __need_NULL
1379 # 40 "/usr/include/time.h" 2 3 4
1380
1381
1382
1383 # 1 "/usr/include/bits/time.h" 1 3 4
1384 # 26 "/usr/include/bits/time.h" 3 4
1385 #define _BITS_TIME_H 1
1386
1387
1388
1389
1390
1391
1392
1393 #define CLOCKS_PER_SEC 1000000l
1394 # 46 "/usr/include/bits/time.h" 3 4
1395 #define CLOCK_REALTIME 0
1396
1397 #define CLOCK_MONOTONIC 1
1398
1399 #define CLOCK_PROCESS_CPUTIME_ID 2
1400
1401 #define CLOCK_THREAD_CPUTIME_ID 3
1402
1403
1404 #define TIMER_ABSTIME 1
1405 # 44 "/usr/include/time.h" 2 3 4
1406 # 55 "/usr/include/time.h" 3 4
1407 #define __clock_t_defined 1
1408
1409
1410
1411
1412
1413 typedef __clock_t clock_t;
1414
1415
1416
1417
1418
1419
1420 #undef __need_clock_t
1421
1422
1423 #define __time_t_defined 1
1424
1425
1426
1427
1428
1429 typedef __time_t time_t;
1430
1431
1432
1433
1434
1435
1436 #undef __need_time_t
1437
1438
1439
1440 #define __clockid_t_defined 1
1441
1442
1443
1444
1445 typedef __clockid_t clockid_t;
1446
1447
1448 #undef __clockid_time_t
1449
1450
1451
1452 #define __timer_t_defined 1
1453
1454
1455
1456
1457 typedef __timer_t timer_t;
1458
1459
1460 #undef __need_timer_t
1461 # 128 "/usr/include/time.h" 3 4
1462 #undef __need_timespec
1463
1464
1465
1466
1467
1468 struct tm
1469 {
1470 int tm_sec;
1471 int tm_min;
1472 int tm_hour;
1473 int tm_mday;
1474 int tm_mon;
1475 int tm_year;
1476 int tm_wday;
1477 int tm_yday;
1478 int tm_isdst;
1479
1480
1481 long int tm_gmtoff;
1482 __const char *tm_zone;
1483
1484
1485
1486
1487 };
1488
1489
1490
1491
1492
1493
1494
1495
1496 struct itimerspec
1497 {
1498 struct timespec it_interval;
1499 struct timespec it_value;
1500 };
1501
1502
1503 struct sigevent;
1504
1505
1506
1507
1508
1509 typedef __pid_t pid_t;
1510 #define __pid_t_defined
1511
1512
1513
1514
1515
1516
1517
1518 extern clock_t clock (void) __attribute__ ((__nothrow__));
1519
1520
1521 extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
1522
1523
1524 extern double difftime (time_t __time1, time_t __time0)
1525 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1526
1527
1528 extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
1529
1530
1531
1532
1533
1534 extern size_t strftime (char *__restrict __s, size_t __maxsize,
1535 __const char *__restrict __format,
1536 __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
1537
1538
1539
1540
1541
1542 extern char *strptime (__const char *__restrict __s,
1543 __const char *__restrict __fmt, struct tm *__tp)
1544 __attribute__ ((__nothrow__));
1545
1546
1547
1548
1549
1550 # 1 "/usr/include/xlocale.h" 1 3 4
1551 # 22 "/usr/include/xlocale.h" 3 4
1552 #define _XLOCALE_H 1
1553
1554
1555
1556
1557
1558 typedef struct __locale_struct
1559 {
1560
1561 struct locale_data *__locales[13];
1562
1563
1564 const unsigned short int *__ctype_b;
1565 const int *__ctype_tolower;
1566 const int *__ctype_toupper;
1567
1568
1569 const char *__names[13];
1570 } *__locale_t;
1571 # 217 "/usr/include/time.h" 2 3 4
1572
1573 extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
1574 __const char *__restrict __format,
1575 __const struct tm *__restrict __tp,
1576 __locale_t __loc) __attribute__ ((__nothrow__));
1577
1578 extern char *strptime_l (__const char *__restrict __s,
1579 __const char *__restrict __fmt, struct tm *__tp,
1580 __locale_t __loc) __attribute__ ((__nothrow__));
1581
1582
1583
1584
1585
1586
1587 extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
1588
1589
1590
1591 extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
1592
1593
1594
1595
1596
1597 extern struct tm *gmtime_r (__const time_t *__restrict __timer,
1598 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
1599
1600
1601
1602 extern struct tm *localtime_r (__const time_t *__restrict __timer,
1603 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
1604
1605
1606
1607
1608
1609 extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
1610
1611
1612 extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
1613
1614
1615
1616
1617
1618
1619
1620 extern char *asctime_r (__const struct tm *__restrict __tp,
1621 char *__restrict __buf) __attribute__ ((__nothrow__));
1622
1623
1624 extern char *ctime_r (__const time_t *__restrict __timer,
1625 char *__restrict __buf) __attribute__ ((__nothrow__));
1626
1627
1628
1629
1630 extern char *__tzname[2];
1631 extern int __daylight;
1632 extern long int __timezone;
1633
1634
1635
1636
1637 extern char *tzname[2];
1638
1639
1640
1641 extern void tzset (void) __attribute__ ((__nothrow__));
1642
1643
1644
1645 extern int daylight;
1646 extern long int timezone;
1647
1648
1649
1650
1651
1652 extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
1653
1654
1655
1656
1657
1658 #define __isleap(year) ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
1659 # 312 "/usr/include/time.h" 3 4
1660 extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
1661
1662
1663 extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
1664
1665
1666 extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1667 # 327 "/usr/include/time.h" 3 4
1668 extern int nanosleep (__const struct timespec *__requested_time,
1669 struct timespec *__remaining);
1670
1671
1672
1673 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
1674
1675
1676 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
1677
1678
1679 extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
1680 __attribute__ ((__nothrow__));
1681
1682
1683
1684
1685
1686
1687 extern int clock_nanosleep (clockid_t __clock_id, int __flags,
1688 __const struct timespec *__req,
1689 struct timespec *__rem);
1690
1691
1692 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__));
1693
1694
1695
1696
1697 extern int timer_create (clockid_t __clock_id,
1698 struct sigevent *__restrict __evp,
1699 timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
1700
1701
1702 extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
1703
1704
1705 extern int timer_settime (timer_t __timerid, int __flags,
1706 __const struct itimerspec *__restrict __value,
1707 struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
1708
1709
1710 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
1711 __attribute__ ((__nothrow__));
1712
1713
1714 extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
1715 # 389 "/usr/include/time.h" 3 4
1716 extern int getdate_err;
1717 # 398 "/usr/include/time.h" 3 4
1718 extern struct tm *getdate (__const char *__string);
1719 # 412 "/usr/include/time.h" 3 4
1720 extern int getdate_r (__const char *__restrict __string,
1721 struct tm *__restrict __resbufp);
1722
1723
1724
1725 # 25 "/usr/include/pthread.h" 2 3 4
1726
1727 #define __need_sigset_t
1728 # 1 "/usr/include/signal.h" 1 3 4
1729 # 31 "/usr/include/signal.h" 3 4
1730
1731
1732 # 1 "/usr/include/bits/sigset.h" 1 3 4
1733 # 21 "/usr/include/bits/sigset.h" 3 4
1734 #define _SIGSET_H_types 1
1735
1736 typedef int __sig_atomic_t;
1737
1738
1739
1740 #define _SIGSET_NWORDS (1024 / (8 * sizeof (unsigned long int)))
1741 typedef struct
1742 {
1743 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
1744 } __sigset_t;
1745 # 34 "/usr/include/signal.h" 2 3 4
1746 # 49 "/usr/include/signal.h" 3 4
1747 #define __sigset_t_defined
1748 typedef __sigset_t sigset_t;
1749
1750 #undef __need_sigset_t
1751 # 400 "/usr/include/signal.h" 3 4
1752
1753 # 28 "/usr/include/pthread.h" 2 3 4
1754 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
1755 # 20 "/usr/include/bits/pthreadtypes.h" 3 4
1756 #define _BITS_PTHREADTYPES_H 1
1757
1758 #define __SIZEOF_PTHREAD_ATTR_T 36
1759 #define __SIZEOF_PTHREAD_MUTEX_T 24
1760 #define __SIZEOF_PTHREAD_MUTEXATTR_T 4
1761 #define __SIZEOF_PTHREAD_COND_T 48
1762 #define __SIZEOF_PTHREAD_COND_COMPAT_T 12
1763 #define __SIZEOF_PTHREAD_CONDATTR_T 4
1764 #define __SIZEOF_PTHREAD_RWLOCK_T 32
1765 #define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
1766 #define __SIZEOF_PTHREAD_BARRIER_T 20
1767 #define __SIZEOF_PTHREAD_BARRIERATTR_T 4
1768
1769
1770
1771
1772 typedef unsigned long int pthread_t;
1773
1774
1775 typedef union
1776 {
1777 char __size[36];
1778 long int __align;
1779 } pthread_attr_t;
1780
1781
1782 typedef struct __pthread_internal_slist
1783 {
1784 struct __pthread_internal_slist *__next;
1785 } __pthread_slist_t;
1786
1787
1788
1789
1790 typedef union
1791 {
1792 struct __pthread_mutex_s
1793 {
1794 int __lock;
1795 unsigned int __count;
1796 int __owner;
1797
1798
1799 int __kind;
1800 unsigned int __nusers;
1801 __extension__ union
1802 {
1803 int __spins;
1804 __pthread_slist_t __list;
1805 };
1806 } __data;
1807 char __size[24];
1808 long int __align;
1809 } pthread_mutex_t;
1810
1811 typedef union
1812 {
1813 char __size[4];
1814 long int __align;
1815 } pthread_mutexattr_t;
1816
1817
1818
1819
1820 typedef union
1821 {
1822 struct
1823 {
1824 int __lock;
1825 unsigned int __futex;
1826 __extension__ unsigned long long int __total_seq;
1827 __extension__ unsigned long long int __wakeup_seq;
1828 __extension__ unsigned long long int __woken_seq;
1829 void *__mutex;
1830 unsigned int __nwaiters;
1831 unsigned int __broadcast_seq;
1832 } __data;
1833 char __size[48];
1834 __extension__ long long int __align;
1835 } pthread_cond_t;
1836
1837 typedef union
1838 {
1839 char __size[4];
1840 long int __align;
1841 } pthread_condattr_t;
1842
1843
1844
1845 typedef unsigned int pthread_key_t;
1846
1847
1848
1849 typedef int pthread_once_t;
1850
1851
1852
1853
1854
1855 typedef union
1856 {
1857 struct
1858 {
1859 int __lock;
1860 unsigned int __nr_readers;
1861 unsigned int __readers_wakeup;
1862 unsigned int __writer_wakeup;
1863 unsigned int __nr_readers_queued;
1864 unsigned int __nr_writers_queued;
1865
1866
1867 unsigned int __flags;
1868 int __writer;
1869 } __data;
1870 char __size[32];
1871 long int __align;
1872 } pthread_rwlock_t;
1873
1874 typedef union
1875 {
1876 char __size[8];
1877 long int __align;
1878 } pthread_rwlockattr_t;
1879
1880
1881
1882
1883
1884 typedef volatile int pthread_spinlock_t;
1885
1886
1887
1888
1889 typedef union
1890 {
1891 char __size[20];
1892 long int __align;
1893 } pthread_barrier_t;
1894
1895 typedef union
1896 {
1897 char __size[4];
1898 int __align;
1899 } pthread_barrierattr_t;
1900
1901
1902
1903
1904 #define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
1905 # 29 "/usr/include/pthread.h" 2 3 4
1906 # 1 "/usr/include/bits/setjmp.h" 1 3 4
1907 # 22 "/usr/include/bits/setjmp.h" 3 4
1908 #define _BITS_SETJMP_H 1
1909
1910
1911
1912
1913
1914
1915 typedef int __jmp_buf[6];
1916 # 30 "/usr/include/pthread.h" 2 3 4
1917 # 1 "/usr/include/bits/wordsize.h" 1 3 4
1918 # 19 "/usr/include/bits/wordsize.h" 3 4
1919 #define __WORDSIZE 32
1920 # 31 "/usr/include/pthread.h" 2 3 4
1921
1922
1923
1924 enum
1925 {
1926 PTHREAD_CREATE_JOINABLE,
1927 #define PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_JOINABLE
1928 PTHREAD_CREATE_DETACHED
1929 #define PTHREAD_CREATE_DETACHED PTHREAD_CREATE_DETACHED
1930 };
1931
1932
1933
1934 enum
1935 {
1936 PTHREAD_MUTEX_TIMED_NP,
1937 PTHREAD_MUTEX_RECURSIVE_NP,
1938 PTHREAD_MUTEX_ERRORCHECK_NP,
1939 PTHREAD_MUTEX_ADAPTIVE_NP
1940
1941 ,
1942 PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
1943 PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
1944 PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,
1945 PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL
1946
1947
1948
1949 , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP
1950
1951 };
1952
1953
1954
1955
1956 enum
1957 {
1958 PTHREAD_MUTEX_STALLED_NP,
1959 PTHREAD_MUTEX_ROBUST_NP
1960 };
1961
1962
1963
1964
1965
1966 enum
1967 {
1968 PTHREAD_PRIO_NONE,
1969 PTHREAD_PRIO_INHERIT,
1970 PTHREAD_PRIO_PROTECT
1971 };
1972 # 98 "/usr/include/pthread.h" 3 4
1973 #define PTHREAD_MUTEX_INITIALIZER { { 0, 0, 0, 0, 0, { 0 } } }
1974
1975
1976 #define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }
1977
1978 #define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP { { 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0, { 0 } } }
1979
1980 #define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP { { 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0, { 0 } } }
1981
1982
1983
1984
1985
1986
1987
1988 enum
1989 {
1990 PTHREAD_RWLOCK_PREFER_READER_NP,
1991 PTHREAD_RWLOCK_PREFER_WRITER_NP,
1992 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP,
1993 PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP
1994 };
1995
1996
1997
1998
1999
2000
2001 #define PTHREAD_RWLOCK_INITIALIZER { { 0, 0, 0, 0, 0, 0, 0, 0 } }
2002 # 135 "/usr/include/pthread.h" 3 4
2003 #define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP { { 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 0 } }
2004
2005
2006
2007
2008
2009
2010
2011 enum
2012 {
2013 PTHREAD_INHERIT_SCHED,
2014 #define PTHREAD_INHERIT_SCHED PTHREAD_INHERIT_SCHED
2015 PTHREAD_EXPLICIT_SCHED
2016 #define PTHREAD_EXPLICIT_SCHED PTHREAD_EXPLICIT_SCHED
2017 };
2018
2019
2020
2021 enum
2022 {
2023 PTHREAD_SCOPE_SYSTEM,
2024 #define PTHREAD_SCOPE_SYSTEM PTHREAD_SCOPE_SYSTEM
2025 PTHREAD_SCOPE_PROCESS
2026 #define PTHREAD_SCOPE_PROCESS PTHREAD_SCOPE_PROCESS
2027 };
2028
2029
2030
2031 enum
2032 {
2033 PTHREAD_PROCESS_PRIVATE,
2034 #define PTHREAD_PROCESS_PRIVATE PTHREAD_PROCESS_PRIVATE
2035 PTHREAD_PROCESS_SHARED
2036 #define PTHREAD_PROCESS_SHARED PTHREAD_PROCESS_SHARED
2037 };
2038
2039
2040
2041
2042 #define PTHREAD_COND_INITIALIZER { { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }
2043
2044
2045
2046 struct _pthread_cleanup_buffer
2047 {
2048 void (*__routine) (void *);
2049 void *__arg;
2050 int __canceltype;
2051 struct _pthread_cleanup_buffer *__prev;
2052 };
2053
2054
2055 enum
2056 {
2057 PTHREAD_CANCEL_ENABLE,
2058 #define PTHREAD_CANCEL_ENABLE PTHREAD_CANCEL_ENABLE
2059 PTHREAD_CANCEL_DISABLE
2060 #define PTHREAD_CANCEL_DISABLE PTHREAD_CANCEL_DISABLE
2061 };
2062 enum
2063 {
2064 PTHREAD_CANCEL_DEFERRED,
2065 #define PTHREAD_CANCEL_DEFERRED PTHREAD_CANCEL_DEFERRED
2066 PTHREAD_CANCEL_ASYNCHRONOUS
2067 #define PTHREAD_CANCEL_ASYNCHRONOUS PTHREAD_CANCEL_ASYNCHRONOUS
2068 };
2069 #define PTHREAD_CANCELED ((void *) -1)
2070
2071
2072
2073 #define PTHREAD_ONCE_INIT 0
2074
2075
2076
2077
2078
2079
2080 #define PTHREAD_BARRIER_SERIAL_THREAD -1
2081
2082
2083
2084
2085
2086
2087
2088
2089 extern int pthread_create (pthread_t *__restrict __newthread,
2090 __const pthread_attr_t *__restrict __attr,
2091 void *(*__start_routine) (void *),
2092 void *__restrict __arg) __attribute__ ((__nothrow__));
2093
2094
2095
2096
2097
2098 extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__));
2099
2100
2101
2102
2103
2104
2105
2106 extern int pthread_join (pthread_t __th, void **__thread_return);
2107
2108
2109
2110
2111 extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) __attribute__ ((__nothrow__));
2112
2113
2114
2115
2116
2117
2118
2119 extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return,
2120 __const struct timespec *__abstime);
2121
2122
2123
2124
2125
2126
2127 extern int pthread_detach (pthread_t __th) __attribute__ ((__nothrow__));
2128
2129
2130
2131 extern pthread_t pthread_self (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2132
2133
2134 extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __attribute__ ((__nothrow__));
2135
2136
2137
2138
2139
2140
2141
2142 extern int pthread_attr_init (pthread_attr_t *__attr) __attribute__ ((__nothrow__));
2143
2144
2145 extern int pthread_attr_destroy (pthread_attr_t *__attr) __attribute__ ((__nothrow__));
2146
2147
2148 extern int pthread_attr_getdetachstate (__const pthread_attr_t *__attr,
2149 int *__detachstate) __attribute__ ((__nothrow__));
2150
2151
2152 extern int pthread_attr_setdetachstate (pthread_attr_t *__attr,
2153 int __detachstate) __attribute__ ((__nothrow__));
2154
2155
2156
2157 extern int pthread_attr_getguardsize (__const pthread_attr_t *__attr,
2158 size_t *__guardsize) __attribute__ ((__nothrow__));
2159
2160
2161 extern int pthread_attr_setguardsize (pthread_attr_t *__attr,
2162 size_t __guardsize) __attribute__ ((__nothrow__));
2163
2164
2165
2166 extern int pthread_attr_getschedparam (__const pthread_attr_t *__restrict
2167 __attr,
2168 struct sched_param *__restrict __param)
2169 __attribute__ ((__nothrow__));
2170
2171
2172 extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr,
2173 __const struct sched_param *__restrict
2174 __param) __attribute__ ((__nothrow__));
2175
2176
2177 extern int pthread_attr_getschedpolicy (__const pthread_attr_t *__restrict
2178 __attr, int *__restrict __policy)
2179 __attribute__ ((__nothrow__));
2180
2181
2182 extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy)
2183 __attribute__ ((__nothrow__));
2184
2185
2186 extern int pthread_attr_getinheritsched (__const pthread_attr_t *__restrict
2187 __attr, int *__restrict __inherit)
2188 __attribute__ ((__nothrow__));
2189
2190
2191 extern int pthread_attr_setinheritsched (pthread_attr_t *__attr,
2192 int __inherit) __attribute__ ((__nothrow__));
2193
2194
2195
2196 extern int pthread_attr_getscope (__const pthread_attr_t *__restrict __attr,
2197 int *__restrict __scope) __attribute__ ((__nothrow__));
2198
2199
2200 extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope)
2201 __attribute__ ((__nothrow__));
2202
2203
2204 extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict
2205 __attr, void **__restrict __stackaddr)
2206 __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
2207
2208
2209
2210
2211
2212 extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
2213 void *__stackaddr)
2214 __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
2215
2216
2217 extern int pthread_attr_getstacksize (__const pthread_attr_t *__restrict
2218 __attr, size_t *__restrict __stacksize)
2219 __attribute__ ((__nothrow__));
2220
2221
2222
2223
2224 extern int pthread_attr_setstacksize (pthread_attr_t *__attr,
2225 size_t __stacksize) __attribute__ ((__nothrow__));
2226
2227
2228
2229 extern int pthread_attr_getstack (__const pthread_attr_t *__restrict __attr,
2230 void **__restrict __stackaddr,
2231 size_t *__restrict __stacksize) __attribute__ ((__nothrow__));
2232
2233
2234
2235
2236 extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
2237 size_t __stacksize) __attribute__ ((__nothrow__));
2238
2239
2240
2241
2242
2243 extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr,
2244 size_t __cpusetsize,
2245 __const cpu_set_t *__cpuset) __attribute__ ((__nothrow__));
2246
2247
2248
2249 extern int pthread_attr_getaffinity_np (__const pthread_attr_t *__attr,
2250 size_t __cpusetsize,
2251 cpu_set_t *__cpuset) __attribute__ ((__nothrow__));
2252
2253
2254
2255
2256
2257 extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) __attribute__ ((__nothrow__));
2258
2259
2260
2261
2262
2263
2264
2265 extern int pthread_setschedparam (pthread_t __target_thread, int __policy,
2266 __const struct sched_param *__param)
2267 __attribute__ ((__nothrow__));
2268
2269
2270 extern int pthread_getschedparam (pthread_t __target_thread,
2271 int *__restrict __policy,
2272 struct sched_param *__restrict __param)
2273 __attribute__ ((__nothrow__));
2274
2275
2276 extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
2277 __attribute__ ((__nothrow__));
2278
2279
2280
2281
2282 extern int pthread_getconcurrency (void) __attribute__ ((__nothrow__));
2283
2284
2285 extern int pthread_setconcurrency (int __level) __attribute__ ((__nothrow__));
2286
2287
2288
2289
2290
2291
2292
2293 extern int pthread_yield (void) __attribute__ ((__nothrow__));
2294
2295
2296
2297
2298 extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize,
2299 __const cpu_set_t *__cpuset) __attribute__ ((__nothrow__));
2300
2301
2302 extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize,
2303 cpu_set_t *__cpuset) __attribute__ ((__nothrow__));
2304 # 448 "/usr/include/pthread.h" 3 4
2305 extern int pthread_once (pthread_once_t *__once_control,
2306 void (*__init_routine) (void));
2307 # 460 "/usr/include/pthread.h" 3 4
2308 extern int pthread_setcancelstate (int __state, int *__oldstate);
2309
2310
2311
2312 extern int pthread_setcanceltype (int __type, int *__oldtype);
2313
2314
2315 extern int pthread_cancel (pthread_t __th);
2316
2317
2318
2319
2320 extern void pthread_testcancel (void);
2321
2322
2323
2324
2325 typedef struct
2326 {
2327 struct
2328 {
2329 __jmp_buf __cancel_jmp_buf;
2330 int __mask_was_saved;
2331 } __cancel_jmp_buf[1];
2332 void *__pad[4];
2333 } __pthread_unwind_buf_t __attribute__ ((__aligned__));
2334 # 494 "/usr/include/pthread.h" 3 4
2335 struct __pthread_cleanup_frame
2336 {
2337 void (*__cancel_routine) (void *);
2338 void *__cancel_arg;
2339 int __do_it;
2340 int __cancel_type;
2341 };
2342 # 618 "/usr/include/pthread.h" 3 4
2343 #define pthread_cleanup_push(routine,arg) do { __pthread_unwind_buf_t __cancel_buf; void (*__cancel_routine) (void *) = (routine); void *__cancel_arg = (arg); int not_first_call = __sigsetjmp ((struct __jmp_buf_tag *) __cancel_buf.__cancel_jmp_buf, 0); if (__builtin_expect (not_first_call, 0)) { __cancel_routine (__cancel_arg); __pthread_unwind_next (&__cancel_buf); } __pthread_register_cancel (&__cancel_buf); do {
2344 # 634 "/usr/include/pthread.h" 3 4
2345 extern void __pthread_register_cancel (__pthread_unwind_buf_t *__buf)
2346 __attribute__ ((__regparm__ (1)));
2347
2348
2349
2350 #define pthread_cleanup_pop(execute) } while (0); __pthread_unregister_cancel (&__cancel_buf); if (execute) __cancel_routine (__cancel_arg); } while (0)
2351
2352
2353
2354
2355
2356 extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf)
2357 __attribute__ ((__regparm__ (1)));
2358
2359
2360
2361
2362
2363 #define pthread_cleanup_push_defer_np(routine,arg) do { __pthread_unwind_buf_t __cancel_buf; void (*__cancel_routine) (void *) = (routine); void *__cancel_arg = (arg); int not_first_call = __sigsetjmp ((struct __jmp_buf_tag *) __cancel_buf.__cancel_jmp_buf, 0); if (__builtin_expect (not_first_call, 0)) { __cancel_routine (__cancel_arg); __pthread_unwind_next (&__cancel_buf); } __pthread_register_cancel_defer (&__cancel_buf); do {
2364 # 668 "/usr/include/pthread.h" 3 4
2365 extern void __pthread_register_cancel_defer (__pthread_unwind_buf_t *__buf)
2366 __attribute__ ((__regparm__ (1)));
2367
2368
2369
2370
2371 #define pthread_cleanup_pop_restore_np(execute) } while (0); __pthread_unregister_cancel_restore (&__cancel_buf); if (execute) __cancel_routine (__cancel_arg); } while (0)
2372
2373
2374
2375
2376
2377 extern void __pthread_unregister_cancel_restore (__pthread_unwind_buf_t *__buf)
2378 __attribute__ ((__regparm__ (1)));
2379
2380
2381
2382 extern void __pthread_unwind_next (__pthread_unwind_buf_t *__buf)
2383 __attribute__ ((__regparm__ (1))) __attribute__ ((__noreturn__))
2384
2385 __attribute__ ((__weak__))
2386
2387 ;
2388
2389
2390
2391 struct __jmp_buf_tag;
2392 extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __attribute__ ((__nothrow__));
2393
2394
2395
2396
2397
2398 extern int pthread_mutex_init (pthread_mutex_t *__mutex,
2399 __const pthread_mutexattr_t *__mutexattr)
2400 __attribute__ ((__nothrow__));
2401
2402
2403 extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) __attribute__ ((__nothrow__));
2404
2405
2406 extern int pthread_mutex_trylock (pthread_mutex_t *_mutex) __attribute__ ((__nothrow__));
2407
2408
2409 extern int pthread_mutex_lock (pthread_mutex_t *__mutex) __attribute__ ((__nothrow__));
2410
2411
2412
2413 extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,
2414 __const struct timespec *__restrict
2415 __abstime) __attribute__ ((__nothrow__));
2416
2417
2418
2419 extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) __attribute__ ((__nothrow__));
2420
2421
2422
2423
2424 extern int pthread_mutex_getprioceiling (__const pthread_mutex_t *
2425 __restrict __mutex,
2426 int *__restrict __prioceiling)
2427 __attribute__ ((__nothrow__));
2428
2429
2430
2431 extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex,
2432 int __prioceiling,
2433 int *__restrict __old_ceiling)
2434 __attribute__ ((__nothrow__));
2435
2436
2437
2438
2439
2440 extern int pthread_mutex_consistent_np (pthread_mutex_t *__mutex) __attribute__ ((__nothrow__));
2441
2442
2443
2444
2445
2446
2447
2448 extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) __attribute__ ((__nothrow__));
2449
2450
2451 extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) __attribute__ ((__nothrow__));
2452
2453
2454 extern int pthread_mutexattr_getpshared (__const pthread_mutexattr_t *
2455 __restrict __attr,
2456 int *__restrict __pshared) __attribute__ ((__nothrow__));
2457
2458
2459 extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
2460 int __pshared) __attribute__ ((__nothrow__));
2461
2462
2463
2464 extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict
2465 __attr, int *__restrict __kind) __attribute__ ((__nothrow__));
2466
2467
2468
2469
2470 extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind)
2471 __attribute__ ((__nothrow__));
2472
2473
2474 extern int pthread_mutexattr_getprotocol (__const pthread_mutexattr_t *
2475 __restrict __attr,
2476 int *__restrict __protocol) __attribute__ ((__nothrow__));
2477
2478
2479
2480 extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr,
2481 int __protocol) __attribute__ ((__nothrow__));
2482
2483
2484 extern int pthread_mutexattr_getprioceiling (__const pthread_mutexattr_t *
2485 __restrict __attr,
2486 int *__restrict __prioceiling)
2487 __attribute__ ((__nothrow__));
2488
2489
2490 extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr,
2491 int __prioceiling) __attribute__ ((__nothrow__));
2492
2493
2494
2495
2496 extern int pthread_mutexattr_getrobust_np (__const pthread_mutexattr_t *__attr,
2497 int *__robustness) __attribute__ ((__nothrow__));
2498
2499
2500 extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *__attr,
2501 int __robustness) __attribute__ ((__nothrow__));
2502 # 813 "/usr/include/pthread.h" 3 4
2503 extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock,
2504 __const pthread_rwlockattr_t *__restrict
2505 __attr) __attribute__ ((__nothrow__));
2506
2507
2508 extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) __attribute__ ((__nothrow__));
2509
2510
2511 extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) __attribute__ ((__nothrow__));
2512
2513
2514 extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) __attribute__ ((__nothrow__));
2515
2516
2517
2518 extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock,
2519 __const struct timespec *__restrict
2520 __abstime) __attribute__ ((__nothrow__));
2521
2522
2523
2524 extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) __attribute__ ((__nothrow__));
2525
2526
2527 extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) __attribute__ ((__nothrow__));
2528
2529
2530
2531 extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock,
2532 __const struct timespec *__restrict
2533 __abstime) __attribute__ ((__nothrow__));
2534
2535
2536
2537 extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) __attribute__ ((__nothrow__));
2538
2539
2540
2541
2542
2543 extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) __attribute__ ((__nothrow__));
2544
2545
2546 extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) __attribute__ ((__nothrow__));
2547
2548
2549 extern int pthread_rwlockattr_getpshared (__const pthread_rwlockattr_t *
2550 __restrict __attr,
2551 int *__restrict __pshared) __attribute__ ((__nothrow__));
2552
2553
2554 extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr,
2555 int __pshared) __attribute__ ((__nothrow__));
2556
2557
2558 extern int pthread_rwlockattr_getkind_np (__const pthread_rwlockattr_t *
2559 __restrict __attr,
2560 int *__restrict __pref) __attribute__ ((__nothrow__));
2561
2562
2563 extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr,
2564 int __pref) __attribute__ ((__nothrow__));
2565
2566
2567
2568
2569
2570
2571
2572 extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
2573 __const pthread_condattr_t *__restrict
2574 __cond_attr) __attribute__ ((__nothrow__));
2575
2576
2577 extern int pthread_cond_destroy (pthread_cond_t *__cond) __attribute__ ((__nothrow__));
2578
2579
2580 extern int pthread_cond_signal (pthread_cond_t *__cond) __attribute__ ((__nothrow__));
2581
2582
2583 extern int pthread_cond_broadcast (pthread_cond_t *__cond) __attribute__ ((__nothrow__));
2584
2585
2586
2587
2588
2589
2590 extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
2591 pthread_mutex_t *__restrict __mutex);
2592 # 910 "/usr/include/pthread.h" 3 4
2593 extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond,
2594 pthread_mutex_t *__restrict __mutex,
2595 __const struct timespec *__restrict
2596 __abstime);
2597
2598
2599
2600
2601 extern int pthread_condattr_init (pthread_condattr_t *__attr) __attribute__ ((__nothrow__));
2602
2603
2604 extern int pthread_condattr_destroy (pthread_condattr_t *__attr) __attribute__ ((__nothrow__));
2605
2606
2607 extern int pthread_condattr_getpshared (__const pthread_condattr_t *
2608 __restrict __attr,
2609 int *__restrict __pshared) __attribute__ ((__nothrow__));
2610
2611
2612 extern int pthread_condattr_setpshared (pthread_condattr_t *__attr,
2613 int __pshared) __attribute__ ((__nothrow__));
2614
2615
2616
2617 extern int pthread_condattr_getclock (__const pthread_condattr_t *
2618 __restrict __attr,
2619 __clockid_t *__restrict __clock_id)
2620 __attribute__ ((__nothrow__));
2621
2622
2623 extern int pthread_condattr_setclock (pthread_condattr_t *__attr,
2624 __clockid_t __clock_id) __attribute__ ((__nothrow__));
2625 # 951 "/usr/include/pthread.h" 3 4
2626 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
2627 __attribute__ ((__nothrow__));
2628
2629
2630 extern int pthread_spin_destroy (pthread_spinlock_t *__lock) __attribute__ ((__nothrow__));
2631
2632
2633 extern int pthread_spin_lock (pthread_spinlock_t *__lock) __attribute__ ((__nothrow__));
2634
2635
2636 extern int pthread_spin_trylock (pthread_spinlock_t *__lock) __attribute__ ((__nothrow__));
2637
2638
2639 extern int pthread_spin_unlock (pthread_spinlock_t *__lock) __attribute__ ((__nothrow__));
2640
2641
2642
2643
2644
2645
2646 extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
2647 __const pthread_barrierattr_t *__restrict
2648 __attr, unsigned int __count) __attribute__ ((__nothrow__));
2649
2650
2651 extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) __attribute__ ((__nothrow__));
2652
2653
2654 extern int pthread_barrier_wait (pthread_barrier_t *__barrier) __attribute__ ((__nothrow__));
2655
2656
2657
2658 extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) __attribute__ ((__nothrow__));
2659
2660
2661 extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) __attribute__ ((__nothrow__));
2662
2663
2664 extern int pthread_barrierattr_getpshared (__const pthread_barrierattr_t *
2665 __restrict __attr,
2666 int *__restrict __pshared) __attribute__ ((__nothrow__));
2667
2668
2669 extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr,
2670 int __pshared) __attribute__ ((__nothrow__));
2671 # 1007 "/usr/include/pthread.h" 3 4
2672 extern int pthread_key_create (pthread_key_t *__key,
2673 void (*__destr_function) (void *)) __attribute__ ((__nothrow__));
2674
2675
2676 extern int pthread_key_delete (pthread_key_t __key) __attribute__ ((__nothrow__));
2677
2678
2679 extern void *pthread_getspecific (pthread_key_t __key) __attribute__ ((__nothrow__));
2680
2681
2682 extern int pthread_setspecific (pthread_key_t __key,
2683 __const void *__pointer) __attribute__ ((__nothrow__));
2684
2685
2686
2687
2688 extern int pthread_getcpuclockid (pthread_t __thread_id,
2689 __clockid_t *__clock_id) __attribute__ ((__nothrow__));
2690 # 1039 "/usr/include/pthread.h" 3 4
2691 extern int pthread_atfork (void (*__prepare) (void),
2692 void (*__parent) (void),
2693 void (*__child) (void)) __attribute__ ((__nothrow__));
2694
2695
2696 # 56 "../../src/include/platform.h" 2
2697 # 64 "../../src/include/platform.h"
2698 # 1 "/usr/include/netdb.h" 1 3 4
2699 # 24 "/usr/include/netdb.h" 3 4
2700 #define _NETDB_H 1
2701
2702
2703
2704 # 1 "/usr/include/netinet/in.h" 1 3 4
2705 # 20 "/usr/include/netinet/in.h" 3 4
2706 #define _NETINET_IN_H 1
2707
2708
2709 # 1 "/usr/include/stdint.h" 1 3 4
2710 # 24 "/usr/include/stdint.h" 3 4
2711 #define _STDINT_H 1
2712
2713
2714 # 1 "/usr/include/bits/wchar.h" 1 3 4
2715 # 21 "/usr/include/bits/wchar.h" 3 4
2716 #define _BITS_WCHAR_H 1
2717
2718 #define __WCHAR_MIN (-2147483647l - 1l)
2719 #define __WCHAR_MAX (2147483647l)
2720 # 28 "/usr/include/stdint.h" 2 3 4
2721 # 1 "/usr/include/bits/wordsize.h" 1 3 4
2722 # 19 "/usr/include/bits/wordsize.h" 3 4
2723 #define __WORDSIZE 32
2724 # 29 "/usr/include/stdint.h" 2 3 4
2725
2726
2727
2728
2729
2730
2731
2732 #define __int8_t_defined
2733 typedef signed char int8_t;
2734 typedef short int int16_t;
2735 typedef int int32_t;
2736
2737
2738
2739 __extension__
2740 typedef long long int int64_t;
2741
2742
2743
2744
2745 typedef unsigned char uint8_t;
2746 typedef unsigned short int uint16_t;
2747
2748 typedef unsigned int uint32_t;
2749 #define __uint32_t_defined
2750
2751
2752
2753
2754 __extension__
2755 typedef unsigned long long int uint64_t;
2756
2757
2758
2759
2760
2761
2762 typedef signed char int_least8_t;
2763 typedef short int int_least16_t;
2764 typedef int int_least32_t;
2765
2766
2767
2768 __extension__
2769 typedef long long int int_least64_t;
2770
2771
2772
2773 typedef unsigned char uint_least8_t;
2774 typedef unsigned short int uint_least16_t;
2775 typedef unsigned int uint_least32_t;
2776
2777
2778
2779 __extension__
2780 typedef unsigned long long int uint_least64_t;
2781
2782
2783
2784
2785
2786
2787 typedef signed char int_fast8_t;
2788
2789
2790
2791
2792
2793 typedef int int_fast16_t;
2794 typedef int int_fast32_t;
2795 __extension__
2796 typedef long long int int_fast64_t;
2797
2798
2799
2800 typedef unsigned char uint_fast8_t;
2801
2802
2803
2804
2805
2806 typedef unsigned int uint_fast16_t;
2807 typedef unsigned int uint_fast32_t;
2808 __extension__
2809 typedef unsigned long long int uint_fast64_t;
2810 # 126 "/usr/include/stdint.h" 3 4
2811 typedef int intptr_t;
2812 #define __intptr_t_defined
2813
2814 typedef unsigned int uintptr_t;
2815 # 138 "/usr/include/stdint.h" 3 4
2816 __extension__
2817 typedef long long int intmax_t;
2818 __extension__
2819 typedef unsigned long long int uintmax_t;
2820 # 153 "/usr/include/stdint.h" 3 4
2821 #define __INT64_C(c) c ## LL
2822 #define __UINT64_C(c) c ## ULL
2823
2824
2825
2826
2827
2828 #define INT8_MIN (-128)
2829 #define INT16_MIN (-32767-1)
2830 #define INT32_MIN (-2147483647-1)
2831 #define INT64_MIN (-__INT64_C(9223372036854775807)-1)
2832
2833 #define INT8_MAX (127)
2834 #define INT16_MAX (32767)
2835 #define INT32_MAX (2147483647)
2836 #define INT64_MAX (__INT64_C(9223372036854775807))
2837
2838
2839 #define UINT8_MAX (255)
2840 #define UINT16_MAX (65535)
2841 #define UINT32_MAX (4294967295U)
2842 #define UINT64_MAX (__UINT64_C(18446744073709551615))
2843
2844
2845
2846 #define INT_LEAST8_MIN (-128)
2847 #define INT_LEAST16_MIN (-32767-1)
2848 #define INT_LEAST32_MIN (-2147483647-1)
2849 #define INT_LEAST64_MIN (-__INT64_C(9223372036854775807)-1)
2850
2851 #define INT_LEAST8_MAX (127)
2852 #define INT_LEAST16_MAX (32767)
2853 #define INT_LEAST32_MAX (2147483647)
2854 #define INT_LEAST64_MAX (__INT64_C(9223372036854775807))
2855
2856
2857 #define UINT_LEAST8_MAX (255)
2858 #define UINT_LEAST16_MAX (65535)
2859 #define UINT_LEAST32_MAX (4294967295U)
2860 #define UINT_LEAST64_MAX (__UINT64_C(18446744073709551615))
2861
2862
2863
2864 #define INT_FAST8_MIN (-128)
2865
2866
2867
2868
2869 #define INT_FAST16_MIN (-2147483647-1)
2870 #define INT_FAST32_MIN (-2147483647-1)
2871
2872 #define INT_FAST64_MIN (-__INT64_C(9223372036854775807)-1)
2873
2874 #define INT_FAST8_MAX (127)
2875
2876
2877
2878
2879 #define INT_FAST16_MAX (2147483647)
2880 #define INT_FAST32_MAX (2147483647)
2881
2882 #define INT_FAST64_MAX (__INT64_C(9223372036854775807))
2883
2884
2885 #define UINT_FAST8_MAX (255)
2886
2887
2888
2889
2890 #define UINT_FAST16_MAX (4294967295U)
2891 #define UINT_FAST32_MAX (4294967295U)
2892
2893 #define UINT_FAST64_MAX (__UINT64_C(18446744073709551615))
2894 # 234 "/usr/include/stdint.h" 3 4
2895 #define INTPTR_MIN (-2147483647-1)
2896 #define INTPTR_MAX (2147483647)
2897 #define UINTPTR_MAX (4294967295U)
2898
2899
2900
2901
2902 #define INTMAX_MIN (-__INT64_C(9223372036854775807)-1)
2903
2904 #define INTMAX_MAX (__INT64_C(9223372036854775807))
2905
2906
2907 #define UINTMAX_MAX (__UINT64_C(18446744073709551615))
2908 # 256 "/usr/include/stdint.h" 3 4
2909 #define PTRDIFF_MIN (-2147483647-1)
2910 #define PTRDIFF_MAX (2147483647)
2911
2912
2913
2914 #define SIG_ATOMIC_MIN (-2147483647-1)
2915 #define SIG_ATOMIC_MAX (2147483647)
2916
2917
2918
2919
2920
2921 #define SIZE_MAX (4294967295U)
2922
2923
2924
2925
2926
2927 #define WCHAR_MIN __WCHAR_MIN
2928 #define WCHAR_MAX __WCHAR_MAX
2929
2930
2931
2932 #define WINT_MIN (0u)
2933 #define WINT_MAX (4294967295u)
2934 # 290 "/usr/include/stdint.h" 3 4
2935 #define INT8_C(c) c
2936 #define INT16_C(c) c
2937 #define INT32_C(c) c
2938
2939
2940
2941 #define INT64_C(c) c ## LL
2942
2943
2944
2945 #define UINT8_C(c) c ## U
2946 #define UINT16_C(c) c ## U
2947 #define UINT32_C(c) c ## U
2948
2949
2950
2951 #define UINT64_C(c) c ## ULL
2952
2953
2954
2955
2956
2957
2958
2959 #define INTMAX_C(c) c ## LL
2960 #define UINTMAX_C(c) c ## ULL
2961 # 24 "/usr/include/netinet/in.h" 2 3 4
2962 # 1 "/usr/include/sys/socket.h" 1 3 4
2963 # 21 "/usr/include/sys/socket.h" 3 4
2964 #define _SYS_SOCKET_H 1
2965
2966
2967
2968
2969
2970 # 1 "/usr/include/sys/uio.h" 1 3 4
2971 # 20 "/usr/include/sys/uio.h" 3 4
2972 #define _SYS_UIO_H 1
2973
2974
2975
2976 # 1 "/usr/include/sys/types.h" 1 3 4
2977 # 25 "/usr/include/sys/types.h" 3 4
2978 #define _SYS_TYPES_H 1
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988 typedef __u_char u_char;
2989 typedef __u_short u_short;
2990 typedef __u_int u_int;
2991 typedef __u_long u_long;
2992 typedef __quad_t quad_t;
2993 typedef __u_quad_t u_quad_t;
2994 typedef __fsid_t fsid_t;
2995 #define __u_char_defined
2996
2997
2998
2999 typedef __loff_t loff_t;
3000
3001
3002
3003
3004
3005 typedef __ino64_t ino_t;
3006
3007 #define __ino_t_defined
3008
3009
3010 typedef __ino64_t ino64_t;
3011 #define __ino64_t_defined
3012
3013
3014
3015 typedef __dev_t dev_t;
3016 #define __dev_t_defined
3017
3018
3019
3020 typedef __gid_t gid_t;
3021 #define __gid_t_defined
3022
3023
3024
3025 typedef __mode_t mode_t;
3026 #define __mode_t_defined
3027
3028
3029
3030 typedef __nlink_t nlink_t;
3031 #define __nlink_t_defined
3032
3033
3034
3035 typedef __uid_t uid_t;
3036 #define __uid_t_defined
3037
3038
3039
3040
3041
3042
3043 typedef __off64_t off_t;
3044
3045 #define __off_t_defined
3046
3047
3048 typedef __off64_t off64_t;
3049 #define __off64_t_defined
3050 # 105 "/usr/include/sys/types.h" 3 4
3051 typedef __id_t id_t;
3052 #define __id_t_defined
3053
3054
3055
3056 typedef __ssize_t ssize_t;
3057 #define __ssize_t_defined
3058
3059
3060
3061
3062 typedef __daddr_t daddr_t;
3063 typedef __caddr_t caddr_t;
3064 #define __daddr_t_defined
3065
3066
3067
3068
3069 typedef __key_t key_t;
3070 #define __key_t_defined
3071
3072
3073
3074 #define __need_clock_t
3075
3076 #define __need_time_t
3077 #define __need_timer_t
3078 #define __need_clockid_t
3079
3080
3081
3082
3083 typedef __useconds_t useconds_t;
3084 #define __useconds_t_defined
3085
3086
3087 typedef __suseconds_t suseconds_t;
3088 #define __suseconds_t_defined
3089
3090
3091
3092 #define __need_size_t
3093 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4
3094 # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4
3095 #undef __need_size_t
3096 # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4
3097 #undef __need_NULL
3098 # 148 "/usr/include/sys/types.h" 2 3 4
3099
3100
3101
3102 typedef unsigned long int ulong;
3103 typedef unsigned short int ushort;
3104 typedef unsigned int uint;
3105 # 188 "/usr/include/sys/types.h" 3 4
3106 #define __intN_t(N,MODE) typedef int int ##N ##_t __attribute__ ((__mode__ (MODE)))
3107
3108 #define __u_intN_t(N,MODE) typedef unsigned int u_int ##N ##_t __attribute__ ((__mode__ (MODE)))
3109 # 201 "/usr/include/sys/types.h" 3 4
3110 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
3111 typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
3112 typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
3113 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
3114
3115 typedef int register_t __attribute__ ((__mode__ (__word__)));
3116
3117
3118
3119
3120
3121 #define __BIT_TYPES_DEFINED__ 1
3122
3123
3124
3125
3126 # 1 "/usr/include/endian.h" 1 3 4
3127 # 20 "/usr/include/endian.h" 3 4
3128 #define _ENDIAN_H 1
3129 # 32 "/usr/include/endian.h" 3 4
3130 #define __LITTLE_ENDIAN 1234
3131 #define __BIG_ENDIAN 4321
3132 #define __PDP_ENDIAN 3412
3133
3134
3135 # 1 "/usr/include/bits/endian.h" 1 3 4
3136
3137
3138
3139
3140
3141
3142 #define __BYTE_ORDER __LITTLE_ENDIAN
3143 # 38 "/usr/include/endian.h" 2 3 4
3144
3145
3146
3147
3148 #define __FLOAT_WORD_ORDER __BYTE_ORDER
3149
3150
3151
3152 #define LITTLE_ENDIAN __LITTLE_ENDIAN
3153 #define BIG_ENDIAN __BIG_ENDIAN
3154 #define PDP_ENDIAN __PDP_ENDIAN
3155 #define BYTE_ORDER __BYTE_ORDER
3156
3157
3158
3159 #define __LONG_LONG_PAIR(HI,LO) LO, HI
3160 # 218 "/usr/include/sys/types.h" 2 3 4
3161
3162
3163 # 1 "/usr/include/sys/select.h" 1 3 4
3164 # 23 "/usr/include/sys/select.h" 3 4
3165 #define _SYS_SELECT_H 1
3166
3167
3168
3169
3170
3171
3172
3173 # 1 "/usr/include/bits/select.h" 1 3 4
3174 # 26 "/usr/include/bits/select.h" 3 4
3175 #define __FD_ZERO(fdsp) do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; stosl" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&__FDS_BITS (fdsp)[0]) : "memory"); } while (0)
3176 # 37 "/usr/include/bits/select.h" 3 4
3177 #define __FD_SET(fd,fdsp) __asm__ __volatile__ ("btsl %1,%0" : "=m" (__FDS_BITS (fdsp)[__FDELT (fd)]) : "r" (((int) (fd)) % __NFDBITS) : "cc","memory")
3178
3179
3180
3181
3182 #define __FD_CLR(fd,fdsp) __asm__ __volatile__ ("btrl %1,%0" : "=m" (__FDS_BITS (fdsp)[__FDELT (fd)]) : "r" (((int) (fd)) % __NFDBITS) : "cc","memory")
3183
3184
3185
3186
3187 #define __FD_ISSET(fd,fdsp) (__extension__ ({register char __result; __asm__ __volatile__ ("btl %1,%2 ; setcb %b0" : "=q" (__result) : "r" (((int) (fd)) % __NFDBITS), "m" (__FDS_BITS (fdsp)[__FDELT (fd)]) : "cc"); __result; }))
3188 # 32 "/usr/include/sys/select.h" 2 3 4
3189
3190
3191 # 1 "/usr/include/bits/sigset.h" 1 3 4
3192 # 35 "/usr/include/sys/select.h" 2 3 4
3193
3194
3195
3196
3197
3198
3199
3200 #define __need_time_t
3201 #define __need_timespec
3202
3203 #define __need_timeval
3204 # 1 "/usr/include/bits/time.h" 1 3 4
3205 # 62 "/usr/include/bits/time.h" 3 4
3206 #undef __need_timeval
3207
3208 #define _STRUCT_TIMEVAL 1
3209
3210
3211
3212
3213 struct timeval
3214 {
3215 __time_t tv_sec;
3216 __suseconds_t tv_usec;
3217 };
3218 # 47 "/usr/include/sys/select.h" 2 3 4
3219 # 55 "/usr/include/sys/select.h" 3 4
3220 typedef long int __fd_mask;
3221
3222
3223 #undef __NFDBITS
3224 #undef __FDELT
3225 #undef __FDMASK
3226
3227 #define __NFDBITS (8 * sizeof (__fd_mask))
3228 #define __FDELT(d) ((d) / __NFDBITS)
3229 #define __FDMASK(d) ((__fd_mask) 1 << ((d) % __NFDBITS))
3230
3231
3232 typedef struct
3233 {
3234
3235
3236
3237 __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))];
3238 #define __FDS_BITS(set) ((set)->fds_bits)
3239
3240
3241
3242
3243 } fd_set;
3244
3245
3246 #define FD_SETSIZE __FD_SETSIZE
3247
3248
3249
3250 typedef __fd_mask fd_mask;
3251
3252
3253 #define NFDBITS __NFDBITS
3254
3255
3256
3257
3258 #define FD_SET(fd,fdsetp) __FD_SET (fd, fdsetp)
3259 #define FD_CLR(fd,fdsetp) __FD_CLR (fd, fdsetp)
3260 #define FD_ISSET(fd,fdsetp) __FD_ISSET (fd, fdsetp)
3261 #define FD_ZERO(fdsetp) __FD_ZERO (fdsetp)
3262
3263
3264
3265 # 109 "/usr/include/sys/select.h" 3 4
3266 extern int select (int __nfds, fd_set *__restrict __readfds,
3267 fd_set *__restrict __writefds,
3268 fd_set *__restrict __exceptfds,
3269 struct timeval *__restrict __timeout);
3270 # 121 "/usr/include/sys/select.h" 3 4
3271 extern int pselect (int __nfds, fd_set *__restrict __readfds,
3272 fd_set *__restrict __writefds,
3273 fd_set *__restrict __exceptfds,
3274 const struct timespec *__restrict __timeout,
3275 const __sigset_t *__restrict __sigmask);
3276
3277
3278
3279 # 221 "/usr/include/sys/types.h" 2 3 4
3280
3281
3282 # 1 "/usr/include/sys/sysmacros.h" 1 3 4
3283 # 21 "/usr/include/sys/sysmacros.h" 3 4
3284 #define _SYS_SYSMACROS_H 1
3285
3286
3287
3288
3289
3290
3291
3292 __extension__
3293 extern __inline unsigned int gnu_dev_major (unsigned long long int __dev)
3294 __attribute__ ((__nothrow__));
3295 __extension__
3296 extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev)
3297 __attribute__ ((__nothrow__));
3298 __extension__
3299 extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major,
3300 unsigned int __minor)
3301 __attribute__ ((__nothrow__));
3302
3303
3304 __extension__ extern __inline unsigned int
3305 __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
3306 {
3307 return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
3308 }
3309
3310 __extension__ extern __inline unsigned int
3311 __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
3312 {
3313 return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
3314 }
3315
3316 __extension__ extern __inline unsigned long long int
3317 __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
3318 {
3319 return ((__minor & 0xff) | ((__major & 0xfff) << 8)
3320 | (((unsigned long long int) (__minor & ~0xff)) << 12)
3321 | (((unsigned long long int) (__major & ~0xfff)) << 32));
3322 }
3323
3324
3325
3326
3327 #define major(dev) gnu_dev_major (dev)
3328 #define minor(dev) gnu_dev_minor (dev)
3329 #define makedev(maj,min) gnu_dev_makedev (maj, min)
3330 # 224 "/usr/include/sys/types.h" 2 3 4
3331
3332
3333
3334
3335 typedef __blksize_t blksize_t;
3336 #define __blksize_t_defined
3337 # 248 "/usr/include/sys/types.h" 3 4
3338 typedef __blkcnt64_t blkcnt_t;
3339 #define __blkcnt_t_defined
3340
3341
3342 typedef __fsblkcnt64_t fsblkcnt_t;
3343 #define __fsblkcnt_t_defined
3344
3345
3346 typedef __fsfilcnt64_t fsfilcnt_t;
3347 #define __fsfilcnt_t_defined
3348
3349
3350
3351
3352 typedef __blkcnt64_t blkcnt64_t;
3353 typedef __fsblkcnt64_t fsblkcnt64_t;
3354 typedef __fsfilcnt64_t fsfilcnt64_t;
3355 # 273 "/usr/include/sys/types.h" 3 4
3356
3357 # 25 "/usr/include/sys/uio.h" 2 3 4
3358
3359
3360
3361
3362 # 1 "/usr/include/bits/uio.h" 1 3 4
3363 # 38 "/usr/include/bits/uio.h" 3 4
3364 #define UIO_MAXIOV 1024
3365
3366
3367
3368 struct iovec
3369 {
3370 void *iov_base;
3371 size_t iov_len;
3372 };
3373 # 30 "/usr/include/sys/uio.h" 2 3 4
3374 # 40 "/usr/include/sys/uio.h" 3 4
3375 extern ssize_t readv (int __fd, __const struct iovec *__iovec, int __count);
3376 # 50 "/usr/include/sys/uio.h" 3 4
3377 extern ssize_t writev (int __fd, __const struct iovec *__iovec, int __count);
3378
3379
3380 # 28 "/usr/include/sys/socket.h" 2 3 4
3381 #define __need_size_t
3382 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4
3383 # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4
3384 #undef __need_size_t
3385 # 408 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4
3386 #undef __need_NULL
3387 # 30 "/usr/include/sys/socket.h" 2 3 4
3388
3389
3390
3391
3392
3393 # 1 "/usr/include/bits/socket.h" 1 3 4
3394 # 21 "/usr/include/bits/socket.h" 3 4
3395 #define __BITS_SOCKET_H
3396
3397
3398
3399
3400
3401 #define __need_size_t
3402 #define __need_NULL
3403 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 1 3 4
3404 # 235 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4
3405 #undef __need_size_t
3406 # 397 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h" 3 4
3407 #undef NULL
3408
3409
3410
3411
3412 #define NULL ((void *)0)
3413
3414
3415
3416
3417
3418 #undef __need_NULL
3419 # 30 "/usr/include/bits/socket.h" 2 3 4
3420
3421 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 1 3 4
3422
3423
3424
3425
3426
3427
3428 #define _GCC_LIMITS_H_
3429
3430
3431
3432 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/syslimits.h" 1 3 4
3433
3434
3435
3436
3437
3438 #define _GCC_NEXT_LIMITS_H
3439 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 1 3 4
3440 # 122 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 3 4
3441 # 1 "/usr/include/limits.h" 1 3 4
3442 # 25 "/usr/include/limits.h" 3 4
3443 #define _LIBC_LIMITS_H_ 1
3444
3445
3446
3447
3448
3449
3450
3451 #define MB_LEN_MAX 16
3452 # 133 "/usr/include/limits.h" 3 4
3453 #define LLONG_MIN (-LLONG_MAX-1)
3454
3455
3456 #define LLONG_MAX __LONG_LONG_MAX__
3457
3458
3459 #define ULLONG_MAX (LLONG_MAX * 2ULL + 1)
3460
3461
3462
3463
3464
3465 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
3466 # 26 "/usr/include/bits/posix1_lim.h" 3 4
3467 #define _BITS_POSIX1_LIM_H 1
3468
3469
3470
3471
3472
3473 #define _POSIX_AIO_LISTIO_MAX 2
3474
3475
3476 #define _POSIX_AIO_MAX 1
3477
3478
3479 #define _POSIX_ARG_MAX 4096
3480
3481
3482
3483 #define _POSIX_CHILD_MAX 25
3484
3485
3486
3487
3488
3489 #define _POSIX_DELAYTIMER_MAX 32
3490
3491
3492
3493 #define _POSIX_HOST_NAME_MAX 255
3494
3495
3496 #define _POSIX_LINK_MAX 8
3497
3498
3499 #define _POSIX_LOGIN_NAME_MAX 9
3500
3501
3502 #define _POSIX_MAX_CANON 255
3503
3504
3505
3506 #define _POSIX_MAX_INPUT 255
3507
3508
3509 #define _POSIX_MQ_OPEN_MAX 8
3510
3511
3512 #define _POSIX_MQ_PRIO_MAX 32
3513
3514
3515 #define _POSIX_NAME_MAX 14
3516
3517
3518
3519 #define _POSIX_NGROUPS_MAX 8
3520
3521
3522
3523
3524
3525
3526 #define _POSIX_OPEN_MAX 20
3527
3528
3529
3530
3531
3532
3533 #define _POSIX_FD_SETSIZE _POSIX_OPEN_MAX
3534
3535
3536 #define _POSIX_PATH_MAX 256
3537
3538
3539 #define _POSIX_PIPE_BUF 512
3540
3541
3542
3543 #define _POSIX_RE_DUP_MAX 255
3544
3545
3546 #define _POSIX_RTSIG_MAX 8
3547
3548
3549 #define _POSIX_SEM_NSEMS_MAX 256
3550
3551
3552 #define _POSIX_SEM_VALUE_MAX 32767
3553
3554
3555 #define _POSIX_SIGQUEUE_MAX 32
3556
3557
3558 #define _POSIX_SSIZE_MAX 32767
3559
3560
3561 #define _POSIX_STREAM_MAX 8
3562
3563
3564 #define _POSIX_SYMLINK_MAX 255
3565
3566
3567
3568 #define _POSIX_SYMLOOP_MAX 8
3569
3570
3571 #define _POSIX_TIMER_MAX 32
3572
3573
3574 #define _POSIX_TTY_NAME_MAX 9
3575
3576
3577 #define _POSIX_TZNAME_MAX 6
3578
3579
3580 #define _POSIX_QLIMIT 1
3581
3582
3583
3584 #define _POSIX_HIWAT _POSIX_PIPE_BUF
3585
3586
3587 #define _POSIX_UIO_MAXIOV 16
3588
3589
3590 #define _POSIX_CLOCKRES_MIN 20000000
3591
3592
3593
3594 # 1 "/usr/include/bits/local_lim.h" 1 3 4
3595 # 26 "/usr/include/bits/local_lim.h" 3 4
3596 #define __undef_NR_OPEN
3597
3598
3599 #define __undef_LINK_MAX
3600
3601
3602 #define __undef_OPEN_MAX
3603
3604
3605
3606 # 1 "/usr/include/linux/limits.h" 1 3 4
3607
3608 #define _LINUX_LIMITS_H
3609
3610 #define NR_OPEN 1024
3611
3612 #define NGROUPS_MAX 65536
3613 #define ARG_MAX 131072
3614 #define CHILD_MAX 999
3615 #define OPEN_MAX 256
3616 #define LINK_MAX 127
3617 #define MAX_CANON 255
3618 #define MAX_INPUT 255
3619 #define NAME_MAX 255
3620 #define PATH_MAX 4096
3621 #define PIPE_BUF 4096
3622 #define XATTR_NAME_MAX 255
3623 #define XATTR_SIZE_MAX 65536
3624 #define XATTR_LIST_MAX 65536
3625
3626 #define RTSIG_MAX 32
3627 # 37 "/usr/include/bits/local_lim.h" 2 3 4
3628
3629
3630
3631 #undef NR_OPEN
3632 #undef __undef_NR_OPEN
3633
3634
3635
3636 #undef LINK_MAX
3637 #undef __undef_LINK_MAX
3638
3639
3640
3641 #undef OPEN_MAX
3642 #undef __undef_OPEN_MAX
3643
3644
3645
3646 #define _POSIX_THREAD_KEYS_MAX 128
3647
3648 #define PTHREAD_KEYS_MAX 1024
3649
3650
3651 #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
3652
3653 #define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS
3654
3655
3656 #define _POSIX_THREAD_THREADS_MAX 64
3657
3658 #undef PTHREAD_THREADS_MAX
3659
3660
3661
3662 #define AIO_PRIO_DELTA_MAX 20
3663
3664
3665 #define PTHREAD_STACK_MIN 16384
3666
3667
3668 #define DELAYTIMER_MAX 2147483647
3669
3670
3671 #define TTY_NAME_MAX 32
3672
3673
3674 #define LOGIN_NAME_MAX 256
3675
3676
3677 #define HOST_NAME_MAX 64
3678
3679
3680 #define MQ_PRIO_MAX 32768
3681 # 154 "/usr/include/bits/posix1_lim.h" 2 3 4
3682
3683
3684
3685 #define SSIZE_MAX LONG_MAX
3686 # 146 "/usr/include/limits.h" 2 3 4
3687
3688
3689
3690 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
3691 # 24 "/usr/include/bits/posix2_lim.h" 3 4
3692 #define _BITS_POSIX2_LIM_H 1
3693
3694
3695
3696 #define _POSIX2_BC_BASE_MAX 99
3697
3698
3699 #define _POSIX2_BC_DIM_MAX 2048
3700
3701
3702 #define _POSIX2_BC_SCALE_MAX 99
3703
3704
3705 #define _POSIX2_BC_STRING_MAX 1000
3706
3707
3708
3709 #define _POSIX2_COLL_WEIGHTS_MAX 2
3710
3711
3712
3713 #define _POSIX2_EXPR_NEST_MAX 32
3714
3715
3716 #define _POSIX2_LINE_MAX 2048
3717
3718
3719
3720 #define _POSIX2_RE_DUP_MAX 255
3721
3722
3723
3724 #define _POSIX2_CHARCLASS_NAME_MAX 14
3725
3726
3727
3728
3729
3730
3731
3732 #define BC_BASE_MAX _POSIX2_BC_BASE_MAX
3733
3734
3735 #define BC_DIM_MAX _POSIX2_BC_DIM_MAX
3736
3737
3738 #define BC_SCALE_MAX _POSIX2_BC_SCALE_MAX
3739
3740
3741 #define BC_STRING_MAX _POSIX2_BC_STRING_MAX
3742
3743
3744 #define COLL_WEIGHTS_MAX 255
3745
3746
3747 #define EXPR_NEST_MAX _POSIX2_EXPR_NEST_MAX
3748
3749
3750 #define LINE_MAX _POSIX2_LINE_MAX
3751
3752
3753 #define CHARCLASS_NAME_MAX 2048
3754
3755
3756
3757 #define RE_DUP_MAX (0x7fff)
3758 # 150 "/usr/include/limits.h" 2 3 4
3759
3760
3761
3762 # 1 "/usr/include/bits/xopen_lim.h" 1 3 4
3763 # 31 "/usr/include/bits/xopen_lim.h" 3 4
3764 #define _XOPEN_LIM_H 1
3765
3766 #define __need_IOV_MAX
3767 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
3768 # 40 "/usr/include/bits/stdio_lim.h" 3 4
3769 #define IOV_MAX 1024
3770 # 35 "/usr/include/bits/xopen_lim.h" 2 3 4
3771 # 66 "/usr/include/bits/xopen_lim.h" 3 4
3772 #define _XOPEN_IOV_MAX _POSIX_UIO_MAXIOV
3773
3774
3775
3776
3777 #define NL_ARGMAX _POSIX_ARG_MAX
3778
3779
3780 #define NL_LANGMAX _POSIX2_LINE_MAX
3781
3782
3783 #define NL_MSGMAX INT_MAX
3784
3785
3786
3787 #define NL_NMAX INT_MAX
3788
3789
3790 #define NL_SETMAX INT_MAX
3791
3792
3793 #define NL_TEXTMAX INT_MAX
3794
3795
3796 #define NZERO 20
3797 # 110 "/usr/include/bits/xopen_lim.h" 3 4
3798 #define WORD_BIT 32
3799 # 130 "/usr/include/bits/xopen_lim.h" 3 4
3800 #define LONG_BIT 32
3801 # 154 "/usr/include/limits.h" 2 3 4
3802 # 123 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 2 3 4
3803 # 8 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/syslimits.h" 2 3 4
3804 #undef _GCC_NEXT_LIMITS_H
3805 # 12 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 2 3 4
3806
3807
3808 #define _LIMITS_H___
3809
3810
3811 #undef CHAR_BIT
3812 #define CHAR_BIT __CHAR_BIT__
3813
3814
3815
3816
3817
3818
3819
3820 #undef SCHAR_MIN
3821 #define SCHAR_MIN (-SCHAR_MAX - 1)
3822 #undef SCHAR_MAX
3823 #define SCHAR_MAX __SCHAR_MAX__
3824
3825
3826 #undef UCHAR_MAX
3827
3828
3829
3830 #define UCHAR_MAX (SCHAR_MAX * 2 + 1)
3831 # 50 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 3 4
3832 #undef CHAR_MIN
3833 #define CHAR_MIN SCHAR_MIN
3834 #undef CHAR_MAX
3835 #define CHAR_MAX SCHAR_MAX
3836
3837
3838
3839 #undef SHRT_MIN
3840 #define SHRT_MIN (-SHRT_MAX - 1)
3841 #undef SHRT_MAX
3842 #define SHRT_MAX __SHRT_MAX__
3843
3844
3845 #undef USHRT_MAX
3846
3847
3848
3849 #define USHRT_MAX (SHRT_MAX * 2 + 1)
3850
3851
3852
3853 #undef INT_MIN
3854 #define INT_MIN (-INT_MAX - 1)
3855 #undef INT_MAX
3856 #define INT_MAX __INT_MAX__
3857
3858
3859 #undef UINT_MAX
3860 #define UINT_MAX (INT_MAX * 2U + 1U)
3861
3862
3863
3864 #undef LONG_MIN
3865 #define LONG_MIN (-LONG_MAX - 1L)
3866 #undef LONG_MAX
3867 #define LONG_MAX __LONG_MAX__
3868
3869
3870 #undef ULONG_MAX
3871 #define ULONG_MAX (LONG_MAX * 2UL + 1UL)
3872 # 105 "/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/limits.h" 3 4
3873 #undef LONG_LONG_MIN
3874 #define LONG_LONG_MIN (-LONG_LONG_MAX - 1LL)
3875 #undef LONG_LONG_MAX
3876 #define LONG_LONG_MAX __LONG_LONG_MAX__
3877
3878
3879 #undef ULONG_LONG_MAX
3880 #define ULONG_LONG_MAX (LONG_LONG_MAX * 2ULL + 1ULL)
3881 # 32 "/usr/include/bits/socket.h" 2 3 4
3882
3883
3884
3885
3886 typedef __socklen_t socklen_t;
3887 #define __socklen_t_defined
3888
3889
3890
3891 enum __socket_type
3892 {
3893 SOCK_STREAM = 1,
3894
3895 #define SOCK_STREAM SOCK_STREAM
3896 SOCK_DGRAM = 2,
3897
3898 #define SOCK_DGRAM SOCK_DGRAM
3899 SOCK_RAW = 3,
3900 #define SOCK_RAW SOCK_RAW
3901 SOCK_RDM = 4,
3902 #define SOCK_RDM SOCK_RDM
3903 SOCK_SEQPACKET = 5,
3904
3905 #define SOCK_SEQPACKET SOCK_SEQPACKET
3906 SOCK_PACKET = 10
3907
3908
3909 #define SOCK_PACKET SOCK_PACKET
3910 };
3911
3912
3913 #define PF_UNSPEC 0
3914 #define PF_LOCAL 1
3915 #define PF_UNIX PF_LOCAL
3916 #define PF_FILE PF_LOCAL
3917 #define PF_INET 2
3918 #define PF_AX25 3
3919 #define PF_IPX 4
3920 #define PF_APPLETALK 5
3921 #define PF_NETROM 6
3922 #define PF_BRIDGE 7
3923 #define PF_ATMPVC 8
3924 #define PF_X25 9
3925 #define PF_INET6 10
3926 #define PF_ROSE 11
3927 #define PF_DECnet 12
3928 #define PF_NETBEUI 13
3929 #define PF_SECURITY 14
3930 #define PF_KEY 15
3931 #define PF_NETLINK 16
3932 #define PF_ROUTE PF_NETLINK
3933 #define PF_PACKET 17
3934 #define PF_ASH 18
3935 #define PF_ECONET 19
3936 #define PF_ATMSVC 20
3937 #define PF_SNA 22
3938 #define PF_IRDA 23
3939 #define PF_PPPOX 24
3940 #define PF_WANPIPE 25
3941 #define PF_BLUETOOTH 31
3942 #define PF_MAX 32
3943
3944
3945 #define AF_UNSPEC PF_UNSPEC
3946 #define AF_LOCAL PF_LOCAL
3947 #define AF_UNIX PF_UNIX
3948 #define AF_FILE PF_FILE
3949 #define AF_INET PF_INET
3950 #define AF_AX25 PF_AX25
3951 #define AF_IPX PF_IPX
3952 #define AF_APPLETALK PF_APPLETALK
3953 #define AF_NETROM PF_NETROM
3954 #define AF_BRIDGE PF_BRIDGE
3955 #define AF_ATMPVC PF_ATMPVC
3956 #define AF_X25 PF_X25
3957 #define AF_INET6 PF_INET6
3958 #define AF_ROSE PF_ROSE
3959 #define AF_DECnet PF_DECnet
3960 #define AF_NETBEUI PF_NETBEUI
3961 #define AF_SECURITY PF_SECURITY
3962 #define AF_KEY PF_KEY
3963 #define AF_NETLINK PF_NETLINK
3964 #define AF_ROUTE PF_ROUTE
3965 #define AF_PACKET PF_PACKET
3966 #define AF_ASH PF_ASH
3967 #define AF_ECONET PF_ECONET
3968 #define AF_ATMSVC PF_ATMSVC
3969 #define AF_SNA PF_SNA
3970 #define AF_IRDA PF_IRDA
3971 #define AF_PPPOX PF_PPPOX
3972 #define AF_WANPIPE PF_WANPIPE
3973 #define AF_BLUETOOTH PF_BLUETOOTH
3974 #define AF_MAX PF_MAX
3975
3976
3977
3978
3979
3980 #define SOL_RAW 255
3981 #define SOL_DECNET 261
3982 #define SOL_X25 262
3983 #define SOL_PACKET 263
3984 #define SOL_ATM 264
3985 #define SOL_AAL 265
3986 #define SOL_IRDA 266
3987
3988
3989 #define SOMAXCONN 128
3990
3991
3992 # 1 "/usr/include/bits/sockaddr.h" 1 3 4
3993 # 25 "/usr/include/bits/sockaddr.h" 3 4
3994 #define _BITS_SOCKADDR_H 1
3995
3996
3997
3998 typedef unsigned short int sa_family_t;
3999
4000
4001
4002
4003
4004 #define __SOCKADDR_COMMON(sa_prefix) sa_family_t sa_prefix ##family
4005
4006
4007 #define __SOCKADDR_COMMON_SIZE (sizeof (unsigned short int))
4008 # 143 "/usr/include/bits/socket.h" 2 3 4
4009
4010
4011 struct sockaddr
4012 {
4013 sa_family_t sa_family;
4014 char sa_data[14];
4015 };
4016
4017
4018
4019
4020
4021
4022
4023 #define __ss_aligntype __uint32_t
4024
4025 #define _SS_SIZE 128
4026 #define _SS_PADSIZE (_SS_SIZE - (2 * sizeof (__ss_aligntype)))
4027
4028 struct sockaddr_storage
4029 {
4030 sa_family_t ss_family;
4031 __uint32_t __ss_align;
4032 char __ss_padding[(128 - (2 * sizeof (__uint32_t)))];
4033 };
4034
4035
4036
4037 enum
4038 {
4039 MSG_OOB = 0x01,
4040 #define MSG_OOB MSG_OOB
4041 MSG_PEEK = 0x02,
4042 #define MSG_PEEK MSG_PEEK
4043 MSG_DONTROUTE = 0x04,
4044 #define MSG_DONTROUTE MSG_DONTROUTE
4045
4046
4047 MSG_TRYHARD = MSG_DONTROUTE,
4048 #define MSG_TRYHARD MSG_DONTROUTE
4049
4050 MSG_CTRUNC = 0x08,
4051 #define MSG_CTRUNC MSG_CTRUNC
4052 MSG_PROXY = 0x10,
4053 #define MSG_PROXY MSG_PROXY
4054 MSG_TRUNC = 0x20,
4055 #define MSG_TRUNC MSG_TRUNC
4056 MSG_DONTWAIT = 0x40,
4057 #define MSG_DONTWAIT MSG_DONTWAIT
4058 MSG_EOR = 0x80,
4059 #define MSG_EOR MSG_EOR
4060 MSG_WAITALL = 0x100,
4061 #define MSG_WAITALL MSG_WAITALL
4062 MSG_FIN = 0x200,
4063 #define MSG_FIN MSG_FIN
4064 MSG_SYN = 0x400,
4065 #define MSG_SYN MSG_SYN
4066 MSG_CONFIRM = 0x800,
4067 #define MSG_CONFIRM MSG_CONFIRM
4068 MSG_RST = 0x1000,
4069 #define MSG_RST MSG_RST
4070 MSG_ERRQUEUE = 0x2000,
4071 #define MSG_ERRQUEUE MSG_ERRQUEUE
4072 MSG_NOSIGNAL = 0x4000,
4073 #define MSG_NOSIGNAL MSG_NOSIGNAL
4074 MSG_MORE = 0x8000
4075 #define MSG_MORE MSG_MORE
4076 };
4077
4078
4079
4080
4081 struct msghdr
4082 {
4083 void *msg_name;
4084 socklen_t msg_namelen;
4085
4086 struct iovec *msg_iov;
4087 size_t msg_iovlen;
4088
4089 void *msg_control;
4090 size_t msg_controllen;
4091
4092 int msg_flags;
4093 };
4094
4095
4096 struct cmsghdr
4097 {
4098 size_t cmsg_len;
4099
4100 int cmsg_level;
4101 int cmsg_type;
4102
4103 __extension__ unsigned char __cmsg_data [];
4104
4105 };
4106
4107
4108
4109 #define CMSG_DATA(cmsg) ((cmsg)->__cmsg_data)
4110
4111
4112
4113 #define CMSG_NXTHDR(mhdr,cmsg) __cmsg_nxthdr (mhdr, cmsg)
4114 #define CMSG_FIRSTHDR(mhdr) ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) NULL)
4115
4116
4117 #define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1))
4118
4119 #define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr)))
4120
4121 #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
4122
4123 extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr,
4124 struct cmsghdr *__cmsg) __attribute__ ((__nothrow__));
4125 # 284 "/usr/include/bits/socket.h" 3 4
4126 enum
4127 {
4128 SCM_RIGHTS = 0x01
4129 #define SCM_RIGHTS SCM_RIGHTS
4130
4131 , SCM_CREDENTIALS = 0x02
4132 #define SCM_CREDENTIALS SCM_CREDENTIALS
4133
4134 };
4135
4136
4137
4138 struct ucred
4139 {
4140 pid_t pid;
4141 uid_t uid;
4142 gid_t gid;
4143 };
4144
4145
4146 # 1 "/usr/include/asm/socket.h" 1 3 4
4147
4148 #define _ASM_SOCKET_H
4149
4150 # 1 "/usr/include/asm/sockios.h" 1 3 4
4151
4152 #define __ARCH_I386_SOCKIOS__
4153
4154
4155 #define FIOSETOWN 0x8901
4156 #define SIOCSPGRP 0x8902
4157 #define FIOGETOWN 0x8903
4158 #define SIOCGPGRP 0x8904
4159 #define SIOCATMARK 0x8905
4160 #define SIOCGSTAMP 0x8906
4161 # 5 "/usr/include/asm/socket.h" 2 3 4
4162
4163
4164 #define SOL_SOCKET 1
4165
4166 #define SO_DEBUG 1
4167 #define SO_REUSEADDR 2
4168 #define SO_TYPE 3
4169 #define SO_ERROR 4
4170 #define SO_DONTROUTE 5
4171 #define SO_BROADCAST 6
4172 #define SO_SNDBUF 7
4173 #define SO_RCVBUF 8
4174 #define SO_KEEPALIVE 9
4175 #define SO_OOBINLINE 10
4176 #define SO_NO_CHECK 11
4177 #define SO_PRIORITY 12
4178 #define SO_LINGER 13
4179 #define SO_BSDCOMPAT 14
4180
4181 #define SO_PASSCRED 16
4182 #define SO_PEERCRED 17
4183 #define SO_RCVLOWAT 18
4184 #define SO_SNDLOWAT 19
4185 #define SO_RCVTIMEO 20
4186 #define SO_SNDTIMEO 21
4187
4188
4189 #define SO_SECURITY_AUTHENTICATION 22
4190 #define SO_SECURITY_ENCRYPTION_TRANSPORT 23
4191 #define SO_SECURITY_ENCRYPTION_NETWORK 24
4192
4193 #define SO_BINDTODEVICE 25
4194
4195
4196 #define SO_ATTACH_FILTER 26
4197 #define SO_DETACH_FILTER 27
4198
4199 #define SO_PEERNAME 28
4200 #define SO_TIMESTAMP 29
4201 #define SCM_TIMESTAMP SO_TIMESTAMP
4202
4203 #define SO_ACCEPTCONN 30
4204
4205 #define SO_PEERSEC 31
4206 # 305 "/usr/include/bits/socket.h" 2 3 4
4207
4208
4209
4210 struct linger
4211 {
4212 int l_onoff;
4213 int l_linger;
4214 };
4215 # 36 "/usr/include/sys/socket.h" 2 3 4
4216
4217
4218
4219
4220 struct osockaddr
4221 {
4222 unsigned short int sa_family;
4223 unsigned char sa_data[14];
4224 };
4225
4226
4227
4228
4229 enum
4230 {
4231 SHUT_RD = 0,
4232 #define SHUT_RD SHUT_RD
4233 SHUT_WR,
4234 #define SHUT_WR SHUT_WR
4235 SHUT_RDWR
4236 #define SHUT_RDWR SHUT_RDWR
4237 };
4238 # 71 "/usr/include/sys/socket.h" 3 4
4239 #define __SOCKADDR_ALLTYPES __SOCKADDR_ONETYPE (sockaddr) __SOCKADDR_ONETYPE (sockaddr_at) __SOCKADDR_ONETYPE (sockaddr_ax25) __SOCKADDR_ONETYPE (sockaddr_dl) __SOCKADDR_ONETYPE (sockaddr_eon) __SOCKADDR_ONETYPE (sockaddr_in) __SOCKADDR_ONETYPE (sockaddr_in6) __SOCKADDR_ONETYPE (sockaddr_inarp) __SOCKADDR_ONETYPE (sockaddr_ipx) __SOCKADDR_ONETYPE (sockaddr_iso) __SOCKADDR_ONETYPE (sockaddr_ns) __SOCKADDR_ONETYPE (sockaddr_un) __SOCKADDR_ONETYPE (sockaddr_x25)
4240 # 86 "/usr/include/sys/socket.h" 3 4
4241 #define __SOCKADDR_ONETYPE(type) struct type *__restrict __ ##type ##__;
4242 typedef union { struct sockaddr *__restrict __sockaddr__; struct sockaddr_at *__restrict __sockaddr_at__; struct sockaddr_ax25 *__restrict __sockaddr_ax25__; struct sockaddr_dl *__restrict __sockaddr_dl__; struct sockaddr_eon *__restrict __sockaddr_eon__; struct sockaddr_in *__restrict __sockaddr_in__; struct sockaddr_in6 *__restrict __sockaddr_in6__; struct sockaddr_inarp *__restrict __sockaddr_inarp__; struct sockaddr_ipx *__restrict __sockaddr_ipx__; struct sockaddr_iso *__restrict __sockaddr_iso__; struct sockaddr_ns *__restrict __sockaddr_ns__; struct sockaddr_un *__restrict __sockaddr_un__; struct sockaddr_x25 *__restrict __sockaddr_x25__;
4243 } __SOCKADDR_ARG __attribute__ ((__transparent_union__));
4244 #undef __SOCKADDR_ONETYPE
4245 #define __SOCKADDR_ONETYPE(type) __const struct type *__restrict __ ##type ##__;
4246 typedef union { __const struct sockaddr *__restrict __sockaddr__; __const struct sockaddr_at *__restrict __sockaddr_at__; __const struct sockaddr_ax25 *__restrict __sockaddr_ax25__; __const struct sockaddr_dl *__restrict __sockaddr_dl__; __const struct sockaddr_eon *__restrict __sockaddr_eon__; __const struct sockaddr_in *__restrict __sockaddr_in__; __const struct sockaddr_in6 *__restrict __sockaddr_in6__; __const struct sockaddr_inarp *__restrict __sockaddr_inarp__; __const struct sockaddr_ipx *__restrict __sockaddr_ipx__; __const struct sockaddr_iso *__restrict __sockaddr_iso__; __const struct sockaddr_ns *__restrict __sockaddr_ns__; __const struct sockaddr_un *__restrict __sockaddr_un__; __const struct sockaddr_x25 *__restrict __sockaddr_x25__;
4247 } __CONST_SOCKADDR_ARG __attribute__ ((__transparent_union__));
4248 #undef __SOCKADDR_ONETYPE
4249
4250
4251
4252
4253
4254
4255 extern int socket (int __domain, int __type, int __protocol) __attribute__ ((__nothrow__));
4256
4257
4258
4259
4260
4261 extern int socketpair (int __domain, int __type, int __protocol,
4262 int __fds[2]) __attribute__ ((__nothrow__));
4263
4264
4265 extern int bind (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len)
4266 __attribute__ ((__nothrow__));
4267
4268
4269 extern int getsockname (int __fd, __SOCKADDR_ARG __addr,
4270 socklen_t *__restrict __len) __attribute__ ((__nothrow__));
4271 # 124 "/usr/include/sys/socket.h" 3 4
4272 extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len);
4273
4274
4275
4276 extern int getpeername (int __fd, __SOCKADDR_ARG __addr,
4277 socklen_t *__restrict __len) __attribute__ ((__nothrow__));
4278
4279
4280
4281
4282
4283
4284 extern ssize_t send (int __fd, __const void *__buf, size_t __n, int __flags);
4285
4286
4287
4288
4289
4290
4291 extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags);
4292
4293
4294
4295
4296
4297
4298 extern ssize_t sendto (int __fd, __const void *__buf, size_t __n,
4299 int __flags, __CONST_SOCKADDR_ARG __addr,
4300 socklen_t __addr_len);
4301 # 161 "/usr/include/sys/socket.h" 3 4
4302 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
4303 int __flags, __SOCKADDR_ARG __addr,
4304 socklen_t *__restrict __addr_len);
4305
4306
4307
4308
4309
4310
4311
4312 extern ssize_t sendmsg (int __fd, __const struct msghdr *__message,
4313 int __flags);
4314
4315
4316
4317
4318
4319
4320 extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags);
4321
4322
4323
4324
4325
4326 extern int getsockopt (int __fd, int __level, int __optname,
4327 void *__restrict __optval,
4328 socklen_t *__restrict __optlen) __attribute__ ((__nothrow__));
4329
4330
4331
4332
4333 extern int setsockopt (int __fd, int __level, int __optname,
4334 __const void *__optval, socklen_t __optlen) __attribute__ ((__nothrow__));
4335
4336
4337
4338
4339
4340 extern int listen (int __fd, int __n) __attribute__ ((__nothrow__));
4341 # 209 "/usr/include/sys/socket.h" 3 4
4342 extern int accept (int __fd, __SOCKADDR_ARG __addr,
4343 socklen_t *__restrict __addr_len);
4344
4345
4346
4347
4348
4349
4350
4351 extern int shutdown (int __fd, int __how) __attribute__ ((__nothrow__));
4352
4353
4354
4355
4356 extern int sockatmark (int __fd) __attribute__ ((__nothrow__));
4357
4358
4359
4360
4361
4362
4363
4364 extern int isfdtype (int __fd, int __fdtype) __attribute__ ((__nothrow__));
4365 # 240 "/usr/include/sys/socket.h" 3 4
4366
4367 # 25 "/usr/include/netinet/in.h" 2 3 4
4368
4369
4370
4371
4372
4373
4374 enum
4375 {
4376 IPPROTO_IP = 0,
4377 #define IPPROTO_IP IPPROTO_IP
4378 IPPROTO_HOPOPTS = 0,
4379 #define IPPROTO_HOPOPTS IPPROTO_HOPOPTS
4380 IPPROTO_ICMP = 1,
4381 #define IPPROTO_ICMP IPPROTO_ICMP
4382 IPPROTO_IGMP = 2,
4383 #define IPPROTO_IGMP IPPROTO_IGMP
4384 IPPROTO_IPIP = 4,
4385 #define IPPROTO_IPIP IPPROTO_IPIP
4386 IPPROTO_TCP = 6,
4387 #define IPPROTO_TCP IPPROTO_TCP
4388 IPPROTO_EGP = 8,
4389 #define IPPROTO_EGP IPPROTO_EGP
4390 IPPROTO_PUP = 12,
4391 #define IPPROTO_PUP IPPROTO_PUP
4392 IPPROTO_UDP = 17,
4393 #define IPPROTO_UDP IPPROTO_UDP
4394 IPPROTO_IDP = 22,
4395 #define IPPROTO_IDP IPPROTO_IDP
4396 IPPROTO_TP = 29,
4397 #define IPPROTO_TP IPPROTO_TP
4398 IPPROTO_IPV6 = 41,
4399 #define IPPROTO_IPV6 IPPROTO_IPV6
4400 IPPROTO_ROUTING = 43,
4401 #define IPPROTO_ROUTING IPPROTO_ROUTING
4402 IPPROTO_FRAGMENT = 44,
4403 #define IPPROTO_FRAGMENT IPPROTO_FRAGMENT
4404 IPPROTO_RSVP = 46,
4405 #define IPPROTO_RSVP IPPROTO_RSVP
4406 IPPROTO_GRE = 47,
4407 #define IPPROTO_GRE IPPROTO_GRE
4408 IPPROTO_ESP = 50,
4409 #define IPPROTO_ESP IPPROTO_ESP
4410 IPPROTO_AH = 51,
4411 #define IPPROTO_AH IPPROTO_AH
4412 IPPROTO_ICMPV6 = 58,
4413 #define IPPROTO_ICMPV6 IPPROTO_ICMPV6
4414 IPPROTO_NONE = 59,
4415 #define IPPROTO_NONE IPPROTO_NONE
4416 IPPROTO_DSTOPTS = 60,
4417 #define IPPROTO_DSTOPTS IPPROTO_DSTOPTS
4418 IPPROTO_MTP = 92,
4419 #define IPPROTO_MTP IPPROTO_MTP
4420 IPPROTO_ENCAP = 98,
4421 #define IPPROTO_ENCAP IPPROTO_ENCAP
4422 IPPROTO_PIM = 103,
4423 #define IPPROTO_PIM IPPROTO_PIM
4424 IPPROTO_COMP = 108,
4425 #define IPPROTO_COMP IPPROTO_COMP
4426 IPPROTO_SCTP = 132,
4427 #define IPPROTO_SCTP IPPROTO_SCTP
4428 IPPROTO_RAW = 255,
4429 #define IPPROTO_RAW IPPROTO_RAW
4430 IPPROTO_MAX
4431 };
4432
4433
4434
4435 typedef uint16_t in_port_t;
4436
4437
4438 enum
4439 {
4440 IPPORT_ECHO = 7,
4441 IPPORT_DISCARD = 9,
4442 IPPORT_SYSTAT = 11,
4443 IPPORT_DAYTIME = 13,
4444 IPPORT_NETSTAT = 15,
4445 IPPORT_FTP = 21,
4446 IPPORT_TELNET = 23,
4447 IPPORT_SMTP = 25,
4448 IPPORT_TIMESERVER = 37,
4449 IPPORT_NAMESERVER = 42,
4450 IPPORT_WHOIS = 43,
4451 IPPORT_MTP = 57,
4452
4453 IPPORT_TFTP = 69,
4454 IPPORT_RJE = 77,
4455 IPPORT_FINGER = 79,
4456 IPPORT_TTYLINK = 87,
4457 IPPORT_SUPDUP = 95,
4458
4459
4460 IPPORT_EXECSERVER = 512,
4461 IPPORT_LOGINSERVER = 513,
4462 IPPORT_CMDSERVER = 514,
4463 IPPORT_EFSSERVER = 520,
4464
4465
4466 IPPORT_BIFFUDP = 512,
4467 IPPORT_WHOSERVER = 513,
4468 IPPORT_ROUTESERVER = 520,
4469
4470
4471 IPPORT_RESERVED = 1024,
4472
4473
4474 IPPORT_USERRESERVED = 5000
4475 };
4476
4477
4478
4479 typedef uint32_t in_addr_t;
4480 struct in_addr
4481 {
4482 in_addr_t s_addr;
4483 };
4484
4485
4486
4487
4488
4489
4490
4491 #define IN_CLASSA(a) ((((in_addr_t)(a)) & 0x80000000) == 0)
4492 #define IN_CLASSA_NET 0xff000000
4493 #define IN_CLASSA_NSHIFT 24
4494 #define IN_CLASSA_HOST (0xffffffff & ~IN_CLASSA_NET)
4495 #define IN_CLASSA_MAX 128
4496
4497 #define IN_CLASSB(a) ((((in_addr_t)(a)) & 0xc0000000) == 0x80000000)
4498 #define IN_CLASSB_NET 0xffff0000
4499 #define IN_CLASSB_NSHIFT 16
4500 #define IN_CLASSB_HOST (0xffffffff & ~IN_CLASSB_NET)
4501 #define IN_CLASSB_MAX 65536
4502
4503 #define IN_CLASSC(a) ((((in_addr_t)(a)) & 0xe0000000) == 0xc0000000)
4504 #define IN_CLASSC_NET 0xffffff00
4505 #define IN_CLASSC_NSHIFT 8
4506 #define IN_CLASSC_HOST (0xffffffff & ~IN_CLASSC_NET)
4507
4508 #define IN_CLASSD(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xe0000000)
4509 #define IN_MULTICAST(a) IN_CLASSD(a)
4510
4511 #define IN_EXPERIMENTAL(a) ((((in_addr_t)(a)) & 0xe0000000) == 0xe0000000)
4512 #define IN_BADCLASS(a) ((((in_addr_t)(a)) & 0xf0000000) == 0xf0000000)
4513
4514
4515 #define INADDR_ANY ((in_addr_t) 0x00000000)
4516
4517 #define INADDR_BROADCAST ((in_addr_t) 0xffffffff)
4518
4519 #define INADDR_NONE ((in_addr_t) 0xffffffff)
4520
4521
4522 #define IN_LOOPBACKNET 127
4523
4524
4525 #define INADDR_LOOPBACK ((in_addr_t) 0x7f000001)
4526
4527
4528
4529 #define INADDR_UNSPEC_GROUP ((in_addr_t) 0xe0000000)
4530 #define INADDR_ALLHOSTS_GROUP ((in_addr_t) 0xe0000001)
4531 #define INADDR_ALLRTRS_GROUP ((in_addr_t) 0xe0000002)
4532 #define INADDR_MAX_LOCAL_GROUP ((in_addr_t) 0xe00000ff)
4533
4534
4535
4536 struct in6_addr
4537 {
4538 union
4539 {
4540 uint8_t u6_addr8[16];
4541 uint16_t u6_addr16[8];
4542 uint32_t u6_addr32[4];
4543 } in6_u;
4544 #define s6_addr in6_u.u6_addr8
4545 #define s6_addr16 in6_u.u6_addr16
4546 #define s6_addr32 in6_u.u6_addr32
4547 };
4548
4549 extern const struct in6_addr in6addr_any;
4550 extern const struct in6_addr in6addr_loopback;
4551 #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }
4552 #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
4553
4554 #define INET_ADDRSTRLEN 16
4555 #define INET6_ADDRSTRLEN 46
4556
4557
4558
4559
4560
4561
4562 struct sockaddr_in
4563 {
4564 sa_family_t sin_family;
4565 in_port_t sin_port;
4566 struct in_addr sin_addr;
4567
4568
4569 unsigned char sin_zero[sizeof (struct sockaddr) -
4570 (sizeof (unsigned short int)) -
4571 sizeof (in_port_t) -
4572 sizeof (struct in_addr)];
4573 };
4574
4575
4576 struct sockaddr_in6
4577 {
4578 sa_family_t sin6_family;
4579 in_port_t sin6_port;
4580 uint32_t sin6_flowinfo;
4581 struct in6_addr sin6_addr;
4582 uint32_t sin6_scope_id;
4583 };
4584
4585
4586
4587 struct ip_mreq
4588 {
4589
4590 struct in_addr imr_multiaddr;
4591
4592
4593 struct in_addr imr_interface;
4594 };
4595
4596 struct ip_mreq_source
4597 {
4598
4599 struct in_addr imr_multiaddr;
4600
4601
4602 struct in_addr imr_interface;
4603
4604
4605 struct in_addr imr_sourceaddr;
4606 };
4607
4608
4609 struct ipv6_mreq
4610 {
4611
4612 struct in6_addr ipv6mr_multiaddr;
4613
4614
4615 unsigned int ipv6mr_interface;
4616 };
4617
4618
4619
4620 struct group_req
4621 {
4622
4623 uint32_t gr_interface;
4624
4625
4626 struct sockaddr_storage gr_group;
4627 };
4628
4629 struct group_source_req
4630 {
4631
4632 uint32_t gsr_interface;
4633
4634
4635 struct sockaddr_storage gsr_group;
4636
4637
4638 struct sockaddr_storage gsr_source;
4639 };
4640
4641
4642
4643 struct ip_msfilter
4644 {
4645
4646 struct in_addr imsf_multiaddr;
4647
4648
4649 struct in_addr imsf_interface;
4650
4651
4652 uint32_t imsf_fmode;
4653
4654
4655 uint32_t imsf_numsrc;
4656
4657 struct in_addr imsf_slist[1];
4658 };
4659
4660 #define IP_MSFILTER_SIZE(numsrc) (sizeof (struct ip_msfilter) - sizeof (struct in_addr) + (numsrc) * sizeof (struct in_addr))
4661
4662
4663
4664 struct group_filter
4665 {
4666
4667 uint32_t gf_interface;
4668
4669
4670 struct sockaddr_storage gf_group;
4671
4672
4673 uint32_t gf_fmode;
4674
4675
4676 uint32_t gf_numsrc;
4677
4678 struct sockaddr_storage gf_slist[1];
4679 };
4680
4681 #define GROUP_FILTER_SIZE(numsrc) (sizeof (struct group_filter) - sizeof (struct sockaddr_storage) + ((numsrc) * sizeof (struct sockaddr_storage)))
4682
4683
4684
4685
4686
4687
4688 # 1 "/usr/include/bits/in.h" 1 3 4
4689 # 28 "/usr/include/bits/in.h" 3 4
4690 #define IP_OPTIONS 4
4691 #define IP_HDRINCL 3
4692 #define IP_TOS 1
4693 #define IP_TTL 2
4694 #define IP_RECVOPTS 6
4695
4696 #define IP_RECVRETOPTS IP_RETOPTS
4697 #define IP_RETOPTS 7
4698 #define IP_MULTICAST_IF 32
4699 #define IP_MULTICAST_TTL 33
4700 #define IP_MULTICAST_LOOP 34
4701 #define IP_ADD_MEMBERSHIP 35
4702 #define IP_DROP_MEMBERSHIP 36
4703 #define IP_UNBLOCK_SOURCE 37
4704 #define IP_BLOCK_SOURCE 38
4705 #define IP_ADD_SOURCE_MEMBERSHIP 39
4706 #define IP_DROP_SOURCE_MEMBERSHIP 40
4707 #define IP_MSFILTER 41
4708 #define MCAST_JOIN_GROUP 42
4709 #define MCAST_BLOCK_SOURCE 43
4710 #define MCAST_UNBLOCK_SOURCE 44
4711 #define MCAST_LEAVE_GROUP 45
4712 #define MCAST_JOIN_SOURCE_GROUP 46
4713 #define MCAST_LEAVE_SOURCE_GROUP 47
4714 #define MCAST_MSFILTER 48
4715
4716 #define MCAST_EXCLUDE 0
4717 #define MCAST_INCLUDE 1
4718
4719 #define IP_ROUTER_ALERT 5
4720 #define IP_PKTINFO 8
4721 #define IP_PKTOPTIONS 9
4722 #define IP_PMTUDISC 10
4723 #define IP_MTU_DISCOVER 10
4724 #define IP_RECVERR 11
4725 #define IP_RECVTTL 12
4726 #define IP_RECVTOS 13
4727
4728
4729
4730 #define IP_PMTUDISC_DONT 0
4731 #define IP_PMTUDISC_WANT 1
4732 #define IP_PMTUDISC_DO 2
4733
4734
4735 #define SOL_IP 0
4736
4737 #define IP_DEFAULT_MULTICAST_TTL 1
4738 #define IP_DEFAULT_MULTICAST_LOOP 1
4739 #define IP_MAX_MEMBERSHIPS 20
4740
4741
4742
4743
4744 struct ip_opts
4745 {
4746 struct in_addr ip_dst;
4747 char ip_opts[40];
4748 };
4749
4750
4751 struct ip_mreqn
4752 {
4753 struct in_addr imr_multiaddr;
4754 struct in_addr imr_address;
4755 int imr_ifindex;
4756 };
4757
4758
4759 struct in_pktinfo
4760 {
4761