5 char netlib_id[]="@(#)netlib.c (c) Copyright 1993-2004 Hewlett-Packard Company. Version 2.3pl2";
15 # 1 "/usr/include/limits.h" 1 3 4
16 # 26 "/usr/include/limits.h" 3 4
17 # 1 "/usr/include/features.h" 1 3 4
18 # 308 "/usr/include/features.h" 3 4
19 # 1 "/usr/include/sys/cdefs.h" 1 3 4
20 # 309 "/usr/include/features.h" 2 3 4
21 # 331 "/usr/include/features.h" 3 4
22 # 1 "/usr/include/gnu/stubs.h" 1 3 4
23 # 332 "/usr/include/features.h" 2 3 4
24 # 27 "/usr/include/limits.h" 2 3 4
25 # 124 "/usr/include/limits.h" 3 4
26 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/limits.h" 1 3 4
27 # 125 "/usr/include/limits.h" 2 3 4
28 # 144 "/usr/include/limits.h" 3 4
29 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
30 # 153 "/usr/include/bits/posix1_lim.h" 3 4
31 # 1 "/usr/include/bits/local_lim.h" 1 3 4
32 # 36 "/usr/include/bits/local_lim.h" 3 4
33 # 1 "/usr/include/linux/limits.h" 1 3 4
34 # 37 "/usr/include/bits/local_lim.h" 2 3 4
35 # 154 "/usr/include/bits/posix1_lim.h" 2 3 4
36 # 145 "/usr/include/limits.h" 2 3 4
40 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
41 # 149 "/usr/include/limits.h" 2 3 4
43 # 1 "/usr/include/signal.h" 1 3 4
44 # 31 "/usr/include/signal.h" 3 4
47 # 1 "/usr/include/bits/sigset.h" 1 3 4
48 # 23 "/usr/include/bits/sigset.h" 3 4
49 typedef int __sig_atomic_t;
56 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
58 # 103 "/usr/include/bits/sigset.h" 3 4
59 extern int __sigismember (__const __sigset_t *, int);
60 extern int __sigaddset (__sigset_t *, int);
61 extern int __sigdelset (__sigset_t *, int);
62 # 117 "/usr/include/bits/sigset.h" 3 4
63 extern __inline int __sigismember (__const __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return (__set->__val[__word] & __mask) ? 1 : 0; }
64 extern __inline int __sigaddset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] |= __mask), 0); }
65 extern __inline int __sigdelset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] &= ~__mask), 0); }
66 # 34 "/usr/include/signal.h" 2 3 4
74 typedef __sig_atomic_t sig_atomic_t;
83 typedef __sigset_t sigset_t;
90 # 1 "/usr/include/bits/types.h" 1 3 4
91 # 28 "/usr/include/bits/types.h" 3 4
92 # 1 "/usr/include/bits/wordsize.h" 1 3 4
93 # 29 "/usr/include/bits/types.h" 2 3 4
96 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
97 # 214 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 3 4
98 typedef long unsigned int size_t;
99 # 32 "/usr/include/bits/types.h" 2 3 4
102 typedef unsigned char __u_char;
103 typedef unsigned short int __u_short;
104 typedef unsigned int __u_int;
105 typedef unsigned long int __u_long;
108 typedef signed char __int8_t;
109 typedef unsigned char __uint8_t;
110 typedef signed short int __int16_t;
111 typedef unsigned short int __uint16_t;
112 typedef signed int __int32_t;
113 typedef unsigned int __uint32_t;
118 __extension__ typedef signed long long int __int64_t;
119 __extension__ typedef unsigned long long int __uint64_t;
127 __extension__ typedef long long int __quad_t;
128 __extension__ typedef unsigned long long int __u_quad_t;
129 # 129 "/usr/include/bits/types.h" 3 4
130 # 1 "/usr/include/bits/typesizes.h" 1 3 4
131 # 130 "/usr/include/bits/types.h" 2 3 4
138 __extension__ typedef __u_quad_t __dev_t;
139 __extension__ typedef unsigned int __uid_t;
140 __extension__ typedef unsigned int __gid_t;
141 __extension__ typedef unsigned long int __ino_t;
142 __extension__ typedef __u_quad_t __ino64_t;
143 __extension__ typedef unsigned int __mode_t;
144 __extension__ typedef unsigned int __nlink_t;
145 __extension__ typedef long int __off_t;
146 __extension__ typedef __quad_t __off64_t;
147 __extension__ typedef int __pid_t;
148 __extension__ typedef struct { int __val[2]; } __fsid_t;
149 __extension__ typedef long int __clock_t;
150 __extension__ typedef unsigned long int __rlim_t;
151 __extension__ typedef __u_quad_t __rlim64_t;
152 __extension__ typedef unsigned int __id_t;
153 __extension__ typedef long int __time_t;
154 __extension__ typedef unsigned int __useconds_t;
155 __extension__ typedef long int __suseconds_t;
157 __extension__ typedef int __daddr_t;
158 __extension__ typedef long int __swblk_t;
159 __extension__ typedef int __key_t;
162 __extension__ typedef int __clockid_t;
165 __extension__ typedef int __timer_t;
168 __extension__ typedef long int __blksize_t;
173 __extension__ typedef long int __blkcnt_t;
174 __extension__ typedef __quad_t __blkcnt64_t;
177 __extension__ typedef unsigned long int __fsblkcnt_t;
178 __extension__ typedef __u_quad_t __fsblkcnt64_t;
181 __extension__ typedef unsigned long int __fsfilcnt_t;
182 __extension__ typedef __u_quad_t __fsfilcnt64_t;
184 __extension__ typedef int __ssize_t;
188 typedef __off64_t __loff_t;
189 typedef __quad_t *__qaddr_t;
190 typedef char *__caddr_t;
193 __extension__ typedef int __intptr_t;
196 __extension__ typedef unsigned int __socklen_t;
197 # 58 "/usr/include/signal.h" 2 3 4
198 # 1 "/usr/include/bits/signum.h" 1 3 4
199 # 59 "/usr/include/signal.h" 2 3 4
200 # 75 "/usr/include/signal.h" 3 4
201 typedef void (*__sighandler_t) (int);
206 extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler)
207 __attribute__ ((__nothrow__));
208 # 90 "/usr/include/signal.h" 3 4
211 extern __sighandler_t signal (int __sig, __sighandler_t __handler)
212 __attribute__ ((__nothrow__));
213 # 104 "/usr/include/signal.h" 3 4
215 # 117 "/usr/include/signal.h" 3 4
216 extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__));
223 extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__));
228 extern int raise (int __sig) __attribute__ ((__nothrow__));
233 extern __sighandler_t ssignal (int __sig, __sighandler_t __handler)
234 __attribute__ ((__nothrow__));
235 extern int gsignal (int __sig) __attribute__ ((__nothrow__));
240 extern void psignal (int __sig, __const char *__s);
241 # 153 "/usr/include/signal.h" 3 4
242 extern int __sigpause (int __sig_or_mask, int __is_sig);
243 # 181 "/usr/include/signal.h" 3 4
244 extern int sigblock (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
247 extern int sigsetmask (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
250 extern int siggetmask (void) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
251 # 201 "/usr/include/signal.h" 3 4
252 typedef __sighandler_t sig_t;
260 # 1 "/usr/include/time.h" 1 3 4
261 # 118 "/usr/include/time.h" 3 4
267 # 210 "/usr/include/signal.h" 2 3 4
270 # 1 "/usr/include/bits/siginfo.h" 1 3 4
271 # 25 "/usr/include/bits/siginfo.h" 3 4
272 # 1 "/usr/include/bits/wordsize.h" 1 3 4
273 # 26 "/usr/include/bits/siginfo.h" 2 3 4
286 # 51 "/usr/include/bits/siginfo.h" 3 4
287 typedef struct siginfo
296 int _pad[((128 / sizeof (int)) - 3)];
345 # 129 "/usr/include/bits/siginfo.h" 3 4
473 # 273 "/usr/include/bits/siginfo.h" 3 4
474 typedef struct sigevent
476 sigval_t sigev_value;
482 int _pad[((64 / sizeof (int)) - 3)];
490 void (*_function) (sigval_t);
513 # 213 "/usr/include/signal.h" 2 3 4
517 extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
520 extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
523 extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
526 extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
529 extern int sigismember (__const sigset_t *__set, int __signo)
530 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
531 # 246 "/usr/include/signal.h" 3 4
532 # 1 "/usr/include/bits/sigaction.h" 1 3 4
533 # 25 "/usr/include/bits/sigaction.h" 3 4
541 __sighandler_t sa_handler;
543 void (*sa_sigaction) (int, siginfo_t *, void *);
559 void (*sa_restorer) (void);
561 # 247 "/usr/include/signal.h" 2 3 4
564 extern int sigprocmask (int __how, __const sigset_t *__restrict __set,
565 sigset_t *__restrict __oset) __attribute__ ((__nothrow__));
572 extern int sigsuspend (__const sigset_t *__set) __attribute__ ((__nonnull__ (1)));
575 extern int sigaction (int __sig, __const struct sigaction *__restrict __act,
576 struct sigaction *__restrict __oact) __attribute__ ((__nothrow__));
579 extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
586 extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig)
587 __attribute__ ((__nonnull__ (1, 2)));
594 extern int sigwaitinfo (__const sigset_t *__restrict __set,
595 siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1)));
602 extern int sigtimedwait (__const sigset_t *__restrict __set,
603 siginfo_t *__restrict __info,
604 __const struct timespec *__restrict __timeout)
605 __attribute__ ((__nonnull__ (1)));
609 extern int sigqueue (__pid_t __pid, int __sig, __const union sigval __val)
610 __attribute__ ((__nothrow__));
611 # 304 "/usr/include/signal.h" 3 4
612 extern __const char *__const _sys_siglist[65];
613 extern __const char *__const sys_siglist[65];
618 __sighandler_t sv_handler;
624 # 328 "/usr/include/signal.h" 3 4
625 extern int sigvec (int __sig, __const struct sigvec *__vec,
626 struct sigvec *__ovec) __attribute__ ((__nothrow__));
630 # 1 "/usr/include/bits/sigcontext.h" 1 3 4
631 # 28 "/usr/include/bits/sigcontext.h" 3 4
632 # 1 "/usr/include/asm/sigcontext.h" 1 3 4
633 # 11 "/usr/include/asm/sigcontext.h" 3 4
634 # 1 "/usr/include/asm-i386/sigcontext.h" 1 3 4
635 # 19 "/usr/include/asm-i386/sigcontext.h" 3 4
637 unsigned short significand[4];
638 unsigned short exponent;
642 unsigned short significand[4];
643 unsigned short exponent;
644 unsigned short padding[3];
648 unsigned long element[4];
658 unsigned long dataoff;
659 unsigned long datasel;
660 struct _fpreg _st[8];
661 unsigned short status;
662 unsigned short magic;
665 unsigned long _fxsr_env[6];
667 unsigned long reserved;
668 struct _fpxreg _fxsr_st[8];
669 struct _xmmreg _xmm[8];
670 unsigned long padding[56];
676 unsigned short gs, __gsh;
677 unsigned short fs, __fsh;
678 unsigned short es, __esh;
679 unsigned short ds, __dsh;
688 unsigned long trapno;
691 unsigned short cs, __csh;
692 unsigned long eflags;
693 unsigned long esp_at_signal;
694 unsigned short ss, __ssh;
695 struct _fpstate * fpstate;
696 unsigned long oldmask;
699 # 12 "/usr/include/asm/sigcontext.h" 2 3 4
700 # 29 "/usr/include/bits/sigcontext.h" 2 3 4
701 # 334 "/usr/include/signal.h" 2 3 4
704 extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__));
705 # 346 "/usr/include/signal.h" 3 4
706 extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__));
708 # 1 "/usr/include/bits/sigstack.h" 1 3 4
709 # 26 "/usr/include/bits/sigstack.h" 3 4
725 # 50 "/usr/include/bits/sigstack.h" 3 4
726 typedef struct sigaltstack
732 # 349 "/usr/include/signal.h" 2 3 4
733 # 357 "/usr/include/signal.h" 3 4
734 extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)
735 __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
739 extern int sigaltstack (__const struct sigaltstack *__restrict __ss,
740 struct sigaltstack *__restrict __oss) __attribute__ ((__nothrow__));
741 # 386 "/usr/include/signal.h" 3 4
742 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
743 # 23 "/usr/include/bits/pthreadtypes.h" 3 4
744 # 1 "/usr/include/bits/sched.h" 1 3 4
745 # 83 "/usr/include/bits/sched.h" 3 4
748 int __sched_priority;
750 # 24 "/usr/include/bits/pthreadtypes.h" 2 3 4
752 typedef int __atomic_lock_t;
755 struct _pthread_fastlock
758 __atomic_lock_t __spinlock;
764 typedef struct _pthread_descr_struct *_pthread_descr;
770 typedef struct __pthread_attr_s
774 struct __sched_param __schedparam;
787 __extension__ typedef long long __pthread_cond_align_t;
794 struct _pthread_fastlock __c_lock;
795 _pthread_descr __c_waiting;
796 char __padding[48 - sizeof (struct _pthread_fastlock)
797 - sizeof (_pthread_descr) - sizeof (__pthread_cond_align_t)];
798 __pthread_cond_align_t __align;
806 } pthread_condattr_t;
809 typedef unsigned int pthread_key_t;
819 _pthread_descr __m_owner;
821 struct _pthread_fastlock __m_lock;
829 } pthread_mutexattr_t;
833 typedef int pthread_once_t;
834 # 152 "/usr/include/bits/pthreadtypes.h" 3 4
835 typedef unsigned long int pthread_t;
836 # 387 "/usr/include/signal.h" 2 3 4
837 # 1 "/usr/include/bits/sigthread.h" 1 3 4
838 # 31 "/usr/include/bits/sigthread.h" 3 4
839 extern int pthread_sigmask (int __how,
840 __const __sigset_t *__restrict __newmask,
841 __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__));
844 extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__));
845 # 388 "/usr/include/signal.h" 2 3 4
852 extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__));
854 extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__));
863 # 1 "/usr/include/sys/types.h" 1 3 4
864 # 29 "/usr/include/sys/types.h" 3 4
871 typedef __u_char u_char;
872 typedef __u_short u_short;
873 typedef __u_int u_int;
874 typedef __u_long u_long;
875 typedef __quad_t quad_t;
876 typedef __u_quad_t u_quad_t;
877 typedef __fsid_t fsid_t;
882 typedef __loff_t loff_t;
886 typedef __ino_t ino_t;
887 # 62 "/usr/include/sys/types.h" 3 4
888 typedef __dev_t dev_t;
893 typedef __gid_t gid_t;
898 typedef __mode_t mode_t;
903 typedef __nlink_t nlink_t;
908 typedef __uid_t uid_t;
914 typedef __off_t off_t;
915 # 100 "/usr/include/sys/types.h" 3 4
916 typedef __pid_t pid_t;
926 typedef __ssize_t ssize_t;
932 typedef __daddr_t daddr_t;
933 typedef __caddr_t caddr_t;
939 typedef __key_t key_t;
940 # 133 "/usr/include/sys/types.h" 3 4
941 # 1 "/usr/include/time.h" 1 3 4
942 # 74 "/usr/include/time.h" 3 4
945 typedef __time_t time_t;
949 # 92 "/usr/include/time.h" 3 4
950 typedef __clockid_t clockid_t;
951 # 104 "/usr/include/time.h" 3 4
952 typedef __timer_t timer_t;
953 # 134 "/usr/include/sys/types.h" 2 3 4
954 # 147 "/usr/include/sys/types.h" 3 4
955 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
956 # 148 "/usr/include/sys/types.h" 2 3 4
960 typedef unsigned long int ulong;
961 typedef unsigned short int ushort;
962 typedef unsigned int uint;
963 # 191 "/usr/include/sys/types.h" 3 4
964 typedef int int8_t __attribute__ ((__mode__ (__QI__)));
965 typedef int int16_t __attribute__ ((__mode__ (__HI__)));
966 typedef int int32_t __attribute__ ((__mode__ (__SI__)));
967 typedef int int64_t __attribute__ ((__mode__ (__DI__)));
970 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
971 typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
972 typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
973 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
975 typedef int register_t __attribute__ ((__mode__ (__word__)));
976 # 213 "/usr/include/sys/types.h" 3 4
977 # 1 "/usr/include/endian.h" 1 3 4
978 # 37 "/usr/include/endian.h" 3 4
979 # 1 "/usr/include/bits/endian.h" 1 3 4
980 # 38 "/usr/include/endian.h" 2 3 4
981 # 214 "/usr/include/sys/types.h" 2 3 4
984 # 1 "/usr/include/sys/select.h" 1 3 4
985 # 31 "/usr/include/sys/select.h" 3 4
986 # 1 "/usr/include/bits/select.h" 1 3 4
987 # 32 "/usr/include/sys/select.h" 2 3 4
990 # 1 "/usr/include/bits/sigset.h" 1 3 4
991 # 35 "/usr/include/sys/select.h" 2 3 4
992 # 44 "/usr/include/sys/select.h" 3 4
993 # 1 "/usr/include/time.h" 1 3 4
994 # 45 "/usr/include/sys/select.h" 2 3 4
996 # 1 "/usr/include/bits/time.h" 1 3 4
997 # 69 "/usr/include/bits/time.h" 3 4
1001 __suseconds_t tv_usec;
1003 # 47 "/usr/include/sys/select.h" 2 3 4
1006 typedef __suseconds_t suseconds_t;
1012 typedef long int __fd_mask;
1013 # 67 "/usr/include/sys/select.h" 3 4
1022 __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))];
1032 typedef __fd_mask fd_mask;
1033 # 99 "/usr/include/sys/select.h" 3 4
1035 # 109 "/usr/include/sys/select.h" 3 4
1036 extern int select (int __nfds, fd_set *__restrict __readfds,
1037 fd_set *__restrict __writefds,
1038 fd_set *__restrict __exceptfds,
1039 struct timeval *__restrict __timeout);
1040 # 128 "/usr/include/sys/select.h" 3 4
1042 # 217 "/usr/include/sys/types.h" 2 3 4
1045 # 1 "/usr/include/sys/sysmacros.h" 1 3 4
1046 # 29 "/usr/include/sys/sysmacros.h" 3 4
1048 extern __inline unsigned int gnu_dev_major (unsigned long long int __dev)
1049 __attribute__ ((__nothrow__));
1051 extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev)
1052 __attribute__ ((__nothrow__));
1054 extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major,
1055 unsigned int __minor)
1056 __attribute__ ((__nothrow__));
1059 __extension__ extern __inline unsigned int
1060 __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
1062 return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
1065 __extension__ extern __inline unsigned int
1066 __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
1068 return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
1071 __extension__ extern __inline unsigned long long int
1072 __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
1074 return ((__minor & 0xff) | ((__major & 0xfff) << 8)
1075 | (((unsigned long long int) (__minor & ~0xff)) << 12)
1076 | (((unsigned long long int) (__major & ~0xfff)) << 32));
1078 # 220 "/usr/include/sys/types.h" 2 3 4
1079 # 231 "/usr/include/sys/types.h" 3 4
1080 typedef __blkcnt_t blkcnt_t;
1084 typedef __fsblkcnt_t fsblkcnt_t;
1088 typedef __fsfilcnt_t fsfilcnt_t;
1089 # 266 "/usr/include/sys/types.h" 3 4
1090 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
1091 # 267 "/usr/include/sys/types.h" 2 3 4
1096 # 1 "/usr/include/fcntl.h" 1 3 4
1097 # 29 "/usr/include/fcntl.h" 3 4
1102 # 1 "/usr/include/bits/fcntl.h" 1 3 4
1103 # 138 "/usr/include/bits/fcntl.h" 3 4
1117 # 183 "/usr/include/bits/fcntl.h" 3 4
1121 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
1122 __attribute__ ((__nothrow__));
1125 # 34 "/usr/include/fcntl.h" 2 3 4
1126 # 63 "/usr/include/fcntl.h" 3 4
1127 extern int fcntl (int __fd, int __cmd, ...);
1128 # 72 "/usr/include/fcntl.h" 3 4
1129 extern int open (__const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1)));
1130 # 91 "/usr/include/fcntl.h" 3 4
1131 extern int creat (__const char *__file, __mode_t __mode) __attribute__ ((__nonnull__ (1)));
1132 # 120 "/usr/include/fcntl.h" 3 4
1133 extern int lockf (int __fd, int __cmd, __off_t __len);
1134 # 174 "/usr/include/fcntl.h" 3 4
1137 # 1 "/usr/include/stdio.h" 1 3 4
1138 # 30 "/usr/include/stdio.h" 3 4
1143 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
1144 # 35 "/usr/include/stdio.h" 2 3 4
1145 # 44 "/usr/include/stdio.h" 3 4
1148 typedef struct _IO_FILE FILE;
1154 # 62 "/usr/include/stdio.h" 3 4
1155 typedef struct _IO_FILE __FILE;
1156 # 72 "/usr/include/stdio.h" 3 4
1157 # 1 "/usr/include/libio.h" 1 3 4
1158 # 32 "/usr/include/libio.h" 3 4
1159 # 1 "/usr/include/_G_config.h" 1 3 4
1160 # 14 "/usr/include/_G_config.h" 3 4
1161 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
1162 # 326 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 3 4
1163 typedef int wchar_t;
1164 # 355 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 3 4
1165 typedef unsigned int wint_t;
1166 # 15 "/usr/include/_G_config.h" 2 3 4
1167 # 24 "/usr/include/_G_config.h" 3 4
1168 # 1 "/usr/include/wchar.h" 1 3 4
1169 # 48 "/usr/include/wchar.h" 3 4
1170 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
1171 # 49 "/usr/include/wchar.h" 2 3 4
1173 # 1 "/usr/include/bits/wchar.h" 1 3 4
1174 # 51 "/usr/include/wchar.h" 2 3 4
1175 # 76 "/usr/include/wchar.h" 3 4
1185 # 25 "/usr/include/_G_config.h" 2 3 4
1190 __mbstate_t __state;
1195 __mbstate_t __state;
1197 # 44 "/usr/include/_G_config.h" 3 4
1198 # 1 "/usr/include/gconv.h" 1 3 4
1199 # 28 "/usr/include/gconv.h" 3 4
1200 # 1 "/usr/include/wchar.h" 1 3 4
1201 # 48 "/usr/include/wchar.h" 3 4
1202 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
1203 # 49 "/usr/include/wchar.h" 2 3 4
1204 # 29 "/usr/include/gconv.h" 2 3 4
1207 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
1208 # 32 "/usr/include/gconv.h" 2 3 4
1221 __GCONV_EMPTY_INPUT,
1222 __GCONV_FULL_OUTPUT,
1223 __GCONV_ILLEGAL_INPUT,
1224 __GCONV_INCOMPLETE_INPUT,
1226 __GCONV_ILLEGAL_DESCRIPTOR,
1227 __GCONV_INTERNAL_ERROR
1234 __GCONV_IS_LAST = 0x0001,
1235 __GCONV_IGNORE_ERRORS = 0x0002
1240 struct __gconv_step;
1241 struct __gconv_step_data;
1242 struct __gconv_loaded_object;
1243 struct __gconv_trans_data;
1247 typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *,
1248 __const unsigned char **, __const unsigned char *,
1249 unsigned char **, size_t *, int, int);
1252 typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char);
1255 typedef int (*__gconv_init_fct) (struct __gconv_step *);
1256 typedef void (*__gconv_end_fct) (struct __gconv_step *);
1260 typedef int (*__gconv_trans_fct) (struct __gconv_step *,
1261 struct __gconv_step_data *, void *,
1262 __const unsigned char *,
1263 __const unsigned char **,
1264 __const unsigned char *, unsigned char **,
1268 typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *,
1269 __const unsigned char *,
1270 unsigned char *, unsigned char *);
1273 typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***,
1277 typedef int (*__gconv_trans_init_fct) (void **, const char *);
1278 typedef void (*__gconv_trans_end_fct) (void *);
1280 struct __gconv_trans_data
1283 __gconv_trans_fct __trans_fct;
1284 __gconv_trans_context_fct __trans_context_fct;
1285 __gconv_trans_end_fct __trans_end_fct;
1287 struct __gconv_trans_data *__next;
1294 struct __gconv_loaded_object *__shlib_handle;
1295 __const char *__modname;
1303 __gconv_btowc_fct __btowc_fct;
1304 __gconv_init_fct __init_fct;
1305 __gconv_end_fct __end_fct;
1309 int __min_needed_from;
1310 int __max_needed_from;
1311 int __min_needed_to;
1312 int __max_needed_to;
1322 struct __gconv_step_data
1324 unsigned char *__outbuf;
1325 unsigned char *__outbufend;
1333 int __invocation_counter;
1339 __mbstate_t *__statep;
1340 __mbstate_t __state;
1344 struct __gconv_trans_data *__trans;
1349 typedef struct __gconv_info
1352 struct __gconv_step *__steps;
1353 __extension__ struct __gconv_step_data __data [];
1355 # 45 "/usr/include/_G_config.h" 2 3 4
1358 struct __gconv_info __cd;
1361 struct __gconv_info __cd;
1362 struct __gconv_step_data __data;
1366 typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
1367 typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
1368 typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
1369 typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
1370 # 33 "/usr/include/libio.h" 2 3 4
1371 # 53 "/usr/include/libio.h" 3 4
1372 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stdarg.h" 1 3 4
1373 # 43 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stdarg.h" 3 4
1374 typedef __builtin_va_list __gnuc_va_list;
1375 # 54 "/usr/include/libio.h" 2 3 4
1376 # 166 "/usr/include/libio.h" 3 4
1377 struct _IO_jump_t; struct _IO_FILE;
1378 # 176 "/usr/include/libio.h" 3 4
1379 typedef void _IO_lock_t;
1386 struct _IO_marker *_next;
1387 struct _IO_FILE *_sbuf;
1392 # 199 "/usr/include/libio.h" 3 4
1396 enum __codecvt_result
1403 # 267 "/usr/include/libio.h" 3 4
1412 char* _IO_read_base;
1413 char* _IO_write_base;
1414 char* _IO_write_ptr;
1415 char* _IO_write_end;
1419 char *_IO_save_base;
1420 char *_IO_backup_base;
1423 struct _IO_marker *_markers;
1425 struct _IO_FILE *_chain;
1433 __off_t _old_offset;
1437 unsigned short _cur_column;
1438 signed char _vtable_offset;
1444 # 315 "/usr/include/libio.h" 3 4
1456 char _unused2[15 * sizeof (int) - 2 * sizeof (void *)];
1461 typedef struct _IO_FILE _IO_FILE;
1464 struct _IO_FILE_plus;
1466 extern struct _IO_FILE_plus _IO_2_1_stdin_;
1467 extern struct _IO_FILE_plus _IO_2_1_stdout_;
1468 extern struct _IO_FILE_plus _IO_2_1_stderr_;
1469 # 354 "/usr/include/libio.h" 3 4
1470 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
1478 typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
1487 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
1490 typedef int __io_close_fn (void *__cookie);
1491 # 406 "/usr/include/libio.h" 3 4
1492 extern int __underflow (_IO_FILE *) __attribute__ ((__nothrow__));
1493 extern int __uflow (_IO_FILE *) __attribute__ ((__nothrow__));
1494 extern int __overflow (_IO_FILE *, int) __attribute__ ((__nothrow__));
1495 extern wint_t __wunderflow (_IO_FILE *) __attribute__ ((__nothrow__));
1496 extern wint_t __wuflow (_IO_FILE *) __attribute__ ((__nothrow__));
1497 extern wint_t __woverflow (_IO_FILE *, wint_t) __attribute__ ((__nothrow__));
1498 # 444 "/usr/include/libio.h" 3 4
1499 extern int _IO_getc (_IO_FILE *__fp) __attribute__ ((__nothrow__));
1500 extern int _IO_putc (int __c, _IO_FILE *__fp) __attribute__ ((__nothrow__));
1501 extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
1502 extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));
1504 extern int _IO_peekc_locked (_IO_FILE *__fp) __attribute__ ((__nothrow__));
1510 extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
1511 extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
1512 extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
1513 # 474 "/usr/include/libio.h" 3 4
1514 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
1515 __gnuc_va_list, int *__restrict) __attribute__ ((__nothrow__));
1516 extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
1517 __gnuc_va_list) __attribute__ ((__nothrow__));
1518 extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) __attribute__ ((__nothrow__));
1519 extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) __attribute__ ((__nothrow__));
1521 extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) __attribute__ ((__nothrow__));
1522 extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) __attribute__ ((__nothrow__));
1524 extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
1525 # 73 "/usr/include/stdio.h" 2 3 4
1526 # 86 "/usr/include/stdio.h" 3 4
1529 typedef _G_fpos_t fpos_t;
1534 # 138 "/usr/include/stdio.h" 3 4
1535 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
1536 # 139 "/usr/include/stdio.h" 2 3 4
1540 extern struct _IO_FILE *stdin;
1541 extern struct _IO_FILE *stdout;
1542 extern struct _IO_FILE *stderr;
1550 extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
1552 extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
1562 extern FILE *tmpfile (void);
1563 # 178 "/usr/include/stdio.h" 3 4
1564 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__));
1570 extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__));
1571 # 196 "/usr/include/stdio.h" 3 4
1572 extern char *tempnam (__const char *__dir, __const char *__pfx)
1573 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
1582 extern int fclose (FILE *__stream);
1587 extern int fflush (FILE *__stream);
1589 # 221 "/usr/include/stdio.h" 3 4
1590 extern int fflush_unlocked (FILE *__stream);
1591 # 235 "/usr/include/stdio.h" 3 4
1598 extern FILE *fopen (__const char *__restrict __filename,
1599 __const char *__restrict __modes);
1604 extern FILE *freopen (__const char *__restrict __filename,
1605 __const char *__restrict __modes,
1606 FILE *__restrict __stream);
1607 # 262 "/usr/include/stdio.h" 3 4
1609 # 273 "/usr/include/stdio.h" 3 4
1610 extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__));
1611 # 294 "/usr/include/stdio.h" 3 4
1615 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
1619 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
1620 int __modes, size_t __n) __attribute__ ((__nothrow__));
1626 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
1627 size_t __size) __attribute__ ((__nothrow__));
1630 extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
1639 extern int fprintf (FILE *__restrict __stream,
1640 __const char *__restrict __format, ...);
1645 extern int printf (__const char *__restrict __format, ...);
1647 extern int sprintf (char *__restrict __s,
1648 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
1654 extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
1655 __gnuc_va_list __arg);
1660 extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
1662 extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
1663 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
1669 extern int snprintf (char *__restrict __s, size_t __maxlen,
1670 __const char *__restrict __format, ...)
1671 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
1673 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
1674 __const char *__restrict __format, __gnuc_va_list __arg)
1675 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
1677 # 388 "/usr/include/stdio.h" 3 4
1683 extern int fscanf (FILE *__restrict __stream,
1684 __const char *__restrict __format, ...);
1689 extern int scanf (__const char *__restrict __format, ...);
1691 extern int sscanf (__const char *__restrict __s,
1692 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
1694 # 430 "/usr/include/stdio.h" 3 4
1700 extern int fgetc (FILE *__stream);
1701 extern int getc (FILE *__stream);
1707 extern int getchar (void);
1709 # 454 "/usr/include/stdio.h" 3 4
1710 extern int getc_unlocked (FILE *__stream);
1711 extern int getchar_unlocked (void);
1712 # 465 "/usr/include/stdio.h" 3 4
1713 extern int fgetc_unlocked (FILE *__stream);
1725 extern int fputc (int __c, FILE *__stream);
1726 extern int putc (int __c, FILE *__stream);
1732 extern int putchar (int __c);
1734 # 498 "/usr/include/stdio.h" 3 4
1735 extern int fputc_unlocked (int __c, FILE *__stream);
1743 extern int putc_unlocked (int __c, FILE *__stream);
1744 extern int putchar_unlocked (int __c);
1751 extern int getw (FILE *__stream);
1754 extern int putw (int __w, FILE *__stream);
1763 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream);
1770 extern char *gets (char *__s);
1772 # 578 "/usr/include/stdio.h" 3 4
1778 extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
1784 extern int puts (__const char *__s);
1791 extern int ungetc (int __c, FILE *__stream);
1798 extern size_t fread (void *__restrict __ptr, size_t __size,
1799 size_t __n, FILE *__restrict __stream);
1804 extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
1805 size_t __n, FILE *__restrict __s);
1807 # 631 "/usr/include/stdio.h" 3 4
1808 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
1809 size_t __n, FILE *__restrict __stream);
1810 extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
1811 size_t __n, FILE *__restrict __stream);
1820 extern int fseek (FILE *__stream, long int __off, int __whence);
1825 extern long int ftell (FILE *__stream);
1830 extern void rewind (FILE *__stream);
1832 # 686 "/usr/include/stdio.h" 3 4
1839 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
1844 extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
1845 # 709 "/usr/include/stdio.h" 3 4
1847 # 718 "/usr/include/stdio.h" 3 4
1850 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
1852 extern int feof (FILE *__stream) __attribute__ ((__nothrow__));
1854 extern int ferror (FILE *__stream) __attribute__ ((__nothrow__));
1859 extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
1860 extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
1861 extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
1870 extern void perror (__const char *__s);
1877 # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
1878 # 27 "/usr/include/bits/sys_errlist.h" 3 4
1879 extern int sys_nerr;
1880 extern __const char *__const sys_errlist[];
1881 # 748 "/usr/include/stdio.h" 2 3 4
1886 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__));
1891 extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
1892 # 767 "/usr/include/stdio.h" 3 4
1893 extern FILE *popen (__const char *__command, __const char *__modes);
1899 extern int pclose (FILE *__stream);
1905 extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
1906 # 807 "/usr/include/stdio.h" 3 4
1907 extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
1911 extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__));
1914 extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
1915 # 828 "/usr/include/stdio.h" 3 4
1916 # 1 "/usr/include/bits/stdio.h" 1 3 4
1917 # 33 "/usr/include/bits/stdio.h" 3 4
1919 vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg)
1921 return vfprintf (stdout, __fmt, __arg);
1928 return _IO_getc (stdin);
1935 getc_unlocked (FILE *__fp)
1937 return (__builtin_expect ((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end, 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
1942 getchar_unlocked (void)
1944 return (__builtin_expect ((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end, 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
1953 return _IO_putc (__c, stdout);
1960 fputc_unlocked (int __c, FILE *__stream)
1962 return (__builtin_expect ((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end, 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
1970 putc_unlocked (int __c, FILE *__stream)
1972 return (__builtin_expect ((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end, 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
1977 putchar_unlocked (int __c)
1979 return (__builtin_expect ((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end, 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
1981 # 111 "/usr/include/bits/stdio.h" 3 4
1983 __attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream)
1985 return (((__stream)->_flags & 0x10) != 0);
1990 __attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream)
1992 return (((__stream)->_flags & 0x20) != 0);
1994 # 829 "/usr/include/stdio.h" 2 3 4
2002 # 1 "/usr/include/stdlib.h" 1 3 4
2003 # 33 "/usr/include/stdlib.h" 3 4
2004 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
2005 # 34 "/usr/include/stdlib.h" 2 3 4
2008 # 96 "/usr/include/stdlib.h" 3 4
2027 # 140 "/usr/include/stdlib.h" 3 4
2028 extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__));
2033 extern double atof (__const char *__nptr)
2034 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2036 extern int atoi (__const char *__nptr)
2037 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2039 extern long int atol (__const char *__nptr)
2040 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2046 __extension__ extern long long int atoll (__const char *__nptr)
2047 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2053 extern double strtod (__const char *__restrict __nptr,
2054 char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2056 # 181 "/usr/include/stdlib.h" 3 4
2059 extern long int strtol (__const char *__restrict __nptr,
2060 char **__restrict __endptr, int __base)
2061 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2063 extern unsigned long int strtoul (__const char *__restrict __nptr,
2064 char **__restrict __endptr, int __base)
2065 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2071 extern long long int strtoq (__const char *__restrict __nptr,
2072 char **__restrict __endptr, int __base)
2073 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2076 extern unsigned long long int strtouq (__const char *__restrict __nptr,
2077 char **__restrict __endptr, int __base)
2078 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2085 extern long long int strtoll (__const char *__restrict __nptr,
2086 char **__restrict __endptr, int __base)
2087 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2090 extern unsigned long long int strtoull (__const char *__restrict __nptr,
2091 char **__restrict __endptr, int __base)
2092 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2094 # 277 "/usr/include/stdlib.h" 3 4
2095 extern double __strtod_internal (__const char *__restrict __nptr,
2096 char **__restrict __endptr, int __group)
2097 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2098 extern float __strtof_internal (__const char *__restrict __nptr,
2099 char **__restrict __endptr, int __group)
2100 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2101 extern long double __strtold_internal (__const char *__restrict __nptr,
2102 char **__restrict __endptr,
2103 int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2105 extern long int __strtol_internal (__const char *__restrict __nptr,
2106 char **__restrict __endptr,
2107 int __base, int __group)
2108 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2112 extern unsigned long int __strtoul_internal (__const char *__restrict __nptr,
2113 char **__restrict __endptr,
2114 int __base, int __group)
2115 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2121 extern long long int __strtoll_internal (__const char *__restrict __nptr,
2122 char **__restrict __endptr,
2123 int __base, int __group)
2124 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2129 extern unsigned long long int __strtoull_internal (__const char *
2131 char **__restrict __endptr,
2132 int __base, int __group)
2133 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2142 extern __inline double
2143 __attribute__ ((__nothrow__)) strtod (__const char *__restrict __nptr, char **__restrict __endptr)
2145 return __strtod_internal (__nptr, __endptr, 0);
2147 extern __inline long int
2148 __attribute__ ((__nothrow__)) strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
2151 return __strtol_internal (__nptr, __endptr, __base, 0);
2153 extern __inline unsigned long int
2154 __attribute__ ((__nothrow__)) strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
2157 return __strtoul_internal (__nptr, __endptr, __base, 0);
2160 # 359 "/usr/include/stdlib.h" 3 4
2161 __extension__ extern __inline long long int
2162 __attribute__ ((__nothrow__)) strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
2165 return __strtoll_internal (__nptr, __endptr, __base, 0);
2167 __extension__ extern __inline unsigned long long int
2168 __attribute__ ((__nothrow__)) strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
2171 return __strtoull_internal (__nptr, __endptr, __base, 0);
2177 __extension__ extern __inline long long int
2178 __attribute__ ((__nothrow__)) strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
2181 return __strtoll_internal (__nptr, __endptr, __base, 0);
2183 __extension__ extern __inline unsigned long long int
2184 __attribute__ ((__nothrow__)) strtoull (__const char * __restrict __nptr, char **__restrict __endptr, int __base)
2187 return __strtoull_internal (__nptr, __endptr, __base, 0);
2193 extern __inline double
2194 __attribute__ ((__nothrow__)) atof (__const char *__nptr)
2196 return strtod (__nptr, (char **) ((void *)0));
2199 __attribute__ ((__nothrow__)) atoi (__const char *__nptr)
2201 return (int) strtol (__nptr, (char **) ((void *)0), 10);
2203 extern __inline long int
2204 __attribute__ ((__nothrow__)) atol (__const char *__nptr)
2206 return strtol (__nptr, (char **) ((void *)0), 10);
2212 __extension__ extern __inline long long int
2213 __attribute__ ((__nothrow__)) atoll (__const char *__nptr)
2215 return strtoll (__nptr, (char **) ((void *)0), 10);
2218 # 424 "/usr/include/stdlib.h" 3 4
2219 extern char *l64a (long int __n) __attribute__ ((__nothrow__));
2222 extern long int a64l (__const char *__s)
2223 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2224 # 440 "/usr/include/stdlib.h" 3 4
2225 extern long int random (void) __attribute__ ((__nothrow__));
2228 extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
2234 extern char *initstate (unsigned int __seed, char *__statebuf,
2235 size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2239 extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2258 extern int random_r (struct random_data *__restrict __buf,
2259 int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2261 extern int srandom_r (unsigned int __seed, struct random_data *__buf)
2262 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2264 extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
2266 struct random_data *__restrict __buf)
2267 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
2269 extern int setstate_r (char *__restrict __statebuf,
2270 struct random_data *__restrict __buf)
2271 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2278 extern int rand (void) __attribute__ ((__nothrow__));
2280 extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
2285 extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
2293 extern double drand48 (void) __attribute__ ((__nothrow__));
2294 extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2297 extern long int lrand48 (void) __attribute__ ((__nothrow__));
2298 extern long int nrand48 (unsigned short int __xsubi[3])
2299 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2302 extern long int mrand48 (void) __attribute__ ((__nothrow__));
2303 extern long int jrand48 (unsigned short int __xsubi[3])
2304 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2307 extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
2308 extern unsigned short int *seed48 (unsigned short int __seed16v[3])
2309 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2310 extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2318 unsigned short int __x[3];
2319 unsigned short int __old_x[3];
2320 unsigned short int __c;
2321 unsigned short int __init;
2322 unsigned long long int __a;
2326 extern int drand48_r (struct drand48_data *__restrict __buffer,
2327 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2328 extern int erand48_r (unsigned short int __xsubi[3],
2329 struct drand48_data *__restrict __buffer,
2330 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2333 extern int lrand48_r (struct drand48_data *__restrict __buffer,
2334 long int *__restrict __result)
2335 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2336 extern int nrand48_r (unsigned short int __xsubi[3],
2337 struct drand48_data *__restrict __buffer,
2338 long int *__restrict __result)
2339 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2342 extern int mrand48_r (struct drand48_data *__restrict __buffer,
2343 long int *__restrict __result)
2344 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2345 extern int jrand48_r (unsigned short int __xsubi[3],
2346 struct drand48_data *__restrict __buffer,
2347 long int *__restrict __result)
2348 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2351 extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
2352 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2354 extern int seed48_r (unsigned short int __seed16v[3],
2355 struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2357 extern int lcong48_r (unsigned short int __param[7],
2358 struct drand48_data *__buffer)
2359 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2369 extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
2371 extern void *calloc (size_t __nmemb, size_t __size)
2372 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
2380 extern void *realloc (void *__ptr, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
2382 extern void free (void *__ptr) __attribute__ ((__nothrow__));
2387 extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
2391 # 1 "/usr/include/alloca.h" 1 3 4
2392 # 25 "/usr/include/alloca.h" 3 4
2393 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
2394 # 26 "/usr/include/alloca.h" 2 3 4
2402 extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
2409 # 607 "/usr/include/stdlib.h" 2 3 4
2414 extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
2415 # 620 "/usr/include/stdlib.h" 3 4
2418 extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
2422 extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2428 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
2429 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2436 extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
2438 # 652 "/usr/include/stdlib.h" 3 4
2441 extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2446 extern char *__secure_getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2452 extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2458 extern int setenv (__const char *__name, __const char *__value, int __replace)
2459 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2462 extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__));
2469 extern int clearenv (void) __attribute__ ((__nothrow__));
2470 # 691 "/usr/include/stdlib.h" 3 4
2471 extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2472 # 702 "/usr/include/stdlib.h" 3 4
2473 extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1)));
2474 # 721 "/usr/include/stdlib.h" 3 4
2475 extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2484 extern int system (__const char *__command);
2486 # 749 "/usr/include/stdlib.h" 3 4
2487 extern char *realpath (__const char *__restrict __name,
2488 char *__restrict __resolved) __attribute__ ((__nothrow__));
2495 typedef int (*__compar_fn_t) (__const void *, __const void *);
2505 extern void *bsearch (__const void *__key, __const void *__base,
2506 size_t __nmemb, size_t __size, __compar_fn_t __compar)
2507 __attribute__ ((__nonnull__ (1, 2, 5)));
2511 extern void qsort (void *__base, size_t __nmemb, size_t __size,
2512 __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
2516 extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2517 extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2530 extern div_t div (int __numer, int __denom)
2531 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2532 extern ldiv_t ldiv (long int __numer, long int __denom)
2533 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2535 # 814 "/usr/include/stdlib.h" 3 4
2536 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
2537 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4)));
2542 extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
2543 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4)));
2548 extern char *gcvt (double __value, int __ndigit, char *__buf)
2549 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));
2554 extern char *qecvt (long double __value, int __ndigit,
2555 int *__restrict __decpt, int *__restrict __sign)
2556 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4)));
2557 extern char *qfcvt (long double __value, int __ndigit,
2558 int *__restrict __decpt, int *__restrict __sign)
2559 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4)));
2560 extern char *qgcvt (long double __value, int __ndigit, char *__buf)
2561 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));
2566 extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
2567 int *__restrict __sign, char *__restrict __buf,
2568 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
2569 extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
2570 int *__restrict __sign, char *__restrict __buf,
2571 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
2573 extern int qecvt_r (long double __value, int __ndigit,
2574 int *__restrict __decpt, int *__restrict __sign,
2575 char *__restrict __buf, size_t __len)
2576 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
2577 extern int qfcvt_r (long double __value, int __ndigit,
2578 int *__restrict __decpt, int *__restrict __sign,
2579 char *__restrict __buf, size_t __len)
2580 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
2588 extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__));
2591 extern int mbtowc (wchar_t *__restrict __pwc,
2592 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
2595 extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__));
2599 extern size_t mbstowcs (wchar_t *__restrict __pwcs,
2600 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
2602 extern size_t wcstombs (char *__restrict __s,
2603 __const wchar_t *__restrict __pwcs, size_t __n)
2604 __attribute__ ((__nothrow__));
2613 extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2614 # 954 "/usr/include/stdlib.h" 3 4
2615 extern int getloadavg (double __loadavg[], int __nelem)
2616 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2624 # 1 "/usr/include/math.h" 1 3 4
2625 # 29 "/usr/include/math.h" 3 4
2630 # 1 "/usr/include/bits/huge_val.h" 1 3 4
2631 # 34 "/usr/include/math.h" 2 3 4
2632 # 46 "/usr/include/math.h" 3 4
2633 # 1 "/usr/include/bits/mathdef.h" 1 3 4
2634 # 47 "/usr/include/math.h" 2 3 4
2635 # 70 "/usr/include/math.h" 3 4
2636 # 1 "/usr/include/bits/mathcalls.h" 1 3 4
2637 # 53 "/usr/include/bits/mathcalls.h" 3 4
2640 extern double acos (double __x) __attribute__ ((__nothrow__)); extern double __acos (double __x) __attribute__ ((__nothrow__));
2642 extern double asin (double __x) __attribute__ ((__nothrow__)); extern double __asin (double __x) __attribute__ ((__nothrow__));
2644 extern double atan (double __x) __attribute__ ((__nothrow__)); extern double __atan (double __x) __attribute__ ((__nothrow__));
2646 extern double atan2 (double __y, double __x) __attribute__ ((__nothrow__)); extern double __atan2 (double __y, double __x) __attribute__ ((__nothrow__));
2649 extern double cos (double __x) __attribute__ ((__nothrow__)); extern double __cos (double __x) __attribute__ ((__nothrow__));
2651 extern double sin (double __x) __attribute__ ((__nothrow__)); extern double __sin (double __x) __attribute__ ((__nothrow__));
2653 extern double tan (double __x) __attribute__ ((__nothrow__)); extern double __tan (double __x) __attribute__ ((__nothrow__));
2658 extern double cosh (double __x) __attribute__ ((__nothrow__)); extern double __cosh (double __x) __attribute__ ((__nothrow__));
2660 extern double sinh (double __x) __attribute__ ((__nothrow__)); extern double __sinh (double __x) __attribute__ ((__nothrow__));
2662 extern double tanh (double __x) __attribute__ ((__nothrow__)); extern double __tanh (double __x) __attribute__ ((__nothrow__));
2664 # 87 "/usr/include/bits/mathcalls.h" 3 4
2667 extern double acosh (double __x) __attribute__ ((__nothrow__)); extern double __acosh (double __x) __attribute__ ((__nothrow__));
2669 extern double asinh (double __x) __attribute__ ((__nothrow__)); extern double __asinh (double __x) __attribute__ ((__nothrow__));
2671 extern double atanh (double __x) __attribute__ ((__nothrow__)); extern double __atanh (double __x) __attribute__ ((__nothrow__));
2679 extern double exp (double __x) __attribute__ ((__nothrow__)); extern double __exp (double __x) __attribute__ ((__nothrow__));
2682 extern double frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); extern double __frexp (double __x, int *__exponent) __attribute__ ((__nothrow__));
2685 extern double ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); extern double __ldexp (double __x, int __exponent) __attribute__ ((__nothrow__));
2688 extern double log (double __x) __attribute__ ((__nothrow__)); extern double __log (double __x) __attribute__ ((__nothrow__));
2691 extern double log10 (double __x) __attribute__ ((__nothrow__)); extern double __log10 (double __x) __attribute__ ((__nothrow__));
2694 extern double modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); extern double __modf (double __x, double *__iptr) __attribute__ ((__nothrow__));
2696 # 127 "/usr/include/bits/mathcalls.h" 3 4
2699 extern double expm1 (double __x) __attribute__ ((__nothrow__)); extern double __expm1 (double __x) __attribute__ ((__nothrow__));
2702 extern double log1p (double __x) __attribute__ ((__nothrow__)); extern double __log1p (double __x) __attribute__ ((__nothrow__));
2705 extern double logb (double __x) __attribute__ ((__nothrow__)); extern double __logb (double __x) __attribute__ ((__nothrow__));
2707 # 152 "/usr/include/bits/mathcalls.h" 3 4
2710 extern double pow (double __x, double __y) __attribute__ ((__nothrow__)); extern double __pow (double __x, double __y) __attribute__ ((__nothrow__));
2713 extern double sqrt (double __x) __attribute__ ((__nothrow__)); extern double __sqrt (double __x) __attribute__ ((__nothrow__));
2719 extern double hypot (double __x, double __y) __attribute__ ((__nothrow__)); extern double __hypot (double __x, double __y) __attribute__ ((__nothrow__));
2726 extern double cbrt (double __x) __attribute__ ((__nothrow__)); extern double __cbrt (double __x) __attribute__ ((__nothrow__));
2735 extern double ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2738 extern double fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2741 extern double floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2744 extern double fmod (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmod (double __x, double __y) __attribute__ ((__nothrow__));
2749 extern int __isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2752 extern int __finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2758 extern int isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2761 extern int finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2764 extern double drem (double __x, double __y) __attribute__ ((__nothrow__)); extern double __drem (double __x, double __y) __attribute__ ((__nothrow__));
2768 extern double significand (double __x) __attribute__ ((__nothrow__)); extern double __significand (double __x) __attribute__ ((__nothrow__));
2774 extern double copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2776 # 231 "/usr/include/bits/mathcalls.h" 3 4
2777 extern int __isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2781 extern int isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2784 extern double j0 (double) __attribute__ ((__nothrow__)); extern double __j0 (double) __attribute__ ((__nothrow__));
2785 extern double j1 (double) __attribute__ ((__nothrow__)); extern double __j1 (double) __attribute__ ((__nothrow__));
2786 extern double jn (int, double) __attribute__ ((__nothrow__)); extern double __jn (int, double) __attribute__ ((__nothrow__));
2787 extern double y0 (double) __attribute__ ((__nothrow__)); extern double __y0 (double) __attribute__ ((__nothrow__));
2788 extern double y1 (double) __attribute__ ((__nothrow__)); extern double __y1 (double) __attribute__ ((__nothrow__));
2789 extern double yn (int, double) __attribute__ ((__nothrow__)); extern double __yn (int, double) __attribute__ ((__nothrow__));
2796 extern double erf (double) __attribute__ ((__nothrow__)); extern double __erf (double) __attribute__ ((__nothrow__));
2797 extern double erfc (double) __attribute__ ((__nothrow__)); extern double __erfc (double) __attribute__ ((__nothrow__));
2798 extern double lgamma (double) __attribute__ ((__nothrow__)); extern double __lgamma (double) __attribute__ ((__nothrow__));
2800 # 265 "/usr/include/bits/mathcalls.h" 3 4
2801 extern double gamma (double) __attribute__ ((__nothrow__)); extern double __gamma (double) __attribute__ ((__nothrow__));
2808 extern double lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); extern double __lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__));
2816 extern double rint (double __x) __attribute__ ((__nothrow__)); extern double __rint (double __x) __attribute__ ((__nothrow__));
2819 extern double nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2825 extern double remainder (double __x, double __y) __attribute__ ((__nothrow__)); extern double __remainder (double __x, double __y) __attribute__ ((__nothrow__));
2829 extern double scalbn (double __x, int __n) __attribute__ ((__nothrow__)); extern double __scalbn (double __x, int __n) __attribute__ ((__nothrow__));
2833 extern int ilogb (double __x) __attribute__ ((__nothrow__)); extern int __ilogb (double __x) __attribute__ ((__nothrow__));
2834 # 71 "/usr/include/math.h" 2 3 4
2835 # 93 "/usr/include/math.h" 3 4
2836 # 1 "/usr/include/bits/mathcalls.h" 1 3 4
2837 # 53 "/usr/include/bits/mathcalls.h" 3 4
2840 extern float acosf (float __x) __attribute__ ((__nothrow__)); extern float __acosf (float __x) __attribute__ ((__nothrow__));
2842 extern float asinf (float __x) __attribute__ ((__nothrow__)); extern float __asinf (float __x) __attribute__ ((__nothrow__));
2844 extern float atanf (float __x) __attribute__ ((__nothrow__)); extern float __atanf (float __x) __attribute__ ((__nothrow__));
2846 extern float atan2f (float __y, float __x) __attribute__ ((__nothrow__)); extern float __atan2f (float __y, float __x) __attribute__ ((__nothrow__));
2849 extern float cosf (float __x) __attribute__ ((__nothrow__)); extern float __cosf (float __x) __attribute__ ((__nothrow__));
2851 extern float sinf (float __x) __attribute__ ((__nothrow__)); extern float __sinf (float __x) __attribute__ ((__nothrow__));
2853 extern float tanf (float __x) __attribute__ ((__nothrow__)); extern float __tanf (float __x) __attribute__ ((__nothrow__));
2858 extern float coshf (float __x) __attribute__ ((__nothrow__)); extern float __coshf (float __x) __attribute__ ((__nothrow__));
2860 extern float sinhf (float __x) __attribute__ ((__nothrow__)); extern float __sinhf (float __x) __attribute__ ((__nothrow__));
2862 extern float tanhf (float __x) __attribute__ ((__nothrow__)); extern float __tanhf (float __x) __attribute__ ((__nothrow__));
2864 # 87 "/usr/include/bits/mathcalls.h" 3 4
2867 extern float acoshf (float __x) __attribute__ ((__nothrow__)); extern float __acoshf (float __x) __attribute__ ((__nothrow__));
2869 extern float asinhf (float __x) __attribute__ ((__nothrow__)); extern float __asinhf (float __x) __attribute__ ((__nothrow__));
2871 extern float atanhf (float __x) __attribute__ ((__nothrow__)); extern float __atanhf (float __x) __attribute__ ((__nothrow__));
2879 extern float expf (float __x) __attribute__ ((__nothrow__)); extern float __expf (float __x) __attribute__ ((__nothrow__));
2882 extern float frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); extern float __frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__));
2885 extern float ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); extern float __ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__));
2888 extern float logf (float __x) __attribute__ ((__nothrow__)); extern float __logf (float __x) __attribute__ ((__nothrow__));
2891 extern float log10f (float __x) __attribute__ ((__nothrow__)); extern float __log10f (float __x) __attribute__ ((__nothrow__));
2894 extern float modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); extern float __modff (float __x, float *__iptr) __attribute__ ((__nothrow__));
2896 # 127 "/usr/include/bits/mathcalls.h" 3 4
2899 extern float expm1f (float __x) __attribute__ ((__nothrow__)); extern float __expm1f (float __x) __attribute__ ((__nothrow__));
2902 extern float log1pf (float __x) __attribute__ ((__nothrow__)); extern float __log1pf (float __x) __attribute__ ((__nothrow__));
2905 extern float logbf (float __x) __attribute__ ((__nothrow__)); extern float __logbf (float __x) __attribute__ ((__nothrow__));
2907 # 152 "/usr/include/bits/mathcalls.h" 3 4
2910 extern float powf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __powf (float __x, float __y) __attribute__ ((__nothrow__));
2913 extern float sqrtf (float __x) __attribute__ ((__nothrow__)); extern float __sqrtf (float __x) __attribute__ ((__nothrow__));
2919 extern float hypotf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __hypotf (float __x, float __y) __attribute__ ((__nothrow__));
2926 extern float cbrtf (float __x) __attribute__ ((__nothrow__)); extern float __cbrtf (float __x) __attribute__ ((__nothrow__));
2935 extern float ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2938 extern float fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2941 extern float floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2944 extern float fmodf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmodf (float __x, float __y) __attribute__ ((__nothrow__));
2949 extern int __isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2952 extern int __finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2958 extern int isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2961 extern int finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2964 extern float dremf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __dremf (float __x, float __y) __attribute__ ((__nothrow__));
2968 extern float significandf (float __x) __attribute__ ((__nothrow__)); extern float __significandf (float __x) __attribute__ ((__nothrow__));
2974 extern float copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2976 # 231 "/usr/include/bits/mathcalls.h" 3 4
2977 extern int __isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2981 extern int isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2984 extern float j0f (float) __attribute__ ((__nothrow__)); extern float __j0f (float) __attribute__ ((__nothrow__));
2985 extern float j1f (float) __attribute__ ((__nothrow__)); extern float __j1f (float) __attribute__ ((__nothrow__));
2986 extern float jnf (int, float) __attribute__ ((__nothrow__)); extern float __jnf (int, float) __attribute__ ((__nothrow__));
2987 extern float y0f (float) __attribute__ ((__nothrow__)); extern float __y0f (float) __attribute__ ((__nothrow__));
2988 extern float y1f (float) __attribute__ ((__nothrow__)); extern float __y1f (float) __attribute__ ((__nothrow__));
2989 extern float ynf (int, float) __attribute__ ((__nothrow__)); extern float __ynf (int, float) __attribute__ ((__nothrow__));
2996 extern float erff (float) __attribute__ ((__nothrow__)); extern float __erff (float) __attribute__ ((__nothrow__));
2997 extern float erfcf (float) __attribute__ ((__nothrow__)); extern float __erfcf (float) __attribute__ ((__nothrow__));
2998 extern float lgammaf (float) __attribute__ ((__nothrow__)); extern float __lgammaf (float) __attribute__ ((__nothrow__));
3000 # 265 "/usr/include/bits/mathcalls.h" 3 4
3001 extern float gammaf (float) __attribute__ ((__nothrow__)); extern float __gammaf (float) __attribute__ ((__nothrow__));
3008 extern float lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); extern float __lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__));
3016 extern float rintf (float __x) __attribute__ ((__nothrow__)); extern float __rintf (float __x) __attribute__ ((__nothrow__));
3019 extern float nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3025 extern float remainderf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __remainderf (float __x, float __y) __attribute__ ((__nothrow__));
3029 extern float scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); extern float __scalbnf (float __x, int __n) __attribute__ ((__nothrow__));
3033 extern int ilogbf (float __x) __attribute__ ((__nothrow__)); extern int __ilogbf (float __x) __attribute__ ((__nothrow__));
3034 # 94 "/usr/include/math.h" 2 3 4
3035 # 114 "/usr/include/math.h" 3 4
3036 # 1 "/usr/include/bits/mathcalls.h" 1 3 4
3037 # 53 "/usr/include/bits/mathcalls.h" 3 4
3040 extern long double acosl (long double __x) __attribute__ ((__nothrow__)); extern long double __acosl (long double __x) __attribute__ ((__nothrow__));
3042 extern long double asinl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinl (long double __x) __attribute__ ((__nothrow__));
3044 extern long double atanl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanl (long double __x) __attribute__ ((__nothrow__));
3046 extern long double atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); extern long double __atan2l (long double __y, long double __x) __attribute__ ((__nothrow__));
3049 extern long double cosl (long double __x) __attribute__ ((__nothrow__)); extern long double __cosl (long double __x) __attribute__ ((__nothrow__));
3051 extern long double sinl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinl (long double __x) __attribute__ ((__nothrow__));
3053 extern long double tanl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanl (long double __x) __attribute__ ((__nothrow__));
3058 extern long double coshl (long double __x) __attribute__ ((__nothrow__)); extern long double __coshl (long double __x) __attribute__ ((__nothrow__));
3060 extern long double sinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinhl (long double __x) __attribute__ ((__nothrow__));
3062 extern long double tanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanhl (long double __x) __attribute__ ((__nothrow__));
3064 # 87 "/usr/include/bits/mathcalls.h" 3 4
3067 extern long double acoshl (long double __x) __attribute__ ((__nothrow__)); extern long double __acoshl (long double __x) __attribute__ ((__nothrow__));
3069 extern long double asinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinhl (long double __x) __attribute__ ((__nothrow__));
3071 extern long double atanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanhl (long double __x) __attribute__ ((__nothrow__));
3079 extern long double expl (long double __x) __attribute__ ((__nothrow__)); extern long double __expl (long double __x) __attribute__ ((__nothrow__));
3082 extern long double frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); extern long double __frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__));
3085 extern long double ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); extern long double __ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__));
3088 extern long double logl (long double __x) __attribute__ ((__nothrow__)); extern long double __logl (long double __x) __attribute__ ((__nothrow__));
3091 extern long double log10l (long double __x) __attribute__ ((__nothrow__)); extern long double __log10l (long double __x) __attribute__ ((__nothrow__));
3094 extern long double modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); extern long double __modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__));
3096 # 127 "/usr/include/bits/mathcalls.h" 3 4
3099 extern long double expm1l (long double __x) __attribute__ ((__nothrow__)); extern long double __expm1l (long double __x) __attribute__ ((__nothrow__));
3102 extern long double log1pl (long double __x) __attribute__ ((__nothrow__)); extern long double __log1pl (long double __x) __attribute__ ((__nothrow__));
3105 extern long double logbl (long double __x) __attribute__ ((__nothrow__)); extern long double __logbl (long double __x) __attribute__ ((__nothrow__));
3107 # 152 "/usr/include/bits/mathcalls.h" 3 4
3110 extern long double powl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __powl (long double __x, long double __y) __attribute__ ((__nothrow__));
3113 extern long double sqrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __sqrtl (long double __x) __attribute__ ((__nothrow__));
3119 extern long double hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __hypotl (long double __x, long double __y) __attribute__ ((__nothrow__));
3126 extern long double cbrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __cbrtl (long double __x) __attribute__ ((__nothrow__));
3135 extern long double ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3138 extern long double fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3141 extern long double floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3144 extern long double fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmodl (long double __x, long double __y) __attribute__ ((__nothrow__));
3149 extern int __isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3152 extern int __finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3158 extern int isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3161 extern int finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3164 extern long double dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __dreml (long double __x, long double __y) __attribute__ ((__nothrow__));
3168 extern long double significandl (long double __x) __attribute__ ((__nothrow__)); extern long double __significandl (long double __x) __attribute__ ((__nothrow__));
3174 extern long double copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3176 # 231 "/usr/include/bits/mathcalls.h" 3 4
3177 extern int __isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3181 extern int isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3184 extern long double j0l (long double) __attribute__ ((__nothrow__)); extern long double __j0l (long double) __attribute__ ((__nothrow__));
3185 extern long double j1l (long double) __attribute__ ((__nothrow__)); extern long double __j1l (long double) __attribute__ ((__nothrow__));
3186 extern long double jnl (int, long double) __attribute__ ((__nothrow__)); extern long double __jnl (int, long double) __attribute__ ((__nothrow__));
3187 extern long double y0l (long double) __attribute__ ((__nothrow__)); extern long double __y0l (long double) __attribute__ ((__nothrow__));
3188 extern long double y1l (long double) __attribute__ ((__nothrow__)); extern long double __y1l (long double) __attribute__ ((__nothrow__));
3189 extern long double ynl (int, long double) __attribute__ ((__nothrow__)); extern long double __ynl (int, long double) __attribute__ ((__nothrow__));
3196 extern long double erfl (long double) __attribute__ ((__nothrow__)); extern long double __erfl (long double) __attribute__ ((__nothrow__));
3197 extern long double erfcl (long double) __attribute__ ((__nothrow__)); extern long double __erfcl (long double) __attribute__ ((__nothrow__));
3198 extern long double lgammal (long double) __attribute__ ((__nothrow__)); extern long double __lgammal (long double) __attribute__ ((__nothrow__));
3200 # 265 "/usr/include/bits/mathcalls.h" 3 4
3201 extern long double gammal (long double) __attribute__ ((__nothrow__)); extern long double __gammal (long double) __attribute__ ((__nothrow__));
3208 extern long double lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); extern long double __lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__));
3216 extern long double rintl (long double __x) __attribute__ ((__nothrow__)); extern long double __rintl (long double __x) __attribute__ ((__nothrow__));
3219 extern long double nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3225 extern long double remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __remainderl (long double __x, long double __y) __attribute__ ((__nothrow__));
3229 extern long double scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); extern long double __scalbnl (long double __x, int __n) __attribute__ ((__nothrow__));
3233 extern int ilogbl (long double __x) __attribute__ ((__nothrow__)); extern int __ilogbl (long double __x) __attribute__ ((__nothrow__));
3234 # 115 "/usr/include/math.h" 2 3 4
3235 # 130 "/usr/include/math.h" 3 4
3237 # 257 "/usr/include/math.h" 3 4
3245 } _LIB_VERSION_TYPE;
3250 extern _LIB_VERSION_TYPE _LIB_VERSION;
3251 # 282 "/usr/include/math.h" 3 4
3265 extern int matherr (struct exception *__exc);
3266 # 382 "/usr/include/math.h" 3 4
3267 # 1 "/usr/include/bits/mathinline.h" 1 3 4
3268 # 291 "/usr/include/bits/mathinline.h" 3 4
3269 extern __inline double __sgn (double) __attribute__ ((__nothrow__)); extern __inline double __attribute__ ((__nothrow__)) __sgn (double __x) { return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0); } extern __inline float __sgnf (float) __attribute__ ((__nothrow__)); extern __inline float __attribute__ ((__nothrow__)) __sgnf (float __x) { return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0); } extern __inline long double __sgnl (long double) __attribute__ ((__nothrow__)); extern __inline long double __attribute__ ((__nothrow__)) __sgnl (long double __x) { return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0); }
3270 # 433 "/usr/include/bits/mathinline.h" 3 4
3271 extern __inline long double __attribute__ ((__nothrow__)) __atan2l (long double __y, long double __x) { return __builtin_atan2l (__y, __x); }
3272 # 473 "/usr/include/bits/mathinline.h" 3 4
3273 extern __inline double __attribute__ ((__nothrow__)) fabs (double __x) { return __builtin_fabs (__x); }
3275 extern __inline float __attribute__ ((__nothrow__)) fabsf (float __x) { return __builtin_fabsf (__x); }
3276 extern __inline long double __attribute__ ((__nothrow__)) fabsl (long double __x) { return __builtin_fabsl (__x); }
3278 extern __inline long double __attribute__ ((__nothrow__)) __fabsl (long double __x) { return __builtin_fabsl (__x); }
3279 # 506 "/usr/include/bits/mathinline.h" 3 4
3280 extern __inline long double __sgn1l (long double) __attribute__ ((__nothrow__)); extern __inline long double __attribute__ ((__nothrow__)) __sgn1l (long double __x) { __extension__ union { long double __xld; unsigned int __xi[3]; } __n = { __xld: __x }; __n.__xi[2] = (__n.__xi[2] & 0x8000) | 0x3fff; __n.__xi[1] = 0x80000000; __n.__xi[0] = 0; return __n.__xld; }
3281 # 530 "/usr/include/bits/mathinline.h" 3 4
3282 extern __inline double __attribute__ ((__nothrow__)) floor (double __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0400; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } extern __inline float __attribute__ ((__nothrow__)) floorf (float __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0400; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } extern __inline long double __attribute__ ((__nothrow__)) floorl (long double __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0400; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; }
3283 # 541 "/usr/include/bits/mathinline.h" 3 4
3284 extern __inline double __attribute__ ((__nothrow__)) ceil (double __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0800; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } extern __inline float __attribute__ ((__nothrow__)) ceilf (float __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0800; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } extern __inline long double __attribute__ ((__nothrow__)) ceill (long double __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0800; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; }
3285 # 713 "/usr/include/bits/mathinline.h" 3 4
3287 __attribute__ ((__nothrow__)) __finite (double __x)
3289 return (__extension__
3290 (((((union { double __d; int __i[2]; }) {__d: __x}).__i[1]
3291 | 0x800fffffu) + 1) >> 31));
3293 # 383 "/usr/include/math.h" 2 3 4
3294 # 438 "/usr/include/math.h" 3 4
3297 # 1 "/usr/include/string.h" 1 3 4
3298 # 28 "/usr/include/string.h" 3 4
3304 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
3305 # 34 "/usr/include/string.h" 2 3 4
3310 extern void *memcpy (void *__restrict __dest,
3311 __const void *__restrict __src, size_t __n)
3312 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3315 extern void *memmove (void *__dest, __const void *__src, size_t __n)
3316 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3323 extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
3324 int __c, size_t __n)
3325 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3331 extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3334 extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
3335 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3338 extern void *memchr (__const void *__s, int __c, size_t __n)
3339 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3341 # 82 "/usr/include/string.h" 3 4
3344 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
3345 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3347 extern char *strncpy (char *__restrict __dest,
3348 __const char *__restrict __src, size_t __n)
3349 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3352 extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
3353 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3355 extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
3356 size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3359 extern int strcmp (__const char *__s1, __const char *__s2)
3360 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3362 extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
3363 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3366 extern int strcoll (__const char *__s1, __const char *__s2)
3367 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3369 extern size_t strxfrm (char *__restrict __dest,
3370 __const char *__restrict __src, size_t __n)
3371 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
3373 # 130 "/usr/include/string.h" 3 4
3374 extern char *strdup (__const char *__s)
3375 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
3376 # 165 "/usr/include/string.h" 3 4
3379 extern char *strchr (__const char *__s, int __c)
3380 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3382 extern char *strrchr (__const char *__s, int __c)
3383 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3385 # 181 "/usr/include/string.h" 3 4
3389 extern size_t strcspn (__const char *__s, __const char *__reject)
3390 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3393 extern size_t strspn (__const char *__s, __const char *__accept)
3394 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3396 extern char *strpbrk (__const char *__s, __const char *__accept)
3397 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3399 extern char *strstr (__const char *__haystack, __const char *__needle)
3400 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3404 extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
3405 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
3410 extern char *__strtok_r (char *__restrict __s,
3411 __const char *__restrict __delim,
3412 char **__restrict __save_ptr)
3413 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
3415 extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
3416 char **__restrict __save_ptr)
3417 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
3418 # 240 "/usr/include/string.h" 3 4
3421 extern size_t strlen (__const char *__s)
3422 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3424 # 254 "/usr/include/string.h" 3 4
3427 extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
3429 # 281 "/usr/include/string.h" 3 4
3430 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
3431 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
3437 extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3441 extern void bcopy (__const void *__src, void *__dest, size_t __n)
3442 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3445 extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3448 extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
3449 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3452 extern char *index (__const char *__s, int __c)
3453 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3456 extern char *rindex (__const char *__s, int __c)
3457 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
3461 extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3462 # 325 "/usr/include/string.h" 3 4
3463 extern int strcasecmp (__const char *__s1, __const char *__s2)
3464 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3467 extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
3468 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
3469 # 348 "/usr/include/string.h" 3 4
3470 extern char *strsep (char **__restrict __stringp,
3471 __const char *__restrict __delim)
3472 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
3473 # 414 "/usr/include/string.h" 3 4
3474 # 1 "/usr/include/bits/string.h" 1 3 4
3475 # 415 "/usr/include/string.h" 2 3 4
3478 # 1 "/usr/include/bits/string2.h" 1 3 4
3479 # 394 "/usr/include/bits/string2.h" 3 4
3480 extern void *__rawmemchr (const void *__s, int __c);
3481 # 969 "/usr/include/bits/string2.h" 3 4
3482 extern __inline size_t __strcspn_c1 (__const char *__s, int __reject);
3483 extern __inline size_t
3484 __strcspn_c1 (__const char *__s, int __reject)
3486 register size_t __result = 0;
3487 while (__s[__result] != '\0' && __s[__result] != __reject)
3492 extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1,
3494 extern __inline size_t
3495 __strcspn_c2 (__const char *__s, int __reject1, int __reject2)
3497 register size_t __result = 0;
3498 while (__s[__result] != '\0' && __s[__result] != __reject1
3499 && __s[__result] != __reject2)
3504 extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1,
3505 int __reject2, int __reject3);
3506 extern __inline size_t
3507 __strcspn_c3 (__const char *__s, int __reject1, int __reject2,
3510 register size_t __result = 0;
3511 while (__s[__result] != '\0' && __s[__result] != __reject1
3512 && __s[__result] != __reject2 && __s[__result] != __reject3)
3516 # 1045 "/usr/include/bits/string2.h" 3 4
3517 extern __inline size_t __strspn_c1 (__const char *__s, int __accept);
3518 extern __inline size_t
3519 __strspn_c1 (__const char *__s, int __accept)
3521 register size_t __result = 0;
3523 while (__s[__result] == __accept)
3528 extern __inline size_t __strspn_c2 (__const char *__s, int __accept1,
3530 extern __inline size_t
3531 __strspn_c2 (__const char *__s, int __accept1, int __accept2)
3533 register size_t __result = 0;
3535 while (__s[__result] == __accept1 || __s[__result] == __accept2)
3540 extern __inline size_t __strspn_c3 (__const char *__s, int __accept1,
3541 int __accept2, int __accept3);
3542 extern __inline size_t
3543 __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3)
3545 register size_t __result = 0;
3547 while (__s[__result] == __accept1 || __s[__result] == __accept2
3548 || __s[__result] == __accept3)
3552 # 1121 "/usr/include/bits/string2.h" 3 4
3553 extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1,
3555 extern __inline char *
3556 __strpbrk_c2 (__const char *__s, int __accept1, int __accept2)
3559 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2)
3561 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
3564 extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1,
3565 int __accept2, int __accept3);
3566 extern __inline char *
3567 __strpbrk_c3 (__const char *__s, int __accept1, int __accept2,
3571 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2
3572 && *__s != __accept3)
3574 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
3576 # 1173 "/usr/include/bits/string2.h" 3 4
3577 extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp);
3578 extern __inline char *
3579 __strtok_r_1c (char *__s, char __sep, char **__nextp)
3582 if (__s == ((void *)0))
3584 while (*__s == __sep)
3586 __result = ((void *)0);
3590 while (*__s != '\0')
3591 if (*__s++ == __sep)
3600 # 1205 "/usr/include/bits/string2.h" 3 4
3601 extern char *__strsep_g (char **__stringp, __const char *__delim);
3602 # 1223 "/usr/include/bits/string2.h" 3 4
3603 extern __inline char *__strsep_1c (char **__s, char __reject);
3604 extern __inline char *
3605 __strsep_1c (char **__s, char __reject)
3607 register char *__retval = *__s;
3608 if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0))
3613 extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2);
3614 extern __inline char *
3615 __strsep_2c (char **__s, char __reject1, char __reject2)
3617 register char *__retval = *__s;
3618 if (__retval != ((void *)0))
3620 register char *__cp = __retval;
3628 if (*__cp == __reject1 || *__cp == __reject2)
3640 extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2,
3642 extern __inline char *
3643 __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
3645 register char *__retval = *__s;
3646 if (__retval != ((void *)0))
3648 register char *__cp = __retval;
3656 if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3)
3667 # 1304 "/usr/include/bits/string2.h" 3 4
3668 extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
3669 # 1323 "/usr/include/bits/string2.h" 3 4
3670 extern char *__strndup (__const char *__string, size_t __n)
3671 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
3672 # 418 "/usr/include/string.h" 2 3 4
3673 # 426 "/usr/include/string.h" 3 4
3676 # 1 "/usr/include/assert.h" 1 3 4
3677 # 67 "/usr/include/assert.h" 3 4
3681 extern void __assert_fail (__const char *__assertion, __const char *__file,
3682 unsigned int __line, __const char *__function)
3683 __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
3686 extern void __assert_perror_fail (int __errnum, __const char *__file,
3687 unsigned int __line,
3688 __const char *__function)
3689 __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
3694 extern void __assert (const char *__assertion, const char *__file, int __line)
3695 __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
3707 # 1 "/usr/include/unistd.h" 1 3 4
3708 # 28 "/usr/include/unistd.h" 3 4
3710 # 171 "/usr/include/unistd.h" 3 4
3711 # 1 "/usr/include/bits/posix_opt.h" 1 3 4
3712 # 172 "/usr/include/unistd.h" 2 3 4
3713 # 195 "/usr/include/unistd.h" 3 4
3714 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
3715 # 196 "/usr/include/unistd.h" 2 3 4
3716 # 236 "/usr/include/unistd.h" 3 4
3717 typedef __intptr_t intptr_t;
3724 typedef __socklen_t socklen_t;
3725 # 256 "/usr/include/unistd.h" 3 4
3726 extern int access (__const char *__name, int __type) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3727 # 287 "/usr/include/unistd.h" 3 4
3728 extern __off_t lseek (int __fd, __off_t __offset, int __whence) __attribute__ ((__nothrow__));
3729 # 305 "/usr/include/unistd.h" 3 4
3730 extern int close (int __fd);
3737 extern ssize_t read (int __fd, void *__buf, size_t __nbytes);
3743 extern ssize_t write (int __fd, __const void *__buf, size_t __n);
3744 # 369 "/usr/include/unistd.h" 3 4
3745 extern int pipe (int __pipedes[2]) __attribute__ ((__nothrow__));
3746 # 378 "/usr/include/unistd.h" 3 4
3747 extern unsigned int alarm (unsigned int __seconds) __attribute__ ((__nothrow__));
3748 # 390 "/usr/include/unistd.h" 3 4
3749 extern unsigned int sleep (unsigned int __seconds);
3756 extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval)
3757 __attribute__ ((__nothrow__));
3764 extern int usleep (__useconds_t __useconds);
3765 # 414 "/usr/include/unistd.h" 3 4
3766 extern int pause (void);
3770 extern int chown (__const char *__file, __uid_t __owner, __gid_t __group)
3771 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3775 extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__));
3780 extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group)
3781 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3786 extern int chdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3790 extern int fchdir (int __fd) __attribute__ ((__nothrow__));
3791 # 448 "/usr/include/unistd.h" 3 4
3792 extern char *getcwd (char *__buf, size_t __size) __attribute__ ((__nothrow__));
3793 # 461 "/usr/include/unistd.h" 3 4
3794 extern char *getwd (char *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3799 extern int dup (int __fd) __attribute__ ((__nothrow__));
3802 extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__));
3805 extern char **__environ;
3813 extern int execve (__const char *__path, char *__const __argv[],
3814 char *__const __envp[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3815 # 492 "/usr/include/unistd.h" 3 4
3816 extern int execv (__const char *__path, char *__const __argv[])
3817 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3821 extern int execle (__const char *__path, __const char *__arg, ...)
3822 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3826 extern int execl (__const char *__path, __const char *__arg, ...)
3827 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3831 extern int execvp (__const char *__file, char *__const __argv[])
3832 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3837 extern int execlp (__const char *__file, __const char *__arg, ...)
3838 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
3843 extern int nice (int __inc) __attribute__ ((__nothrow__));
3848 extern void _exit (int __status) __attribute__ ((__noreturn__));
3854 # 1 "/usr/include/bits/confname.h" 1 3 4
3855 # 26 "/usr/include/bits/confname.h" 3 4
3870 _PC_CHOWN_RESTRICTED,
3886 _PC_REC_INCR_XFER_SIZE,
3888 _PC_REC_MAX_XFER_SIZE,
3890 _PC_REC_MIN_XFER_SIZE,
3923 _SC_REALTIME_SIGNALS,
3925 _SC_PRIORITY_SCHEDULING,
3929 _SC_ASYNCHRONOUS_IO,
3933 _SC_SYNCHRONIZED_IO,
3943 _SC_MEMORY_PROTECTION,
3945 _SC_MESSAGE_PASSING,
3949 _SC_SHARED_MEMORY_OBJECTS,
3955 _SC_AIO_PRIO_DELTA_MAX,
3989 _SC_COLL_WEIGHTS_MAX,
3991 _SC_EQUIV_CLASS_MAX,
3999 _SC_CHARCLASS_NAME_MAX,
4033 _SC_IOV_MAX = _SC_UIO_MAXIOV,
4035 _SC_PII_INTERNET_STREAM,
4037 _SC_PII_INTERNET_DGRAM,
4051 _SC_THREAD_SAFE_FUNCTIONS,
4053 _SC_GETGR_R_SIZE_MAX,
4055 _SC_GETPW_R_SIZE_MAX,
4061 _SC_THREAD_DESTRUCTOR_ITERATIONS,
4063 _SC_THREAD_KEYS_MAX,
4065 _SC_THREAD_STACK_MIN,
4067 _SC_THREAD_THREADS_MAX,
4069 _SC_THREAD_ATTR_STACKADDR,
4071 _SC_THREAD_ATTR_STACKSIZE,
4073 _SC_THREAD_PRIORITY_SCHEDULING,
4075 _SC_THREAD_PRIO_INHERIT,
4077 _SC_THREAD_PRIO_PROTECT,
4079 _SC_THREAD_PROCESS_SHARED,
4082 _SC_NPROCESSORS_CONF,
4084 _SC_NPROCESSORS_ONLN,
4097 _SC_XOPEN_XCU_VERSION,
4172 _SC_XBS5_ILP32_OFF32,
4174 _SC_XBS5_ILP32_OFFBIG,
4176 _SC_XBS5_LP64_OFF64,
4178 _SC_XBS5_LPBIG_OFFBIG,
4185 _SC_XOPEN_REALTIME_THREADS,
4196 _SC_C_LANG_SUPPORT_R,
4198 _SC_CLOCK_SELECTION,
4206 _SC_DEVICE_SPECIFIC,
4208 _SC_DEVICE_SPECIFIC_R,
4216 _SC_FILE_ATTRIBUTES,
4222 _SC_MONOTONIC_CLOCK,
4230 _SC_READER_WRITER_LOCKS,
4244 _SC_SPORADIC_SERVER,
4246 _SC_THREAD_SPORADIC_SERVER,
4248 _SC_SYSTEM_DATABASE,
4250 _SC_SYSTEM_DATABASE_R,
4254 _SC_TYPED_MEMORY_OBJECTS,
4262 _SC_2_PBS_ACCOUNTING,
4274 _SC_2_PBS_CHECKPOINT,
4279 _SC_V6_ILP32_OFFBIG,
4283 _SC_V6_LPBIG_OFFBIG,
4290 _SC_TRACE_EVENT_FILTER,
4297 _SC_LEVEL1_ICACHE_SIZE,
4299 _SC_LEVEL1_ICACHE_ASSOC,
4301 _SC_LEVEL1_ICACHE_LINESIZE,
4303 _SC_LEVEL1_DCACHE_SIZE,
4305 _SC_LEVEL1_DCACHE_ASSOC,
4307 _SC_LEVEL1_DCACHE_LINESIZE,
4309 _SC_LEVEL2_CACHE_SIZE,
4311 _SC_LEVEL2_CACHE_ASSOC,
4313 _SC_LEVEL2_CACHE_LINESIZE,
4315 _SC_LEVEL3_CACHE_SIZE,
4317 _SC_LEVEL3_CACHE_ASSOC,
4319 _SC_LEVEL3_CACHE_LINESIZE,
4321 _SC_LEVEL4_CACHE_SIZE,
4323 _SC_LEVEL4_CACHE_ASSOC,
4325 _SC_LEVEL4_CACHE_LINESIZE,
4329 _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,
4341 _CS_V6_WIDTH_RESTRICTED_ENVS,
4344 _CS_GNU_LIBC_VERSION,
4346 _CS_GNU_LIBPTHREAD_VERSION,
4349 _CS_LFS_CFLAGS = 1000,
4363 _CS_LFS64_LINTFLAGS,
4366 _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
4368 _CS_XBS5_ILP32_OFF32_LDFLAGS,
4370 _CS_XBS5_ILP32_OFF32_LIBS,
4372 _CS_XBS5_ILP32_OFF32_LINTFLAGS,
4374 _CS_XBS5_ILP32_OFFBIG_CFLAGS,
4376 _CS_XBS5_ILP32_OFFBIG_LDFLAGS,
4378 _CS_XBS5_ILP32_OFFBIG_LIBS,
4380 _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,
4382 _CS_XBS5_LP64_OFF64_CFLAGS,
4384 _CS_XBS5_LP64_OFF64_LDFLAGS,
4386 _CS_XBS5_LP64_OFF64_LIBS,
4388 _CS_XBS5_LP64_OFF64_LINTFLAGS,
4390 _CS_XBS5_LPBIG_OFFBIG_CFLAGS,
4392 _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,
4394 _CS_XBS5_LPBIG_OFFBIG_LIBS,
4396 _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS,
4399 _CS_POSIX_V6_ILP32_OFF32_CFLAGS,
4401 _CS_POSIX_V6_ILP32_OFF32_LDFLAGS,
4403 _CS_POSIX_V6_ILP32_OFF32_LIBS,
4405 _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS,
4407 _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS,
4409 _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS,
4411 _CS_POSIX_V6_ILP32_OFFBIG_LIBS,
4413 _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS,
4415 _CS_POSIX_V6_LP64_OFF64_CFLAGS,
4417 _CS_POSIX_V6_LP64_OFF64_LDFLAGS,
4419 _CS_POSIX_V6_LP64_OFF64_LIBS,
4421 _CS_POSIX_V6_LP64_OFF64_LINTFLAGS,
4423 _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,
4425 _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS,
4427 _CS_POSIX_V6_LPBIG_OFFBIG_LIBS,
4429 _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS
4432 # 531 "/usr/include/unistd.h" 2 3 4
4435 extern long int pathconf (__const char *__path, int __name)
4436 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4439 extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__));
4442 extern long int sysconf (int __name) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
4446 extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__));
4451 extern __pid_t getpid (void) __attribute__ ((__nothrow__));
4454 extern __pid_t getppid (void) __attribute__ ((__nothrow__));
4459 extern __pid_t getpgrp (void) __attribute__ ((__nothrow__));
4460 # 567 "/usr/include/unistd.h" 3 4
4461 extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__));
4462 # 576 "/usr/include/unistd.h" 3 4
4463 extern int setpgid (__pid_t __pid, __pid_t __pgid) __attribute__ ((__nothrow__));
4464 # 593 "/usr/include/unistd.h" 3 4
4465 extern int setpgrp (void) __attribute__ ((__nothrow__));
4466 # 610 "/usr/include/unistd.h" 3 4
4467 extern __pid_t setsid (void) __attribute__ ((__nothrow__));
4475 extern __uid_t getuid (void) __attribute__ ((__nothrow__));
4478 extern __uid_t geteuid (void) __attribute__ ((__nothrow__));
4481 extern __gid_t getgid (void) __attribute__ ((__nothrow__));
4484 extern __gid_t getegid (void) __attribute__ ((__nothrow__));
4489 extern int getgroups (int __size, __gid_t __list[]) __attribute__ ((__nothrow__));
4490 # 643 "/usr/include/unistd.h" 3 4
4491 extern int setuid (__uid_t __uid) __attribute__ ((__nothrow__));
4496 extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__));
4501 extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__));
4508 extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__));
4513 extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__));
4518 extern int setegid (__gid_t __gid) __attribute__ ((__nothrow__));
4519 # 695 "/usr/include/unistd.h" 3 4
4520 extern __pid_t fork (void) __attribute__ ((__nothrow__));
4527 extern __pid_t vfork (void) __attribute__ ((__nothrow__));
4533 extern char *ttyname (int __fd) __attribute__ ((__nothrow__));
4537 extern int ttyname_r (int __fd, char *__buf, size_t __buflen)
4538 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
4542 extern int isatty (int __fd) __attribute__ ((__nothrow__));
4548 extern int ttyslot (void) __attribute__ ((__nothrow__));
4553 extern int link (__const char *__from, __const char *__to)
4554 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
4558 extern int symlink (__const char *__from, __const char *__to)
4559 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
4564 extern int readlink (__const char *__restrict __path, char *__restrict __buf,
4565 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
4569 extern int unlink (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4572 extern int rmdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4576 extern __pid_t tcgetpgrp (int __fd) __attribute__ ((__nothrow__));
4579 extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __attribute__ ((__nothrow__));
4586 extern char *getlogin (void);
4587 # 774 "/usr/include/unistd.h" 3 4
4588 extern int setlogin (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4589 # 783 "/usr/include/unistd.h" 3 4
4590 # 1 "/usr/include/getopt.h" 1 3 4
4591 # 59 "/usr/include/getopt.h" 3 4
4592 extern char *optarg;
4593 # 73 "/usr/include/getopt.h" 3 4
4604 # 152 "/usr/include/getopt.h" 3 4
4605 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
4606 __attribute__ ((__nothrow__));
4607 # 784 "/usr/include/unistd.h" 2 3 4
4615 extern int gethostname (char *__name, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4622 extern int sethostname (__const char *__name, size_t __len)
4623 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4627 extern int sethostid (long int __id) __attribute__ ((__nothrow__));
4633 extern int getdomainname (char *__name, size_t __len)
4634 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4635 extern int setdomainname (__const char *__name, size_t __len)
4636 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4642 extern int vhangup (void) __attribute__ ((__nothrow__));
4645 extern int revoke (__const char *__file) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4653 extern int profil (unsigned short int *__sample_buffer, size_t __size,
4654 size_t __offset, unsigned int __scale)
4655 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4661 extern int acct (__const char *__name) __attribute__ ((__nothrow__));
4665 extern char *getusershell (void) __attribute__ ((__nothrow__));
4666 extern void endusershell (void) __attribute__ ((__nothrow__));
4667 extern void setusershell (void) __attribute__ ((__nothrow__));
4673 extern int daemon (int __nochdir, int __noclose) __attribute__ ((__nothrow__));
4680 extern int chroot (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4684 extern char *getpass (__const char *__prompt) __attribute__ ((__nonnull__ (1)));
4685 # 869 "/usr/include/unistd.h" 3 4
4686 extern int fsync (int __fd);
4693 extern long int gethostid (void);
4696 extern void sync (void) __attribute__ ((__nothrow__));
4701 extern int getpagesize (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
4706 extern int getdtablesize (void) __attribute__ ((__nothrow__));
4711 extern int truncate (__const char *__file, __off_t __length)
4712 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4713 # 916 "/usr/include/unistd.h" 3 4
4714 extern int ftruncate (int __fd, __off_t __length) __attribute__ ((__nothrow__));
4715 # 936 "/usr/include/unistd.h" 3 4
4716 extern int brk (void *__addr) __attribute__ ((__nothrow__));
4722 extern void *sbrk (intptr_t __delta) __attribute__ ((__nothrow__));
4723 # 957 "/usr/include/unistd.h" 3 4
4724 extern long int syscall (long int __sysno, ...) __attribute__ ((__nothrow__));
4725 # 1011 "/usr/include/unistd.h" 3 4
4726 extern int fdatasync (int __fildes) __attribute__ ((__nothrow__));
4727 # 1043 "/usr/include/unistd.h" 3 4
4730 # 1 "/usr/include/sys/stat.h" 1 3 4
4731 # 37 "/usr/include/sys/stat.h" 3 4
4732 # 1 "/usr/include/time.h" 1 3 4
4733 # 38 "/usr/include/sys/stat.h" 2 3 4
4734 # 103 "/usr/include/sys/stat.h" 3 4
4737 # 1 "/usr/include/bits/stat.h" 1 3 4
4738 # 36 "/usr/include/bits/stat.h" 3 4
4742 unsigned short int __pad1;
4753 unsigned short int __pad2;
4759 __blksize_t st_blksize;
4762 __blkcnt_t st_blocks;
4763 # 70 "/usr/include/bits/stat.h" 3 4
4764 struct timespec st_atim;
4765 struct timespec st_mtim;
4766 struct timespec st_ctim;
4767 # 85 "/usr/include/bits/stat.h" 3 4
4768 unsigned long int __unused4;
4769 unsigned long int __unused5;
4774 # 106 "/usr/include/sys/stat.h" 2 3 4
4775 # 207 "/usr/include/sys/stat.h" 3 4
4776 extern int stat (__const char *__restrict __file,
4777 struct stat *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
4781 extern int fstat (int __fd, struct stat *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
4782 # 235 "/usr/include/sys/stat.h" 3 4
4783 extern int lstat (__const char *__restrict __file,
4784 struct stat *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
4785 # 256 "/usr/include/sys/stat.h" 3 4
4786 extern int chmod (__const char *__file, __mode_t __mode)
4787 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4793 extern int lchmod (__const char *__file, __mode_t __mode)
4794 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4799 extern int fchmod (int __fd, __mode_t __mode) __attribute__ ((__nothrow__));
4805 extern __mode_t umask (__mode_t __mask) __attribute__ ((__nothrow__));
4806 # 284 "/usr/include/sys/stat.h" 3 4
4807 extern int mkdir (__const char *__path, __mode_t __mode)
4808 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4814 extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
4815 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4820 extern int mkfifo (__const char *__path, __mode_t __mode)
4821 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
4822 # 324 "/usr/include/sys/stat.h" 3 4
4823 extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf)
4824 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));
4825 extern int __xstat (int __ver, __const char *__filename,
4826 struct stat *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
4827 extern int __lxstat (int __ver, __const char *__filename,
4828 struct stat *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
4829 # 357 "/usr/include/sys/stat.h" 3 4
4830 extern int __xmknod (int __ver, __const char *__path, __mode_t __mode,
4831 __dev_t *__dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
4836 extern __inline__ int
4837 __attribute__ ((__nothrow__)) stat (__const char *__path, struct stat *__statbuf)
4839 return __xstat (3, __path, __statbuf);
4843 extern __inline__ int
4844 __attribute__ ((__nothrow__)) lstat (__const char *__path, struct stat *__statbuf)
4846 return __lxstat (3, __path, __statbuf);
4850 extern __inline__ int
4851 __attribute__ ((__nothrow__)) fstat (int __fd, struct stat *__statbuf)
4853 return __fxstat (3, __fd, __statbuf);
4857 extern __inline__ int
4858 __attribute__ ((__nothrow__)) mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
4860 return __xmknod (1, __path, __mode, &__dev);
4862 # 417 "/usr/include/sys/stat.h" 3 4
4865 # 1 "/usr/include/sys/times.h" 1 3 4
4866 # 29 "/usr/include/sys/times.h" 3 4
4867 # 1 "/usr/include/time.h" 1 3 4
4868 # 58 "/usr/include/time.h" 3 4
4871 typedef __clock_t clock_t;
4875 # 30 "/usr/include/sys/times.h" 2 3 4
4895 extern clock_t times (struct tms *__buffer) __attribute__ ((__nothrow__));
4900 # 1 "/usr/include/time.h" 1 3 4
4901 # 30 "/usr/include/time.h" 3 4
4910 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
4911 # 39 "/usr/include/time.h" 2 3 4
4915 # 1 "/usr/include/bits/time.h" 1 3 4
4916 # 40 "/usr/include/bits/time.h" 3 4
4917 extern long int __sysconf (int);
4918 # 43 "/usr/include/time.h" 2 3 4
4919 # 129 "/usr/include/time.h" 3 4
4936 __const char *tm_zone;
4952 struct timespec it_interval;
4953 struct timespec it_value;
4958 # 178 "/usr/include/time.h" 3 4
4962 extern clock_t clock (void) __attribute__ ((__nothrow__));
4965 extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
4968 extern double difftime (time_t __time1, time_t __time0)
4969 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
4972 extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
4978 extern size_t strftime (char *__restrict __s, size_t __maxsize,
4979 __const char *__restrict __format,
4980 __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
4982 # 226 "/usr/include/time.h" 3 4
4986 extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
4990 extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
4996 extern struct tm *gmtime_r (__const time_t *__restrict __timer,
4997 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
5001 extern struct tm *localtime_r (__const time_t *__restrict __timer,
5002 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
5008 extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
5011 extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
5019 extern char *asctime_r (__const struct tm *__restrict __tp,
5020 char *__restrict __buf) __attribute__ ((__nothrow__));
5023 extern char *ctime_r (__const time_t *__restrict __timer,
5024 char *__restrict __buf) __attribute__ ((__nothrow__));
5029 extern char *__tzname[2];
5030 extern int __daylight;
5031 extern long int __timezone;
5036 extern char *tzname[2];
5040 extern void tzset (void) __attribute__ ((__nothrow__));
5044 extern int daylight;
5045 extern long int timezone;
5051 extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
5052 # 309 "/usr/include/time.h" 3 4
5053 extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
5056 extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
5059 extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
5060 # 324 "/usr/include/time.h" 3 4
5061 extern int nanosleep (__const struct timespec *__requested_time,
5062 struct timespec *__remaining);
5066 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
5069 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
5072 extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
5073 __attribute__ ((__nothrow__));
5074 # 353 "/usr/include/time.h" 3 4
5075 extern int timer_create (clockid_t __clock_id,
5076 struct sigevent *__restrict __evp,
5077 timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
5080 extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
5083 extern int timer_settime (timer_t __timerid, int __flags,
5084 __const struct itimerspec *__restrict __value,
5085 struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
5088 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
5089 __attribute__ ((__nothrow__));
5092 extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
5093 # 413 "/usr/include/time.h" 3 4
5096 # 1 "/usr/include/sys/time.h" 1 3 4
5097 # 28 "/usr/include/sys/time.h" 3 4
5098 # 1 "/usr/include/bits/time.h" 1 3 4
5099 # 29 "/usr/include/sys/time.h" 2 3 4
5100 # 38 "/usr/include/sys/time.h" 3 4
5102 # 56 "/usr/include/sys/time.h" 3 4
5109 typedef struct timezone *__restrict __timezone_ptr_t;
5110 # 72 "/usr/include/sys/time.h" 3 4
5111 extern int gettimeofday (struct timeval *__restrict __tv,
5112 __timezone_ptr_t __tz) __attribute__ ((__nothrow__));
5117 extern int settimeofday (__const struct timeval *__tv,
5118 __const struct timezone *__tz) __attribute__ ((__nothrow__));
5124 extern int adjtime (__const struct timeval *__delta,
5125 struct timeval *__olddelta) __attribute__ ((__nothrow__));
5149 struct timeval it_interval;
5151 struct timeval it_value;
5159 typedef int __itimer_which_t;
5164 extern int getitimer (__itimer_which_t __which,
5165 struct itimerval *__value) __attribute__ ((__nothrow__));
5170 extern int setitimer (__itimer_which_t __which,
5171 __const struct itimerval *__restrict __new,
5172 struct itimerval *__restrict __old) __attribute__ ((__nothrow__));
5177 extern int utimes (__const char *__file, __const struct timeval __tvp[2])
5178 __attribute__ ((__nothrow__));
5182 extern int lutimes (__const char *__file, __const struct timeval __tvp[2])
5183 __attribute__ ((__nothrow__));
5186 extern int futimes (int __fd, __const struct timeval __tvp[2]) __attribute__ ((__nothrow__));
5187 # 181 "/usr/include/sys/time.h" 3 4
5191 # 1 "/usr/include/sys/socket.h" 1 3 4
5192 # 25 "/usr/include/sys/socket.h" 3 4
5195 # 1 "/usr/include/sys/uio.h" 1 3 4
5196 # 26 "/usr/include/sys/uio.h" 3 4
5200 # 1 "/usr/include/bits/uio.h" 1 3 4
5201 # 42 "/usr/include/bits/uio.h" 3 4
5207 # 30 "/usr/include/sys/uio.h" 2 3 4
5208 # 40 "/usr/include/sys/uio.h" 3 4
5209 extern ssize_t readv (int __fd, __const struct iovec *__iovec, int __count);
5210 # 50 "/usr/include/sys/uio.h" 3 4
5211 extern ssize_t writev (int __fd, __const struct iovec *__iovec, int __count);
5214 # 28 "/usr/include/sys/socket.h" 2 3 4
5216 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
5217 # 30 "/usr/include/sys/socket.h" 2 3 4
5223 # 1 "/usr/include/bits/socket.h" 1 3 4
5224 # 29 "/usr/include/bits/socket.h" 3 4
5225 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
5226 # 30 "/usr/include/bits/socket.h" 2 3 4
5228 # 1 "/usr/include/limits.h" 1 3 4
5229 # 32 "/usr/include/bits/socket.h" 2 3 4
5230 # 41 "/usr/include/bits/socket.h" 3 4
5251 # 142 "/usr/include/bits/socket.h" 3 4
5252 # 1 "/usr/include/bits/sockaddr.h" 1 3 4
5253 # 29 "/usr/include/bits/sockaddr.h" 3 4
5254 typedef unsigned short int sa_family_t;
5255 # 143 "/usr/include/bits/socket.h" 2 3 4
5260 sa_family_t sa_family;
5263 # 162 "/usr/include/bits/socket.h" 3 4
5264 struct sockaddr_storage
5266 sa_family_t ss_family;
5267 __uint32_t __ss_align;
5268 char __ss_padding[(128 - (2 * sizeof (__uint32_t)))];
5279 MSG_DONTROUTE = 0x04,
5292 MSG_DONTWAIT = 0x40,
5296 MSG_WAITALL = 0x100,
5302 MSG_CONFIRM = 0x800,
5306 MSG_ERRQUEUE = 0x2000,
5308 MSG_NOSIGNAL = 0x4000,
5320 socklen_t msg_namelen;
5322 struct iovec *msg_iov;
5326 size_t msg_controllen;
5339 __extension__ unsigned char __cmsg_data [];
5342 # 257 "/usr/include/bits/socket.h" 3 4
5343 extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr,
5344 struct cmsghdr *__cmsg) __attribute__ ((__nothrow__));
5349 extern __inline struct cmsghdr *
5350 __attribute__ ((__nothrow__)) __cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg)
5352 if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr))
5356 __cmsg = (struct cmsghdr *) ((unsigned char *) __cmsg
5357 + (((__cmsg->cmsg_len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)));
5358 if ((unsigned char *) (__cmsg + 1) > ((unsigned char *) __mhdr->msg_control
5359 + __mhdr->msg_controllen)
5360 || ((unsigned char *) __cmsg + (((__cmsg->cmsg_len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1))
5361 > ((unsigned char *) __mhdr->msg_control + __mhdr->msg_controllen)))
5375 , SCM_CREDENTIALS = 0x02
5390 # 1 "/usr/include/asm/socket.h" 1 3 4
5391 # 11 "/usr/include/asm/socket.h" 3 4
5392 # 1 "/usr/include/asm-i386/socket.h" 1 3 4
5396 # 1 "/usr/include/asm/sockios.h" 1 3 4
5397 # 11 "/usr/include/asm/sockios.h" 3 4
5398 # 1 "/usr/include/asm-i386/sockios.h" 1 3 4
5399 # 12 "/usr/include/asm/sockios.h" 2 3 4
5400 # 5 "/usr/include/asm-i386/socket.h" 2 3 4
5401 # 12 "/usr/include/asm/socket.h" 2 3 4
5402 # 305 "/usr/include/bits/socket.h" 2 3 4
5411 # 36 "/usr/include/sys/socket.h" 2 3 4
5418 unsigned short int sa_family;
5419 unsigned char sa_data[14];
5434 # 100 "/usr/include/sys/socket.h" 3 4
5435 extern int socket (int __domain, int __type, int __protocol) __attribute__ ((__nothrow__));
5441 extern int socketpair (int __domain, int __type, int __protocol,
5442 int __fds[2]) __attribute__ ((__nothrow__));
5445 extern int bind (int __fd, __const struct sockaddr * __addr, socklen_t __len)
5446 __attribute__ ((__nothrow__));
5449 extern int getsockname (int __fd, struct sockaddr *__restrict __addr,
5450 socklen_t *__restrict __len) __attribute__ ((__nothrow__));
5451 # 124 "/usr/include/sys/socket.h" 3 4
5452 extern int connect (int __fd, __const struct sockaddr * __addr, socklen_t __len);
5456 extern int getpeername (int __fd, struct sockaddr *__restrict __addr,
5457 socklen_t *__restrict __len) __attribute__ ((__nothrow__));
5464 extern ssize_t send (int __fd, __const void *__buf, size_t __n, int __flags);
5471 extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags);
5478 extern ssize_t sendto (int __fd, __const void *__buf, size_t __n,
5479 int __flags, __const struct sockaddr * __addr,
5480 socklen_t __addr_len);
5481 # 161 "/usr/include/sys/socket.h" 3 4
5482 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
5483 int __flags, struct sockaddr *__restrict __addr,
5484 socklen_t *__restrict __addr_len);
5492 extern ssize_t sendmsg (int __fd, __const struct msghdr *__message,
5500 extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags);
5506 extern int getsockopt (int __fd, int __level, int __optname,
5507 void *__restrict __optval,
5508 socklen_t *__restrict __optlen) __attribute__ ((__nothrow__));
5513 extern int setsockopt (int __fd, int __level, int __optname,
5514 __const void *__optval, socklen_t __optlen) __attribute__ ((__nothrow__));
5520 extern int listen (int __fd, int __n) __attribute__ ((__nothrow__));
5521 # 209 "/usr/include/sys/socket.h" 3 4
5522 extern int accept (int __fd, struct sockaddr *__restrict __addr,
5523 socklen_t *__restrict __addr_len);
5531 extern int shutdown (int __fd, int __how) __attribute__ ((__nothrow__));
5532 # 231 "/usr/include/sys/socket.h" 3 4
5533 extern int isfdtype (int __fd, int __fdtype) __attribute__ ((__nothrow__));
5538 # 1 "/usr/include/netinet/in.h" 1 3 4
5539 # 23 "/usr/include/netinet/in.h" 3 4
5540 # 1 "/usr/include/stdint.h" 1 3 4
5541 # 28 "/usr/include/stdint.h" 3 4
5542 # 1 "/usr/include/bits/wordsize.h" 1 3 4
5543 # 29 "/usr/include/stdint.h" 2 3 4
5544 # 49 "/usr/include/stdint.h" 3 4
5545 typedef unsigned char uint8_t;
5546 typedef unsigned short int uint16_t;
5548 typedef unsigned int uint32_t;
5555 typedef unsigned long long int uint64_t;
5562 typedef signed char int_least8_t;
5563 typedef short int int_least16_t;
5564 typedef int int_least32_t;
5569 typedef long long int int_least64_t;
5573 typedef unsigned char uint_least8_t;
5574 typedef unsigned short int uint_least16_t;
5575 typedef unsigned int uint_least32_t;
5580 typedef unsigned long long int uint_least64_t;
5587 typedef signed char int_fast8_t;
5593 typedef int int_fast16_t;
5594 typedef int int_fast32_t;
5596 typedef long long int int_fast64_t;
5600 typedef unsigned char uint_fast8_t;
5606 typedef unsigned int uint_fast16_t;
5607 typedef unsigned int uint_fast32_t;
5609 typedef unsigned long long int uint_fast64_t;
5610 # 129 "/usr/include/stdint.h" 3 4
5611 typedef unsigned int uintptr_t;
5612 # 138 "/usr/include/stdint.h" 3 4
5614 typedef long long int intmax_t;
5616 typedef unsigned long long int uintmax_t;
5617 # 24 "/usr/include/netinet/in.h" 2 3 4
5629 IPPROTO_HOPOPTS = 0,
5651 IPPROTO_ROUTING = 43,
5653 IPPROTO_FRAGMENT = 44,
5663 IPPROTO_ICMPV6 = 58,
5667 IPPROTO_DSTOPTS = 60,
5686 typedef uint16_t in_port_t;
5694 IPPORT_DAYTIME = 13,
5695 IPPORT_NETSTAT = 15,
5699 IPPORT_TIMESERVER = 37,
5700 IPPORT_NAMESERVER = 42,
5707 IPPORT_TTYLINK = 87,
5711 IPPORT_EXECSERVER = 512,
5712 IPPORT_LOGINSERVER = 513,
5713 IPPORT_CMDSERVER = 514,
5714 IPPORT_EFSSERVER = 520,
5717 IPPORT_BIFFUDP = 512,
5718 IPPORT_WHOSERVER = 513,
5719 IPPORT_ROUTESERVER = 520,
5722 IPPORT_RESERVED = 1024,
5725 IPPORT_USERRESERVED = 5000
5730 typedef uint32_t in_addr_t;
5735 # 193 "/usr/include/netinet/in.h" 3 4
5740 uint8_t u6_addr8[16];
5741 uint16_t u6_addr16[8];
5742 uint32_t u6_addr32[4];
5749 extern const struct in6_addr in6addr_any;
5750 extern const struct in6_addr in6addr_loopback;
5751 # 219 "/usr/include/netinet/in.h" 3 4
5754 sa_family_t sin_family;
5756 struct in_addr sin_addr;
5759 unsigned char sin_zero[sizeof (struct sockaddr) -
5760 (sizeof (unsigned short int)) -
5761 sizeof (in_port_t) -
5762 sizeof (struct in_addr)];
5768 sa_family_t sin6_family;
5769 in_port_t sin6_port;
5770 uint32_t sin6_flowinfo;
5771 struct in6_addr sin6_addr;
5772 uint32_t sin6_scope_id;
5780 struct in_addr imr_multiaddr;
5783 struct in_addr imr_interface;
5786 struct ip_mreq_source
5789 struct in_addr imr_multiaddr;
5792 struct in_addr imr_interface;
5795 struct in_addr imr_sourceaddr;
5802 struct in6_addr ipv6mr_multiaddr;
5805 unsigned int ipv6mr_interface;
5813 uint32_t gr_interface;
5816 struct sockaddr_storage gr_group;
5819 struct group_source_req
5822 uint32_t gsr_interface;
5825 struct sockaddr_storage gsr_group;
5828 struct sockaddr_storage gsr_source;
5836 struct in_addr imsf_multiaddr;
5839 struct in_addr imsf_interface;
5842 uint32_t imsf_fmode;
5845 uint32_t imsf_numsrc;
5847 struct in_addr imsf_slist[1];
5857 uint32_t gf_interface;
5860 struct sockaddr_storage gf_group;
5868 struct sockaddr_storage gf_slist[1];
5870 # 345 "/usr/include/netinet/in.h" 3 4
5871 # 1 "/usr/include/bits/in.h" 1 3 4
5872 # 82 "/usr/include/bits/in.h" 3 4
5875 struct in_addr ip_dst;
5882 struct in_addr imr_multiaddr;
5883 struct in_addr imr_address;
5891 struct in_addr ipi_spec_dst;
5892 struct in_addr ipi_addr;
5894 # 346 "/usr/include/netinet/in.h" 2 3 4
5895 # 354 "/usr/include/netinet/in.h" 3 4
5896 extern uint32_t ntohl (uint32_t __netlong) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
5897 extern uint16_t ntohs (uint16_t __netshort)
5898 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
5899 extern uint32_t htonl (uint32_t __hostlong)
5900 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
5901 extern uint16_t htons (uint16_t __hostshort)
5902 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
5907 # 1 "/usr/include/bits/byteswap.h" 1 3 4
5908 # 366 "/usr/include/netinet/in.h" 2 3 4
5909 # 428 "/usr/include/netinet/in.h" 3 4
5910 extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in) __attribute__ ((__nothrow__));
5913 extern int bindresvport6 (int __sockfd, struct sockaddr_in6 *__sock_in)
5914 __attribute__ ((__nothrow__));
5915 # 456 "/usr/include/netinet/in.h" 3 4
5918 struct in6_addr ipi6_addr;
5919 unsigned int ipi6_ifindex;
5921 # 510 "/usr/include/netinet/in.h" 3 4
5924 # 1 "/usr/include/arpa/inet.h" 1 3 4
5925 # 31 "/usr/include/arpa/inet.h" 3 4
5930 extern in_addr_t inet_addr (__const char *__cp) __attribute__ ((__nothrow__));
5933 extern in_addr_t inet_lnaof (struct in_addr __in) __attribute__ ((__nothrow__));
5937 extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host)
5938 __attribute__ ((__nothrow__));
5941 extern in_addr_t inet_netof (struct in_addr __in) __attribute__ ((__nothrow__));
5945 extern in_addr_t inet_network (__const char *__cp) __attribute__ ((__nothrow__));
5949 extern char *inet_ntoa (struct in_addr __in) __attribute__ ((__nothrow__));
5954 extern int inet_pton (int __af, __const char *__restrict __cp,
5955 void *__restrict __buf) __attribute__ ((__nothrow__));
5960 extern __const char *inet_ntop (int __af, __const void *__restrict __cp,
5961 char *__restrict __buf, socklen_t __len)
5962 __attribute__ ((__nothrow__));
5969 extern int inet_aton (__const char *__cp, struct in_addr *__inp) __attribute__ ((__nothrow__));
5973 extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) __attribute__ ((__nothrow__));
5978 extern char *inet_net_ntop (int __af, __const void *__cp, int __bits,
5979 char *__buf, size_t __len) __attribute__ ((__nothrow__));
5984 extern int inet_net_pton (int __af, __const char *__cp,
5985 void *__buf, size_t __len) __attribute__ ((__nothrow__));
5990 extern unsigned int inet_nsap_addr (__const char *__cp,
5991 unsigned char *__buf, int __len) __attribute__ ((__nothrow__));
5995 extern char *inet_nsap_ntoa (int __len, __const unsigned char *__cp,
5996 char *__buf) __attribute__ ((__nothrow__));
6001 # 1 "/usr/include/netdb.h" 1 3 4
6002 # 33 "/usr/include/netdb.h" 3 4
6003 # 1 "/usr/include/rpc/netdb.h" 1 3 4
6004 # 42 "/usr/include/rpc/netdb.h" 3 4
6005 # 1 "/home/roc/toolchain/svn/gcc4.1/uclinux/bin/../lib/gcc/bfin-uclinux/4.1.1/include/stddef.h" 1 3 4
6006 # 43 "/usr/include/rpc/netdb.h" 2 3 4
6017 extern void setrpcent (int __stayopen) __attribute__ ((__nothrow__));
6018 extern void endrpcent (void) __attribute__ ((__nothrow__));
6019 extern struct rpcent *getrpcbyname (__const char *__name) __attribute__ ((__nothrow__));
6020 extern struct rpcent *getrpcbynumber (int __number) __attribute__ ((__nothrow__));
6021 extern struct rpcent *getrpcent (void) __attribute__ ((__nothrow__));
6024 extern int getrpcbyname_r (__const char *__name, struct rpcent *__result_buf,
6025 char *__buffer, size_t __buflen,
6026 struct rpcent **__result) __attribute__ ((__nothrow__));
6028 extern int getrpcbynumber_r (int __number, struct rpcent *__result_buf,
6029 char *__buffer, size_t __buflen,
6030 struct rpcent **__result) __attribute__ ((__nothrow__));
6032 extern int getrpcent_r (struct rpcent *__result_buf, char *__buffer,
6033 size_t __buflen, struct rpcent **__result) __attribute__ ((__nothrow__));
6037 # 34 "/usr/include/netdb.h" 2 3 4
6038 # 43 "/usr/include/netdb.h" 3 4
6039 # 1 "/usr/include/bits/netdb.h" 1 3 4
6040 # 27 "/usr/include/bits/netdb.h" 3 4
6048 # 44 "/usr/include/netdb.h" 2 3 4
6049 # 54 "/usr/include/netdb.h" 3 4
6057 extern int *__h_errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6058 # 88 "/usr/include/netdb.h" 3 4
6059 extern void herror (__const char *__str) __attribute__ ((__nothrow__));
6062 extern __const char *hstrerror (int __err_num) __attribute__ ((__nothrow__));
6082 extern void sethostent (int __stay_open);
6088 extern void endhostent (void);
6095 extern struct hostent *gethostent (void);
6102 extern struct hostent *gethostbyaddr (__const void *__addr, __socklen_t __len,
6109 extern struct hostent *gethostbyname (__const char *__name);
6110 # 149 "/usr/include/netdb.h" 3 4
6111 extern struct hostent *gethostbyname2 (__const char *__name, int __af);
6112 # 161 "/usr/include/netdb.h" 3 4
6113 extern int gethostent_r (struct hostent *__restrict __result_buf,
6114 char *__restrict __buf, size_t __buflen,
6115 struct hostent **__restrict __result,
6116 int *__restrict __h_errnop);
6118 extern int gethostbyaddr_r (__const void *__restrict __addr, __socklen_t __len,
6120 struct hostent *__restrict __result_buf,
6121 char *__restrict __buf, size_t __buflen,
6122 struct hostent **__restrict __result,
6123 int *__restrict __h_errnop);
6125 extern int gethostbyname_r (__const char *__restrict __name,
6126 struct hostent *__restrict __result_buf,
6127 char *__restrict __buf, size_t __buflen,
6128 struct hostent **__restrict __result,
6129 int *__restrict __h_errnop);
6131 extern int gethostbyname2_r (__const char *__restrict __name, int __af,
6132 struct hostent *__restrict __result_buf,
6133 char *__restrict __buf, size_t __buflen,
6134 struct hostent **__restrict __result,
6135 int *__restrict __h_errnop);
6136 # 192 "/usr/include/netdb.h" 3 4
6137 extern void setnetent (int __stay_open);
6143 extern void endnetent (void);
6150 extern struct netent *getnetent (void);
6157 extern struct netent *getnetbyaddr (uint32_t __net, int __type);
6163 extern struct netent *getnetbyname (__const char *__name);
6164 # 231 "/usr/include/netdb.h" 3 4
6165 extern int getnetent_r (struct netent *__restrict __result_buf,
6166 char *__restrict __buf, size_t __buflen,
6167 struct netent **__restrict __result,
6168 int *__restrict __h_errnop);
6170 extern int getnetbyaddr_r (uint32_t __net, int __type,
6171 struct netent *__restrict __result_buf,
6172 char *__restrict __buf, size_t __buflen,
6173 struct netent **__restrict __result,
6174 int *__restrict __h_errnop);
6176 extern int getnetbyname_r (__const char *__restrict __name,
6177 struct netent *__restrict __result_buf,
6178 char *__restrict __buf, size_t __buflen,
6179 struct netent **__restrict __result,
6180 int *__restrict __h_errnop);
6198 extern void setservent (int __stay_open);
6204 extern void endservent (void);
6211 extern struct servent *getservent (void);
6218 extern struct servent *getservbyname (__const char *__name,
6219 __const char *__proto);
6226 extern struct servent *getservbyport (int __port, __const char *__proto);
6227 # 303 "/usr/include/netdb.h" 3 4
6228 extern int getservent_r (struct servent *__restrict __result_buf,
6229 char *__restrict __buf, size_t __buflen,
6230 struct servent **__restrict __result);
6232 extern int getservbyname_r (__const char *__restrict __name,
6233 __const char *__restrict __proto,
6234 struct servent *__restrict __result_buf,
6235 char *__restrict __buf, size_t __buflen,
6236 struct servent **__restrict __result);
6238 extern int getservbyport_r (int __port, __const char *__restrict __proto,
6239 struct servent *__restrict __result_buf,
6240 char *__restrict __buf, size_t __buflen,
6241 struct servent **__restrict __result);
6258 extern void setprotoent (int __stay_open);
6264 extern void endprotoent (void);
6271 extern struct protoent *getprotoent (void);
6277 extern struct protoent *getprotobyname (__const char *__name);
6283 extern struct protoent *getprotobynumber (int __proto);
6284 # 369 "/usr/include/netdb.h" 3 4
6285 extern int getprotoent_r (struct protoent *__restrict __result_buf,
6286 char *__restrict __buf, size_t __buflen,
6287 struct protoent **__restrict __result);
6289 extern int getprotobyname_r (__const char *__restrict __name,
6290 struct protoent *__restrict __result_buf,
6291 char *__restrict __buf, size_t __buflen,
6292 struct protoent **__restrict __result);
6294 extern int getprotobynumber_r (int __proto,
6295 struct protoent *__restrict __result_buf,
6296 char *__restrict __buf, size_t __buflen,
6297 struct protoent **__restrict __result);
6298 # 390 "/usr/include/netdb.h" 3 4
6299 extern int setnetgrent (__const char *__netgroup);
6307 extern void endnetgrent (void);
6308 # 407 "/usr/include/netdb.h" 3 4
6309 extern int getnetgrent (char **__restrict __hostp,
6310 char **__restrict __userp,
6311 char **__restrict __domainp);
6312 # 418 "/usr/include/netdb.h" 3 4
6313 extern int innetgr (__const char *__netgroup, __const char *__host,
6314 __const char *__user, __const char *domain);
6322 extern int getnetgrent_r (char **__restrict __hostp,
6323 char **__restrict __userp,
6324 char **__restrict __domainp,
6325 char *__restrict __buffer, size_t __buflen);
6326 # 446 "/usr/include/netdb.h" 3 4
6327 extern int rcmd (char **__restrict __ahost, unsigned short int __rport,
6328 __const char *__restrict __locuser,
6329 __const char *__restrict __remuser,
6330 __const char *__restrict __cmd, int *__restrict __fd2p);
6331 # 458 "/usr/include/netdb.h" 3 4
6332 extern int rcmd_af (char **__restrict __ahost, unsigned short int __rport,
6333 __const char *__restrict __locuser,
6334 __const char *__restrict __remuser,
6335 __const char *__restrict __cmd, int *__restrict __fd2p,
6337 # 474 "/usr/include/netdb.h" 3 4
6338 extern int rexec (char **__restrict __ahost, int __rport,
6339 __const char *__restrict __name,
6340 __const char *__restrict __pass,
6341 __const char *__restrict __cmd, int *__restrict __fd2p);
6342 # 486 "/usr/include/netdb.h" 3 4
6343 extern int rexec_af (char **__restrict __ahost, int __rport,
6344 __const char *__restrict __name,
6345 __const char *__restrict __pass,
6346 __const char *__restrict __cmd, int *__restrict __fd2p,
6348 # 500 "/usr/include/netdb.h" 3 4
6349 extern int ruserok (__const char *__rhost, int __suser,
6350 __const char *__remuser, __const char *__locuser);
6351 # 510 "/usr/include/netdb.h" 3 4
6352 extern int ruserok_af (__const char *__rhost, int __suser,
6353 __const char *__remuser, __const char *__locuser,
6355 # 522 "/usr/include/netdb.h" 3 4
6356 extern int rresvport (int *__alport);
6357 # 531 "/usr/include/netdb.h" 3 4
6358 extern int rresvport_af (int *__alport, sa_family_t __af);
6371 socklen_t ai_addrlen;
6372 struct sockaddr *ai_addr;
6374 struct addrinfo *ai_next;
6376 # 631 "/usr/include/netdb.h" 3 4
6377 extern int getaddrinfo (__const char *__restrict __name,
6378 __const char *__restrict __service,
6379 __const struct addrinfo *__restrict __req,
6380 struct addrinfo **__restrict __pai);
6383 extern void freeaddrinfo (struct addrinfo *__ai) __attribute__ ((__nothrow__));
6386 extern __const char *gai_strerror (int __ecode) __attribute__ ((__nothrow__));
6392 extern int getnameinfo (__const struct sockaddr *__restrict __sa,
6393 socklen_t __salen, char *__restrict __host,
6394 socklen_t __hostlen, char *__restrict __serv,
6395 socklen_t __servlen, unsigned int __flags);
6396 # 682 "/usr/include/netdb.h" 3 4
6399 # 1 "/usr/include/errno.h" 1 3 4
6400 # 32 "/usr/include/errno.h" 3 4
6405 # 1 "/usr/include/bits/errno.h" 1 3 4
6406 # 25 "/usr/include/bits/errno.h" 3 4
6407 # 1 "/usr/include/linux/errno.h" 1 3 4
6408 # 139 "/usr/include/linux/errno.h" 3 4
6409 # 1 "/usr/include/asm/errno.h" 1 3 4
6410 # 11 "/usr/include/asm/errno.h" 3 4
6411 # 1 "/usr/include/asm-i386/errno.h" 1 3 4
6412 # 12 "/usr/include/asm/errno.h" 2 3 4
6413 # 140 "/usr/include/linux/errno.h" 2 3 4
6414 # 26 "/usr/include/bits/errno.h" 2 3 4
6415 # 38 "/usr/include/bits/errno.h" 3 4
6416 extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6417 # 37 "/usr/include/errno.h" 2 3 4
6418 # 59 "/usr/include/errno.h" 3 4
6421 # 1 "/usr/include/sys/utsname.h" 1 3 4
6422 # 28 "/usr/include/sys/utsname.h" 3 4
6425 # 1 "/usr/include/bits/utsname.h" 1 3 4
6426 # 31 "/usr/include/sys/utsname.h" 2 3 4
6427 # 49 "/usr/include/sys/utsname.h" 3 4
6449 char __domainname[65];
6453 # 82 "/usr/include/sys/utsname.h" 3 4
6454 extern int uname (struct utsname *__name) __attribute__ ((__nothrow__));
6460 # 1 "/usr/include/sys/param.h" 1 3 4
6461 # 22 "/usr/include/sys/param.h" 3 4
6462 # 1 "/usr/include/limits.h" 1 3 4
6463 # 23 "/usr/include/sys/param.h" 2 3 4
6465 # 1 "/usr/include/linux/param.h" 1 3 4
6469 # 1 "/usr/include/asm/param.h" 1 3 4
6470 # 11 "/usr/include/asm/param.h" 3 4
6471 # 1 "/usr/include/asm-i386/param.h" 1 3 4
6472 # 12 "/usr/include/asm/param.h" 2 3 4
6473 # 5 "/usr/include/linux/param.h" 2 3 4
6474 # 25 "/usr/include/sys/param.h" 2 3 4
6485 # 1 "/usr/include/inttypes.h" 1 3 4
6486 # 35 "/usr/include/inttypes.h" 3 4
6487 typedef int __gwchar_t;
6488 # 274 "/usr/include/inttypes.h" 3 4
6490 # 288 "/usr/include/inttypes.h" 3 4
6501 extern intmax_t imaxabs (intmax_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6504 extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom)
6505 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
6508 extern intmax_t strtoimax (__const char *__restrict __nptr,
6509 char **__restrict __endptr, int __base) __attribute__ ((__nothrow__));
6512 extern uintmax_t strtoumax (__const char *__restrict __nptr,
6513 char ** __restrict __endptr, int __base) __attribute__ ((__nothrow__));
6516 extern intmax_t wcstoimax (__const __gwchar_t *__restrict __nptr,
6517 __gwchar_t **__restrict __endptr, int __base)
6518 __attribute__ ((__nothrow__));
6521 extern uintmax_t wcstoumax (__const __gwchar_t *__restrict __nptr,
6522 __gwchar_t ** __restrict __endptr, int __base)
6523 __attribute__ ((__nothrow__));
6524 # 396 "/usr/include/inttypes.h" 3 4
6525 extern __inline intmax_t
6526 __attribute__ ((__nothrow__)) strtoimax (__const char *__restrict nptr, char **__restrict endptr, int base)
6529 return __strtoll_internal (nptr, endptr, base, 0);
6531 # 414 "/usr/include/inttypes.h" 3 4
6532 extern __inline uintmax_t
6533 __attribute__ ((__nothrow__)) strtoumax (__const char *__restrict nptr, char **__restrict endptr, int base)
6536 return __strtoull_internal (nptr, endptr, base, 0);
6542 extern long long int __wcstoll_internal (__const __gwchar_t *
6544 __gwchar_t **__restrict __endptr,
6545 int __base, int __group) __attribute__ ((__nothrow__));
6548 extern __inline intmax_t
6549 __attribute__ ((__nothrow__)) wcstoimax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base)
6552 return __wcstoll_internal (nptr, endptr, base, 0);
6559 extern unsigned long long int __wcstoull_internal (__const __gwchar_t *
6562 __restrict __endptr,
6564 int __group) __attribute__ ((__nothrow__));
6567 extern __inline uintmax_t
6568 __attribute__ ((__nothrow__)) wcstoumax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base)
6571 return __wcstoull_internal (nptr, endptr, base, 0);
6596 union netperf_request_struct {
6600 int test_specific_data[62];
6605 union netperf_response_struct {
6609 int test_specific_data[62];
6615 struct ring_elt *next;
6620 struct sendfile_ring_elt {
6621 struct sendfile_ring_elt *next;
6630 struct iovec *hdtrl;
6642 extern char *program;
6645 extern char host_name[255];
6646 extern char local_host_name[255];
6647 extern char test_port[10];
6648 extern char local_test_port[10];
6649 extern int address_family;
6650 extern int local_address_family;
6651 extern int parse_address_family(char family_string[]);
6652 extern void set_defaults();
6653 extern void scan_cmd_line(int argc, char *argv[]);
6654 extern void dump_globals();
6655 extern void break_args(char *s, char *arg1, char *arg2);
6656 extern void break_args_explicit(char *s, char *arg1, char *arg2);
6657 extern void print_netserver_usage();
6684 extern int confidence_level;
6685 extern int iteration_min;
6686 extern int iteration_max;
6687 extern double interval;
6690 extern int send_width;
6691 extern int recv_width;
6718 extern void cpu_util_init(void);
6719 extern void cpu_util_terminate(void);
6720 extern int get_cpu_method();
6721 extern void get_cpu_idle(uint64_t *res);
6722 extern float calibrate_idle_rate(int iterations, int interval);
6723 extern float calc_cpu_util_internal(float elapsed);
6724 extern void cpu_start_internal(void);
6725 extern void cpu_stop_internal(void);
6736 struct timeval time1, time2;
6742 lib_remote_cpu_util;
6744 float lib_local_per_cpu_util[256];
6747 int *response_array;
6750 int netlib_control = -1;
6751 int server_sock = -1;
6754 int local_proc_affinity,remote_proc_affinity = -1;
6758 char local_data_port[10];
6759 char remote_data_port[10];
6761 char *local_data_address=((void *)0);
6762 char *remote_data_address=((void *)0);
6764 int local_data_family=0;
6765 int remote_data_family=0;
6773 union netperf_request_struct netperf_request;
6774 union netperf_response_struct netperf_response;
6782 static int measuring_cpu;
6784 netlib_get_page_size(void) {
6786 return(sysconf(_SC_PAGESIZE));
6796 return("SOCK_DGRAM");
6799 return("SOCK_STREAM");
6802 return("SOCK_UNKNOWN");
6811 inet_ptos(int protocol) {
6814 return("IPPROTO_TCP");
6817 return("IPPROTO_UDP");
6821 return("IPPROTO_SCTP");
6825 snprintf(unknown,sizeof(unknown),"IPPROTO_UNKNOWN(%d)",protocol);
6831 inet_ftos(int family)
6843 return("AF_UNSPEC");
6848 inet_nton(int af, const void *src, char *dst, int cnt)
6860 (*__errno_location ())=28;
6871 (*__errno_location ())=28;
6877 (*__errno_location ()) = 97;
6883 ntohd(double net_double)
6889 unsigned int words[2];
6890 unsigned char bytes[8];
6893 unsigned char scratch;
6899 if ((__extension__ ({ register unsigned int __v, __x = (1L); if (__builtin_constant_p (__x)) __v = ((((__x) & 0xff000000) >> 24) | (((__x) & 0x00ff0000) >> 8) | (((__x) & 0x0000ff00) << 8) | (((__x) & 0x000000ff) << 24)); else __asm__ ("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; })) == 1L) {
6903 conv_rec.whole_thing = net_double;
6908 conv_rec.words[0] = (__extension__ ({ register unsigned int __v, __x = (conv_rec.words[0]); if (__builtin_constant_p (__x)) __v = ((((__x) & 0xff000000) >> 24) | (((__x) & 0x00ff0000) >> 8) | (((__x) & 0x0000ff00) << 8) | (((__x) & 0x000000ff) << 24)); else __asm__ ("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; }));
6909 conv_rec.words[1] = (__extension__ ({ register unsigned int __v, __x = (conv_rec.words[1]); if (__builtin_constant_p (__x)) __v = ((((__x) & 0xff000000) >> 24) | (((__x) & 0x00ff0000) >> 8) | (((__x) & 0x0000ff00) << 8) | (((__x) & 0x000000ff) << 24)); else __asm__ ("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; }));
6912 for (i=0; i<= 3; i++) {
6913 scratch = conv_rec.bytes[i];
6914 conv_rec.bytes[i] = conv_rec.bytes[7-i];
6915 conv_rec.bytes[7-i] = scratch;
6918 return(conv_rec.whole_thing);
6923 htond(double host_double)
6929 unsigned int words[2];
6930 unsigned char bytes[8];
6933 unsigned char scratch;
6939 if ((__extension__ ({ register unsigned int __v, __x = (1L); if (__builtin_constant_p (__x)) __v = ((((__x) & 0xff000000) >> 24) | (((__x) & 0x00ff0000) >> 8) | (((__x) & 0x0000ff00) << 8) | (((__x) & 0x000000ff) << 24)); else __asm__ ("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; })) == 1L) {
6940 return(host_double);
6943 conv_rec.whole_thing = host_double;
6946 for (i=0; i<= 3; i++) {
6947 scratch = conv_rec.bytes[i];
6948 conv_rec.bytes[i] = conv_rec.bytes[7-i];
6949 conv_rec.bytes[7-i] = scratch;
6956 conv_rec.words[0] = (__extension__ ({ register unsigned int __v, __x = (conv_rec.words[0]); if (__builtin_constant_p (__x)) __v = ((((__x) & 0xff000000) >> 24) | (((__x) & 0x00ff0000) >> 8) | (((__x) & 0x0000ff00) << 8) | (((__x) & 0x000000ff) << 24)); else __asm__ ("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; }));
6957 conv_rec.words[1] = (__extension__ ({ register unsigned int __v, __x = (conv_rec.words[1]); if (__builtin_constant_p (__x)) __v = ((((__x) & 0xff000000) >> 24) | (((__x) & 0x00ff0000) >> 8) | (((__x) & 0x0000ff00) << 8) | (((__x) & 0x000000ff) << 24)); else __asm__ ("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; }));
6959 return(conv_rec.whole_thing);
6976 temp_cpus = sysconf(_SC_NPROCESSORS_ONLN);
6978 if (temp_cpus > 256) {
6980 "Sorry, this system has more CPUs (%d) than I can handle (%d).\n",
6984 "Please alter MAXCPUS in netlib.h and recompile.\n");
7007 fprintf(where,"netperf: caught SIGINT\n");
7012 if (--test_len_ticks == 0) {
7014 if (times_up != 0) {
7015 fprintf(where,"catcher: timer popped with times_up != 0\n");
7027 "catcher: interval timer running unexpectedly!\n");
7039 install_signal_catchers()
7045 struct sigaction action;
7048 fprintf(where,"installing catcher for all signals\n");
7051 sigemptyset(&(action.sa_mask));
7052 action.__sigaction_handler.sa_handler = catcher;
7055 action.sa_flags = 0x20000000;
7061 for (i = 1; i <= 65; i++) {
7063 if (sigaction(i,&action,((void *)0)) != 0) {
7065 "Could not install signal catcher for sig %d, errno %d\n",
7067 (*__errno_location ()));
7079 start_timer(int time)
7082 struct sigaction action;
7085 fprintf(where,"About to start a timer for %d seconds.\n",time);
7089 action.__sigaction_handler.sa_handler = catcher;
7090 sigemptyset(&(action.sa_mask));
7091 sigaddset(&(action.sa_mask),14);
7096 action.sa_flags = 0x20000000;
7101 if (sigaction(14, &action, ((void *)0)) < 0) {
7102 fprintf(where,"start_timer: error installing alarm handler ");
7103 fprintf(where,"errno %d\n",(*__errno_location ()));
7109 if (alarm(time) != 0) {
7111 "error starting alarm timer, errno %d\n",
7112 (*__errno_location ()));
7138 request_array = (int *)(&netperf_request);
7139 response_array = (int *)(&netperf_response);
7141 for (i = 0; i < 256; i++) {
7142 lib_local_per_cpu_util[i] = 0.0;
7147 "netlib_init: request_array at %p\n",
7150 "netlib_init: response_array at %p\n",
7165 convert(char *string)
7169 base = atoi(string);
7170 if (strstr(string,"K")) {
7173 if (strstr(string,"M")) {
7174 base *= (1024 * 1024);
7176 if (strstr(string,"G")) {
7177 base *= (1024 * 1024 * 1024);
7179 if (strstr(string,"k")) {
7182 if (strstr(string,"m")) {
7183 base *= (1000 * 1000);
7185 if (strstr(string,"g")) {
7186 base *= (1000 * 1000 * 1000);
7192 allocate_buffer_ring(int width, int buffer_size, int alignment, int offset)
7195 struct ring_elt *first_link = ((void *)0);
7196 struct ring_elt *temp_link = ((void *)0);
7197 struct ring_elt *prev_link;
7207 malloc_size = buffer_size + alignment + offset;
7211 if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (fill_file) && __builtin_constant_p ("") && (__s1_len = strlen (fill_file), __s2_len = strlen (""), (!((size_t)(const void *)((fill_file) + 1) - (size_t)(const void *)(fill_file) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("") + 1) - (size_t)(const void *)("") == 1) || __s2_len >= 4)) ? __builtin_strcmp (fill_file, "") : (__builtin_constant_p (fill_file) && ((size_t)(const void *)((fill_file) + 1) - (size_t)(const void *)(fill_file) == 1) && (__s1_len = strlen (fill_file), __s1_len < 4) ? (__builtin_constant_p ("") && ((size_t)(const void *)(("") + 1) - (size_t)(const void *)("") == 1) ? __builtin_strcmp (fill_file, "") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (""); register int __result = (((__const unsigned char *) (__const char *) (fill_file))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (fill_file))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (fill_file))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (fill_file))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("") && ((size_t)(const void *)(("") + 1) - (size_t)(const void *)("") == 1) && (__s2_len = strlen (""), __s2_len < 4) ? (__builtin_constant_p (fill_file) && ((size_t)(const void *)((fill_file) + 1) - (size_t)(const void *)(fill_file) == 1) ? __builtin_strcmp (fill_file, "") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (fill_file); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (""))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (""))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (""))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (""))[3]); } } __result; }))) : __builtin_strcmp (fill_file, "")))); }) == 0) {
7213 fill_source = ((void *)0);
7217 fill_source = (FILE *)fopen(fill_file,"r");
7218 if (fill_source == (FILE *)((void *)0)) {
7219 perror("Could not open requested fill file");
7224 ((void) ((width >= 1) ? 0 : (__assert_fail ("width >= 1", "netlib.c", 1131, __PRETTY_FUNCTION__), 0)));
7226 prev_link = ((void *)0);
7227 for (i = 1; i <= width; i++) {
7229 temp_link = (struct ring_elt *)malloc(sizeof(struct ring_elt));
7230 if (temp_link == ((void *)0)) {
7231 printf("malloc(%u) failed!\n", sizeof(struct ring_elt));
7236 first_link = temp_link;
7238 temp_link->buffer_base = (char *)malloc(malloc_size);
7239 if (temp_link == ((void *)0)) {
7240 printf("malloc(%d) failed!\n", malloc_size);
7245 temp_link->buffer_ptr = (char *)(( (long)(temp_link->buffer_base) +
7246 (long)alignment - 1) &
7247 ~((long)alignment - 1));
7253 temp_link->buffer_ptr += offset;
7256 bytes_left = buffer_size;
7257 while (bytes_left) {
7258 if (((bytes_read = (int)fread(temp_link->buffer_ptr,
7261 fill_source)) == 0) &&
7262 (feof(fill_source))){
7263 rewind(fill_source);
7265 bytes_left -= bytes_read;
7268 temp_link->next = prev_link;
7269 prev_link = temp_link;
7272 first_link->next = temp_link;
7278 struct sendfile_ring_elt *
7279 alloc_sendfile_buf_ring(int width,
7286 struct sendfile_ring_elt *first_link = ((void *)0);
7287 struct sendfile_ring_elt *temp_link = ((void *)0);
7288 struct sendfile_ring_elt *prev_link;
7292 struct stat statbuf;
7297 if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (fill_file) && __builtin_constant_p ("") && (__s1_len = strlen (fill_file), __s2_len = strlen (""), (!((size_t)(const void *)((fill_file) + 1) - (size_t)(const void *)(fill_file) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("") + 1) - (size_t)(const void *)("") == 1) || __s2_len >= 4)) ? __builtin_strcmp (fill_file, "") : (__builtin_constant_p (fill_file) && ((size_t)(const void *)((fill_file) + 1) - (size_t)(const void *)(fill_file) == 1) && (__s1_len = strlen (fill_file), __s1_len < 4) ? (__builtin_constant_p ("") && ((size_t)(const void *)(("") + 1) - (size_t)(const void *)("") == 1) ? __builtin_strcmp (fill_file, "") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (""); register int __result = (((__const unsigned char *) (__const char *) (fill_file))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (fill_file))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (fill_file))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (fill_file))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("") && ((size_t)(const void *)(("") + 1) - (size_t)(const void *)("") == 1) && (__s2_len = strlen (""), __s2_len < 4) ? (__builtin_constant_p (fill_file) && ((size_t)(const void *)((fill_file) + 1) - (size_t)(const void *)(fill_file) == 1) ? __builtin_strcmp (fill_file, "") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (fill_file); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (""))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (""))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (""))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (""))[3]); } } __result; }))) : __builtin_strcmp (fill_file, "")))); }) == 0) {
7298 perror("alloc_sendfile_buf_ring: fill_file must be specified for sendfile option");
7302 fildes = open(fill_file , 00);
7304 perror("alloc_sendfile_buf_ring: Could not open requested file");
7313 if (stat(fill_file,&statbuf) != 0) {
7314 perror("alloc_sendfile_buf_ring: could not stat file");
7317 if (statbuf.st_size < (width * buffer_size)) {
7319 fprintf(stderr,"alloc_sendfile_buf_ring: specified file too small.\n");
7320 fprintf(stderr,"file must be larger than send_width * send_size\n");
7325 prev_link = ((void *)0);
7326 for (i = 1; i <= width; i++) {
7331 temp_link = (struct sendfile_ring_elt *)
7332 malloc(sizeof(struct sendfile_ring_elt));
7333 if (temp_link == ((void *)0)) {
7334 printf("malloc(%u) failed!\n", sizeof(struct sendfile_ring_elt));
7341 first_link = temp_link;
7349 temp_link->fildes = fildes;
7350 temp_link->offset = offset;
7351 offset += buffer_size;
7352 temp_link->length = buffer_size;
7353 temp_link->hdtrl = ((void *)0);
7354 temp_link->flags = 0;
7358 temp_link->next = prev_link;
7359 prev_link = temp_link;
7362 first_link->next = temp_link;
7371 fprintf(where,"request contents:\n");
7372 for (counter = 0; counter < ((sizeof(netperf_request)/4)-3); counter += 4) {
7373 fprintf(where,"%d:\t%8x %8x %8x %8x \t|%4.4s| |%4.4s| |%4.4s| |%4.4s|\n",
7375 request_array[counter],
7376 request_array[counter+1],
7377 request_array[counter+2],
7378 request_array[counter+3],
7379 (char *)&request_array[counter],
7380 (char *)&request_array[counter+1],
7381 (char *)&request_array[counter+2],
7382 (char *)&request_array[counter+3]);
7392 fprintf(where,"response contents\n");
7393 for (counter = 0; counter < ((sizeof(netperf_response)/4)-3); counter += 4) {
7394 fprintf(where,"%d:\t%8x %8x %8x %8x \t>%4.4s< >%4.4s< >%4.4s< >%4.4s<\n",
7396 response_array[counter],
7397 response_array[counter+1],
7398 response_array[counter+2],
7399 response_array[counter+3],
7400 (char *)&response_array[counter],
7401 (char *)&response_array[counter+1],
7402 (char *)&response_array[counter+2],
7403 (char *)&response_array[counter+3]);
7409 format_number(double number)
7411 static char fmtbuf[64];
7415 snprintf(fmtbuf, sizeof(fmtbuf), "%-7.2f" , number / 1024.0);
7418 snprintf(fmtbuf, sizeof(fmtbuf), "%-7.2f", number / 1024.0 / 1024.0);
7421 snprintf(fmtbuf, sizeof(fmtbuf), "%-7.2f", number / 1024.0 / 1024.0 / 1024.0);
7424 snprintf(fmtbuf, sizeof(fmtbuf), "%-7.2f", number * 8 / 1000.0);
7427 snprintf(fmtbuf, sizeof(fmtbuf), "%-7.2f", number * 8 / 1000.0 / 1000.0);
7430 snprintf(fmtbuf, sizeof(fmtbuf), "%-7.2f", number * 8 / 1000.0 / 1000.0 / 1000.0);
7433 snprintf(fmtbuf, sizeof(fmtbuf), "%-7.2f", number / 1024.0);
7440 format_cpu_method(int method)
7495 static char unitbuf[64];
7499 strcpy(unitbuf, "KBytes");
7502 strcpy(unitbuf, "MBytes");
7505 strcpy(unitbuf, "GBytes");
7508 strcpy(unitbuf, "10^3bits");
7511 strcpy(unitbuf, "10^6bits");
7514 strcpy(unitbuf, "10^9bits");
7518 strcpy(unitbuf, "KBytes");
7528 char *buf = (char *)&netperf_response;
7529 int buflen = sizeof(netperf_response);
7533 struct timeval timeout;
7537 "shutdown_control: shutdown of control connection requested.\n");
7543 if (shutdown(netlib_control,1) == -1) {
7544 fprintf((where), "%s errno %d\n", ("shutdown_control: error in shutdown"), (*__errno_location ()));
7550 do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; stosl" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&readfds)->__fds_bits)[0]) : "memory"); } while (0);
7551 __asm__ __volatile__ ("btsl %1,%0" : "=m" (((&readfds)->__fds_bits)[((netlib_control) / (8 * sizeof (__fd_mask)))]) : "r" (((int) (netlib_control)) % (8 * sizeof (__fd_mask))) : "cc","memory");
7552 timeout.tv_sec = 60;
7553 timeout.tv_usec = 0;
7562 fprintf((where), "%s errno %d\n", ("shutdown_control: no response received"), (*__errno_location ()));
7569 recv(netlib_control, buf, buflen,0);
7574 bind_to_specific_processor(int processor_affinity)
7577 printf("bind_to_specific_processor: enter\n");
7581 "Processor affinity not available for this platform!\n");
7596 fprintf(where,"entered send_request...contents before htonl:\n");
7603 netperf_request.content.dummy = remote_proc_affinity;
7605 for (counter=0;counter < sizeof(netperf_request)/4; counter++) {
7606 request_array[counter] = (__extension__ ({ register unsigned int __v, __x = (request_array[counter]); if (__builtin_constant_p (__x)) __v = ((((__x) & 0xff000000) >> 24) | (((__x) & 0x00ff0000) >> 8) | (((__x) & 0x0000ff00) << 8) | (((__x) & 0x000000ff) << 24)); else __asm__ ("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; }));
7610 fprintf(where,"send_request...contents after htonl:\n");
7614 "\nsend_request: about to send %u bytes from %p\n",
7615 sizeof(netperf_request),
7620 if (send(netlib_control,
7621 (char *)&netperf_request,
7622 sizeof(netperf_request),
7623 0) != sizeof(netperf_request)) {
7624 perror("send_request: send call failure");
7641 "send_response: contents of %u ints before htonl\n",
7642 sizeof(netperf_response)/4);
7652 for (counter=0;counter < sizeof(netperf_response)/4; counter++) {
7653 response_array[counter] = (__extension__ ({ register unsigned int __v, __x = (response_array[counter]); if (__builtin_constant_p (__x)) __v = ((((__x) & 0xff000000) >> 24) | (((__x) & 0x00ff0000) >> 8) | (((__x) & 0x0000ff00) << 8) | (((__x) & 0x000000ff) << 24)); else __asm__ ("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; }));
7658 "send_response: contents after htonl\n");
7661 "about to send %u bytes from %p\n",
7662 sizeof(netperf_response),
7668 if ((bytes_sent = send(server_sock,
7669 (char *)&netperf_response,
7670 sizeof(netperf_response),
7671 0)) != sizeof(netperf_response)) {
7672 perror("send_response: send call failure");
7673 fprintf(where, "BytesSent: %d\n", bytes_sent);
7682 int tot_bytes_recvd,
7685 char *buf = (char *)&netperf_request;
7686 int buflen = sizeof(netperf_request);
7689 tot_bytes_recvd = 0;
7691 bytes_left = buflen;
7692 while ((tot_bytes_recvd != buflen) &&
7693 ((bytes_recvd = recv(server_sock, buf, bytes_left,0)) > 0 )) {
7694 tot_bytes_recvd += bytes_recvd;
7696 bytes_left -= bytes_recvd;
7701 for (counter = 0; counter < sizeof(netperf_request)/sizeof(int); counter++) {
7702 request_array[counter] = (__extension__ ({ register unsigned int __v, __x = (request_array[counter]); if (__builtin_constant_p (__x)) __v = ((((__x) & 0xff000000) >> 24) | (((__x) & 0x00ff0000) >> 8) | (((__x) & 0x0000ff00) << 8) | (((__x) & 0x000000ff) << 24)); else __asm__ ("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; }));
7707 "recv_request: received %d bytes of request.\n",
7712 if (bytes_recvd == -1) {
7713 fprintf((where), "%s errno %d\n", ("recv_request: error on recv"), (*__errno_location ()));
7719 if (bytes_recvd == 0) {
7725 "recv_request: remote requested shutdown of control\n");
7729 if (netlib_control != -1) {
7735 if (tot_bytes_recvd < buflen) {
7740 "recv_request: partial request received of %d bytes\n",
7753 local_proc_affinity = netperf_request.content.dummy;
7755 if (local_proc_affinity != -1) {
7756 bind_to_specific_processor(local_proc_affinity);
7764 int tot_bytes_recvd,
7767 char *buf = (char *)&netperf_response;
7768 int buflen = sizeof(netperf_response);
7773 struct timeval timeout;
7775 tot_bytes_recvd = 0;
7776 bytes_left = buflen;
7781 for (counter = 0; counter < sizeof(netperf_response)/sizeof(int); counter++) {
7782 response_array[counter] = 0;
7789 do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; stosl" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&readfds)->__fds_bits)[0]) : "memory"); } while (0);
7790 __asm__ __volatile__ ("btsl %1,%0" : "=m" (((&readfds)->__fds_bits)[((netlib_control) / (8 * sizeof (__fd_mask)))]) : "r" (((int) (netlib_control)) % (8 * sizeof (__fd_mask))) : "cc","memory");
7791 timeout.tv_sec = 120;
7796 timeout.tv_usec = 0;
7801 if ((counter = select(1024,
7807 "netperf: receive_response: no response received. errno %d counter %d\n",
7808 (*__errno_location ()),
7813 while ((tot_bytes_recvd != buflen) &&
7814 ((bytes_recvd = recv(netlib_control, buf, bytes_left,0)) > 0 )) {
7815 tot_bytes_recvd += bytes_recvd;
7817 bytes_left -= bytes_recvd;
7821 fprintf(where,"recv_response: received a %d byte response\n",
7828 for (counter = 0; counter < sizeof(netperf_response)/sizeof(int); counter++) {
7829 response_array[counter] = (__extension__ ({ register unsigned int __v, __x = (response_array[counter]); if (__builtin_constant_p (__x)) __v = ((((__x) & 0xff000000) >> 24) | (((__x) & 0x00ff0000) >> 8) | (((__x) & 0x0000ff00) << 8) | (((__x) & 0x000000ff) << 24)); else __asm__ ("rorw $8, %w0;" "rorl $16, %0;" "rorw $8, %w0" : "=r" (__v) : "0" (__x) : "cc"); __v; }));
7832 if (bytes_recvd == -1) {
7833 perror("recv_response");
7836 if (tot_bytes_recvd < buflen) {
7838 "recv_response: partial response received: %d bytes\n",
7852 fprintf(where,"hello world\n");
7853 fprintf(where,"debug: %d\n",debug);
7858 set_sock_buffer (int sd, enum sock_buffer which, int requested_size, int *effective_sizep)
7861 int optname = (which == SEND_BUFFER) ? 7 : 8;
7862 socklen_t sock_opt_len;
7864 if (requested_size > 0) {
7865 if (setsockopt(sd, 1, optname,
7866 (char *)&requested_size, sizeof(int)) < 0) {
7867 fprintf(where, "netperf: set_sock_buffer: %s option: errno %d\n",
7868 (which == SEND_BUFFER) ? "SO_SNDBUF" : "SO_RCVBUF",
7869 (*__errno_location ()));
7874 fprintf(where, "netperf: set_sock_buffer: %s of %d requested.\n",
7875 (which == SEND_BUFFER) ? "SO_SNDBUF" : "SO_RCVBUF",
7885 sock_opt_len = sizeof(socklen_t);
7886 if (getsockopt(sd, 1, optname, (char *)effective_sizep,
7887 &sock_opt_len) < 0) {
7888 fprintf(where, "netperf: set_sock_buffer: getsockopt %s: errno %d\n",
7889 (which == SEND_BUFFER) ? "SO_SNDBUF" : "SO_RCVBUF", (*__errno_location ()));
7891 *effective_sizep = -1;
7895 fprintf(where, "netperf: set_sock_buffer: "
7896 "%s socket size determined to be %d\n",
7897 (which == SEND_BUFFER) ? "send" : "receive", *effective_sizep);
7906 dump_addrinfo(FILE *dumploc, struct addrinfo *info,
7907 char *host, char *port, int family)
7909 struct sockaddr *ai_addr;
7910 struct addrinfo *temp;
7913 fprintf(dumploc, "getaddrinfo returned the following for host '%s' ", host);
7914 fprintf(dumploc, "port '%s' ", port);
7915 fprintf(dumploc, "family %s\n", inet_ftos(family));
7922 if (temp->ai_canonname) {
7924 "\tcannonical name: '%s'\n",temp->ai_canonname);
7928 "\tcannonical name: '%s'\n","(nil)");
7931 "\tflags: %x family: %s: socktype: %s protocol %s addrlen %d\n",
7933 inet_ftos(temp->ai_family),
7934 inet_ttos(temp->ai_socktype),
7935 inet_ptos(temp->ai_protocol),
7937 ai_addr = temp->ai_addr;
7938 if (ai_addr != ((void *)0)) {
7940 "\tsa_family: %s sadata: %d %d %d %d %d %d\n",
7941 inet_ftos(ai_addr->sa_family),
7942 (u_char)ai_addr->sa_data[0],
7943 (u_char)ai_addr->sa_data[1],
7944 (u_char)ai_addr->sa_data[2],
7945 (u_char)ai_addr->sa_data[3],
7946 (u_char)ai_addr->sa_data[4],
7947 (u_char)ai_addr->sa_data[5]);
7949 temp = temp->ai_next;
7955 establish_control_internal(char *hostname,
7967 struct addrinfo hints;
7968 struct addrinfo *local_res;
7969 struct addrinfo *remote_res;
7970 struct addrinfo *local_res_temp;
7971 struct addrinfo *remote_res_temp;
7975 "establish_control called with host '%s' port '%s' remfam %s\n",
7980 "\t\tlocal '%s' port '%s' locfam %s\n",
7988 memset(&hints, 0, sizeof(hints));
7989 hints.ai_family = remfam;
7990 hints.ai_socktype = SOCK_STREAM;
7991 hints.ai_protocol = IPPROTO_TCP;
7992 hints.ai_flags = 0|0x0002;
7995 error = getaddrinfo((char *)hostname,
8002 fprintf(where,"Sleeping on getaddrinfo EAI_AGAIN\n");
8007 } while ((error == -3) && (count <= 5));
8010 printf("establish control: could not resolve remote '%s' port '%s' af %s",
8014 printf("\n\tgetaddrinfo returned %d %s\n",
8016 gai_strerror(error));
8021 dump_addrinfo(where, remote_res, hostname, port, remfam);
8025 memset(&hints, 0, sizeof(hints));
8026 hints.ai_family = locfam;
8027 hints.ai_socktype = SOCK_STREAM;
8028 hints.ai_protocol = IPPROTO_TCP;
8029 hints.ai_flags = 0x0001|0x0002;
8033 error = getaddrinfo((char *)localhost,
8040 "Sleeping on getaddrinfo(%s,%s) EAI_AGAIN count %d \n",
8048 } while ((error == -3) && (count <= 5));
8051 printf("establish control: could not resolve local '%s' port '%s' af %s",
8055 printf("\n\tgetaddrinfo returned %d %s\n",
8057 gai_strerror(error));
8062 dump_addrinfo(where, local_res, localhost, localport, locfam);
8066 local_res_temp = local_res;
8067 remote_res_temp = remote_res;
8073 while (remote_res_temp != ((void *)0)) {
8079 control_sock = socket(local_res_temp->ai_family,
8082 if (control_sock < 0) {
8088 perror("establish_control: unable to allocate control socket");
8096 if (bind(control_sock,
8097 local_res_temp->ai_addr,
8098 local_res_temp->ai_addrlen) == 0) {
8101 "bound control socket to %s and %s\n",
8106 if (connect(control_sock,
8107 remote_res_temp->ai_addr,
8108 remote_res_temp->ai_addrlen) == 0) {
8112 "successful connection to remote netserver at %s and %s\n",
8123 "establish_control: connect failed, errno %d %s\n",
8124 (*__errno_location ()),
8125 strerror((*__errno_location ())));
8126 fprintf(where, " trying next address combination\n");
8135 "establish_control: bind failed, errno %d %s\n",
8136 (*__errno_location ()),
8137 strerror((*__errno_location ())));
8138 fprintf(where, " trying next address combination\n");
8143 if ((local_res_temp = local_res_temp->ai_next) == ((void *)0)) {
8146 local_res_temp = local_res;
8149 remote_res_temp = remote_res_temp->ai_next;
8155 close(control_sock);
8159 freeaddrinfo(local_res);
8160 freeaddrinfo(remote_res);
8163 if (not_connected) {
8164 fprintf(where, "establish control: are you sure there is a netserver listening on %s at port %s?\n",hostname,port);
8170 return(control_sock);
8174 establish_control(char *hostname,
8183 netlib_control = establish_control_internal(hostname,
8189 if (netlib_control < 0) {
8191 "establish_control could not establish the control connection from %s port %s address family %s to %s port %s address family %s\n",
8192 localhost,localport,inet_ftos(locfam),
8193 hostname,port,inet_ftos(remfam));
8202 static char id_string[80];
8207 struct utsname system_name;
8215 if (uname(&system_name) <0) {
8216 perror("identify_local: uname");
8221 snprintf(id_string, sizeof(id_string),
8223 "%-15s%-15s%-15s%-15s%-15s",
8224 system_name.sysname,
8225 system_name.nodename,
8226 system_name.release,
8227 system_name.version,
8240 local_id = get_id();
8242 fprintf(where,"Local Information \nSysname Nodename Release Version Machine\n");
8245 fprintf(where,"%s\n",
8257 netperf_request.content.request_type = 4;
8265 if (netperf_response.content.serv_errno) {
8266 (*__errno_location ()) = (netperf_response.content.serv_errno);
8267 perror("identify_remote: on remote");
8271 fprintf(where,"Remote Information \nSysname Nodename Release Version Machine\n");
8279 cpu_start(int measure_cpu)
8282 gettimeofday(&time1,
8288 cpu_method = get_cpu_method();
8289 cpu_start_internal();
8295 cpu_stop(int measure_cpu, float *elapsed)
8302 cpu_stop_internal();
8303 cpu_util_terminate();
8306 gettimeofday(&time2,
8309 if (time2.tv_usec < time1.tv_usec) {
8310 time2.tv_usec += 1000000;
8314 sec = time2.tv_sec - time1.tv_sec;
8315 usec = time2.tv_usec - time1.tv_usec;
8316 lib_elapsed = (float)sec + ((float)usec/(float)1000000.0);
8318 *elapsed = lib_elapsed;
8323 calc_thruput_interval(double units_received,double elapsed)
8334 divisor = 1024.0 * 1024.0;
8337 divisor = 1024.0 * 1024.0 * 1024.0;
8340 divisor = 1000.0 / 8.0;
8343 divisor = 1000.0 * 1000.0 / 8.0;
8346 divisor = 1000.0 * 1000.0 * 1000.0 / 8.0;
8353 return (units_received / divisor / elapsed);
8358 calc_thruput(double units_received)
8361 return(calc_thruput_interval(units_received,lib_elapsed));
8369 calc_cpu_util(float elapsed_time)
8371 return(calc_cpu_util_internal(elapsed_time));
8374 float calc_service_demand(double units_sent,
8376 float cpu_utilization,
8381 double unit_divisor = (float)1024.0;
8382 double service_demand;
8386 fprintf(where,"calc_service_demand called: units_sent = %f\n",
8388 fprintf(where," elapsed_time = %f\n",
8390 fprintf(where," cpu_util = %f\n",
8392 fprintf(where," num cpu = %d\n",
8397 if (num_cpus == 0) num_cpus = lib_num_loc_cpus;
8399 if (elapsed_time == 0.0) {
8400 elapsed_time = lib_elapsed;
8402 if (cpu_utilization == 0.0) {
8403 cpu_utilization = lib_local_cpu_util;
8406 thruput = (units_sent /
8407 (double) unit_divisor /
8408 (double) elapsed_time);
8410 service_demand = (cpu_utilization*10000.0/thruput) *
8414 fprintf(where,"calc_service_demand using: units_sent = %f\n",
8416 fprintf(where," elapsed_time = %f\n",
8418 fprintf(where," cpu_util = %f\n",
8420 fprintf(where," num cpu = %d\n",
8422 fprintf(where,"calc_service_demand got: thruput = %f\n",
8424 fprintf(where," servdem = %f\n",
8428 return (float)service_demand;
8434 calibrate_local_cpu(float local_cpu_rate)
8437 lib_num_loc_cpus = get_num_cpus();
8445 if (local_cpu_rate > 0) {
8451 lib_local_maxrate = local_cpu_rate;
8457 lib_local_maxrate = (float)0.0;
8459 lib_local_maxrate = calibrate_idle_rate(4,10);
8462 return lib_local_maxrate;
8467 calibrate_remote_cpu()
8471 netperf_request.content.request_type = 5;
8478 if (netperf_response.content.serv_errno) {
8486 memcpy(((char *)&remrate),((char *)netperf_response.content.test_specific_data),(sizeof(remrate)));
8500 msec_sleep( int msecs )
8504 struct timeval timeout;
8506 timeout.tv_sec = msecs / 1000;
8507 timeout.tv_usec = (msecs - (msecs/1000) *1000) * 1000;
8508 if ((rval = select(0,
8513 if ( ((*__errno_location ()) == 4) ) {
8516 perror("msec_sleep: select");
8522 int confidence_iterations;
8525 result_confid=-10.0,
8526 loc_cpu_confid=-10.0,
8527 rem_cpu_confid=-10.0,
8529 measured_sum_result=0.0,
8530 measured_square_sum_result=0.0,
8531 measured_mean_result=0.0,
8532 measured_var_result=0.0,
8534 measured_sum_local_cpu=0.0,
8535 measured_square_sum_local_cpu=0.0,
8536 measured_mean_local_cpu=0.0,
8537 measured_var_local_cpu=0.0,
8539 measured_sum_remote_cpu=0.0,
8540 measured_square_sum_remote_cpu=0.0,
8541 measured_mean_remote_cpu=0.0,
8542 measured_var_remote_cpu=0.0,
8544 measured_sum_local_service_demand=0.0,
8545 measured_square_sum_local_service_demand=0.0,
8546 measured_mean_local_service_demand=0.0,
8547 measured_var_local_service_demand=0.0,
8549 measured_sum_remote_service_demand=0.0,
8550 measured_square_sum_remote_service_demand=0.0,
8551 measured_mean_remote_service_demand=0.0,
8552 measured_var_remote_service_demand=0.0,
8554 measured_sum_local_time=0.0,
8555 measured_square_sum_local_time=0.0,
8556 measured_mean_local_time=0.0,
8557 measured_var_local_time=0.0,
8559 measured_mean_remote_time=0.0,
8562 measured_local_results,
8574 measured_sum_result=0.0;
8575 measured_square_sum_result=0.0;
8576 measured_mean_result=0.0;
8577 measured_var_result=0.0;
8579 measured_sum_local_cpu=0.0;
8580 measured_square_sum_local_cpu=0.0;
8581 measured_mean_local_cpu=0.0;
8582 measured_var_local_cpu=0.0;
8584 measured_sum_remote_cpu=0.0;
8585 measured_square_sum_remote_cpu=0.0;
8586 measured_mean_remote_cpu=0.0;
8587 measured_var_remote_cpu=0.0;
8589 measured_sum_local_service_demand=0.0;
8590 measured_square_sum_local_service_demand=0.0;
8591 measured_mean_local_service_demand=0.0;
8592 measured_var_local_service_demand=0.0;
8594 measured_sum_remote_service_demand=0.0;
8595 measured_square_sum_remote_service_demand=0.0;
8596 measured_mean_remote_service_demand=0.0;
8597 measured_var_remote_service_demand=0.0;
8599 measured_sum_local_time=0.0;
8600 measured_square_sum_local_time=0.0;
8601 measured_mean_local_time=0.0;
8602 measured_var_local_time=0.0;
8604 measured_mean_remote_time=0.0;
8606 measured_fails = 0.0;
8607 measured_local_results=0.0,
8615 confid(int level, int freedom)
8617 double t99[35],t95[35];
8682 return(t95[freedom]);
8683 } else if(level==99){
8684 return(t99[freedom]);
8691 calculate_confidence(int confidence_iterations,
8702 "calculate_confidence: itr %d; time %f; res %f\n",
8703 confidence_iterations,
8707 " lcpu %f; rcpu %f\n",
8711 " lsdm %f; rsdm %f\n",
8718 measured_sum_local_time +=
8720 measured_square_sum_local_time +=
8722 measured_mean_local_time =
8723 (double) measured_sum_local_time/confidence_iterations;
8724 measured_var_local_time =
8725 (double) measured_square_sum_local_time/confidence_iterations
8726 -measured_mean_local_time*measured_mean_local_time;
8729 measured_sum_result +=
8731 measured_square_sum_result +=
8732 (double) result*result;
8733 measured_mean_result =
8734 (double) measured_sum_result/confidence_iterations;
8735 measured_var_result =
8736 (double) measured_square_sum_result/confidence_iterations
8737 -measured_mean_result*measured_mean_result;
8740 measured_sum_local_cpu +=
8742 measured_square_sum_local_cpu +=
8743 (double) loc_cpu*loc_cpu;
8744 measured_mean_local_cpu =
8745 (double) measured_sum_local_cpu/confidence_iterations;
8746 measured_var_local_cpu =
8747 (double) measured_square_sum_local_cpu/confidence_iterations
8748 -measured_mean_local_cpu*measured_mean_local_cpu;
8751 measured_sum_remote_cpu +=
8753 measured_square_sum_remote_cpu+=
8754 (double) rem_cpu*rem_cpu;
8755 measured_mean_remote_cpu =
8756 (double) measured_sum_remote_cpu/confidence_iterations;
8757 measured_var_remote_cpu =
8758 (double) measured_square_sum_remote_cpu/confidence_iterations
8759 -measured_mean_remote_cpu*measured_mean_remote_cpu;
8762 measured_sum_local_service_demand +=
8764 measured_square_sum_local_service_demand+=
8765 (double) loc_sd*loc_sd;
8766 measured_mean_local_service_demand =
8767 (double) measured_sum_local_service_demand/confidence_iterations;
8768 measured_var_local_service_demand =
8769 (double) measured_square_sum_local_service_demand/confidence_iterations
8770 -measured_mean_local_service_demand*measured_mean_local_service_demand;
8773 measured_sum_remote_service_demand +=
8775 measured_square_sum_remote_service_demand+=
8776 (double) rem_sd*rem_sd;
8777 measured_mean_remote_service_demand =
8778 (double) measured_sum_remote_service_demand/confidence_iterations;
8779 measured_var_remote_service_demand =
8780 (double) measured_square_sum_remote_service_demand/confidence_iterations
8781 -measured_mean_remote_service_demand*measured_mean_remote_service_demand;
8783 if(confidence_iterations>1){
8784 result_confid= (double) interval -
8785 2.0 * confid(confidence_level,confidence_iterations-1)*
8786 sqrt(measured_var_result/(confidence_iterations-1.0)) /
8787 measured_mean_result;
8789 loc_cpu_confid= (double) interval -
8790 2.0 * confid(confidence_level,confidence_iterations-1)*
8791 sqrt(measured_var_local_cpu/(confidence_iterations-1.0)) /
8792 measured_mean_local_cpu;
8794 rem_cpu_confid= (double) interval -
8795 2.0 * confid(confidence_level,confidence_iterations-1)*
8796 sqrt(measured_var_remote_cpu/(confidence_iterations-1.0)) /
8797 measured_mean_remote_cpu;
8800 printf("Conf_itvl %2d: results:%4.1f%% loc_cpu:%4.1f%% rem_cpu:%4.1f%%\n",
8801 confidence_iterations,
8802 (interval-result_confid)*100.0,
8803 (interval-loc_cpu_confid)*100.0,
8804 (interval-rem_cpu_confid)*100.0);
8807 confidence = ((((result_confid < loc_cpu_confid) ? result_confid : loc_cpu_confid) < rem_cpu_confid) ? ((result_confid < loc_cpu_confid) ? result_confid : loc_cpu_confid) : rem_cpu_confid);
8815 retrieve_confident_values(float *elapsed_time,
8817 float *local_cpu_utilization,
8818 float *remote_cpu_utilization,
8819 float *local_service_demand,
8820 float *remote_service_demand)
8823 *elapsed_time = (float)measured_mean_local_time;
8824 *thruput = measured_mean_result;
8825 *local_cpu_utilization = (float)measured_mean_local_cpu;
8826 *remote_cpu_utilization = (float)measured_mean_remote_cpu;
8827 *local_service_demand = (float)measured_mean_local_service_demand;
8828 *remote_service_demand = (float)measured_mean_remote_service_demand;
8835 display_confidence()
8841 "!!! Desired confidence was not achieved within ");
8843 "the specified iterations.\n");
8845 "!!! This implies that there was variability in ");
8847 "the test environment that\n");
8849 "!!! must be investigated before going further.\n");
8851 "!!! Confidence intervals: Throughput : %4.1f%%\n",
8852 100.0 * (interval - result_confid));
8854 "!!! Local CPU util : %4.1f%%\n",
8855 100.0 * (interval - loc_cpu_confid));
8857 "!!! Remote CPU util : %4.1f%%\n\n",
8858 100.0 * (interval - rem_cpu_confid));