initial import
[ICEs.git] / bfin-strcmp / test.i.0
1 # 1 "test.c"
2 # 1 "/usr/local/src/blackfin/svn/uclinux-dist/trunk/user/blkfin-test/string_test//"
3 # 1 "<built-in>"
4 # 1 "<command line>"
5 # 1 "test.c"
6 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 1 3 4
7 # 28 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
8 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/features.h" 1 3 4
9 # 35 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/features.h" 3 4
10 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_config.h" 1 3 4
11 # 36 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/features.h" 2 3 4
12
13 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_arch_features.h" 1 3 4
14 # 38 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/features.h" 2 3 4
15 # 356 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/features.h" 3 4
16 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/sys/cdefs.h" 1 3 4
17 # 357 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/features.h" 2 3 4
18 # 29 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 2 3 4
19
20
21
22
23
24 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/lib/gcc/bfin-uclinux/4.1.2/include/stddef.h" 1 3 4
25 # 214 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/lib/gcc/bfin-uclinux/4.1.2/include/stddef.h" 3 4
26 typedef long unsigned int size_t;
27 # 35 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 2 3 4
28
29 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/types.h" 1 3 4
30 # 28 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/types.h" 3 4
31 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/wordsize.h" 1 3 4
32 # 29 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/types.h" 2 3 4
33
34
35 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/lib/gcc/bfin-uclinux/4.1.2/include/stddef.h" 1 3 4
36 # 32 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/types.h" 2 3 4
37 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/kernel_types.h" 1 3 4
38 # 10 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/kernel_types.h" 3 4
39 typedef unsigned short __kernel_dev_t;
40 typedef unsigned long __kernel_ino_t;
41 typedef unsigned short __kernel_mode_t;
42 typedef unsigned short __kernel_nlink_t;
43 typedef long __kernel_off_t;
44 typedef int __kernel_pid_t;
45 typedef unsigned int __kernel_ipc_pid_t;
46 typedef unsigned int __kernel_uid_t;
47 typedef unsigned int __kernel_gid_t;
48 typedef unsigned int __kernel_size_t;
49 typedef int __kernel_ssize_t;
50 typedef int __kernel_ptrdiff_t;
51 typedef long __kernel_time_t;
52 typedef long __kernel_suseconds_t;
53 typedef long __kernel_clock_t;
54 typedef int __kernel_daddr_t;
55 typedef char * __kernel_caddr_t;
56 typedef unsigned short __kernel_uid16_t;
57 typedef unsigned short __kernel_gid16_t;
58 typedef unsigned int __kernel_uid32_t;
59 typedef unsigned int __kernel_gid32_t;
60 typedef unsigned short __kernel_old_uid_t;
61 typedef unsigned short __kernel_old_gid_t;
62 typedef long long __kernel_loff_t;
63 typedef __kernel_dev_t __kernel_old_dev_t;
64
65 typedef struct {
66
67
68
69 int __val[2];
70
71 } __kernel_fsid_t;
72 # 33 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/types.h" 2 3 4
73
74
75 typedef unsigned char __u_char;
76 typedef unsigned short int __u_short;
77 typedef unsigned int __u_int;
78 typedef unsigned long int __u_long;
79
80
81 typedef signed char __int8_t;
82 typedef unsigned char __uint8_t;
83 typedef signed short int __int16_t;
84 typedef unsigned short int __uint16_t;
85 typedef signed int __int32_t;
86 typedef unsigned int __uint32_t;
87
88
89
90
91 __extension__ typedef signed long long int __int64_t;
92 __extension__ typedef unsigned long long int __uint64_t;
93
94
95
96
97
98
99
100 __extension__ typedef long long int __quad_t;
101 __extension__ typedef unsigned long long int __u_quad_t;
102 # 135 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/types.h" 3 4
103 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/typesizes.h" 1 3 4
104 # 136 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/types.h" 2 3 4
105
106
107 __extension__ typedef __u_quad_t __dev_t;
108 __extension__ typedef unsigned int __uid_t;
109 __extension__ typedef unsigned int __gid_t;
110 __extension__ typedef unsigned long int __ino_t;
111 __extension__ typedef __u_quad_t __ino64_t;
112 __extension__ typedef unsigned int __mode_t;
113 __extension__ typedef unsigned int __nlink_t;
114 __extension__ typedef long int __off_t;
115 __extension__ typedef __quad_t __off64_t;
116 __extension__ typedef int __pid_t;
117 __extension__ typedef struct { int __val[2]; } __fsid_t;
118 __extension__ typedef long int __clock_t;
119 __extension__ typedef unsigned long int __rlim_t;
120 __extension__ typedef __u_quad_t __rlim64_t;
121 __extension__ typedef unsigned int __id_t;
122 __extension__ typedef long int __time_t;
123 __extension__ typedef unsigned int __useconds_t;
124 __extension__ typedef long int __suseconds_t;
125
126 __extension__ typedef int __daddr_t;
127 __extension__ typedef long int __swblk_t;
128 __extension__ typedef int __key_t;
129
130
131 __extension__ typedef int __clockid_t;
132
133
134 __extension__ typedef void * __timer_t;
135
136
137 __extension__ typedef long int __blksize_t;
138
139
140
141
142 __extension__ typedef long int __blkcnt_t;
143 __extension__ typedef __quad_t __blkcnt64_t;
144
145
146 __extension__ typedef unsigned long int __fsblkcnt_t;
147 __extension__ typedef __u_quad_t __fsblkcnt64_t;
148
149
150 __extension__ typedef unsigned long int __fsfilcnt_t;
151 __extension__ typedef __u_quad_t __fsfilcnt64_t;
152
153 __extension__ typedef long int __ssize_t;
154
155
156
157 typedef __off64_t __loff_t;
158 typedef __quad_t *__qaddr_t;
159 typedef char *__caddr_t;
160
161
162 __extension__ typedef int __intptr_t;
163
164
165 __extension__ typedef unsigned int __socklen_t;
166
167
168
169
170
171 typedef __kernel_ipc_pid_t __ipc_pid_t;
172
173
174
175 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/pthreadtypes.h" 1 3 4
176 # 23 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/pthreadtypes.h" 3 4
177 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/sched.h" 1 3 4
178 # 91 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/sched.h" 3 4
179 struct __sched_param
180 {
181 int __sched_priority;
182 };
183 # 24 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/pthreadtypes.h" 2 3 4
184
185
186 struct _pthread_fastlock
187 {
188 long int __status;
189 int __spinlock;
190
191 };
192
193
194
195 typedef struct _pthread_descr_struct *_pthread_descr;
196
197
198
199
200
201 typedef struct __pthread_attr_s
202 {
203 int __detachstate;
204 int __schedpolicy;
205 struct __sched_param __schedparam;
206 int __inheritsched;
207 int __scope;
208 size_t __guardsize;
209 int __stackaddr_set;
210 void *__stackaddr;
211 size_t __stacksize;
212 } pthread_attr_t;
213
214
215
216 typedef struct
217 {
218 struct _pthread_fastlock __c_lock;
219 _pthread_descr __c_waiting;
220 } pthread_cond_t;
221
222
223
224 typedef struct
225 {
226 int __dummy;
227 } pthread_condattr_t;
228
229
230 typedef unsigned int pthread_key_t;
231
232
233
234
235
236 typedef struct
237 {
238 int __m_reserved;
239 int __m_count;
240 _pthread_descr __m_owner;
241 int __m_kind;
242 struct _pthread_fastlock __m_lock;
243 } pthread_mutex_t;
244
245
246
247 typedef struct
248 {
249 int __mutexkind;
250 } pthread_mutexattr_t;
251
252
253
254 typedef int pthread_once_t;
255 # 140 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/pthreadtypes.h" 3 4
256 typedef unsigned long int pthread_t;
257 # 207 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/types.h" 2 3 4
258 # 37 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 2 3 4
259
260
261
262
263
264
265
266
267
268 typedef struct __STDIO_FILE_STRUCT FILE;
269
270
271
272
273
274 # 62 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
275 typedef struct __STDIO_FILE_STRUCT __FILE;
276 # 72 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
277 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_stdio.h" 1 3 4
278 # 119 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_stdio.h" 3 4
279 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_mutex.h" 1 3 4
280 # 15 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_mutex.h" 3 4
281 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 1 3 4
282 # 20 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
283 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/sched.h" 1 3 4
284 # 29 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/sched.h" 3 4
285 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 1 3 4
286 # 121 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
287 struct timespec
288 {
289 __time_t tv_sec;
290 long int tv_nsec;
291 };
292 # 30 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/sched.h" 2 3 4
293
294
295 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/sched.h" 1 3 4
296 # 65 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/sched.h" 3 4
297 struct sched_param
298 {
299 int __sched_priority;
300 };
301
302
303
304
305
306 extern int clone (int (*__fn) (void *__arg), void *__child_stack,
307 int __flags, void *__arg, ...) __attribute__ ((__nothrow__));
308
309
310
311
312
313
314
315
316 # 106 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/sched.h" 3 4
317 typedef unsigned long int __cpu_mask;
318
319
320
321
322
323
324 typedef struct
325 {
326 __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))];
327 } cpu_set_t;
328 # 33 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/sched.h" 2 3 4
329
330
331
332
333
334
335
336 extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param)
337 __attribute__ ((__nothrow__));
338
339
340 extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __attribute__ ((__nothrow__));
341
342
343 extern int sched_setscheduler (__pid_t __pid, int __policy,
344 __const struct sched_param *__param) __attribute__ ((__nothrow__));
345
346
347 extern int sched_getscheduler (__pid_t __pid) __attribute__ ((__nothrow__));
348
349
350 extern int sched_yield (void) __attribute__ ((__nothrow__));
351
352
353 extern int sched_get_priority_max (int __algorithm) __attribute__ ((__nothrow__));
354
355
356 extern int sched_get_priority_min (int __algorithm) __attribute__ ((__nothrow__));
357
358
359 extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __attribute__ ((__nothrow__));
360 # 84 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/sched.h" 3 4
361
362 # 21 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 2 3 4
363 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 1 3 4
364 # 31 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
365
366
367
368
369
370
371
372
373 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/lib/gcc/bfin-uclinux/4.1.2/include/stddef.h" 1 3 4
374 # 40 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 2 3 4
375
376
377
378 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/time.h" 1 3 4
379 # 38 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/time.h" 3 4
380 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_clk_tck.h" 1 3 4
381 # 39 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/time.h" 2 3 4
382 # 44 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 2 3 4
383 # 59 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
384
385
386 typedef __clock_t clock_t;
387
388
389
390 # 75 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
391
392
393 typedef __time_t time_t;
394
395
396
397 # 93 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
398 typedef __clockid_t clockid_t;
399 # 105 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
400 typedef __timer_t timer_t;
401 # 132 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
402
403
404 struct tm
405 {
406 int tm_sec;
407 int tm_min;
408 int tm_hour;
409 int tm_mday;
410 int tm_mon;
411 int tm_year;
412 int tm_wday;
413 int tm_yday;
414 int tm_isdst;
415
416
417
418 long int tm_gmtoff;
419 __const char *tm_zone;
420
421
422
423
424
425 };
426
427
428
429
430
431
432
433
434 struct itimerspec
435 {
436 struct timespec it_interval;
437 struct timespec it_value;
438 };
439
440
441 struct sigevent;
442 # 183 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
443
444
445
446 extern clock_t clock (void) __attribute__ ((__nothrow__));
447
448
449 extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
450
451
452
453 extern double difftime (time_t __time1, time_t __time0)
454 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
455
456
457
458 extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
459
460
461
462
463
464 extern size_t strftime (char *__restrict __s, size_t __maxsize,
465 __const char *__restrict __format,
466 __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
467
468 # 235 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
469
470
471
472 extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
473
474
475
476 extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
477
478
479
480
481
482 extern struct tm *gmtime_r (__const time_t *__restrict __timer,
483 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
484
485
486
487 extern struct tm *localtime_r (__const time_t *__restrict __timer,
488 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
489
490
491
492
493
494 extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
495
496
497 extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
498
499
500
501
502
503
504
505 extern char *asctime_r (__const struct tm *__restrict __tp,
506 char *__restrict __buf) __attribute__ ((__nothrow__));
507
508
509 extern char *ctime_r (__const time_t *__restrict __timer,
510 char *__restrict __buf) __attribute__ ((__nothrow__));
511 # 291 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
512 extern char *tzname[2];
513
514
515
516 extern void tzset (void) __attribute__ ((__nothrow__));
517
518
519
520 extern int daylight;
521 extern long int timezone;
522
523
524
525
526
527 extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
528 # 321 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
529 extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
530
531
532 extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
533
534
535 extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
536 # 336 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
537 extern int nanosleep (__const struct timespec *__requested_time,
538 struct timespec *__remaining);
539
540
541
542 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
543
544
545 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
546
547
548 extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
549 __attribute__ ((__nothrow__));
550 # 368 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
551 extern int timer_create (clockid_t __clock_id,
552 struct sigevent *__restrict __evp,
553 timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
554
555
556 extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
557
558
559 extern int timer_settime (timer_t __timerid, int __flags,
560 __const struct itimerspec *__restrict __value,
561 struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
562
563
564 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
565 __attribute__ ((__nothrow__));
566
567
568 extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
569 # 431 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/time.h" 3 4
570
571 # 22 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 2 3 4
572
573
574 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/signal.h" 1 3 4
575 # 31 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/signal.h" 3 4
576
577
578 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/sigset.h" 1 3 4
579 # 23 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/sigset.h" 3 4
580 typedef int __sig_atomic_t;
581
582
583
584
585 typedef struct
586 {
587 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
588 } __sigset_t;
589 # 34 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/signal.h" 2 3 4
590 # 50 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/signal.h" 3 4
591 typedef __sigset_t sigset_t;
592 # 399 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/signal.h" 3 4
593
594 # 25 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 2 3 4
595 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/pthreadtypes.h" 1 3 4
596 # 26 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 2 3 4
597 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/initspin.h" 1 3 4
598 # 27 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 2 3 4
599
600
601
602 # 59 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
603 enum
604 {
605 PTHREAD_CREATE_JOINABLE,
606
607 PTHREAD_CREATE_DETACHED
608
609 };
610
611 enum
612 {
613 PTHREAD_INHERIT_SCHED,
614
615 PTHREAD_EXPLICIT_SCHED
616
617 };
618
619 enum
620 {
621 PTHREAD_SCOPE_SYSTEM,
622
623 PTHREAD_SCOPE_PROCESS
624
625 };
626
627 enum
628 {
629 PTHREAD_MUTEX_ADAPTIVE_NP,
630 PTHREAD_MUTEX_RECURSIVE_NP,
631 PTHREAD_MUTEX_ERRORCHECK_NP,
632 PTHREAD_MUTEX_TIMED_NP
633 # 100 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
634 };
635
636 enum
637 {
638 PTHREAD_PROCESS_PRIVATE,
639
640 PTHREAD_PROCESS_SHARED
641
642 };
643 # 131 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
644 struct _pthread_cleanup_buffer
645 {
646 void (*__routine) (void *);
647 void *__arg;
648 int __canceltype;
649 struct _pthread_cleanup_buffer *__prev;
650 };
651
652
653
654 enum
655 {
656 PTHREAD_CANCEL_ENABLE,
657
658 PTHREAD_CANCEL_DISABLE
659
660 };
661 enum
662 {
663 PTHREAD_CANCEL_DEFERRED,
664
665 PTHREAD_CANCEL_ASYNCHRONOUS
666
667 };
668 # 163 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
669 extern int pthread_create (pthread_t *__restrict __threadp,
670 __const pthread_attr_t *__restrict __attr,
671 void *(*__start_routine) (void *),
672 void *__restrict __arg) __attribute__ ((__nothrow__));
673
674
675 extern pthread_t pthread_self (void) __attribute__ ((__nothrow__));
676
677
678 extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __attribute__ ((__nothrow__));
679
680
681 extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__));
682
683
684
685
686 extern int pthread_join (pthread_t __th, void **__thread_return);
687
688
689
690
691
692 extern int pthread_detach (pthread_t __th) __attribute__ ((__nothrow__));
693
694
695
696
697
698
699
700 extern int pthread_attr_init (pthread_attr_t *__attr) __attribute__ ((__nothrow__));
701
702
703 extern int pthread_attr_destroy (pthread_attr_t *__attr) __attribute__ ((__nothrow__));
704
705
706 extern int pthread_attr_setdetachstate (pthread_attr_t *__attr,
707 int __detachstate) __attribute__ ((__nothrow__));
708
709
710 extern int pthread_attr_getdetachstate (__const pthread_attr_t *__attr,
711 int *__detachstate) __attribute__ ((__nothrow__));
712
713
714 extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr,
715 __const struct sched_param *__restrict
716 __param) __attribute__ ((__nothrow__));
717
718
719 extern int pthread_attr_getschedparam (__const pthread_attr_t *__restrict
720 __attr,
721 struct sched_param *__restrict __param)
722 __attribute__ ((__nothrow__));
723
724
725 extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy)
726 __attribute__ ((__nothrow__));
727
728
729 extern int pthread_attr_getschedpolicy (__const pthread_attr_t *__restrict
730 __attr, int *__restrict __policy)
731 __attribute__ ((__nothrow__));
732
733
734 extern int pthread_attr_setinheritsched (pthread_attr_t *__attr,
735 int __inherit) __attribute__ ((__nothrow__));
736
737
738 extern int pthread_attr_getinheritsched (__const pthread_attr_t *__restrict
739 __attr, int *__restrict __inherit)
740 __attribute__ ((__nothrow__));
741
742
743 extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope)
744 __attribute__ ((__nothrow__));
745
746
747 extern int pthread_attr_getscope (__const pthread_attr_t *__restrict __attr,
748 int *__restrict __scope) __attribute__ ((__nothrow__));
749 # 259 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
750 extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
751 void *__stackaddr) __attribute__ ((__nothrow__));
752
753
754 extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict
755 __attr, void **__restrict __stackaddr)
756 __attribute__ ((__nothrow__));
757 # 283 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
758 extern int pthread_attr_setstacksize (pthread_attr_t *__attr,
759 size_t __stacksize) __attribute__ ((__nothrow__));
760
761
762 extern int pthread_attr_getstacksize (__const pthread_attr_t *__restrict
763 __attr, size_t *__restrict __stacksize)
764 __attribute__ ((__nothrow__));
765 # 306 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
766 extern int pthread_setschedparam (pthread_t __target_thread, int __policy,
767 __const struct sched_param *__param)
768 __attribute__ ((__nothrow__));
769
770
771 extern int pthread_getschedparam (pthread_t __target_thread,
772 int *__restrict __policy,
773 struct sched_param *__restrict __param)
774 __attribute__ ((__nothrow__));
775 # 328 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
776 extern int pthread_mutex_init (pthread_mutex_t *__restrict __mutex,
777 __const pthread_mutexattr_t *__restrict
778 __mutex_attr) __attribute__ ((__nothrow__));
779
780
781 extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) __attribute__ ((__nothrow__));
782
783
784 extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) __attribute__ ((__nothrow__));
785
786
787 extern int pthread_mutex_lock (pthread_mutex_t *__mutex) __attribute__ ((__nothrow__));
788 # 349 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
789 extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) __attribute__ ((__nothrow__));
790
791
792
793
794
795
796 extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) __attribute__ ((__nothrow__));
797
798
799 extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) __attribute__ ((__nothrow__));
800
801
802 extern int pthread_mutexattr_getpshared (__const pthread_mutexattr_t *
803 __restrict __attr,
804 int *__restrict __pshared) __attribute__ ((__nothrow__));
805
806
807 extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
808 int __pshared) __attribute__ ((__nothrow__));
809 # 387 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
810 extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
811 __const pthread_condattr_t *__restrict
812 __cond_attr) __attribute__ ((__nothrow__));
813
814
815 extern int pthread_cond_destroy (pthread_cond_t *__cond) __attribute__ ((__nothrow__));
816
817
818 extern int pthread_cond_signal (pthread_cond_t *__cond) __attribute__ ((__nothrow__));
819
820
821 extern int pthread_cond_broadcast (pthread_cond_t *__cond) __attribute__ ((__nothrow__));
822
823
824
825 extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
826 pthread_mutex_t *__restrict __mutex);
827
828
829
830
831
832 extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond,
833 pthread_mutex_t *__restrict __mutex,
834 __const struct timespec *__restrict
835 __abstime);
836
837
838
839
840 extern int pthread_condattr_init (pthread_condattr_t *__attr) __attribute__ ((__nothrow__));
841
842
843 extern int pthread_condattr_destroy (pthread_condattr_t *__attr) __attribute__ ((__nothrow__));
844
845
846 extern int pthread_condattr_getpshared (__const pthread_condattr_t *
847 __restrict __attr,
848 int *__restrict __pshared) __attribute__ ((__nothrow__));
849
850
851 extern int pthread_condattr_setpshared (pthread_condattr_t *__attr,
852 int __pshared) __attribute__ ((__nothrow__));
853 # 557 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
854 extern int pthread_key_create (pthread_key_t *__key,
855 void (*__destr_function) (void *)) __attribute__ ((__nothrow__));
856
857
858 extern int pthread_key_delete (pthread_key_t __key) __attribute__ ((__nothrow__));
859
860
861 extern int pthread_setspecific (pthread_key_t __key,
862 __const void *__pointer) __attribute__ ((__nothrow__));
863
864
865 extern void *pthread_getspecific (pthread_key_t __key) __attribute__ ((__nothrow__));
866 # 580 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
867 extern int pthread_once (pthread_once_t *__once_control,
868 void (*__init_routine) (void));
869
870
871
872
873
874
875 extern int pthread_setcancelstate (int __state, int *__oldstate);
876
877
878
879 extern int pthread_setcanceltype (int __type, int *__oldtype);
880
881
882 extern int pthread_cancel (pthread_t __cancelthread);
883
884
885
886
887 extern void pthread_testcancel (void);
888 # 614 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
889 extern void _pthread_cleanup_push (struct _pthread_cleanup_buffer *__buffer,
890 void (*__routine) (void *),
891 void *__arg) __attribute__ ((__nothrow__));
892
893
894
895
896
897
898
899 extern void _pthread_cleanup_pop (struct _pthread_cleanup_buffer *__buffer,
900 int __execute) __attribute__ ((__nothrow__));
901 # 668 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
902 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/sigthread.h" 1 3 4
903 # 31 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/sigthread.h" 3 4
904 extern int pthread_sigmask (int __how,
905 __const __sigset_t *__restrict __newmask,
906 __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__));
907
908
909 extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__));
910 # 669 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 2 3 4
911 # 684 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/pthread.h" 3 4
912 extern int pthread_atfork (void (*__prepare) (void),
913 void (*__parent) (void),
914 void (*__child) (void)) __attribute__ ((__nothrow__));
915
916
917
918
919 extern void pthread_kill_other_threads_np (void) __attribute__ ((__nothrow__));
920
921
922 # 16 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_mutex.h" 2 3 4
923 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_pthread.h" 1 3 4
924 # 17 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_mutex.h" 2 3 4
925 # 120 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_stdio.h" 2 3 4
926 # 170 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_stdio.h" 3 4
927 typedef struct {
928 __off_t __pos;
929
930
931
932
933
934
935 } __STDIO_fpos_t;
936
937
938 typedef struct {
939 __off64_t __pos;
940
941
942
943
944
945
946 } __STDIO_fpos64_t;
947
948
949
950
951 typedef __off64_t __offmax_t;
952 # 233 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_stdio.h" 3 4
953 struct __STDIO_FILE_STRUCT {
954 unsigned short __modeflags;
955
956
957
958
959
960
961
962 unsigned char __ungot[2];
963
964 int __filedes;
965
966 unsigned char *__bufstart;
967 unsigned char *__bufend;
968 unsigned char *__bufpos;
969 unsigned char *__bufread;
970
971
972 unsigned char *__bufgetc_u;
973
974
975 unsigned char *__bufputc_u;
976
977
978
979
980
981 struct __STDIO_FILE_STRUCT *__nextopen;
982 # 277 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_stdio.h" 3 4
983 int __user_locking;
984 pthread_mutex_t __lock;
985
986
987
988
989
990 };
991 # 384 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_stdio.h" 3 4
992 extern int __fgetc_unlocked(FILE *__stream);
993 extern int __fputc_unlocked(int __c, FILE *__stream);
994 # 404 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_stdio.h" 3 4
995 extern FILE *__stdin;
996 # 463 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/uClibc_stdio.h" 3 4
997 extern FILE *__stdout;
998 # 73 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 2 3 4
999
1000
1001
1002 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/lib/gcc/bfin-uclinux/4.1.2/include/stdarg.h" 1 3 4
1003 # 43 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/lib/gcc/bfin-uclinux/4.1.2/include/stdarg.h" 3 4
1004 typedef __builtin_va_list __gnuc_va_list;
1005 # 77 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 2 3 4
1006
1007
1008
1009
1010 typedef __STDIO_fpos_t fpos_t;
1011
1012
1013
1014
1015 # 131 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1016 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/bits/stdio_lim.h" 1 3 4
1017 # 132 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 2 3 4
1018
1019
1020
1021 extern FILE *stdin;
1022 extern FILE *stdout;
1023 extern FILE *stderr;
1024
1025
1026
1027
1028
1029
1030
1031 extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
1032
1033 extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043 extern FILE *tmpfile (void);
1044 # 171 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1045 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__));
1046
1047
1048
1049
1050
1051 extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__));
1052 # 189 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1053 extern char *tempnam (__const char *__dir, __const char *__pfx)
1054 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
1055
1056
1057
1058
1059
1060
1061
1062
1063 extern int fclose (FILE *__stream);
1064
1065
1066
1067
1068 extern int fflush (FILE *__stream);
1069
1070 # 214 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1071 extern int fflush_unlocked (FILE *__stream);
1072 # 228 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1073
1074
1075
1076
1077
1078
1079 extern FILE *fopen (__const char *__restrict __filename,
1080 __const char *__restrict __modes);
1081
1082
1083
1084
1085 extern FILE *freopen (__const char *__restrict __filename,
1086 __const char *__restrict __modes,
1087 FILE *__restrict __stream);
1088 # 255 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1089
1090 # 266 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1091 extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__));
1092 # 289 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1093
1094
1095
1096 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
1097
1098
1099
1100 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
1101 int __modes, size_t __n) __attribute__ ((__nothrow__));
1102
1103
1104
1105
1106
1107 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
1108 size_t __size) __attribute__ ((__nothrow__));
1109
1110
1111 extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
1112
1113
1114
1115
1116
1117
1118
1119
1120 extern int fprintf (FILE *__restrict __stream,
1121 __const char *__restrict __format, ...);
1122
1123
1124
1125
1126 extern int printf (__const char *__restrict __format, ...);
1127
1128 extern int sprintf (char *__restrict __s,
1129 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
1130
1131
1132
1133
1134
1135 extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
1136 __gnuc_va_list __arg);
1137
1138
1139
1140
1141 extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
1142
1143 extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
1144 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
1145
1146
1147
1148
1149
1150 extern int snprintf (char *__restrict __s, size_t __maxlen,
1151 __const char *__restrict __format, ...)
1152 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
1153
1154 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
1155 __const char *__restrict __format, __gnuc_va_list __arg)
1156 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
1157
1158 # 385 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1159
1160
1161
1162
1163
1164 extern int fscanf (FILE *__restrict __stream,
1165 __const char *__restrict __format, ...);
1166
1167
1168
1169
1170 extern int scanf (__const char *__restrict __format, ...);
1171
1172 extern int sscanf (__const char *__restrict __s,
1173 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
1174
1175 # 427 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1176
1177
1178
1179
1180
1181 extern int fgetc (FILE *__stream);
1182 extern int getc (FILE *__stream);
1183
1184
1185
1186
1187
1188 extern int getchar (void);
1189
1190 # 451 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1191 extern int getc_unlocked (FILE *__stream);
1192 extern int getchar_unlocked (void);
1193 # 465 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1194 extern int fgetc_unlocked (FILE *__stream);
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206 extern int fputc (int __c, FILE *__stream);
1207 extern int putc (int __c, FILE *__stream);
1208
1209
1210
1211
1212
1213 extern int putchar (int __c);
1214
1215 # 498 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1216 extern int fputc_unlocked (int __c, FILE *__stream);
1217
1218
1219
1220
1221
1222
1223
1224 extern int putc_unlocked (int __c, FILE *__stream);
1225 extern int putchar_unlocked (int __c);
1226 # 517 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1227 extern int getw (FILE *__stream);
1228
1229
1230 extern int putw (int __w, FILE *__stream);
1231
1232
1233
1234
1235
1236
1237
1238
1239 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream);
1240
1241
1242
1243
1244
1245
1246 extern char *gets (char *__s);
1247
1248 # 583 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1249
1250
1251
1252
1253
1254 extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
1255
1256
1257
1258
1259
1260 extern int puts (__const char *__s);
1261
1262
1263
1264
1265
1266
1267 extern int ungetc (int __c, FILE *__stream);
1268
1269
1270
1271
1272
1273
1274 extern size_t fread (void *__restrict __ptr, size_t __size,
1275 size_t __n, FILE *__restrict __stream);
1276
1277
1278
1279
1280 extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
1281 size_t __n, FILE *__restrict __s);
1282
1283 # 636 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1284 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
1285 size_t __n, FILE *__restrict __stream);
1286 extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
1287 size_t __n, FILE *__restrict __stream);
1288
1289
1290
1291
1292
1293
1294
1295
1296 extern int fseek (FILE *__stream, long int __off, int __whence);
1297
1298
1299
1300
1301 extern long int ftell (FILE *__stream);
1302
1303
1304
1305
1306 extern void rewind (FILE *__stream);
1307
1308 # 691 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1309
1310
1311
1312
1313
1314
1315 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
1316
1317
1318
1319
1320 extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
1321 # 714 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1322
1323 # 723 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1324
1325
1326 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
1327
1328 extern int feof (FILE *__stream) __attribute__ ((__nothrow__));
1329
1330 extern int ferror (FILE *__stream) __attribute__ ((__nothrow__));
1331
1332
1333
1334
1335 extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
1336 extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
1337 extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
1338
1339
1340
1341
1342
1343
1344
1345
1346 extern void perror (__const char *__s);
1347
1348 # 760 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1349 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__));
1350
1351
1352
1353
1354 extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
1355 # 775 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1356 extern FILE *popen (__const char *__command, __const char *__modes);
1357
1358
1359
1360
1361
1362 extern int pclose (FILE *__stream);
1363
1364
1365
1366
1367
1368 extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
1369 # 815 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1370 extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
1371
1372
1373
1374 extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__));
1375
1376
1377 extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
1378 # 869 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/stdio.h" 3 4
1379
1380 # 2 "test.c" 2
1381 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 1 3 4
1382 # 28 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1383
1384
1385
1386
1387
1388 # 1 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/lib/gcc/bfin-uclinux/4.1.2/include/stddef.h" 1 3 4
1389 # 34 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 2 3 4
1390
1391
1392
1393
1394 extern void *memcpy (void *__restrict __dest,
1395 __const void *__restrict __src, size_t __n)
1396 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1397
1398
1399 extern void *memmove (void *__dest, __const void *__src, size_t __n)
1400 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1401
1402
1403
1404
1405
1406
1407 extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
1408 int __c, size_t __n)
1409 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1410
1411
1412
1413
1414
1415 extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1416
1417
1418 extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
1419 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1420
1421
1422 extern void *memchr (__const void *__s, int __c, size_t __n)
1423 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1424
1425 # 82 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1426
1427
1428 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
1429 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1430
1431 extern char *strncpy (char *__restrict __dest,
1432 __const char *__restrict __src, size_t __n)
1433 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1434
1435
1436 extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
1437 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1438
1439 extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
1440 size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1441
1442
1443 extern int strcmp (__const char *__s1, __const char *__s2)
1444 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1445
1446 extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
1447 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1448
1449
1450 extern int strcoll (__const char *__s1, __const char *__s2)
1451 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1452
1453 extern size_t strxfrm (char *__restrict __dest,
1454 __const char *__restrict __src, size_t __n)
1455 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1456
1457 # 130 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1458 extern char *strdup (__const char *__s)
1459 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
1460 # 165 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1461
1462
1463 extern char *strchr (__const char *__s, int __c)
1464 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1465
1466 extern char *strrchr (__const char *__s, int __c)
1467 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1468
1469 # 181 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1470
1471
1472
1473 extern size_t strcspn (__const char *__s, __const char *__reject)
1474 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1475
1476
1477 extern size_t strspn (__const char *__s, __const char *__accept)
1478 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1479
1480 extern char *strpbrk (__const char *__s, __const char *__accept)
1481 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1482
1483 extern char *strstr (__const char *__haystack, __const char *__needle)
1484 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1485
1486
1487
1488 extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
1489 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1490
1491 # 212 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1492 extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
1493 char **__restrict __save_ptr)
1494 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
1495 # 244 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1496
1497
1498 extern size_t strlen (__const char *__s)
1499 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1500
1501 # 258 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1502
1503
1504 extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
1505
1506 # 285 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1507 extern char *__glibc_strerror_r (int __errnum, char *__buf, size_t __buflen)
1508 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1509
1510 extern char * strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("_" "__glibc_strerror_r") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1511 # 306 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1512 extern void bcopy (__const void *__src, void *__dest, size_t __n)
1513 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1514
1515
1516 extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1517
1518
1519 extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
1520 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1521
1522
1523 extern char *index (__const char *__s, int __c)
1524 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1525
1526
1527 extern char *rindex (__const char *__s, int __c)
1528 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1529 # 339 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1530 extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1531 # 352 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1532 extern int strcasecmp (__const char *__s1, __const char *__s2)
1533 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1534
1535
1536 extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
1537 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1538 # 375 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1539 extern char *strsep (char **__restrict __stringp,
1540 __const char *__restrict __delim)
1541 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1542 # 429 "/usr/local/src/blackfin/toolchains/20070903/out-uclinux/bfin-uclinux/runtime/usr/include/string.h" 3 4
1543 extern size_t strlcat(char *__restrict dst, const char *__restrict src,
1544 size_t n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1545 extern size_t strlcpy(char *__restrict dst, const char *__restrict src,
1546 size_t n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1547
1548
1549
1550 # 3 "test.c" 2
1551
1552
1553
1554 const char *it = "<UNSET>";
1555 size_t errors = 0;
1556
1557 char one[50];
1558 char two[50];
1559
1560 static void
1561 check (int thing, int number)
1562 {
1563 if (!thing)
1564 {
1565 printf("%s flunked test %d\n", it, number);
1566 ++errors;
1567 }
1568 else if (0)
1569 {
1570 printf("%s test %d ok\n", it, number);
1571 }
1572 }
1573
1574
1575 static void
1576 equal (const char *a, const char *b, int number)
1577 {
1578 check(a != ((void *)0) && b != ((void *)0) && (strcmp((a), (b)) == 0), number);
1579 }
1580
1581
1582 int _strcmp(const char *cs, const char *ct)
1583 {
1584
1585
1586
1587 int __res1, __res2;
1588
1589 __asm__
1590 ("1:\t%2 = B[%0++] (Z);\n\t"
1591 "%3 = B[%1++] (Z);\n\t"
1592 "CC = %2 == %3;\n\t"
1593 "if ! cc jump 2f;\n\t"
1594 "CC = %2;\n\t"
1595 "if cc jump 1b (bp);\n\t"
1596 "jump.s 3f;\n"
1597 "2:\t%2 = %2 - %3;\n"
1598 "3:\n"
1599 : "+&a" (cs), "+&a" (ct), "=&d" (__res1), "=&d" (__res2)
1600 : : "CC");
1601
1602 return __res1;
1603 }
1604
1605 void
1606 test_strcmp (void)
1607 {
1608 it = "strcmp";
1609 # 95 "test.c"
1610 {
1611 char buf1[0x40], buf2[0x40];
1612 int i, j;
1613
1614 j = i = 0;
1615
1616 {
1617 int k;
1618
1619
1620
1621
1622
1623
1624
1625 buf1[i] = buf1[0x3f] = 0;
1626 buf2[j] = buf2[0x3f] = 0;
1627
1628 k = 0;
1629 {
1630
1631 ;
1632 ;
1633
1634 buf1[i+k] = 'A' + i + k;
1635 buf1[i+k+1] = 0;
1636 ;
1637 ;
1638 check (_strcmp (buf1+i,buf2+j) > 0, 2);
1639
1640 return;
1641 # 143 "test.c"
1642 }
1643 }
1644 }
1645 }
1646
1647 int main(int argc, char *argv[])
1648 {
1649 int status;
1650
1651 test_strcmp ();
1652
1653 if (errors == 0)
1654 {
1655 status = 0;
1656 printf("TEST PASS.\n");
1657 }
1658 else
1659 {
1660 status = 1;
1661 printf("%Zd errors.\n", errors);
1662 printf("TEST FAIL.\n");
1663 }
1664
1665 return status;
1666 }