]>
Commit | Line | Data |
---|---|---|
bd3239d2 MF |
1 | # 1 "writepart.c" |
2 | # 1 "<built-in>" | |
3 | # 1 "<command-line>" | |
4 | # 1 "/usr/include/stdc-predef.h" 1 3 4 | |
5 | # 1 "<command-line>" 2 | |
6 | # 1 "writepart.c" | |
7 | # 51 "writepart.c" | |
8 | static char vcid[] __attribute__ ((unused)) = | |
9 | "$Id: writepart.c,v 1.8 1998/02/07 21:27:17 rnhodek Exp $"; | |
10 | ||
11 | ||
12 | # 1 "/usr/include/stdio.h" 1 3 4 | |
13 | # 27 "/usr/include/stdio.h" 3 4 | |
14 | # 1 "/usr/include/features.h" 1 3 4 | |
15 | # 365 "/usr/include/features.h" 3 4 | |
16 | # 1 "/usr/include/sys/cdefs.h" 1 3 4 | |
17 | # 410 "/usr/include/sys/cdefs.h" 3 4 | |
18 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
19 | # 411 "/usr/include/sys/cdefs.h" 2 3 4 | |
20 | # 366 "/usr/include/features.h" 2 3 4 | |
21 | # 389 "/usr/include/features.h" 3 4 | |
22 | # 1 "/usr/include/gnu/stubs.h" 1 3 4 | |
23 | # 10 "/usr/include/gnu/stubs.h" 3 4 | |
24 | # 1 "/usr/include/gnu/stubs-64.h" 1 3 4 | |
25 | # 11 "/usr/include/gnu/stubs.h" 2 3 4 | |
26 | # 390 "/usr/include/features.h" 2 3 4 | |
27 | # 28 "/usr/include/stdio.h" 2 3 4 | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h" 1 3 4 | |
34 | # 216 "/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h" 3 4 | |
35 | ||
36 | # 216 "/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h" 3 4 | |
37 | typedef long unsigned int size_t; | |
38 | # 34 "/usr/include/stdio.h" 2 3 4 | |
39 | ||
40 | # 1 "/usr/include/bits/types.h" 1 3 4 | |
41 | # 27 "/usr/include/bits/types.h" 3 4 | |
42 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
43 | # 28 "/usr/include/bits/types.h" 2 3 4 | |
44 | ||
45 | ||
46 | typedef unsigned char __u_char; | |
47 | typedef unsigned short int __u_short; | |
48 | typedef unsigned int __u_int; | |
49 | typedef unsigned long int __u_long; | |
50 | ||
51 | ||
52 | typedef signed char __int8_t; | |
53 | typedef unsigned char __uint8_t; | |
54 | typedef signed short int __int16_t; | |
55 | typedef unsigned short int __uint16_t; | |
56 | typedef signed int __int32_t; | |
57 | typedef unsigned int __uint32_t; | |
58 | ||
59 | typedef signed long int __int64_t; | |
60 | typedef unsigned long int __uint64_t; | |
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | typedef long int __quad_t; | |
69 | typedef unsigned long int __u_quad_t; | |
70 | # 121 "/usr/include/bits/types.h" 3 4 | |
71 | # 1 "/usr/include/bits/typesizes.h" 1 3 4 | |
72 | # 122 "/usr/include/bits/types.h" 2 3 4 | |
73 | ||
74 | ||
75 | typedef unsigned long int __dev_t; | |
76 | typedef unsigned int __uid_t; | |
77 | typedef unsigned int __gid_t; | |
78 | typedef unsigned long int __ino_t; | |
79 | typedef unsigned long int __ino64_t; | |
80 | typedef unsigned int __mode_t; | |
81 | typedef unsigned long int __nlink_t; | |
82 | typedef long int __off_t; | |
83 | typedef long int __off64_t; | |
84 | typedef int __pid_t; | |
85 | typedef struct { int __val[2]; } __fsid_t; | |
86 | typedef long int __clock_t; | |
87 | typedef unsigned long int __rlim_t; | |
88 | typedef unsigned long int __rlim64_t; | |
89 | typedef unsigned int __id_t; | |
90 | typedef long int __time_t; | |
91 | typedef unsigned int __useconds_t; | |
92 | typedef long int __suseconds_t; | |
93 | ||
94 | typedef int __daddr_t; | |
95 | typedef int __key_t; | |
96 | ||
97 | ||
98 | typedef int __clockid_t; | |
99 | ||
100 | ||
101 | typedef void * __timer_t; | |
102 | ||
103 | ||
104 | typedef long int __blksize_t; | |
105 | ||
106 | ||
107 | ||
108 | ||
109 | typedef long int __blkcnt_t; | |
110 | typedef long int __blkcnt64_t; | |
111 | ||
112 | ||
113 | typedef unsigned long int __fsblkcnt_t; | |
114 | typedef unsigned long int __fsblkcnt64_t; | |
115 | ||
116 | ||
117 | typedef unsigned long int __fsfilcnt_t; | |
118 | typedef unsigned long int __fsfilcnt64_t; | |
119 | ||
120 | ||
121 | typedef long int __fsword_t; | |
122 | ||
123 | typedef long int __ssize_t; | |
124 | ||
125 | ||
126 | typedef long int __syscall_slong_t; | |
127 | ||
128 | typedef unsigned long int __syscall_ulong_t; | |
129 | ||
130 | ||
131 | ||
132 | typedef __off64_t __loff_t; | |
133 | typedef __quad_t *__qaddr_t; | |
134 | typedef char *__caddr_t; | |
135 | ||
136 | ||
137 | typedef long int __intptr_t; | |
138 | ||
139 | ||
140 | typedef unsigned int __socklen_t; | |
141 | # 36 "/usr/include/stdio.h" 2 3 4 | |
142 | # 44 "/usr/include/stdio.h" 3 4 | |
143 | struct _IO_FILE; | |
144 | ||
145 | ||
146 | ||
147 | typedef struct _IO_FILE FILE; | |
148 | ||
149 | ||
150 | ||
151 | ||
152 | ||
153 | # 64 "/usr/include/stdio.h" 3 4 | |
154 | typedef struct _IO_FILE __FILE; | |
155 | # 74 "/usr/include/stdio.h" 3 4 | |
156 | # 1 "/usr/include/libio.h" 1 3 4 | |
157 | # 31 "/usr/include/libio.h" 3 4 | |
158 | # 1 "/usr/include/_G_config.h" 1 3 4 | |
159 | # 15 "/usr/include/_G_config.h" 3 4 | |
160 | # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h" 1 3 4 | |
161 | # 16 "/usr/include/_G_config.h" 2 3 4 | |
162 | ||
163 | ||
164 | ||
165 | ||
166 | # 1 "/usr/include/wchar.h" 1 3 4 | |
167 | # 82 "/usr/include/wchar.h" 3 4 | |
168 | typedef struct | |
169 | { | |
170 | int __count; | |
171 | union | |
172 | { | |
173 | ||
174 | unsigned int __wch; | |
175 | ||
176 | ||
177 | ||
178 | char __wchb[4]; | |
179 | } __value; | |
180 | } __mbstate_t; | |
181 | # 21 "/usr/include/_G_config.h" 2 3 4 | |
182 | typedef struct | |
183 | { | |
184 | __off_t __pos; | |
185 | __mbstate_t __state; | |
186 | } _G_fpos_t; | |
187 | typedef struct | |
188 | { | |
189 | __off64_t __pos; | |
190 | __mbstate_t __state; | |
191 | } _G_fpos64_t; | |
192 | # 32 "/usr/include/libio.h" 2 3 4 | |
193 | # 49 "/usr/include/libio.h" 3 4 | |
194 | # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stdarg.h" 1 3 4 | |
195 | # 40 "/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stdarg.h" 3 4 | |
196 | typedef __builtin_va_list __gnuc_va_list; | |
197 | # 50 "/usr/include/libio.h" 2 3 4 | |
198 | # 144 "/usr/include/libio.h" 3 4 | |
199 | struct _IO_jump_t; struct _IO_FILE; | |
200 | # 154 "/usr/include/libio.h" 3 4 | |
201 | typedef void _IO_lock_t; | |
202 | ||
203 | ||
204 | ||
205 | ||
206 | ||
207 | struct _IO_marker { | |
208 | struct _IO_marker *_next; | |
209 | struct _IO_FILE *_sbuf; | |
210 | ||
211 | ||
212 | ||
213 | int _pos; | |
214 | # 177 "/usr/include/libio.h" 3 4 | |
215 | }; | |
216 | ||
217 | ||
218 | enum __codecvt_result | |
219 | { | |
220 | __codecvt_ok, | |
221 | __codecvt_partial, | |
222 | __codecvt_error, | |
223 | __codecvt_noconv | |
224 | }; | |
225 | # 245 "/usr/include/libio.h" 3 4 | |
226 | struct _IO_FILE { | |
227 | int _flags; | |
228 | ||
229 | ||
230 | ||
231 | ||
232 | char* _IO_read_ptr; | |
233 | char* _IO_read_end; | |
234 | char* _IO_read_base; | |
235 | char* _IO_write_base; | |
236 | char* _IO_write_ptr; | |
237 | char* _IO_write_end; | |
238 | char* _IO_buf_base; | |
239 | char* _IO_buf_end; | |
240 | ||
241 | char *_IO_save_base; | |
242 | char *_IO_backup_base; | |
243 | char *_IO_save_end; | |
244 | ||
245 | struct _IO_marker *_markers; | |
246 | ||
247 | struct _IO_FILE *_chain; | |
248 | ||
249 | int _fileno; | |
250 | ||
251 | ||
252 | ||
253 | int _flags2; | |
254 | ||
255 | __off_t _old_offset; | |
256 | ||
257 | ||
258 | ||
259 | unsigned short _cur_column; | |
260 | signed char _vtable_offset; | |
261 | char _shortbuf[1]; | |
262 | ||
263 | ||
264 | ||
265 | _IO_lock_t *_lock; | |
266 | # 293 "/usr/include/libio.h" 3 4 | |
267 | __off64_t _offset; | |
268 | # 302 "/usr/include/libio.h" 3 4 | |
269 | void *__pad1; | |
270 | void *__pad2; | |
271 | void *__pad3; | |
272 | void *__pad4; | |
273 | size_t __pad5; | |
274 | ||
275 | int _mode; | |
276 | ||
277 | char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; | |
278 | ||
279 | }; | |
280 | ||
281 | ||
282 | typedef struct _IO_FILE _IO_FILE; | |
283 | ||
284 | ||
285 | struct _IO_FILE_plus; | |
286 | ||
287 | extern struct _IO_FILE_plus _IO_2_1_stdin_; | |
288 | extern struct _IO_FILE_plus _IO_2_1_stdout_; | |
289 | extern struct _IO_FILE_plus _IO_2_1_stderr_; | |
290 | # 338 "/usr/include/libio.h" 3 4 | |
291 | typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); | |
292 | ||
293 | ||
294 | ||
295 | ||
296 | ||
297 | ||
298 | ||
299 | typedef __ssize_t __io_write_fn (void *__cookie, const char *__buf, | |
300 | size_t __n); | |
301 | ||
302 | ||
303 | ||
304 | ||
305 | ||
306 | ||
307 | ||
308 | typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); | |
309 | ||
310 | ||
311 | typedef int __io_close_fn (void *__cookie); | |
312 | # 390 "/usr/include/libio.h" 3 4 | |
313 | extern int __underflow (_IO_FILE *); | |
314 | extern int __uflow (_IO_FILE *); | |
315 | extern int __overflow (_IO_FILE *, int); | |
316 | # 434 "/usr/include/libio.h" 3 4 | |
317 | extern int _IO_getc (_IO_FILE *__fp); | |
318 | extern int _IO_putc (int __c, _IO_FILE *__fp); | |
319 | extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__)); | |
320 | extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__)); | |
321 | ||
322 | extern int _IO_peekc_locked (_IO_FILE *__fp); | |
323 | ||
324 | ||
325 | ||
326 | ||
327 | ||
328 | extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); | |
329 | extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); | |
330 | extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); | |
331 | # 464 "/usr/include/libio.h" 3 4 | |
332 | extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, | |
333 | __gnuc_va_list, int *__restrict); | |
334 | extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, | |
335 | __gnuc_va_list); | |
336 | extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t); | |
337 | extern size_t _IO_sgetn (_IO_FILE *, void *, size_t); | |
338 | ||
339 | extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int); | |
340 | extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int); | |
341 | ||
342 | extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); | |
343 | # 75 "/usr/include/stdio.h" 2 3 4 | |
344 | ||
345 | ||
346 | ||
347 | ||
348 | typedef __gnuc_va_list va_list; | |
349 | # 90 "/usr/include/stdio.h" 3 4 | |
350 | typedef __off_t off_t; | |
351 | # 102 "/usr/include/stdio.h" 3 4 | |
352 | typedef __ssize_t ssize_t; | |
353 | ||
354 | ||
355 | ||
356 | ||
357 | ||
358 | ||
359 | ||
360 | typedef _G_fpos_t fpos_t; | |
361 | ||
362 | ||
363 | ||
364 | ||
365 | # 164 "/usr/include/stdio.h" 3 4 | |
366 | # 1 "/usr/include/bits/stdio_lim.h" 1 3 4 | |
367 | # 165 "/usr/include/stdio.h" 2 3 4 | |
368 | ||
369 | ||
370 | ||
371 | extern struct _IO_FILE *stdin; | |
372 | extern struct _IO_FILE *stdout; | |
373 | extern struct _IO_FILE *stderr; | |
374 | ||
375 | ||
376 | ||
377 | ||
378 | ||
379 | ||
380 | ||
381 | extern int remove (const char *__filename) __attribute__ ((__nothrow__ , __leaf__)); | |
382 | ||
383 | extern int rename (const char *__old, const char *__new) __attribute__ ((__nothrow__ , __leaf__)); | |
384 | ||
385 | ||
386 | ||
387 | ||
388 | extern int renameat (int __oldfd, const char *__old, int __newfd, | |
389 | const char *__new) __attribute__ ((__nothrow__ , __leaf__)); | |
390 | ||
391 | ||
392 | ||
393 | ||
394 | ||
395 | ||
396 | ||
397 | ||
398 | extern FILE *tmpfile (void) __attribute__ ((__warn_unused_result__)); | |
399 | # 209 "/usr/include/stdio.h" 3 4 | |
400 | extern char *tmpnam (char *__s) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
401 | ||
402 | ||
403 | ||
404 | ||
405 | ||
406 | extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
407 | # 227 "/usr/include/stdio.h" 3 4 | |
408 | extern char *tempnam (const char *__dir, const char *__pfx) | |
409 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); | |
410 | ||
411 | ||
412 | ||
413 | ||
414 | ||
415 | ||
416 | ||
417 | ||
418 | extern int fclose (FILE *__stream); | |
419 | ||
420 | ||
421 | ||
422 | ||
423 | extern int fflush (FILE *__stream); | |
424 | ||
425 | # 252 "/usr/include/stdio.h" 3 4 | |
426 | extern int fflush_unlocked (FILE *__stream); | |
427 | # 266 "/usr/include/stdio.h" 3 4 | |
428 | ||
429 | ||
430 | ||
431 | ||
432 | ||
433 | ||
434 | extern FILE *fopen (const char *__restrict __filename, | |
435 | const char *__restrict __modes) __attribute__ ((__warn_unused_result__)); | |
436 | ||
437 | ||
438 | ||
439 | ||
440 | extern FILE *freopen (const char *__restrict __filename, | |
441 | const char *__restrict __modes, | |
442 | FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); | |
443 | # 295 "/usr/include/stdio.h" 3 4 | |
444 | ||
445 | # 306 "/usr/include/stdio.h" 3 4 | |
446 | extern FILE *fdopen (int __fd, const char *__modes) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
447 | # 319 "/usr/include/stdio.h" 3 4 | |
448 | extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) | |
449 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
450 | ||
451 | ||
452 | ||
453 | ||
454 | extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
455 | ||
456 | ||
457 | ||
458 | ||
459 | ||
460 | ||
461 | extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__)); | |
462 | ||
463 | ||
464 | ||
465 | extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, | |
466 | int __modes, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); | |
467 | ||
468 | ||
469 | ||
470 | ||
471 | ||
472 | extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, | |
473 | size_t __size) __attribute__ ((__nothrow__ , __leaf__)); | |
474 | ||
475 | ||
476 | extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); | |
477 | ||
478 | ||
479 | ||
480 | ||
481 | ||
482 | ||
483 | ||
484 | ||
485 | extern int fprintf (FILE *__restrict __stream, | |
486 | const char *__restrict __format, ...); | |
487 | ||
488 | ||
489 | ||
490 | ||
491 | extern int printf (const char *__restrict __format, ...); | |
492 | ||
493 | extern int sprintf (char *__restrict __s, | |
494 | const char *__restrict __format, ...) __attribute__ ((__nothrow__)); | |
495 | ||
496 | ||
497 | ||
498 | ||
499 | ||
500 | extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, | |
501 | __gnuc_va_list __arg); | |
502 | ||
503 | ||
504 | ||
505 | ||
506 | extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); | |
507 | ||
508 | extern int vsprintf (char *__restrict __s, const char *__restrict __format, | |
509 | __gnuc_va_list __arg) __attribute__ ((__nothrow__)); | |
510 | ||
511 | ||
512 | ||
513 | ||
514 | ||
515 | extern int snprintf (char *__restrict __s, size_t __maxlen, | |
516 | const char *__restrict __format, ...) | |
517 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4))); | |
518 | ||
519 | extern int vsnprintf (char *__restrict __s, size_t __maxlen, | |
520 | const char *__restrict __format, __gnuc_va_list __arg) | |
521 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0))); | |
522 | ||
523 | # 412 "/usr/include/stdio.h" 3 4 | |
524 | extern int vdprintf (int __fd, const char *__restrict __fmt, | |
525 | __gnuc_va_list __arg) | |
526 | __attribute__ ((__format__ (__printf__, 2, 0))); | |
527 | extern int dprintf (int __fd, const char *__restrict __fmt, ...) | |
528 | __attribute__ ((__format__ (__printf__, 2, 3))); | |
529 | ||
530 | ||
531 | ||
532 | ||
533 | ||
534 | ||
535 | ||
536 | ||
537 | extern int fscanf (FILE *__restrict __stream, | |
538 | const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); | |
539 | ||
540 | ||
541 | ||
542 | ||
543 | extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); | |
544 | ||
545 | extern int sscanf (const char *__restrict __s, | |
546 | const char *__restrict __format, ...) __attribute__ ((__nothrow__ , __leaf__)); | |
547 | # 443 "/usr/include/stdio.h" 3 4 | |
548 | extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf") | |
549 | ||
550 | __attribute__ ((__warn_unused_result__)); | |
551 | extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf") | |
552 | __attribute__ ((__warn_unused_result__)); | |
553 | extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__ , __leaf__)) | |
554 | ||
555 | ; | |
556 | # 463 "/usr/include/stdio.h" 3 4 | |
557 | ||
558 | ||
559 | ||
560 | ||
561 | ||
562 | ||
563 | ||
564 | ||
565 | extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, | |
566 | __gnuc_va_list __arg) | |
567 | __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); | |
568 | ||
569 | ||
570 | ||
571 | ||
572 | ||
573 | extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) | |
574 | __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); | |
575 | ||
576 | ||
577 | extern int vsscanf (const char *__restrict __s, | |
578 | const char *__restrict __format, __gnuc_va_list __arg) | |
579 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__format__ (__scanf__, 2, 0))); | |
580 | # 494 "/usr/include/stdio.h" 3 4 | |
581 | extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf") | |
582 | ||
583 | ||
584 | ||
585 | __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)); | |
586 | extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf") | |
587 | ||
588 | __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); | |
589 | extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__ , __leaf__)) | |
590 | ||
591 | ||
592 | ||
593 | __attribute__ ((__format__ (__scanf__, 2, 0))); | |
594 | # 522 "/usr/include/stdio.h" 3 4 | |
595 | ||
596 | ||
597 | ||
598 | ||
599 | ||
600 | ||
601 | ||
602 | ||
603 | ||
604 | extern int fgetc (FILE *__stream); | |
605 | extern int getc (FILE *__stream); | |
606 | ||
607 | ||
608 | ||
609 | ||
610 | ||
611 | extern int getchar (void); | |
612 | ||
613 | # 550 "/usr/include/stdio.h" 3 4 | |
614 | extern int getc_unlocked (FILE *__stream); | |
615 | extern int getchar_unlocked (void); | |
616 | # 561 "/usr/include/stdio.h" 3 4 | |
617 | extern int fgetc_unlocked (FILE *__stream); | |
618 | ||
619 | ||
620 | ||
621 | ||
622 | ||
623 | ||
624 | ||
625 | ||
626 | ||
627 | ||
628 | ||
629 | extern int fputc (int __c, FILE *__stream); | |
630 | extern int putc (int __c, FILE *__stream); | |
631 | ||
632 | ||
633 | ||
634 | ||
635 | ||
636 | extern int putchar (int __c); | |
637 | ||
638 | # 594 "/usr/include/stdio.h" 3 4 | |
639 | extern int fputc_unlocked (int __c, FILE *__stream); | |
640 | ||
641 | ||
642 | ||
643 | ||
644 | ||
645 | ||
646 | ||
647 | extern int putc_unlocked (int __c, FILE *__stream); | |
648 | extern int putchar_unlocked (int __c); | |
649 | ||
650 | ||
651 | ||
652 | ||
653 | ||
654 | ||
655 | extern int getw (FILE *__stream); | |
656 | ||
657 | ||
658 | extern int putw (int __w, FILE *__stream); | |
659 | ||
660 | ||
661 | ||
662 | ||
663 | ||
664 | ||
665 | ||
666 | ||
667 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | |
668 | __attribute__ ((__warn_unused_result__)); | |
669 | # 640 "/usr/include/stdio.h" 3 4 | |
670 | ||
671 | # 665 "/usr/include/stdio.h" 3 4 | |
672 | extern __ssize_t __getdelim (char **__restrict __lineptr, | |
673 | size_t *__restrict __n, int __delimiter, | |
674 | FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); | |
675 | extern __ssize_t getdelim (char **__restrict __lineptr, | |
676 | size_t *__restrict __n, int __delimiter, | |
677 | FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); | |
678 | ||
679 | ||
680 | ||
681 | ||
682 | ||
683 | ||
684 | ||
685 | extern __ssize_t getline (char **__restrict __lineptr, | |
686 | size_t *__restrict __n, | |
687 | FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); | |
688 | ||
689 | ||
690 | ||
691 | ||
692 | ||
693 | ||
694 | ||
695 | ||
696 | extern int fputs (const char *__restrict __s, FILE *__restrict __stream); | |
697 | ||
698 | ||
699 | ||
700 | ||
701 | ||
702 | extern int puts (const char *__s); | |
703 | ||
704 | ||
705 | ||
706 | ||
707 | ||
708 | ||
709 | extern int ungetc (int __c, FILE *__stream); | |
710 | ||
711 | ||
712 | ||
713 | ||
714 | ||
715 | ||
716 | extern size_t fread (void *__restrict __ptr, size_t __size, | |
717 | size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); | |
718 | ||
719 | ||
720 | ||
721 | ||
722 | extern size_t fwrite (const void *__restrict __ptr, size_t __size, | |
723 | size_t __n, FILE *__restrict __s); | |
724 | ||
725 | # 737 "/usr/include/stdio.h" 3 4 | |
726 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, | |
727 | size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); | |
728 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, | |
729 | size_t __n, FILE *__restrict __stream); | |
730 | ||
731 | ||
732 | ||
733 | ||
734 | ||
735 | ||
736 | ||
737 | ||
738 | extern int fseek (FILE *__stream, long int __off, int __whence); | |
739 | ||
740 | ||
741 | ||
742 | ||
743 | extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)); | |
744 | ||
745 | ||
746 | ||
747 | ||
748 | extern void rewind (FILE *__stream); | |
749 | ||
750 | # 773 "/usr/include/stdio.h" 3 4 | |
751 | extern int fseeko (FILE *__stream, __off_t __off, int __whence); | |
752 | ||
753 | ||
754 | ||
755 | ||
756 | extern __off_t ftello (FILE *__stream) __attribute__ ((__warn_unused_result__)); | |
757 | # 792 "/usr/include/stdio.h" 3 4 | |
758 | ||
759 | ||
760 | ||
761 | ||
762 | ||
763 | ||
764 | extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); | |
765 | ||
766 | ||
767 | ||
768 | ||
769 | extern int fsetpos (FILE *__stream, const fpos_t *__pos); | |
770 | # 815 "/usr/include/stdio.h" 3 4 | |
771 | ||
772 | # 824 "/usr/include/stdio.h" 3 4 | |
773 | ||
774 | ||
775 | extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); | |
776 | ||
777 | extern int feof (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
778 | ||
779 | extern int ferror (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
780 | ||
781 | ||
782 | ||
783 | ||
784 | extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); | |
785 | extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
786 | extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
787 | ||
788 | ||
789 | ||
790 | ||
791 | ||
792 | ||
793 | ||
794 | ||
795 | extern void perror (const char *__s); | |
796 | ||
797 | ||
798 | ||
799 | ||
800 | ||
801 | ||
802 | # 1 "/usr/include/bits/sys_errlist.h" 1 3 4 | |
803 | # 26 "/usr/include/bits/sys_errlist.h" 3 4 | |
804 | extern int sys_nerr; | |
805 | extern const char *const sys_errlist[]; | |
806 | # 854 "/usr/include/stdio.h" 2 3 4 | |
807 | ||
808 | ||
809 | ||
810 | ||
811 | extern int fileno (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
812 | ||
813 | ||
814 | ||
815 | ||
816 | extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
817 | # 872 "/usr/include/stdio.h" 3 4 | |
818 | extern FILE *popen (const char *__command, const char *__modes) __attribute__ ((__warn_unused_result__)); | |
819 | ||
820 | ||
821 | ||
822 | ||
823 | ||
824 | extern int pclose (FILE *__stream); | |
825 | ||
826 | ||
827 | ||
828 | ||
829 | ||
830 | extern char *ctermid (char *__s) __attribute__ ((__nothrow__ , __leaf__)); | |
831 | # 912 "/usr/include/stdio.h" 3 4 | |
832 | extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); | |
833 | ||
834 | ||
835 | ||
836 | extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
837 | ||
838 | ||
839 | extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); | |
840 | # 933 "/usr/include/stdio.h" 3 4 | |
841 | # 1 "/usr/include/bits/stdio.h" 1 3 4 | |
842 | # 43 "/usr/include/bits/stdio.h" 3 4 | |
843 | extern __inline __attribute__ ((__gnu_inline__)) int | |
844 | getchar (void) | |
845 | { | |
846 | return _IO_getc (stdin); | |
847 | } | |
848 | ||
849 | ||
850 | ||
851 | ||
852 | extern __inline __attribute__ ((__gnu_inline__)) int | |
853 | fgetc_unlocked (FILE *__fp) | |
854 | { | |
855 | return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); | |
856 | } | |
857 | ||
858 | ||
859 | ||
860 | ||
861 | ||
862 | extern __inline __attribute__ ((__gnu_inline__)) int | |
863 | getc_unlocked (FILE *__fp) | |
864 | { | |
865 | return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); | |
866 | } | |
867 | ||
868 | ||
869 | extern __inline __attribute__ ((__gnu_inline__)) int | |
870 | getchar_unlocked (void) | |
871 | { | |
872 | return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); | |
873 | } | |
874 | ||
875 | ||
876 | ||
877 | ||
878 | extern __inline __attribute__ ((__gnu_inline__)) int | |
879 | putchar (int __c) | |
880 | { | |
881 | return _IO_putc (__c, stdout); | |
882 | } | |
883 | ||
884 | ||
885 | ||
886 | ||
887 | extern __inline __attribute__ ((__gnu_inline__)) int | |
888 | fputc_unlocked (int __c, FILE *__stream) | |
889 | { | |
890 | return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); | |
891 | } | |
892 | ||
893 | ||
894 | ||
895 | ||
896 | ||
897 | extern __inline __attribute__ ((__gnu_inline__)) int | |
898 | putc_unlocked (int __c, FILE *__stream) | |
899 | { | |
900 | return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); | |
901 | } | |
902 | ||
903 | ||
904 | extern __inline __attribute__ ((__gnu_inline__)) int | |
905 | putchar_unlocked (int __c) | |
906 | { | |
907 | return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); | |
908 | } | |
909 | # 124 "/usr/include/bits/stdio.h" 3 4 | |
910 | extern __inline __attribute__ ((__gnu_inline__)) int | |
911 | __attribute__ ((__nothrow__ , __leaf__)) feof_unlocked (FILE *__stream) | |
912 | { | |
913 | return (((__stream)->_flags & 0x10) != 0); | |
914 | } | |
915 | ||
916 | ||
917 | extern __inline __attribute__ ((__gnu_inline__)) int | |
918 | __attribute__ ((__nothrow__ , __leaf__)) ferror_unlocked (FILE *__stream) | |
919 | { | |
920 | return (((__stream)->_flags & 0x20) != 0); | |
921 | } | |
922 | # 934 "/usr/include/stdio.h" 2 3 4 | |
923 | ||
924 | ||
925 | # 1 "/usr/include/bits/stdio2.h" 1 3 4 | |
926 | # 23 "/usr/include/bits/stdio2.h" 3 4 | |
927 | extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, | |
928 | const char *__restrict __format, ...) __attribute__ ((__nothrow__ , __leaf__)); | |
929 | extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, | |
930 | const char *__restrict __format, | |
931 | __gnuc_va_list __ap) __attribute__ ((__nothrow__ , __leaf__)); | |
932 | ||
933 | ||
934 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
935 | __attribute__ ((__nothrow__ , __leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) | |
936 | { | |
937 | return __builtin___sprintf_chk (__s, 2 - 1, | |
938 | __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ()); | |
939 | } | |
940 | ||
941 | ||
942 | ||
943 | ||
944 | ||
945 | ||
946 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
947 | __attribute__ ((__nothrow__ , __leaf__)) vsprintf (char *__restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) | |
948 | ||
949 | { | |
950 | return __builtin___vsprintf_chk (__s, 2 - 1, | |
951 | __builtin_object_size (__s, 2 > 1), __fmt, __ap); | |
952 | } | |
953 | ||
954 | ||
955 | ||
956 | extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, | |
957 | size_t __slen, const char *__restrict __format, | |
958 | ...) __attribute__ ((__nothrow__ , __leaf__)); | |
959 | extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, | |
960 | size_t __slen, const char *__restrict __format, | |
961 | __gnuc_va_list __ap) __attribute__ ((__nothrow__ , __leaf__)); | |
962 | ||
963 | ||
964 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
965 | __attribute__ ((__nothrow__ , __leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) | |
966 | ||
967 | { | |
968 | return __builtin___snprintf_chk (__s, __n, 2 - 1, | |
969 | __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ()); | |
970 | } | |
971 | ||
972 | ||
973 | ||
974 | ||
975 | ||
976 | ||
977 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
978 | __attribute__ ((__nothrow__ , __leaf__)) vsnprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) | |
979 | ||
980 | { | |
981 | return __builtin___vsnprintf_chk (__s, __n, 2 - 1, | |
982 | __builtin_object_size (__s, 2 > 1), __fmt, __ap); | |
983 | } | |
984 | ||
985 | ||
986 | ||
987 | ||
988 | ||
989 | extern int __fprintf_chk (FILE *__restrict __stream, int __flag, | |
990 | const char *__restrict __format, ...); | |
991 | extern int __printf_chk (int __flag, const char *__restrict __format, ...); | |
992 | extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, | |
993 | const char *__restrict __format, __gnuc_va_list __ap); | |
994 | extern int __vprintf_chk (int __flag, const char *__restrict __format, | |
995 | __gnuc_va_list __ap); | |
996 | ||
997 | ||
998 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
999 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | |
1000 | { | |
1001 | return __fprintf_chk (__stream, 2 - 1, __fmt, | |
1002 | __builtin_va_arg_pack ()); | |
1003 | } | |
1004 | ||
1005 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
1006 | printf (const char *__restrict __fmt, ...) | |
1007 | { | |
1008 | return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); | |
1009 | } | |
1010 | ||
1011 | ||
1012 | ||
1013 | ||
1014 | ||
1015 | ||
1016 | ||
1017 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
1018 | vprintf (const char *__restrict __fmt, __gnuc_va_list __ap) | |
1019 | { | |
1020 | ||
1021 | return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); | |
1022 | ||
1023 | ||
1024 | ||
1025 | } | |
1026 | ||
1027 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
1028 | vfprintf (FILE *__restrict __stream, | |
1029 | const char *__restrict __fmt, __gnuc_va_list __ap) | |
1030 | { | |
1031 | return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); | |
1032 | } | |
1033 | ||
1034 | ||
1035 | extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, | |
1036 | ...) __attribute__ ((__format__ (__printf__, 3, 4))); | |
1037 | extern int __vdprintf_chk (int __fd, int __flag, | |
1038 | const char *__restrict __fmt, __gnuc_va_list __arg) | |
1039 | __attribute__ ((__format__ (__printf__, 3, 0))); | |
1040 | ||
1041 | ||
1042 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
1043 | dprintf (int __fd, const char *__restrict __fmt, ...) | |
1044 | { | |
1045 | return __dprintf_chk (__fd, 2 - 1, __fmt, | |
1046 | __builtin_va_arg_pack ()); | |
1047 | } | |
1048 | ||
1049 | ||
1050 | ||
1051 | ||
1052 | ||
1053 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
1054 | vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) | |
1055 | { | |
1056 | return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); | |
1057 | } | |
1058 | # 241 "/usr/include/bits/stdio2.h" 3 4 | |
1059 | extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, | |
1060 | FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); | |
1061 | extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") | |
1062 | ||
1063 | __attribute__ ((__warn_unused_result__)); | |
1064 | extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") | |
1065 | ||
1066 | ||
1067 | __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) | |
1068 | ; | |
1069 | ||
1070 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * | |
1071 | fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | |
1072 | { | |
1073 | if (__builtin_object_size (__s, 2 > 1) != (size_t) -1) | |
1074 | { | |
1075 | if (!__builtin_constant_p (__n) || __n <= 0) | |
1076 | return __fgets_chk (__s, __builtin_object_size (__s, 2 > 1), __n, __stream); | |
1077 | ||
1078 | if ((size_t) __n > __builtin_object_size (__s, 2 > 1)) | |
1079 | return __fgets_chk_warn (__s, __builtin_object_size (__s, 2 > 1), __n, __stream); | |
1080 | } | |
1081 | return __fgets_alias (__s, __n, __stream); | |
1082 | } | |
1083 | ||
1084 | extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, | |
1085 | size_t __size, size_t __n, | |
1086 | FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); | |
1087 | extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") | |
1088 | ||
1089 | ||
1090 | __attribute__ ((__warn_unused_result__)); | |
1091 | extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") | |
1092 | ||
1093 | ||
1094 | ||
1095 | ||
1096 | __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) | |
1097 | ; | |
1098 | ||
1099 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t | |
1100 | fread (void *__restrict __ptr, size_t __size, size_t __n, | |
1101 | FILE *__restrict __stream) | |
1102 | { | |
1103 | if (__builtin_object_size (__ptr, 0) != (size_t) -1) | |
1104 | { | |
1105 | if (!__builtin_constant_p (__size) | |
1106 | || !__builtin_constant_p (__n) | |
1107 | || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2))) | |
1108 | return __fread_chk (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream); | |
1109 | ||
1110 | if (__size * __n > __builtin_object_size (__ptr, 0)) | |
1111 | return __fread_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream); | |
1112 | } | |
1113 | return __fread_alias (__ptr, __size, __n, __stream); | |
1114 | } | |
1115 | # 327 "/usr/include/bits/stdio2.h" 3 4 | |
1116 | extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, | |
1117 | size_t __size, size_t __n, | |
1118 | FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); | |
1119 | extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") | |
1120 | ||
1121 | ||
1122 | __attribute__ ((__warn_unused_result__)); | |
1123 | extern size_t __fread_unlocked_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_unlocked_chk") | |
1124 | ||
1125 | ||
1126 | ||
1127 | ||
1128 | __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) | |
1129 | ; | |
1130 | ||
1131 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t | |
1132 | fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, | |
1133 | FILE *__restrict __stream) | |
1134 | { | |
1135 | if (__builtin_object_size (__ptr, 0) != (size_t) -1) | |
1136 | { | |
1137 | if (!__builtin_constant_p (__size) | |
1138 | || !__builtin_constant_p (__n) | |
1139 | || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2))) | |
1140 | return __fread_unlocked_chk (__ptr, __builtin_object_size (__ptr, 0), __size, __n, | |
1141 | __stream); | |
1142 | ||
1143 | if (__size * __n > __builtin_object_size (__ptr, 0)) | |
1144 | return __fread_unlocked_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n, | |
1145 | __stream); | |
1146 | } | |
1147 | ||
1148 | ||
1149 | if (__builtin_constant_p (__size) | |
1150 | && __builtin_constant_p (__n) | |
1151 | && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) | |
1152 | && __size * __n <= 8) | |
1153 | { | |
1154 | size_t __cnt = __size * __n; | |
1155 | char *__cptr = (char *) __ptr; | |
1156 | if (__cnt == 0) | |
1157 | return 0; | |
1158 | ||
1159 | for (; __cnt > 0; --__cnt) | |
1160 | { | |
1161 | int __c = (__builtin_expect (((__stream)->_IO_read_ptr >= (__stream)->_IO_read_end), 0) ? __uflow (__stream) : *(unsigned char *) (__stream)->_IO_read_ptr++); | |
1162 | if (__c == (-1)) | |
1163 | break; | |
1164 | *__cptr++ = __c; | |
1165 | } | |
1166 | return (__cptr - (char *) __ptr) / __size; | |
1167 | } | |
1168 | ||
1169 | return __fread_unlocked_alias (__ptr, __size, __n, __stream); | |
1170 | } | |
1171 | # 937 "/usr/include/stdio.h" 2 3 4 | |
1172 | ||
1173 | ||
1174 | ||
1175 | ||
1176 | ||
1177 | ||
1178 | # 56 "writepart.c" 2 | |
1179 | # 1 "/usr/include/stdlib.h" 1 3 4 | |
1180 | # 32 "/usr/include/stdlib.h" 3 4 | |
1181 | # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h" 1 3 4 | |
1182 | # 328 "/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h" 3 4 | |
1183 | typedef int wchar_t; | |
1184 | # 33 "/usr/include/stdlib.h" 2 3 4 | |
1185 | ||
1186 | ||
1187 | ||
1188 | ||
1189 | ||
1190 | ||
1191 | ||
1192 | ||
1193 | # 1 "/usr/include/bits/waitflags.h" 1 3 4 | |
1194 | # 42 "/usr/include/stdlib.h" 2 3 4 | |
1195 | # 1 "/usr/include/bits/waitstatus.h" 1 3 4 | |
1196 | # 64 "/usr/include/bits/waitstatus.h" 3 4 | |
1197 | # 1 "/usr/include/endian.h" 1 3 4 | |
1198 | # 36 "/usr/include/endian.h" 3 4 | |
1199 | # 1 "/usr/include/bits/endian.h" 1 3 4 | |
1200 | # 37 "/usr/include/endian.h" 2 3 4 | |
1201 | # 60 "/usr/include/endian.h" 3 4 | |
1202 | # 1 "/usr/include/bits/byteswap.h" 1 3 4 | |
1203 | # 28 "/usr/include/bits/byteswap.h" 3 4 | |
1204 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
1205 | # 29 "/usr/include/bits/byteswap.h" 2 3 4 | |
1206 | ||
1207 | ||
1208 | ||
1209 | ||
1210 | ||
1211 | ||
1212 | # 1 "/usr/include/bits/byteswap-16.h" 1 3 4 | |
1213 | # 36 "/usr/include/bits/byteswap.h" 2 3 4 | |
1214 | # 44 "/usr/include/bits/byteswap.h" 3 4 | |
1215 | static __inline unsigned int | |
1216 | __bswap_32 (unsigned int __bsx) | |
1217 | { | |
1218 | return __builtin_bswap32 (__bsx); | |
1219 | } | |
1220 | # 108 "/usr/include/bits/byteswap.h" 3 4 | |
1221 | static __inline __uint64_t | |
1222 | __bswap_64 (__uint64_t __bsx) | |
1223 | { | |
1224 | return __builtin_bswap64 (__bsx); | |
1225 | } | |
1226 | # 61 "/usr/include/endian.h" 2 3 4 | |
1227 | # 65 "/usr/include/bits/waitstatus.h" 2 3 4 | |
1228 | ||
1229 | union wait | |
1230 | { | |
1231 | int w_status; | |
1232 | struct | |
1233 | { | |
1234 | ||
1235 | unsigned int __w_termsig:7; | |
1236 | unsigned int __w_coredump:1; | |
1237 | unsigned int __w_retcode:8; | |
1238 | unsigned int:16; | |
1239 | ||
1240 | ||
1241 | ||
1242 | ||
1243 | ||
1244 | ||
1245 | ||
1246 | } __wait_terminated; | |
1247 | struct | |
1248 | { | |
1249 | ||
1250 | unsigned int __w_stopval:8; | |
1251 | unsigned int __w_stopsig:8; | |
1252 | unsigned int:16; | |
1253 | ||
1254 | ||
1255 | ||
1256 | ||
1257 | ||
1258 | ||
1259 | } __wait_stopped; | |
1260 | }; | |
1261 | # 43 "/usr/include/stdlib.h" 2 3 4 | |
1262 | # 67 "/usr/include/stdlib.h" 3 4 | |
1263 | typedef union | |
1264 | { | |
1265 | union wait *__uptr; | |
1266 | int *__iptr; | |
1267 | } __WAIT_STATUS __attribute__ ((__transparent_union__)); | |
1268 | # 95 "/usr/include/stdlib.h" 3 4 | |
1269 | ||
1270 | ||
1271 | typedef struct | |
1272 | { | |
1273 | int quot; | |
1274 | int rem; | |
1275 | } div_t; | |
1276 | ||
1277 | ||
1278 | ||
1279 | typedef struct | |
1280 | { | |
1281 | long int quot; | |
1282 | long int rem; | |
1283 | } ldiv_t; | |
1284 | ||
1285 | ||
1286 | ||
1287 | ||
1288 | ||
1289 | ||
1290 | ||
1291 | __extension__ typedef struct | |
1292 | { | |
1293 | long long int quot; | |
1294 | long long int rem; | |
1295 | } lldiv_t; | |
1296 | ||
1297 | ||
1298 | # 139 "/usr/include/stdlib.h" 3 4 | |
1299 | extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | extern double atof (const char *__nptr) | |
1305 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
1306 | ||
1307 | extern int atoi (const char *__nptr) | |
1308 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
1309 | ||
1310 | extern long int atol (const char *__nptr) | |
1311 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | __extension__ extern long long int atoll (const char *__nptr) | |
1318 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | extern double strtod (const char *__restrict __nptr, | |
1325 | char **__restrict __endptr) | |
1326 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | extern float strtof (const char *__restrict __nptr, | |
1333 | char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1334 | ||
1335 | extern long double strtold (const char *__restrict __nptr, | |
1336 | char **__restrict __endptr) | |
1337 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1338 | ||
1339 | ||
1340 | ||
1341 | ||
1342 | ||
1343 | extern long int strtol (const char *__restrict __nptr, | |
1344 | char **__restrict __endptr, int __base) | |
1345 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1346 | ||
1347 | extern unsigned long int strtoul (const char *__restrict __nptr, | |
1348 | char **__restrict __endptr, int __base) | |
1349 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1350 | ||
1351 | ||
1352 | ||
1353 | ||
1354 | __extension__ | |
1355 | extern long long int strtoq (const char *__restrict __nptr, | |
1356 | char **__restrict __endptr, int __base) | |
1357 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1358 | ||
1359 | __extension__ | |
1360 | extern unsigned long long int strtouq (const char *__restrict __nptr, | |
1361 | char **__restrict __endptr, int __base) | |
1362 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1363 | ||
1364 | ||
1365 | ||
1366 | ||
1367 | ||
1368 | __extension__ | |
1369 | extern long long int strtoll (const char *__restrict __nptr, | |
1370 | char **__restrict __endptr, int __base) | |
1371 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1372 | ||
1373 | __extension__ | |
1374 | extern unsigned long long int strtoull (const char *__restrict __nptr, | |
1375 | char **__restrict __endptr, int __base) | |
1376 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1377 | ||
1378 | # 276 "/usr/include/stdlib.h" 3 4 | |
1379 | ||
1380 | extern __inline __attribute__ ((__gnu_inline__)) int | |
1381 | __attribute__ ((__nothrow__ , __leaf__)) atoi (const char *__nptr) | |
1382 | { | |
1383 | return (int) strtol (__nptr, (char **) ((void *)0), 10); | |
1384 | } | |
1385 | extern __inline __attribute__ ((__gnu_inline__)) long int | |
1386 | __attribute__ ((__nothrow__ , __leaf__)) atol (const char *__nptr) | |
1387 | { | |
1388 | return strtol (__nptr, (char **) ((void *)0), 10); | |
1389 | } | |
1390 | ||
1391 | ||
1392 | ||
1393 | ||
1394 | __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int | |
1395 | __attribute__ ((__nothrow__ , __leaf__)) atoll (const char *__nptr) | |
1396 | { | |
1397 | return strtoll (__nptr, (char **) ((void *)0), 10); | |
1398 | } | |
1399 | ||
1400 | # 305 "/usr/include/stdlib.h" 3 4 | |
1401 | extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
1402 | ||
1403 | ||
1404 | extern long int a64l (const char *__s) | |
1405 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
1406 | ||
1407 | ||
1408 | ||
1409 | ||
1410 | # 1 "/usr/include/sys/types.h" 1 3 4 | |
1411 | # 27 "/usr/include/sys/types.h" 3 4 | |
1412 | ||
1413 | ||
1414 | ||
1415 | ||
1416 | ||
1417 | ||
1418 | typedef __u_char u_char; | |
1419 | typedef __u_short u_short; | |
1420 | typedef __u_int u_int; | |
1421 | typedef __u_long u_long; | |
1422 | typedef __quad_t quad_t; | |
1423 | typedef __u_quad_t u_quad_t; | |
1424 | typedef __fsid_t fsid_t; | |
1425 | ||
1426 | ||
1427 | ||
1428 | ||
1429 | typedef __loff_t loff_t; | |
1430 | ||
1431 | ||
1432 | ||
1433 | typedef __ino_t ino_t; | |
1434 | # 60 "/usr/include/sys/types.h" 3 4 | |
1435 | typedef __dev_t dev_t; | |
1436 | ||
1437 | ||
1438 | ||
1439 | ||
1440 | typedef __gid_t gid_t; | |
1441 | ||
1442 | ||
1443 | ||
1444 | ||
1445 | typedef __mode_t mode_t; | |
1446 | ||
1447 | ||
1448 | ||
1449 | ||
1450 | typedef __nlink_t nlink_t; | |
1451 | ||
1452 | ||
1453 | ||
1454 | ||
1455 | typedef __uid_t uid_t; | |
1456 | # 98 "/usr/include/sys/types.h" 3 4 | |
1457 | typedef __pid_t pid_t; | |
1458 | ||
1459 | ||
1460 | ||
1461 | ||
1462 | ||
1463 | typedef __id_t id_t; | |
1464 | # 115 "/usr/include/sys/types.h" 3 4 | |
1465 | typedef __daddr_t daddr_t; | |
1466 | typedef __caddr_t caddr_t; | |
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | typedef __key_t key_t; | |
1473 | # 132 "/usr/include/sys/types.h" 3 4 | |
1474 | # 1 "/usr/include/time.h" 1 3 4 | |
1475 | # 57 "/usr/include/time.h" 3 4 | |
1476 | ||
1477 | ||
1478 | typedef __clock_t clock_t; | |
1479 | ||
1480 | ||
1481 | ||
1482 | # 73 "/usr/include/time.h" 3 4 | |
1483 | ||
1484 | ||
1485 | typedef __time_t time_t; | |
1486 | ||
1487 | ||
1488 | ||
1489 | # 91 "/usr/include/time.h" 3 4 | |
1490 | typedef __clockid_t clockid_t; | |
1491 | # 103 "/usr/include/time.h" 3 4 | |
1492 | typedef __timer_t timer_t; | |
1493 | # 133 "/usr/include/sys/types.h" 2 3 4 | |
1494 | # 146 "/usr/include/sys/types.h" 3 4 | |
1495 | # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h" 1 3 4 | |
1496 | # 147 "/usr/include/sys/types.h" 2 3 4 | |
1497 | ||
1498 | ||
1499 | ||
1500 | typedef unsigned long int ulong; | |
1501 | typedef unsigned short int ushort; | |
1502 | typedef unsigned int uint; | |
1503 | # 194 "/usr/include/sys/types.h" 3 4 | |
1504 | typedef int int8_t __attribute__ ((__mode__ (__QI__))); | |
1505 | typedef int int16_t __attribute__ ((__mode__ (__HI__))); | |
1506 | typedef int int32_t __attribute__ ((__mode__ (__SI__))); | |
1507 | typedef int int64_t __attribute__ ((__mode__ (__DI__))); | |
1508 | ||
1509 | ||
1510 | typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); | |
1511 | typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); | |
1512 | typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); | |
1513 | typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); | |
1514 | ||
1515 | typedef int register_t __attribute__ ((__mode__ (__word__))); | |
1516 | # 219 "/usr/include/sys/types.h" 3 4 | |
1517 | # 1 "/usr/include/sys/select.h" 1 3 4 | |
1518 | # 30 "/usr/include/sys/select.h" 3 4 | |
1519 | # 1 "/usr/include/bits/select.h" 1 3 4 | |
1520 | # 22 "/usr/include/bits/select.h" 3 4 | |
1521 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
1522 | # 23 "/usr/include/bits/select.h" 2 3 4 | |
1523 | # 31 "/usr/include/sys/select.h" 2 3 4 | |
1524 | ||
1525 | ||
1526 | # 1 "/usr/include/bits/sigset.h" 1 3 4 | |
1527 | # 22 "/usr/include/bits/sigset.h" 3 4 | |
1528 | typedef int __sig_atomic_t; | |
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | typedef struct | |
1534 | { | |
1535 | unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; | |
1536 | } __sigset_t; | |
1537 | # 34 "/usr/include/sys/select.h" 2 3 4 | |
1538 | ||
1539 | ||
1540 | ||
1541 | typedef __sigset_t sigset_t; | |
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | # 1 "/usr/include/time.h" 1 3 4 | |
1548 | # 120 "/usr/include/time.h" 3 4 | |
1549 | struct timespec | |
1550 | { | |
1551 | __time_t tv_sec; | |
1552 | __syscall_slong_t tv_nsec; | |
1553 | }; | |
1554 | # 44 "/usr/include/sys/select.h" 2 3 4 | |
1555 | ||
1556 | # 1 "/usr/include/bits/time.h" 1 3 4 | |
1557 | # 30 "/usr/include/bits/time.h" 3 4 | |
1558 | struct timeval | |
1559 | { | |
1560 | __time_t tv_sec; | |
1561 | __suseconds_t tv_usec; | |
1562 | }; | |
1563 | # 46 "/usr/include/sys/select.h" 2 3 4 | |
1564 | ||
1565 | ||
1566 | typedef __suseconds_t suseconds_t; | |
1567 | ||
1568 | ||
1569 | ||
1570 | ||
1571 | ||
1572 | typedef long int __fd_mask; | |
1573 | # 64 "/usr/include/sys/select.h" 3 4 | |
1574 | typedef struct | |
1575 | { | |
1576 | ||
1577 | ||
1578 | ||
1579 | ||
1580 | ||
1581 | ||
1582 | __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; | |
1583 | ||
1584 | ||
1585 | } fd_set; | |
1586 | ||
1587 | ||
1588 | ||
1589 | ||
1590 | ||
1591 | ||
1592 | typedef __fd_mask fd_mask; | |
1593 | # 96 "/usr/include/sys/select.h" 3 4 | |
1594 | ||
1595 | # 106 "/usr/include/sys/select.h" 3 4 | |
1596 | extern int select (int __nfds, fd_set *__restrict __readfds, | |
1597 | fd_set *__restrict __writefds, | |
1598 | fd_set *__restrict __exceptfds, | |
1599 | struct timeval *__restrict __timeout); | |
1600 | # 118 "/usr/include/sys/select.h" 3 4 | |
1601 | extern int pselect (int __nfds, fd_set *__restrict __readfds, | |
1602 | fd_set *__restrict __writefds, | |
1603 | fd_set *__restrict __exceptfds, | |
1604 | const struct timespec *__restrict __timeout, | |
1605 | const __sigset_t *__restrict __sigmask); | |
1606 | ||
1607 | ||
1608 | ||
1609 | ||
1610 | ||
1611 | # 1 "/usr/include/bits/select2.h" 1 3 4 | |
1612 | # 24 "/usr/include/bits/select2.h" 3 4 | |
1613 | extern long int __fdelt_chk (long int __d); | |
1614 | extern long int __fdelt_warn (long int __d) | |
1615 | __attribute__((__warning__ ("bit outside of fd_set selected"))); | |
1616 | # 129 "/usr/include/sys/select.h" 2 3 4 | |
1617 | ||
1618 | ||
1619 | ||
1620 | # 220 "/usr/include/sys/types.h" 2 3 4 | |
1621 | ||
1622 | ||
1623 | # 1 "/usr/include/sys/sysmacros.h" 1 3 4 | |
1624 | # 24 "/usr/include/sys/sysmacros.h" 3 4 | |
1625 | ||
1626 | ||
1627 | __extension__ | |
1628 | extern unsigned int gnu_dev_major (unsigned long long int __dev) | |
1629 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); | |
1630 | __extension__ | |
1631 | extern unsigned int gnu_dev_minor (unsigned long long int __dev) | |
1632 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); | |
1633 | __extension__ | |
1634 | extern unsigned long long int gnu_dev_makedev (unsigned int __major, | |
1635 | unsigned int __minor) | |
1636 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); | |
1637 | ||
1638 | ||
1639 | __extension__ extern __inline __attribute__ ((__gnu_inline__)) __attribute__ ((__const__)) unsigned int | |
1640 | __attribute__ ((__nothrow__ , __leaf__)) gnu_dev_major (unsigned long long int __dev) | |
1641 | { | |
1642 | return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); | |
1643 | } | |
1644 | ||
1645 | __extension__ extern __inline __attribute__ ((__gnu_inline__)) __attribute__ ((__const__)) unsigned int | |
1646 | __attribute__ ((__nothrow__ , __leaf__)) gnu_dev_minor (unsigned long long int __dev) | |
1647 | { | |
1648 | return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); | |
1649 | } | |
1650 | ||
1651 | __extension__ extern __inline __attribute__ ((__gnu_inline__)) __attribute__ ((__const__)) unsigned long long int | |
1652 | __attribute__ ((__nothrow__ , __leaf__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor) | |
1653 | { | |
1654 | return ((__minor & 0xff) | ((__major & 0xfff) << 8) | |
1655 | | (((unsigned long long int) (__minor & ~0xff)) << 12) | |
1656 | | (((unsigned long long int) (__major & ~0xfff)) << 32)); | |
1657 | } | |
1658 | ||
1659 | ||
1660 | # 223 "/usr/include/sys/types.h" 2 3 4 | |
1661 | ||
1662 | ||
1663 | ||
1664 | ||
1665 | ||
1666 | typedef __blksize_t blksize_t; | |
1667 | ||
1668 | ||
1669 | ||
1670 | ||
1671 | ||
1672 | ||
1673 | typedef __blkcnt_t blkcnt_t; | |
1674 | ||
1675 | ||
1676 | ||
1677 | typedef __fsblkcnt_t fsblkcnt_t; | |
1678 | ||
1679 | ||
1680 | ||
1681 | typedef __fsfilcnt_t fsfilcnt_t; | |
1682 | # 270 "/usr/include/sys/types.h" 3 4 | |
1683 | # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 | |
1684 | # 21 "/usr/include/bits/pthreadtypes.h" 3 4 | |
1685 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
1686 | # 22 "/usr/include/bits/pthreadtypes.h" 2 3 4 | |
1687 | # 60 "/usr/include/bits/pthreadtypes.h" 3 4 | |
1688 | typedef unsigned long int pthread_t; | |
1689 | ||
1690 | ||
1691 | union pthread_attr_t | |
1692 | { | |
1693 | char __size[56]; | |
1694 | long int __align; | |
1695 | }; | |
1696 | ||
1697 | typedef union pthread_attr_t pthread_attr_t; | |
1698 | ||
1699 | ||
1700 | ||
1701 | ||
1702 | ||
1703 | typedef struct __pthread_internal_list | |
1704 | { | |
1705 | struct __pthread_internal_list *__prev; | |
1706 | struct __pthread_internal_list *__next; | |
1707 | } __pthread_list_t; | |
1708 | # 90 "/usr/include/bits/pthreadtypes.h" 3 4 | |
1709 | typedef union | |
1710 | { | |
1711 | struct __pthread_mutex_s | |
1712 | { | |
1713 | int __lock; | |
1714 | unsigned int __count; | |
1715 | int __owner; | |
1716 | ||
1717 | unsigned int __nusers; | |
1718 | ||
1719 | ||
1720 | ||
1721 | int __kind; | |
1722 | ||
1723 | short __spins; | |
1724 | short __elision; | |
1725 | __pthread_list_t __list; | |
1726 | # 125 "/usr/include/bits/pthreadtypes.h" 3 4 | |
1727 | } __data; | |
1728 | char __size[40]; | |
1729 | long int __align; | |
1730 | } pthread_mutex_t; | |
1731 | ||
1732 | typedef union | |
1733 | { | |
1734 | char __size[4]; | |
1735 | int __align; | |
1736 | } pthread_mutexattr_t; | |
1737 | ||
1738 | ||
1739 | ||
1740 | ||
1741 | typedef union | |
1742 | { | |
1743 | struct | |
1744 | { | |
1745 | int __lock; | |
1746 | unsigned int __futex; | |
1747 | __extension__ unsigned long long int __total_seq; | |
1748 | __extension__ unsigned long long int __wakeup_seq; | |
1749 | __extension__ unsigned long long int __woken_seq; | |
1750 | void *__mutex; | |
1751 | unsigned int __nwaiters; | |
1752 | unsigned int __broadcast_seq; | |
1753 | } __data; | |
1754 | char __size[48]; | |
1755 | __extension__ long long int __align; | |
1756 | } pthread_cond_t; | |
1757 | ||
1758 | typedef union | |
1759 | { | |
1760 | char __size[4]; | |
1761 | int __align; | |
1762 | } pthread_condattr_t; | |
1763 | ||
1764 | ||
1765 | ||
1766 | typedef unsigned int pthread_key_t; | |
1767 | ||
1768 | ||
1769 | ||
1770 | typedef int pthread_once_t; | |
1771 | ||
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | typedef union | |
1777 | { | |
1778 | ||
1779 | struct | |
1780 | { | |
1781 | int __lock; | |
1782 | unsigned int __nr_readers; | |
1783 | unsigned int __readers_wakeup; | |
1784 | unsigned int __writer_wakeup; | |
1785 | unsigned int __nr_readers_queued; | |
1786 | unsigned int __nr_writers_queued; | |
1787 | int __writer; | |
1788 | int __shared; | |
1789 | signed char __rwelision; | |
1790 | ||
1791 | ||
1792 | ||
1793 | ||
1794 | unsigned char __pad1[7]; | |
1795 | ||
1796 | ||
1797 | unsigned long int __pad2; | |
1798 | ||
1799 | ||
1800 | unsigned int __flags; | |
1801 | ||
1802 | } __data; | |
1803 | # 220 "/usr/include/bits/pthreadtypes.h" 3 4 | |
1804 | char __size[56]; | |
1805 | long int __align; | |
1806 | } pthread_rwlock_t; | |
1807 | ||
1808 | typedef union | |
1809 | { | |
1810 | char __size[8]; | |
1811 | long int __align; | |
1812 | } pthread_rwlockattr_t; | |
1813 | ||
1814 | ||
1815 | ||
1816 | ||
1817 | ||
1818 | typedef volatile int pthread_spinlock_t; | |
1819 | ||
1820 | ||
1821 | ||
1822 | ||
1823 | typedef union | |
1824 | { | |
1825 | char __size[32]; | |
1826 | long int __align; | |
1827 | } pthread_barrier_t; | |
1828 | ||
1829 | typedef union | |
1830 | { | |
1831 | char __size[4]; | |
1832 | int __align; | |
1833 | } pthread_barrierattr_t; | |
1834 | # 271 "/usr/include/sys/types.h" 2 3 4 | |
1835 | ||
1836 | ||
1837 | ||
1838 | # 315 "/usr/include/stdlib.h" 2 3 4 | |
1839 | ||
1840 | ||
1841 | ||
1842 | ||
1843 | ||
1844 | ||
1845 | extern long int random (void) __attribute__ ((__nothrow__ , __leaf__)); | |
1846 | ||
1847 | ||
1848 | extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); | |
1849 | ||
1850 | ||
1851 | ||
1852 | ||
1853 | ||
1854 | extern char *initstate (unsigned int __seed, char *__statebuf, | |
1855 | size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); | |
1856 | ||
1857 | ||
1858 | ||
1859 | extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1860 | ||
1861 | ||
1862 | ||
1863 | ||
1864 | ||
1865 | ||
1866 | ||
1867 | struct random_data | |
1868 | { | |
1869 | int32_t *fptr; | |
1870 | int32_t *rptr; | |
1871 | int32_t *state; | |
1872 | int rand_type; | |
1873 | int rand_deg; | |
1874 | int rand_sep; | |
1875 | int32_t *end_ptr; | |
1876 | }; | |
1877 | ||
1878 | extern int random_r (struct random_data *__restrict __buf, | |
1879 | int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
1880 | ||
1881 | extern int srandom_r (unsigned int __seed, struct random_data *__buf) | |
1882 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); | |
1883 | ||
1884 | extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, | |
1885 | size_t __statelen, | |
1886 | struct random_data *__restrict __buf) | |
1887 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); | |
1888 | ||
1889 | extern int setstate_r (char *__restrict __statebuf, | |
1890 | struct random_data *__restrict __buf) | |
1891 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
1892 | ||
1893 | ||
1894 | ||
1895 | ||
1896 | ||
1897 | ||
1898 | extern int rand (void) __attribute__ ((__nothrow__ , __leaf__)); | |
1899 | ||
1900 | extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__)); | |
1901 | ||
1902 | ||
1903 | ||
1904 | ||
1905 | extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__)); | |
1906 | ||
1907 | ||
1908 | ||
1909 | ||
1910 | ||
1911 | ||
1912 | ||
1913 | extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__)); | |
1914 | extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1915 | ||
1916 | ||
1917 | extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); | |
1918 | extern long int nrand48 (unsigned short int __xsubi[3]) | |
1919 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1920 | ||
1921 | ||
1922 | extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); | |
1923 | extern long int jrand48 (unsigned short int __xsubi[3]) | |
1924 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1925 | ||
1926 | ||
1927 | extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); | |
1928 | extern unsigned short int *seed48 (unsigned short int __seed16v[3]) | |
1929 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1930 | extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
1931 | ||
1932 | ||
1933 | ||
1934 | ||
1935 | ||
1936 | struct drand48_data | |
1937 | { | |
1938 | unsigned short int __x[3]; | |
1939 | unsigned short int __old_x[3]; | |
1940 | unsigned short int __c; | |
1941 | unsigned short int __init; | |
1942 | __extension__ unsigned long long int __a; | |
1943 | ||
1944 | }; | |
1945 | ||
1946 | ||
1947 | extern int drand48_r (struct drand48_data *__restrict __buffer, | |
1948 | double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
1949 | extern int erand48_r (unsigned short int __xsubi[3], | |
1950 | struct drand48_data *__restrict __buffer, | |
1951 | double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
1952 | ||
1953 | ||
1954 | extern int lrand48_r (struct drand48_data *__restrict __buffer, | |
1955 | long int *__restrict __result) | |
1956 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
1957 | extern int nrand48_r (unsigned short int __xsubi[3], | |
1958 | struct drand48_data *__restrict __buffer, | |
1959 | long int *__restrict __result) | |
1960 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
1961 | ||
1962 | ||
1963 | extern int mrand48_r (struct drand48_data *__restrict __buffer, | |
1964 | long int *__restrict __result) | |
1965 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
1966 | extern int jrand48_r (unsigned short int __xsubi[3], | |
1967 | struct drand48_data *__restrict __buffer, | |
1968 | long int *__restrict __result) | |
1969 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
1970 | ||
1971 | ||
1972 | extern int srand48_r (long int __seedval, struct drand48_data *__buffer) | |
1973 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); | |
1974 | ||
1975 | extern int seed48_r (unsigned short int __seed16v[3], | |
1976 | struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
1977 | ||
1978 | extern int lcong48_r (unsigned short int __param[7], | |
1979 | struct drand48_data *__buffer) | |
1980 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
1981 | ||
1982 | ||
1983 | ||
1984 | ||
1985 | ||
1986 | ||
1987 | ||
1988 | ||
1989 | ||
1990 | extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); | |
1991 | ||
1992 | extern void *calloc (size_t __nmemb, size_t __size) | |
1993 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); | |
1994 | ||
1995 | ||
1996 | ||
1997 | ||
1998 | ||
1999 | ||
2000 | ||
2001 | ||
2002 | ||
2003 | ||
2004 | extern void *realloc (void *__ptr, size_t __size) | |
2005 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
2006 | ||
2007 | extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); | |
2008 | ||
2009 | ||
2010 | ||
2011 | ||
2012 | extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__)); | |
2013 | ||
2014 | ||
2015 | ||
2016 | # 1 "/usr/include/alloca.h" 1 3 4 | |
2017 | # 24 "/usr/include/alloca.h" 3 4 | |
2018 | # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h" 1 3 4 | |
2019 | # 25 "/usr/include/alloca.h" 2 3 4 | |
2020 | ||
2021 | ||
2022 | ||
2023 | ||
2024 | ||
2025 | ||
2026 | ||
2027 | extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__)); | |
2028 | ||
2029 | ||
2030 | ||
2031 | ||
2032 | ||
2033 | ||
2034 | # 493 "/usr/include/stdlib.h" 2 3 4 | |
2035 | ||
2036 | ||
2037 | ||
2038 | ||
2039 | ||
2040 | extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); | |
2041 | ||
2042 | ||
2043 | ||
2044 | ||
2045 | extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) | |
2046 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
2047 | ||
2048 | ||
2049 | ||
2050 | ||
2051 | extern void *aligned_alloc (size_t __alignment, size_t __size) | |
2052 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); | |
2053 | ||
2054 | ||
2055 | ||
2056 | ||
2057 | extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); | |
2058 | ||
2059 | ||
2060 | ||
2061 | extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
2062 | ||
2063 | ||
2064 | ||
2065 | ||
2066 | ||
2067 | ||
2068 | ||
2069 | extern int at_quick_exit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
2070 | ||
2071 | ||
2072 | ||
2073 | ||
2074 | ||
2075 | ||
2076 | ||
2077 | extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) | |
2078 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
2079 | ||
2080 | ||
2081 | ||
2082 | ||
2083 | ||
2084 | ||
2085 | extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); | |
2086 | ||
2087 | ||
2088 | ||
2089 | ||
2090 | ||
2091 | extern void quick_exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); | |
2092 | ||
2093 | ||
2094 | ||
2095 | ||
2096 | ||
2097 | ||
2098 | ||
2099 | extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); | |
2100 | ||
2101 | ||
2102 | ||
2103 | ||
2104 | ||
2105 | ||
2106 | extern char *getenv (const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
2107 | ||
2108 | # 578 "/usr/include/stdlib.h" 3 4 | |
2109 | extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
2110 | ||
2111 | ||
2112 | ||
2113 | ||
2114 | ||
2115 | extern int setenv (const char *__name, const char *__value, int __replace) | |
2116 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); | |
2117 | ||
2118 | ||
2119 | extern int unsetenv (const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
2120 | ||
2121 | ||
2122 | ||
2123 | ||
2124 | ||
2125 | ||
2126 | extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__)); | |
2127 | # 606 "/usr/include/stdlib.h" 3 4 | |
2128 | extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
2129 | # 619 "/usr/include/stdlib.h" 3 4 | |
2130 | extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
2131 | # 641 "/usr/include/stdlib.h" 3 4 | |
2132 | extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
2133 | # 662 "/usr/include/stdlib.h" 3 4 | |
2134 | extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
2135 | # 711 "/usr/include/stdlib.h" 3 4 | |
2136 | ||
2137 | ||
2138 | ||
2139 | ||
2140 | ||
2141 | extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); | |
2142 | ||
2143 | # 733 "/usr/include/stdlib.h" 3 4 | |
2144 | extern char *realpath (const char *__restrict __name, | |
2145 | char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
2146 | ||
2147 | ||
2148 | ||
2149 | ||
2150 | ||
2151 | ||
2152 | typedef int (*__compar_fn_t) (const void *, const void *); | |
2153 | # 751 "/usr/include/stdlib.h" 3 4 | |
2154 | ||
2155 | ||
2156 | ||
2157 | extern void *bsearch (const void *__key, const void *__base, | |
2158 | size_t __nmemb, size_t __size, __compar_fn_t __compar) | |
2159 | __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); | |
2160 | ||
2161 | ||
2162 | # 1 "/usr/include/bits/stdlib-bsearch.h" 1 3 4 | |
2163 | # 19 "/usr/include/bits/stdlib-bsearch.h" 3 4 | |
2164 | extern __inline __attribute__ ((__gnu_inline__)) void * | |
2165 | bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, | |
2166 | __compar_fn_t __compar) | |
2167 | { | |
2168 | size_t __l, __u, __idx; | |
2169 | const void *__p; | |
2170 | int __comparison; | |
2171 | ||
2172 | __l = 0; | |
2173 | __u = __nmemb; | |
2174 | while (__l < __u) | |
2175 | { | |
2176 | __idx = (__l + __u) / 2; | |
2177 | __p = (void *) (((const char *) __base) + (__idx * __size)); | |
2178 | __comparison = (*__compar) (__key, __p); | |
2179 | if (__comparison < 0) | |
2180 | __u = __idx; | |
2181 | else if (__comparison > 0) | |
2182 | __l = __idx + 1; | |
2183 | else | |
2184 | return (void *) __p; | |
2185 | } | |
2186 | ||
2187 | return ((void *)0); | |
2188 | } | |
2189 | # 760 "/usr/include/stdlib.h" 2 3 4 | |
2190 | ||
2191 | ||
2192 | ||
2193 | ||
2194 | extern void qsort (void *__base, size_t __nmemb, size_t __size, | |
2195 | __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); | |
2196 | # 774 "/usr/include/stdlib.h" 3 4 | |
2197 | extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); | |
2198 | extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); | |
2199 | ||
2200 | ||
2201 | ||
2202 | __extension__ extern long long int llabs (long long int __x) | |
2203 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); | |
2204 | ||
2205 | ||
2206 | ||
2207 | ||
2208 | ||
2209 | ||
2210 | ||
2211 | extern div_t div (int __numer, int __denom) | |
2212 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); | |
2213 | extern ldiv_t ldiv (long int __numer, long int __denom) | |
2214 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); | |
2215 | ||
2216 | ||
2217 | ||
2218 | ||
2219 | __extension__ extern lldiv_t lldiv (long long int __numer, | |
2220 | long long int __denom) | |
2221 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); | |
2222 | ||
2223 | # 811 "/usr/include/stdlib.h" 3 4 | |
2224 | extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, | |
2225 | int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); | |
2226 | ||
2227 | ||
2228 | ||
2229 | ||
2230 | extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, | |
2231 | int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); | |
2232 | ||
2233 | ||
2234 | ||
2235 | ||
2236 | extern char *gcvt (double __value, int __ndigit, char *__buf) | |
2237 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); | |
2238 | ||
2239 | ||
2240 | ||
2241 | ||
2242 | extern char *qecvt (long double __value, int __ndigit, | |
2243 | int *__restrict __decpt, int *__restrict __sign) | |
2244 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); | |
2245 | extern char *qfcvt (long double __value, int __ndigit, | |
2246 | int *__restrict __decpt, int *__restrict __sign) | |
2247 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); | |
2248 | extern char *qgcvt (long double __value, int __ndigit, char *__buf) | |
2249 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); | |
2250 | ||
2251 | ||
2252 | ||
2253 | ||
2254 | extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, | |
2255 | int *__restrict __sign, char *__restrict __buf, | |
2256 | size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); | |
2257 | extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, | |
2258 | int *__restrict __sign, char *__restrict __buf, | |
2259 | size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); | |
2260 | ||
2261 | extern int qecvt_r (long double __value, int __ndigit, | |
2262 | int *__restrict __decpt, int *__restrict __sign, | |
2263 | char *__restrict __buf, size_t __len) | |
2264 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); | |
2265 | extern int qfcvt_r (long double __value, int __ndigit, | |
2266 | int *__restrict __decpt, int *__restrict __sign, | |
2267 | char *__restrict __buf, size_t __len) | |
2268 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5))); | |
2269 | ||
2270 | ||
2271 | ||
2272 | ||
2273 | ||
2274 | ||
2275 | extern int mblen (const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); | |
2276 | ||
2277 | ||
2278 | extern int mbtowc (wchar_t *__restrict __pwc, | |
2279 | const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); | |
2280 | ||
2281 | ||
2282 | extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__)); | |
2283 | ||
2284 | ||
2285 | ||
2286 | extern size_t mbstowcs (wchar_t *__restrict __pwcs, | |
2287 | const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)); | |
2288 | ||
2289 | extern size_t wcstombs (char *__restrict __s, | |
2290 | const wchar_t *__restrict __pwcs, size_t __n) | |
2291 | __attribute__ ((__nothrow__ , __leaf__)); | |
2292 | ||
2293 | ||
2294 | ||
2295 | ||
2296 | ||
2297 | ||
2298 | ||
2299 | ||
2300 | extern int rpmatch (const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
2301 | # 898 "/usr/include/stdlib.h" 3 4 | |
2302 | extern int getsubopt (char **__restrict __optionp, | |
2303 | char *const *__restrict __tokens, | |
2304 | char **__restrict __valuep) | |
2305 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); | |
2306 | # 950 "/usr/include/stdlib.h" 3 4 | |
2307 | extern int getloadavg (double __loadavg[], int __nelem) | |
2308 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
2309 | ||
2310 | ||
2311 | # 1 "/usr/include/bits/stdlib-float.h" 1 3 4 | |
2312 | # 24 "/usr/include/bits/stdlib-float.h" 3 4 | |
2313 | ||
2314 | extern __inline __attribute__ ((__gnu_inline__)) double | |
2315 | __attribute__ ((__nothrow__ , __leaf__)) atof (const char *__nptr) | |
2316 | { | |
2317 | return strtod (__nptr, (char **) ((void *)0)); | |
2318 | } | |
2319 | ||
2320 | # 955 "/usr/include/stdlib.h" 2 3 4 | |
2321 | ||
2322 | ||
2323 | ||
2324 | # 1 "/usr/include/bits/stdlib.h" 1 3 4 | |
2325 | # 23 "/usr/include/bits/stdlib.h" 3 4 | |
2326 | extern char *__realpath_chk (const char *__restrict __name, | |
2327 | char *__restrict __resolved, | |
2328 | size_t __resolvedlen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
2329 | extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) __asm__ ("" "realpath") __attribute__ ((__nothrow__ , __leaf__)) | |
2330 | ||
2331 | __attribute__ ((__warn_unused_result__)); | |
2332 | extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) __asm__ ("" "__realpath_chk") __attribute__ ((__nothrow__ , __leaf__)) | |
2333 | ||
2334 | ||
2335 | __attribute__ ((__warn_unused_result__)) | |
2336 | __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) | |
2337 | ; | |
2338 | ||
2339 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * | |
2340 | __attribute__ ((__nothrow__ , __leaf__)) realpath (const char *__restrict __name, char *__restrict __resolved) | |
2341 | { | |
2342 | if (__builtin_object_size (__resolved, 2 > 1) != (size_t) -1) | |
2343 | { | |
2344 | ||
2345 | ||
2346 | ||
2347 | ||
2348 | return __realpath_chk (__name, __resolved, __builtin_object_size (__resolved, 2 > 1)); | |
2349 | } | |
2350 | ||
2351 | return __realpath_alias (__name, __resolved); | |
2352 | } | |
2353 | ||
2354 | ||
2355 | extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, | |
2356 | size_t __nreal) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); | |
2357 | extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) __asm__ ("" "ptsname_r") __attribute__ ((__nothrow__ , __leaf__)) | |
2358 | ||
2359 | __attribute__ ((__nonnull__ (2))); | |
2360 | extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__ptsname_r_chk") __attribute__ ((__nothrow__ , __leaf__)) | |
2361 | ||
2362 | ||
2363 | __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) | |
2364 | ; | |
2365 | ||
2366 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
2367 | __attribute__ ((__nothrow__ , __leaf__)) ptsname_r (int __fd, char *__buf, size_t __buflen) | |
2368 | { | |
2369 | if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) | |
2370 | { | |
2371 | if (!__builtin_constant_p (__buflen)) | |
2372 | return __ptsname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)); | |
2373 | if (__buflen > __builtin_object_size (__buf, 2 > 1)) | |
2374 | return __ptsname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)); | |
2375 | } | |
2376 | return __ptsname_r_alias (__fd, __buf, __buflen); | |
2377 | } | |
2378 | ||
2379 | ||
2380 | extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) | |
2381 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
2382 | extern int __wctomb_alias (char *__s, wchar_t __wchar) __asm__ ("" "wctomb") __attribute__ ((__nothrow__ , __leaf__)) | |
2383 | __attribute__ ((__warn_unused_result__)); | |
2384 | ||
2385 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int | |
2386 | __attribute__ ((__nothrow__ , __leaf__)) wctomb (char *__s, wchar_t __wchar) | |
2387 | { | |
2388 | ||
2389 | ||
2390 | ||
2391 | ||
2392 | ||
2393 | ||
2394 | ||
2395 | if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 && 16 > __builtin_object_size (__s, 2 > 1)) | |
2396 | return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); | |
2397 | return __wctomb_alias (__s, __wchar); | |
2398 | } | |
2399 | ||
2400 | ||
2401 | extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, | |
2402 | const char *__restrict __src, | |
2403 | size_t __len, size_t __dstlen) __attribute__ ((__nothrow__ , __leaf__)); | |
2404 | extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) __asm__ ("" "mbstowcs") __attribute__ ((__nothrow__ , __leaf__)) | |
2405 | ||
2406 | ||
2407 | ; | |
2408 | extern size_t __mbstowcs_chk_warn (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, size_t __dstlen) __asm__ ("" "__mbstowcs_chk") __attribute__ ((__nothrow__ , __leaf__)) | |
2409 | ||
2410 | ||
2411 | ||
2412 | __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) | |
2413 | ; | |
2414 | ||
2415 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t | |
2416 | __attribute__ ((__nothrow__ , __leaf__)) mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) | |
2417 | ||
2418 | { | |
2419 | if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) | |
2420 | { | |
2421 | if (!__builtin_constant_p (__len)) | |
2422 | return __mbstowcs_chk (__dst, __src, __len, | |
2423 | __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); | |
2424 | ||
2425 | if (__len > __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)) | |
2426 | return __mbstowcs_chk_warn (__dst, __src, __len, | |
2427 | __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t)); | |
2428 | } | |
2429 | return __mbstowcs_alias (__dst, __src, __len); | |
2430 | } | |
2431 | ||
2432 | ||
2433 | extern size_t __wcstombs_chk (char *__restrict __dst, | |
2434 | const wchar_t *__restrict __src, | |
2435 | size_t __len, size_t __dstlen) __attribute__ ((__nothrow__ , __leaf__)); | |
2436 | extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) __asm__ ("" "wcstombs") __attribute__ ((__nothrow__ , __leaf__)) | |
2437 | ||
2438 | ||
2439 | ; | |
2440 | extern size_t __wcstombs_chk_warn (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len, size_t __dstlen) __asm__ ("" "__wcstombs_chk") __attribute__ ((__nothrow__ , __leaf__)) | |
2441 | ||
2442 | ||
2443 | ||
2444 | __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); | |
2445 | ||
2446 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t | |
2447 | __attribute__ ((__nothrow__ , __leaf__)) wcstombs (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) | |
2448 | ||
2449 | { | |
2450 | if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1) | |
2451 | { | |
2452 | if (!__builtin_constant_p (__len)) | |
2453 | return __wcstombs_chk (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)); | |
2454 | if (__len > __builtin_object_size (__dst, 2 > 1)) | |
2455 | return __wcstombs_chk_warn (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)); | |
2456 | } | |
2457 | return __wcstombs_alias (__dst, __src, __len); | |
2458 | } | |
2459 | # 959 "/usr/include/stdlib.h" 2 3 4 | |
2460 | # 967 "/usr/include/stdlib.h" 3 4 | |
2461 | ||
2462 | # 57 "writepart.c" 2 | |
2463 | # 1 "/usr/include/string.h" 1 3 4 | |
2464 | # 27 "/usr/include/string.h" 3 4 | |
2465 | ||
2466 | ||
2467 | ||
2468 | ||
2469 | ||
2470 | # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h" 1 3 4 | |
2471 | # 33 "/usr/include/string.h" 2 3 4 | |
2472 | ||
2473 | ||
2474 | ||
2475 | ||
2476 | ||
2477 | ||
2478 | ||
2479 | ||
2480 | ||
2481 | extern void *memcpy (void *__restrict __dest, const void *__restrict __src, | |
2482 | size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2483 | ||
2484 | ||
2485 | extern void *memmove (void *__dest, const void *__src, size_t __n) | |
2486 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2487 | ||
2488 | ||
2489 | ||
2490 | ||
2491 | ||
2492 | ||
2493 | extern void *memccpy (void *__restrict __dest, const void *__restrict __src, | |
2494 | int __c, size_t __n) | |
2495 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2496 | ||
2497 | ||
2498 | ||
2499 | ||
2500 | ||
2501 | extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
2502 | ||
2503 | ||
2504 | extern int memcmp (const void *__s1, const void *__s2, size_t __n) | |
2505 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
2506 | # 92 "/usr/include/string.h" 3 4 | |
2507 | extern void *memchr (const void *__s, int __c, size_t __n) | |
2508 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
2509 | ||
2510 | ||
2511 | # 123 "/usr/include/string.h" 3 4 | |
2512 | ||
2513 | ||
2514 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src) | |
2515 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2516 | ||
2517 | extern char *strncpy (char *__restrict __dest, | |
2518 | const char *__restrict __src, size_t __n) | |
2519 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2520 | ||
2521 | ||
2522 | extern char *strcat (char *__restrict __dest, const char *__restrict __src) | |
2523 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2524 | ||
2525 | extern char *strncat (char *__restrict __dest, const char *__restrict __src, | |
2526 | size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2527 | ||
2528 | ||
2529 | extern int strcmp (const char *__s1, const char *__s2) | |
2530 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
2531 | ||
2532 | extern int strncmp (const char *__s1, const char *__s2, size_t __n) | |
2533 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
2534 | ||
2535 | ||
2536 | extern int strcoll (const char *__s1, const char *__s2) | |
2537 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
2538 | ||
2539 | extern size_t strxfrm (char *__restrict __dest, | |
2540 | const char *__restrict __src, size_t __n) | |
2541 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); | |
2542 | ||
2543 | ||
2544 | ||
2545 | ||
2546 | ||
2547 | ||
2548 | # 1 "/usr/include/xlocale.h" 1 3 4 | |
2549 | # 27 "/usr/include/xlocale.h" 3 4 | |
2550 | typedef struct __locale_struct | |
2551 | { | |
2552 | ||
2553 | struct __locale_data *__locales[13]; | |
2554 | ||
2555 | ||
2556 | const unsigned short int *__ctype_b; | |
2557 | const int *__ctype_tolower; | |
2558 | const int *__ctype_toupper; | |
2559 | ||
2560 | ||
2561 | const char *__names[13]; | |
2562 | } *__locale_t; | |
2563 | ||
2564 | ||
2565 | typedef __locale_t locale_t; | |
2566 | # 160 "/usr/include/string.h" 2 3 4 | |
2567 | ||
2568 | ||
2569 | extern int strcoll_l (const char *__s1, const char *__s2, __locale_t __l) | |
2570 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); | |
2571 | ||
2572 | extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, | |
2573 | __locale_t __l) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))); | |
2574 | ||
2575 | ||
2576 | ||
2577 | ||
2578 | extern char *strdup (const char *__s) | |
2579 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); | |
2580 | ||
2581 | ||
2582 | ||
2583 | ||
2584 | ||
2585 | ||
2586 | extern char *strndup (const char *__string, size_t __n) | |
2587 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); | |
2588 | # 206 "/usr/include/string.h" 3 4 | |
2589 | ||
2590 | # 231 "/usr/include/string.h" 3 4 | |
2591 | extern char *strchr (const char *__s, int __c) | |
2592 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
2593 | # 258 "/usr/include/string.h" 3 4 | |
2594 | extern char *strrchr (const char *__s, int __c) | |
2595 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
2596 | ||
2597 | ||
2598 | # 277 "/usr/include/string.h" 3 4 | |
2599 | ||
2600 | ||
2601 | ||
2602 | extern size_t strcspn (const char *__s, const char *__reject) | |
2603 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
2604 | ||
2605 | ||
2606 | extern size_t strspn (const char *__s, const char *__accept) | |
2607 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
2608 | # 310 "/usr/include/string.h" 3 4 | |
2609 | extern char *strpbrk (const char *__s, const char *__accept) | |
2610 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
2611 | # 337 "/usr/include/string.h" 3 4 | |
2612 | extern char *strstr (const char *__haystack, const char *__needle) | |
2613 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
2614 | ||
2615 | ||
2616 | ||
2617 | ||
2618 | extern char *strtok (char *__restrict __s, const char *__restrict __delim) | |
2619 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); | |
2620 | ||
2621 | ||
2622 | ||
2623 | ||
2624 | extern char *__strtok_r (char *__restrict __s, | |
2625 | const char *__restrict __delim, | |
2626 | char **__restrict __save_ptr) | |
2627 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))); | |
2628 | ||
2629 | extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, | |
2630 | char **__restrict __save_ptr) | |
2631 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))); | |
2632 | # 392 "/usr/include/string.h" 3 4 | |
2633 | ||
2634 | ||
2635 | extern size_t strlen (const char *__s) | |
2636 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
2637 | ||
2638 | ||
2639 | ||
2640 | ||
2641 | ||
2642 | extern size_t strnlen (const char *__string, size_t __maxlen) | |
2643 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
2644 | ||
2645 | ||
2646 | ||
2647 | ||
2648 | ||
2649 | extern char *strerror (int __errnum) __attribute__ ((__nothrow__ , __leaf__)); | |
2650 | ||
2651 | # 422 "/usr/include/string.h" 3 4 | |
2652 | extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__ , __leaf__)) | |
2653 | ||
2654 | __attribute__ ((__nonnull__ (2))); | |
2655 | # 440 "/usr/include/string.h" 3 4 | |
2656 | extern char *strerror_l (int __errnum, __locale_t __l) __attribute__ ((__nothrow__ , __leaf__)); | |
2657 | ||
2658 | ||
2659 | ||
2660 | ||
2661 | ||
2662 | extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
2663 | ||
2664 | ||
2665 | ||
2666 | extern void bcopy (const void *__src, void *__dest, size_t __n) | |
2667 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2668 | ||
2669 | ||
2670 | extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
2671 | ||
2672 | ||
2673 | extern int bcmp (const void *__s1, const void *__s2, size_t __n) | |
2674 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
2675 | # 484 "/usr/include/string.h" 3 4 | |
2676 | extern char *index (const char *__s, int __c) | |
2677 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
2678 | # 512 "/usr/include/string.h" 3 4 | |
2679 | extern char *rindex (const char *__s, int __c) | |
2680 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
2681 | ||
2682 | ||
2683 | ||
2684 | ||
2685 | extern int ffs (int __i) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); | |
2686 | # 529 "/usr/include/string.h" 3 4 | |
2687 | extern int strcasecmp (const char *__s1, const char *__s2) | |
2688 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
2689 | ||
2690 | ||
2691 | extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) | |
2692 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
2693 | # 552 "/usr/include/string.h" 3 4 | |
2694 | extern char *strsep (char **__restrict __stringp, | |
2695 | const char *__restrict __delim) | |
2696 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2697 | ||
2698 | ||
2699 | ||
2700 | ||
2701 | extern char *strsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__)); | |
2702 | ||
2703 | ||
2704 | extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) | |
2705 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2706 | extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) | |
2707 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2708 | ||
2709 | ||
2710 | ||
2711 | extern char *__stpncpy (char *__restrict __dest, | |
2712 | const char *__restrict __src, size_t __n) | |
2713 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2714 | extern char *stpncpy (char *__restrict __dest, | |
2715 | const char *__restrict __src, size_t __n) | |
2716 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
2717 | # 627 "/usr/include/string.h" 3 4 | |
2718 | # 1 "/usr/include/bits/string.h" 1 3 4 | |
2719 | # 628 "/usr/include/string.h" 2 3 4 | |
2720 | ||
2721 | ||
2722 | # 1 "/usr/include/bits/string2.h" 1 3 4 | |
2723 | # 393 "/usr/include/bits/string2.h" 3 4 | |
2724 | extern void *__rawmemchr (const void *__s, int __c); | |
2725 | # 945 "/usr/include/bits/string2.h" 3 4 | |
2726 | extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c1 (const char *__s, int __reject); | |
2727 | extern __inline __attribute__ ((__gnu_inline__)) size_t | |
2728 | __strcspn_c1 (const char *__s, int __reject) | |
2729 | { | |
2730 | size_t __result = 0; | |
2731 | while (__s[__result] != '\0' && __s[__result] != __reject) | |
2732 | ++__result; | |
2733 | return __result; | |
2734 | } | |
2735 | ||
2736 | extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c2 (const char *__s, int __reject1, | |
2737 | int __reject2); | |
2738 | extern __inline __attribute__ ((__gnu_inline__)) size_t | |
2739 | __strcspn_c2 (const char *__s, int __reject1, int __reject2) | |
2740 | { | |
2741 | size_t __result = 0; | |
2742 | while (__s[__result] != '\0' && __s[__result] != __reject1 | |
2743 | && __s[__result] != __reject2) | |
2744 | ++__result; | |
2745 | return __result; | |
2746 | } | |
2747 | ||
2748 | extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c3 (const char *__s, int __reject1, | |
2749 | int __reject2, int __reject3); | |
2750 | extern __inline __attribute__ ((__gnu_inline__)) size_t | |
2751 | __strcspn_c3 (const char *__s, int __reject1, int __reject2, | |
2752 | int __reject3) | |
2753 | { | |
2754 | size_t __result = 0; | |
2755 | while (__s[__result] != '\0' && __s[__result] != __reject1 | |
2756 | && __s[__result] != __reject2 && __s[__result] != __reject3) | |
2757 | ++__result; | |
2758 | return __result; | |
2759 | } | |
2760 | # 1021 "/usr/include/bits/string2.h" 3 4 | |
2761 | extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c1 (const char *__s, int __accept); | |
2762 | extern __inline __attribute__ ((__gnu_inline__)) size_t | |
2763 | __strspn_c1 (const char *__s, int __accept) | |
2764 | { | |
2765 | size_t __result = 0; | |
2766 | ||
2767 | while (__s[__result] == __accept) | |
2768 | ++__result; | |
2769 | return __result; | |
2770 | } | |
2771 | ||
2772 | extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c2 (const char *__s, int __accept1, | |
2773 | int __accept2); | |
2774 | extern __inline __attribute__ ((__gnu_inline__)) size_t | |
2775 | __strspn_c2 (const char *__s, int __accept1, int __accept2) | |
2776 | { | |
2777 | size_t __result = 0; | |
2778 | ||
2779 | while (__s[__result] == __accept1 || __s[__result] == __accept2) | |
2780 | ++__result; | |
2781 | return __result; | |
2782 | } | |
2783 | ||
2784 | extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c3 (const char *__s, int __accept1, | |
2785 | int __accept2, int __accept3); | |
2786 | extern __inline __attribute__ ((__gnu_inline__)) size_t | |
2787 | __strspn_c3 (const char *__s, int __accept1, int __accept2, int __accept3) | |
2788 | { | |
2789 | size_t __result = 0; | |
2790 | ||
2791 | while (__s[__result] == __accept1 || __s[__result] == __accept2 | |
2792 | || __s[__result] == __accept3) | |
2793 | ++__result; | |
2794 | return __result; | |
2795 | } | |
2796 | # 1097 "/usr/include/bits/string2.h" 3 4 | |
2797 | extern __inline __attribute__ ((__gnu_inline__)) char *__strpbrk_c2 (const char *__s, int __accept1, | |
2798 | int __accept2); | |
2799 | extern __inline __attribute__ ((__gnu_inline__)) char * | |
2800 | __strpbrk_c2 (const char *__s, int __accept1, int __accept2) | |
2801 | { | |
2802 | ||
2803 | while (*__s != '\0' && *__s != __accept1 && *__s != __accept2) | |
2804 | ++__s; | |
2805 | return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; | |
2806 | } | |
2807 | ||
2808 | extern __inline __attribute__ ((__gnu_inline__)) char *__strpbrk_c3 (const char *__s, int __accept1, | |
2809 | int __accept2, int __accept3); | |
2810 | extern __inline __attribute__ ((__gnu_inline__)) char * | |
2811 | __strpbrk_c3 (const char *__s, int __accept1, int __accept2, int __accept3) | |
2812 | { | |
2813 | ||
2814 | while (*__s != '\0' && *__s != __accept1 && *__s != __accept2 | |
2815 | && *__s != __accept3) | |
2816 | ++__s; | |
2817 | return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; | |
2818 | } | |
2819 | # 1147 "/usr/include/bits/string2.h" 3 4 | |
2820 | extern __inline __attribute__ ((__gnu_inline__)) char *__strtok_r_1c (char *__s, char __sep, char **__nextp); | |
2821 | extern __inline __attribute__ ((__gnu_inline__)) char * | |
2822 | __strtok_r_1c (char *__s, char __sep, char **__nextp) | |
2823 | { | |
2824 | char *__result; | |
2825 | if (__s == ((void *)0)) | |
2826 | __s = *__nextp; | |
2827 | while (*__s == __sep) | |
2828 | ++__s; | |
2829 | __result = ((void *)0); | |
2830 | if (*__s != '\0') | |
2831 | { | |
2832 | __result = __s++; | |
2833 | while (*__s != '\0') | |
2834 | if (*__s++ == __sep) | |
2835 | { | |
2836 | __s[-1] = '\0'; | |
2837 | break; | |
2838 | } | |
2839 | } | |
2840 | *__nextp = __s; | |
2841 | return __result; | |
2842 | } | |
2843 | # 1179 "/usr/include/bits/string2.h" 3 4 | |
2844 | extern char *__strsep_g (char **__stringp, const char *__delim); | |
2845 | # 1197 "/usr/include/bits/string2.h" 3 4 | |
2846 | extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_1c (char **__s, char __reject); | |
2847 | extern __inline __attribute__ ((__gnu_inline__)) char * | |
2848 | __strsep_1c (char **__s, char __reject) | |
2849 | { | |
2850 | char *__retval = *__s; | |
2851 | 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)) | |
2852 | *(*__s)++ = '\0'; | |
2853 | return __retval; | |
2854 | } | |
2855 | ||
2856 | extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_2c (char **__s, char __reject1, char __reject2); | |
2857 | extern __inline __attribute__ ((__gnu_inline__)) char * | |
2858 | __strsep_2c (char **__s, char __reject1, char __reject2) | |
2859 | { | |
2860 | char *__retval = *__s; | |
2861 | if (__retval != ((void *)0)) | |
2862 | { | |
2863 | char *__cp = __retval; | |
2864 | while (1) | |
2865 | { | |
2866 | if (*__cp == '\0') | |
2867 | { | |
2868 | __cp = ((void *)0); | |
2869 | break; | |
2870 | } | |
2871 | if (*__cp == __reject1 || *__cp == __reject2) | |
2872 | { | |
2873 | *__cp++ = '\0'; | |
2874 | break; | |
2875 | } | |
2876 | ++__cp; | |
2877 | } | |
2878 | *__s = __cp; | |
2879 | } | |
2880 | return __retval; | |
2881 | } | |
2882 | ||
2883 | extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_3c (char **__s, char __reject1, char __reject2, | |
2884 | char __reject3); | |
2885 | extern __inline __attribute__ ((__gnu_inline__)) char * | |
2886 | __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3) | |
2887 | { | |
2888 | char *__retval = *__s; | |
2889 | if (__retval != ((void *)0)) | |
2890 | { | |
2891 | char *__cp = __retval; | |
2892 | while (1) | |
2893 | { | |
2894 | if (*__cp == '\0') | |
2895 | { | |
2896 | __cp = ((void *)0); | |
2897 | break; | |
2898 | } | |
2899 | if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3) | |
2900 | { | |
2901 | *__cp++ = '\0'; | |
2902 | break; | |
2903 | } | |
2904 | ++__cp; | |
2905 | } | |
2906 | *__s = __cp; | |
2907 | } | |
2908 | return __retval; | |
2909 | } | |
2910 | # 1278 "/usr/include/bits/string2.h" 3 4 | |
2911 | extern char *__strdup (const char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)); | |
2912 | # 1297 "/usr/include/bits/string2.h" 3 4 | |
2913 | extern char *__strndup (const char *__string, size_t __n) | |
2914 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)); | |
2915 | # 631 "/usr/include/string.h" 2 3 4 | |
2916 | ||
2917 | ||
2918 | ||
2919 | ||
2920 | # 1 "/usr/include/bits/string3.h" 1 3 4 | |
2921 | # 49 "/usr/include/bits/string3.h" 3 4 | |
2922 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * | |
2923 | __attribute__ ((__nothrow__ , __leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) | |
2924 | ||
2925 | { | |
2926 | return __builtin___memcpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 0)); | |
2927 | } | |
2928 | ||
2929 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * | |
2930 | __attribute__ ((__nothrow__ , __leaf__)) memmove (void *__dest, const void *__src, size_t __len) | |
2931 | { | |
2932 | return __builtin___memmove_chk (__dest, __src, __len, __builtin_object_size (__dest, 0)); | |
2933 | } | |
2934 | # 77 "/usr/include/bits/string3.h" 3 4 | |
2935 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * | |
2936 | __attribute__ ((__nothrow__ , __leaf__)) memset (void *__dest, int __ch, size_t __len) | |
2937 | { | |
2938 | # 90 "/usr/include/bits/string3.h" 3 4 | |
2939 | return __builtin___memset_chk (__dest, __ch, __len, __builtin_object_size (__dest, 0)); | |
2940 | } | |
2941 | ||
2942 | ||
2943 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void | |
2944 | __attribute__ ((__nothrow__ , __leaf__)) bcopy (const void *__src, void *__dest, size_t __len) | |
2945 | { | |
2946 | (void) __builtin___memmove_chk (__dest, __src, __len, __builtin_object_size (__dest, 0)); | |
2947 | } | |
2948 | ||
2949 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void | |
2950 | __attribute__ ((__nothrow__ , __leaf__)) bzero (void *__dest, size_t __len) | |
2951 | { | |
2952 | (void) __builtin___memset_chk (__dest, '\0', __len, __builtin_object_size (__dest, 0)); | |
2953 | } | |
2954 | ||
2955 | ||
2956 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * | |
2957 | __attribute__ ((__nothrow__ , __leaf__)) strcpy (char *__restrict __dest, const char *__restrict __src) | |
2958 | { | |
2959 | return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); | |
2960 | } | |
2961 | # 122 "/usr/include/bits/string3.h" 3 4 | |
2962 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * | |
2963 | __attribute__ ((__nothrow__ , __leaf__)) strncpy (char *__restrict __dest, const char *__restrict __src, size_t __len) | |
2964 | ||
2965 | { | |
2966 | return __builtin___strncpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1)); | |
2967 | } | |
2968 | ||
2969 | ||
2970 | extern char *__stpncpy_chk (char *__dest, const char *__src, size_t __n, | |
2971 | size_t __destlen) __attribute__ ((__nothrow__ , __leaf__)); | |
2972 | extern char *__stpncpy_alias (char *__dest, const char *__src, size_t __n) __asm__ ("" "stpncpy") __attribute__ ((__nothrow__ , __leaf__)) | |
2973 | ; | |
2974 | ||
2975 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * | |
2976 | __attribute__ ((__nothrow__ , __leaf__)) stpncpy (char *__dest, const char *__src, size_t __n) | |
2977 | { | |
2978 | if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 | |
2979 | && (!__builtin_constant_p (__n) || __n <= __builtin_object_size (__dest, 2 > 1))) | |
2980 | return __stpncpy_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); | |
2981 | return __stpncpy_alias (__dest, __src, __n); | |
2982 | } | |
2983 | ||
2984 | ||
2985 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * | |
2986 | __attribute__ ((__nothrow__ , __leaf__)) strcat (char *__restrict __dest, const char *__restrict __src) | |
2987 | { | |
2988 | return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); | |
2989 | } | |
2990 | ||
2991 | ||
2992 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * | |
2993 | __attribute__ ((__nothrow__ , __leaf__)) strncat (char *__restrict __dest, const char *__restrict __src, size_t __len) | |
2994 | ||
2995 | { | |
2996 | return __builtin___strncat_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1)); | |
2997 | } | |
2998 | # 636 "/usr/include/string.h" 2 3 4 | |
2999 | ||
3000 | ||
3001 | ||
3002 | ||
3003 | # 58 "writepart.c" 2 | |
3004 | # 1 "/usr/include/unistd.h" 1 3 4 | |
3005 | # 27 "/usr/include/unistd.h" 3 4 | |
3006 | ||
3007 | # 205 "/usr/include/unistd.h" 3 4 | |
3008 | # 1 "/usr/include/bits/posix_opt.h" 1 3 4 | |
3009 | # 206 "/usr/include/unistd.h" 2 3 4 | |
3010 | ||
3011 | ||
3012 | ||
3013 | # 1 "/usr/include/bits/environments.h" 1 3 4 | |
3014 | # 22 "/usr/include/bits/environments.h" 3 4 | |
3015 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
3016 | # 23 "/usr/include/bits/environments.h" 2 3 4 | |
3017 | # 210 "/usr/include/unistd.h" 2 3 4 | |
3018 | # 229 "/usr/include/unistd.h" 3 4 | |
3019 | # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include/stddef.h" 1 3 4 | |
3020 | # 230 "/usr/include/unistd.h" 2 3 4 | |
3021 | # 258 "/usr/include/unistd.h" 3 4 | |
3022 | typedef __useconds_t useconds_t; | |
3023 | # 270 "/usr/include/unistd.h" 3 4 | |
3024 | typedef __intptr_t intptr_t; | |
3025 | ||
3026 | ||
3027 | ||
3028 | ||
3029 | ||
3030 | ||
3031 | typedef __socklen_t socklen_t; | |
3032 | # 290 "/usr/include/unistd.h" 3 4 | |
3033 | extern int access (const char *__name, int __type) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
3034 | # 307 "/usr/include/unistd.h" 3 4 | |
3035 | extern int faccessat (int __fd, const char *__file, int __type, int __flag) | |
3036 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); | |
3037 | # 337 "/usr/include/unistd.h" 3 4 | |
3038 | extern __off_t lseek (int __fd, __off_t __offset, int __whence) __attribute__ ((__nothrow__ , __leaf__)); | |
3039 | # 356 "/usr/include/unistd.h" 3 4 | |
3040 | extern int close (int __fd); | |
3041 | ||
3042 | ||
3043 | ||
3044 | ||
3045 | ||
3046 | ||
3047 | extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__)); | |
3048 | ||
3049 | ||
3050 | ||
3051 | ||
3052 | ||
3053 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)); | |
3054 | # 379 "/usr/include/unistd.h" 3 4 | |
3055 | extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, | |
3056 | __off_t __offset) __attribute__ ((__warn_unused_result__)); | |
3057 | ||
3058 | ||
3059 | ||
3060 | ||
3061 | ||
3062 | ||
3063 | extern ssize_t pwrite (int __fd, const void *__buf, size_t __n, | |
3064 | __off_t __offset) __attribute__ ((__warn_unused_result__)); | |
3065 | # 420 "/usr/include/unistd.h" 3 4 | |
3066 | extern int pipe (int __pipedes[2]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3067 | # 435 "/usr/include/unistd.h" 3 4 | |
3068 | extern unsigned int alarm (unsigned int __seconds) __attribute__ ((__nothrow__ , __leaf__)); | |
3069 | # 447 "/usr/include/unistd.h" 3 4 | |
3070 | extern unsigned int sleep (unsigned int __seconds); | |
3071 | ||
3072 | ||
3073 | ||
3074 | ||
3075 | ||
3076 | ||
3077 | ||
3078 | extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) | |
3079 | __attribute__ ((__nothrow__ , __leaf__)); | |
3080 | ||
3081 | ||
3082 | ||
3083 | ||
3084 | ||
3085 | ||
3086 | extern int usleep (__useconds_t __useconds); | |
3087 | # 472 "/usr/include/unistd.h" 3 4 | |
3088 | extern int pause (void); | |
3089 | ||
3090 | ||
3091 | ||
3092 | extern int chown (const char *__file, __uid_t __owner, __gid_t __group) | |
3093 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
3094 | ||
3095 | ||
3096 | ||
3097 | extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3098 | ||
3099 | ||
3100 | ||
3101 | ||
3102 | extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) | |
3103 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
3104 | ||
3105 | ||
3106 | ||
3107 | ||
3108 | ||
3109 | ||
3110 | extern int fchownat (int __fd, const char *__file, __uid_t __owner, | |
3111 | __gid_t __group, int __flag) | |
3112 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); | |
3113 | ||
3114 | ||
3115 | ||
3116 | extern int chdir (const char *__path) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
3117 | ||
3118 | ||
3119 | ||
3120 | extern int fchdir (int __fd) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3121 | # 514 "/usr/include/unistd.h" 3 4 | |
3122 | extern char *getcwd (char *__buf, size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3123 | # 528 "/usr/include/unistd.h" 3 4 | |
3124 | extern char *getwd (char *__buf) | |
3125 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)); | |
3126 | ||
3127 | ||
3128 | ||
3129 | ||
3130 | extern int dup (int __fd) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3131 | ||
3132 | ||
3133 | extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__ , __leaf__)); | |
3134 | # 546 "/usr/include/unistd.h" 3 4 | |
3135 | extern char **__environ; | |
3136 | ||
3137 | ||
3138 | ||
3139 | ||
3140 | ||
3141 | ||
3142 | ||
3143 | extern int execve (const char *__path, char *const __argv[], | |
3144 | char *const __envp[]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
3145 | ||
3146 | ||
3147 | ||
3148 | ||
3149 | extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) | |
3150 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); | |
3151 | ||
3152 | ||
3153 | ||
3154 | ||
3155 | extern int execv (const char *__path, char *const __argv[]) | |
3156 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
3157 | ||
3158 | ||
3159 | ||
3160 | extern int execle (const char *__path, const char *__arg, ...) | |
3161 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
3162 | ||
3163 | ||
3164 | ||
3165 | extern int execl (const char *__path, const char *__arg, ...) | |
3166 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
3167 | ||
3168 | ||
3169 | ||
3170 | extern int execvp (const char *__file, char *const __argv[]) | |
3171 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
3172 | ||
3173 | ||
3174 | ||
3175 | ||
3176 | extern int execlp (const char *__file, const char *__arg, ...) | |
3177 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))); | |
3178 | # 601 "/usr/include/unistd.h" 3 4 | |
3179 | extern int nice (int __inc) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3180 | ||
3181 | ||
3182 | ||
3183 | ||
3184 | extern void _exit (int __status) __attribute__ ((__noreturn__)); | |
3185 | ||
3186 | ||
3187 | ||
3188 | ||
3189 | ||
3190 | # 1 "/usr/include/bits/confname.h" 1 3 4 | |
3191 | # 24 "/usr/include/bits/confname.h" 3 4 | |
3192 | enum | |
3193 | { | |
3194 | _PC_LINK_MAX, | |
3195 | ||
3196 | _PC_MAX_CANON, | |
3197 | ||
3198 | _PC_MAX_INPUT, | |
3199 | ||
3200 | _PC_NAME_MAX, | |
3201 | ||
3202 | _PC_PATH_MAX, | |
3203 | ||
3204 | _PC_PIPE_BUF, | |
3205 | ||
3206 | _PC_CHOWN_RESTRICTED, | |
3207 | ||
3208 | _PC_NO_TRUNC, | |
3209 | ||
3210 | _PC_VDISABLE, | |
3211 | ||
3212 | _PC_SYNC_IO, | |
3213 | ||
3214 | _PC_ASYNC_IO, | |
3215 | ||
3216 | _PC_PRIO_IO, | |
3217 | ||
3218 | _PC_SOCK_MAXBUF, | |
3219 | ||
3220 | _PC_FILESIZEBITS, | |
3221 | ||
3222 | _PC_REC_INCR_XFER_SIZE, | |
3223 | ||
3224 | _PC_REC_MAX_XFER_SIZE, | |
3225 | ||
3226 | _PC_REC_MIN_XFER_SIZE, | |
3227 | ||
3228 | _PC_REC_XFER_ALIGN, | |
3229 | ||
3230 | _PC_ALLOC_SIZE_MIN, | |
3231 | ||
3232 | _PC_SYMLINK_MAX, | |
3233 | ||
3234 | _PC_2_SYMLINKS | |
3235 | ||
3236 | }; | |
3237 | ||
3238 | ||
3239 | enum | |
3240 | { | |
3241 | _SC_ARG_MAX, | |
3242 | ||
3243 | _SC_CHILD_MAX, | |
3244 | ||
3245 | _SC_CLK_TCK, | |
3246 | ||
3247 | _SC_NGROUPS_MAX, | |
3248 | ||
3249 | _SC_OPEN_MAX, | |
3250 | ||
3251 | _SC_STREAM_MAX, | |
3252 | ||
3253 | _SC_TZNAME_MAX, | |
3254 | ||
3255 | _SC_JOB_CONTROL, | |
3256 | ||
3257 | _SC_SAVED_IDS, | |
3258 | ||
3259 | _SC_REALTIME_SIGNALS, | |
3260 | ||
3261 | _SC_PRIORITY_SCHEDULING, | |
3262 | ||
3263 | _SC_TIMERS, | |
3264 | ||
3265 | _SC_ASYNCHRONOUS_IO, | |
3266 | ||
3267 | _SC_PRIORITIZED_IO, | |
3268 | ||
3269 | _SC_SYNCHRONIZED_IO, | |
3270 | ||
3271 | _SC_FSYNC, | |
3272 | ||
3273 | _SC_MAPPED_FILES, | |
3274 | ||
3275 | _SC_MEMLOCK, | |
3276 | ||
3277 | _SC_MEMLOCK_RANGE, | |
3278 | ||
3279 | _SC_MEMORY_PROTECTION, | |
3280 | ||
3281 | _SC_MESSAGE_PASSING, | |
3282 | ||
3283 | _SC_SEMAPHORES, | |
3284 | ||
3285 | _SC_SHARED_MEMORY_OBJECTS, | |
3286 | ||
3287 | _SC_AIO_LISTIO_MAX, | |
3288 | ||
3289 | _SC_AIO_MAX, | |
3290 | ||
3291 | _SC_AIO_PRIO_DELTA_MAX, | |
3292 | ||
3293 | _SC_DELAYTIMER_MAX, | |
3294 | ||
3295 | _SC_MQ_OPEN_MAX, | |
3296 | ||
3297 | _SC_MQ_PRIO_MAX, | |
3298 | ||
3299 | _SC_VERSION, | |
3300 | ||
3301 | _SC_PAGESIZE, | |
3302 | ||
3303 | ||
3304 | _SC_RTSIG_MAX, | |
3305 | ||
3306 | _SC_SEM_NSEMS_MAX, | |
3307 | ||
3308 | _SC_SEM_VALUE_MAX, | |
3309 | ||
3310 | _SC_SIGQUEUE_MAX, | |
3311 | ||
3312 | _SC_TIMER_MAX, | |
3313 | ||
3314 | ||
3315 | ||
3316 | ||
3317 | _SC_BC_BASE_MAX, | |
3318 | ||
3319 | _SC_BC_DIM_MAX, | |
3320 | ||
3321 | _SC_BC_SCALE_MAX, | |
3322 | ||
3323 | _SC_BC_STRING_MAX, | |
3324 | ||
3325 | _SC_COLL_WEIGHTS_MAX, | |
3326 | ||
3327 | _SC_EQUIV_CLASS_MAX, | |
3328 | ||
3329 | _SC_EXPR_NEST_MAX, | |
3330 | ||
3331 | _SC_LINE_MAX, | |
3332 | ||
3333 | _SC_RE_DUP_MAX, | |
3334 | ||
3335 | _SC_CHARCLASS_NAME_MAX, | |
3336 | ||
3337 | ||
3338 | _SC_2_VERSION, | |
3339 | ||
3340 | _SC_2_C_BIND, | |
3341 | ||
3342 | _SC_2_C_DEV, | |
3343 | ||
3344 | _SC_2_FORT_DEV, | |
3345 | ||
3346 | _SC_2_FORT_RUN, | |
3347 | ||
3348 | _SC_2_SW_DEV, | |
3349 | ||
3350 | _SC_2_LOCALEDEF, | |
3351 | ||
3352 | ||
3353 | _SC_PII, | |
3354 | ||
3355 | _SC_PII_XTI, | |
3356 | ||
3357 | _SC_PII_SOCKET, | |
3358 | ||
3359 | _SC_PII_INTERNET, | |
3360 | ||
3361 | _SC_PII_OSI, | |
3362 | ||
3363 | _SC_POLL, | |
3364 | ||
3365 | _SC_SELECT, | |
3366 | ||
3367 | _SC_UIO_MAXIOV, | |
3368 | ||
3369 | _SC_IOV_MAX = _SC_UIO_MAXIOV, | |
3370 | ||
3371 | _SC_PII_INTERNET_STREAM, | |
3372 | ||
3373 | _SC_PII_INTERNET_DGRAM, | |
3374 | ||
3375 | _SC_PII_OSI_COTS, | |
3376 | ||
3377 | _SC_PII_OSI_CLTS, | |
3378 | ||
3379 | _SC_PII_OSI_M, | |
3380 | ||
3381 | _SC_T_IOV_MAX, | |
3382 | ||
3383 | ||
3384 | ||
3385 | _SC_THREADS, | |
3386 | ||
3387 | _SC_THREAD_SAFE_FUNCTIONS, | |
3388 | ||
3389 | _SC_GETGR_R_SIZE_MAX, | |
3390 | ||
3391 | _SC_GETPW_R_SIZE_MAX, | |
3392 | ||
3393 | _SC_LOGIN_NAME_MAX, | |
3394 | ||
3395 | _SC_TTY_NAME_MAX, | |
3396 | ||
3397 | _SC_THREAD_DESTRUCTOR_ITERATIONS, | |
3398 | ||
3399 | _SC_THREAD_KEYS_MAX, | |
3400 | ||
3401 | _SC_THREAD_STACK_MIN, | |
3402 | ||
3403 | _SC_THREAD_THREADS_MAX, | |
3404 | ||
3405 | _SC_THREAD_ATTR_STACKADDR, | |
3406 | ||
3407 | _SC_THREAD_ATTR_STACKSIZE, | |
3408 | ||
3409 | _SC_THREAD_PRIORITY_SCHEDULING, | |
3410 | ||
3411 | _SC_THREAD_PRIO_INHERIT, | |
3412 | ||
3413 | _SC_THREAD_PRIO_PROTECT, | |
3414 | ||
3415 | _SC_THREAD_PROCESS_SHARED, | |
3416 | ||
3417 | ||
3418 | _SC_NPROCESSORS_CONF, | |
3419 | ||
3420 | _SC_NPROCESSORS_ONLN, | |
3421 | ||
3422 | _SC_PHYS_PAGES, | |
3423 | ||
3424 | _SC_AVPHYS_PAGES, | |
3425 | ||
3426 | _SC_ATEXIT_MAX, | |
3427 | ||
3428 | _SC_PASS_MAX, | |
3429 | ||
3430 | ||
3431 | _SC_XOPEN_VERSION, | |
3432 | ||
3433 | _SC_XOPEN_XCU_VERSION, | |
3434 | ||
3435 | _SC_XOPEN_UNIX, | |
3436 | ||
3437 | _SC_XOPEN_CRYPT, | |
3438 | ||
3439 | _SC_XOPEN_ENH_I18N, | |
3440 | ||
3441 | _SC_XOPEN_SHM, | |
3442 | ||
3443 | ||
3444 | _SC_2_CHAR_TERM, | |
3445 | ||
3446 | _SC_2_C_VERSION, | |
3447 | ||
3448 | _SC_2_UPE, | |
3449 | ||
3450 | ||
3451 | _SC_XOPEN_XPG2, | |
3452 | ||
3453 | _SC_XOPEN_XPG3, | |
3454 | ||
3455 | _SC_XOPEN_XPG4, | |
3456 | ||
3457 | ||
3458 | _SC_CHAR_BIT, | |
3459 | ||
3460 | _SC_CHAR_MAX, | |
3461 | ||
3462 | _SC_CHAR_MIN, | |
3463 | ||
3464 | _SC_INT_MAX, | |
3465 | ||
3466 | _SC_INT_MIN, | |
3467 | ||
3468 | _SC_LONG_BIT, | |
3469 | ||
3470 | _SC_WORD_BIT, | |
3471 | ||
3472 | _SC_MB_LEN_MAX, | |
3473 | ||
3474 | _SC_NZERO, | |
3475 | ||
3476 | _SC_SSIZE_MAX, | |
3477 | ||
3478 | _SC_SCHAR_MAX, | |
3479 | ||
3480 | _SC_SCHAR_MIN, | |
3481 | ||
3482 | _SC_SHRT_MAX, | |
3483 | ||
3484 | _SC_SHRT_MIN, | |
3485 | ||
3486 | _SC_UCHAR_MAX, | |
3487 | ||
3488 | _SC_UINT_MAX, | |
3489 | ||
3490 | _SC_ULONG_MAX, | |
3491 | ||
3492 | _SC_USHRT_MAX, | |
3493 | ||
3494 | ||
3495 | _SC_NL_ARGMAX, | |
3496 | ||
3497 | _SC_NL_LANGMAX, | |
3498 | ||
3499 | _SC_NL_MSGMAX, | |
3500 | ||
3501 | _SC_NL_NMAX, | |
3502 | ||
3503 | _SC_NL_SETMAX, | |
3504 | ||
3505 | _SC_NL_TEXTMAX, | |
3506 | ||
3507 | ||
3508 | _SC_XBS5_ILP32_OFF32, | |
3509 | ||
3510 | _SC_XBS5_ILP32_OFFBIG, | |
3511 | ||
3512 | _SC_XBS5_LP64_OFF64, | |
3513 | ||
3514 | _SC_XBS5_LPBIG_OFFBIG, | |
3515 | ||
3516 | ||
3517 | _SC_XOPEN_LEGACY, | |
3518 | ||
3519 | _SC_XOPEN_REALTIME, | |
3520 | ||
3521 | _SC_XOPEN_REALTIME_THREADS, | |
3522 | ||
3523 | ||
3524 | _SC_ADVISORY_INFO, | |
3525 | ||
3526 | _SC_BARRIERS, | |
3527 | ||
3528 | _SC_BASE, | |
3529 | ||
3530 | _SC_C_LANG_SUPPORT, | |
3531 | ||
3532 | _SC_C_LANG_SUPPORT_R, | |
3533 | ||
3534 | _SC_CLOCK_SELECTION, | |
3535 | ||
3536 | _SC_CPUTIME, | |
3537 | ||
3538 | _SC_THREAD_CPUTIME, | |
3539 | ||
3540 | _SC_DEVICE_IO, | |
3541 | ||
3542 | _SC_DEVICE_SPECIFIC, | |
3543 | ||
3544 | _SC_DEVICE_SPECIFIC_R, | |
3545 | ||
3546 | _SC_FD_MGMT, | |
3547 | ||
3548 | _SC_FIFO, | |
3549 | ||
3550 | _SC_PIPE, | |
3551 | ||
3552 | _SC_FILE_ATTRIBUTES, | |
3553 | ||
3554 | _SC_FILE_LOCKING, | |
3555 | ||
3556 | _SC_FILE_SYSTEM, | |
3557 | ||
3558 | _SC_MONOTONIC_CLOCK, | |
3559 | ||
3560 | _SC_MULTI_PROCESS, | |
3561 | ||
3562 | _SC_SINGLE_PROCESS, | |
3563 | ||
3564 | _SC_NETWORKING, | |
3565 | ||
3566 | _SC_READER_WRITER_LOCKS, | |
3567 | ||
3568 | _SC_SPIN_LOCKS, | |
3569 | ||
3570 | _SC_REGEXP, | |
3571 | ||
3572 | _SC_REGEX_VERSION, | |
3573 | ||
3574 | _SC_SHELL, | |
3575 | ||
3576 | _SC_SIGNALS, | |
3577 | ||
3578 | _SC_SPAWN, | |
3579 | ||
3580 | _SC_SPORADIC_SERVER, | |
3581 | ||
3582 | _SC_THREAD_SPORADIC_SERVER, | |
3583 | ||
3584 | _SC_SYSTEM_DATABASE, | |
3585 | ||
3586 | _SC_SYSTEM_DATABASE_R, | |
3587 | ||
3588 | _SC_TIMEOUTS, | |
3589 | ||
3590 | _SC_TYPED_MEMORY_OBJECTS, | |
3591 | ||
3592 | _SC_USER_GROUPS, | |
3593 | ||
3594 | _SC_USER_GROUPS_R, | |
3595 | ||
3596 | _SC_2_PBS, | |
3597 | ||
3598 | _SC_2_PBS_ACCOUNTING, | |
3599 | ||
3600 | _SC_2_PBS_LOCATE, | |
3601 | ||
3602 | _SC_2_PBS_MESSAGE, | |
3603 | ||
3604 | _SC_2_PBS_TRACK, | |
3605 | ||
3606 | _SC_SYMLOOP_MAX, | |
3607 | ||
3608 | _SC_STREAMS, | |
3609 | ||
3610 | _SC_2_PBS_CHECKPOINT, | |
3611 | ||
3612 | ||
3613 | _SC_V6_ILP32_OFF32, | |
3614 | ||
3615 | _SC_V6_ILP32_OFFBIG, | |
3616 | ||
3617 | _SC_V6_LP64_OFF64, | |
3618 | ||
3619 | _SC_V6_LPBIG_OFFBIG, | |
3620 | ||
3621 | ||
3622 | _SC_HOST_NAME_MAX, | |
3623 | ||
3624 | _SC_TRACE, | |
3625 | ||
3626 | _SC_TRACE_EVENT_FILTER, | |
3627 | ||
3628 | _SC_TRACE_INHERIT, | |
3629 | ||
3630 | _SC_TRACE_LOG, | |
3631 | ||
3632 | ||
3633 | _SC_LEVEL1_ICACHE_SIZE, | |
3634 | ||
3635 | _SC_LEVEL1_ICACHE_ASSOC, | |
3636 | ||
3637 | _SC_LEVEL1_ICACHE_LINESIZE, | |
3638 | ||
3639 | _SC_LEVEL1_DCACHE_SIZE, | |
3640 | ||
3641 | _SC_LEVEL1_DCACHE_ASSOC, | |
3642 | ||
3643 | _SC_LEVEL1_DCACHE_LINESIZE, | |
3644 | ||
3645 | _SC_LEVEL2_CACHE_SIZE, | |
3646 | ||
3647 | _SC_LEVEL2_CACHE_ASSOC, | |
3648 | ||
3649 | _SC_LEVEL2_CACHE_LINESIZE, | |
3650 | ||
3651 | _SC_LEVEL3_CACHE_SIZE, | |
3652 | ||
3653 | _SC_LEVEL3_CACHE_ASSOC, | |
3654 | ||
3655 | _SC_LEVEL3_CACHE_LINESIZE, | |
3656 | ||
3657 | _SC_LEVEL4_CACHE_SIZE, | |
3658 | ||
3659 | _SC_LEVEL4_CACHE_ASSOC, | |
3660 | ||
3661 | _SC_LEVEL4_CACHE_LINESIZE, | |
3662 | ||
3663 | ||
3664 | ||
3665 | _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, | |
3666 | ||
3667 | _SC_RAW_SOCKETS, | |
3668 | ||
3669 | ||
3670 | _SC_V7_ILP32_OFF32, | |
3671 | ||
3672 | _SC_V7_ILP32_OFFBIG, | |
3673 | ||
3674 | _SC_V7_LP64_OFF64, | |
3675 | ||
3676 | _SC_V7_LPBIG_OFFBIG, | |
3677 | ||
3678 | ||
3679 | _SC_SS_REPL_MAX, | |
3680 | ||
3681 | ||
3682 | _SC_TRACE_EVENT_NAME_MAX, | |
3683 | ||
3684 | _SC_TRACE_NAME_MAX, | |
3685 | ||
3686 | _SC_TRACE_SYS_MAX, | |
3687 | ||
3688 | _SC_TRACE_USER_EVENT_MAX, | |
3689 | ||
3690 | ||
3691 | _SC_XOPEN_STREAMS, | |
3692 | ||
3693 | ||
3694 | _SC_THREAD_ROBUST_PRIO_INHERIT, | |
3695 | ||
3696 | _SC_THREAD_ROBUST_PRIO_PROTECT | |
3697 | ||
3698 | }; | |
3699 | ||
3700 | ||
3701 | enum | |
3702 | { | |
3703 | _CS_PATH, | |
3704 | ||
3705 | ||
3706 | _CS_V6_WIDTH_RESTRICTED_ENVS, | |
3707 | ||
3708 | ||
3709 | ||
3710 | _CS_GNU_LIBC_VERSION, | |
3711 | ||
3712 | _CS_GNU_LIBPTHREAD_VERSION, | |
3713 | ||
3714 | ||
3715 | _CS_V5_WIDTH_RESTRICTED_ENVS, | |
3716 | ||
3717 | ||
3718 | ||
3719 | _CS_V7_WIDTH_RESTRICTED_ENVS, | |
3720 | ||
3721 | ||
3722 | ||
3723 | _CS_LFS_CFLAGS = 1000, | |
3724 | ||
3725 | _CS_LFS_LDFLAGS, | |
3726 | ||
3727 | _CS_LFS_LIBS, | |
3728 | ||
3729 | _CS_LFS_LINTFLAGS, | |
3730 | ||
3731 | _CS_LFS64_CFLAGS, | |
3732 | ||
3733 | _CS_LFS64_LDFLAGS, | |
3734 | ||
3735 | _CS_LFS64_LIBS, | |
3736 | ||
3737 | _CS_LFS64_LINTFLAGS, | |
3738 | ||
3739 | ||
3740 | _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, | |
3741 | ||
3742 | _CS_XBS5_ILP32_OFF32_LDFLAGS, | |
3743 | ||
3744 | _CS_XBS5_ILP32_OFF32_LIBS, | |
3745 | ||
3746 | _CS_XBS5_ILP32_OFF32_LINTFLAGS, | |
3747 | ||
3748 | _CS_XBS5_ILP32_OFFBIG_CFLAGS, | |
3749 | ||
3750 | _CS_XBS5_ILP32_OFFBIG_LDFLAGS, | |
3751 | ||
3752 | _CS_XBS5_ILP32_OFFBIG_LIBS, | |
3753 | ||
3754 | _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, | |
3755 | ||
3756 | _CS_XBS5_LP64_OFF64_CFLAGS, | |
3757 | ||
3758 | _CS_XBS5_LP64_OFF64_LDFLAGS, | |
3759 | ||
3760 | _CS_XBS5_LP64_OFF64_LIBS, | |
3761 | ||
3762 | _CS_XBS5_LP64_OFF64_LINTFLAGS, | |
3763 | ||
3764 | _CS_XBS5_LPBIG_OFFBIG_CFLAGS, | |
3765 | ||
3766 | _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, | |
3767 | ||
3768 | _CS_XBS5_LPBIG_OFFBIG_LIBS, | |
3769 | ||
3770 | _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, | |
3771 | ||
3772 | ||
3773 | _CS_POSIX_V6_ILP32_OFF32_CFLAGS, | |
3774 | ||
3775 | _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, | |
3776 | ||
3777 | _CS_POSIX_V6_ILP32_OFF32_LIBS, | |
3778 | ||
3779 | _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, | |
3780 | ||
3781 | _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, | |
3782 | ||
3783 | _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, | |
3784 | ||
3785 | _CS_POSIX_V6_ILP32_OFFBIG_LIBS, | |
3786 | ||
3787 | _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, | |
3788 | ||
3789 | _CS_POSIX_V6_LP64_OFF64_CFLAGS, | |
3790 | ||
3791 | _CS_POSIX_V6_LP64_OFF64_LDFLAGS, | |
3792 | ||
3793 | _CS_POSIX_V6_LP64_OFF64_LIBS, | |
3794 | ||
3795 | _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, | |
3796 | ||
3797 | _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, | |
3798 | ||
3799 | _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, | |
3800 | ||
3801 | _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, | |
3802 | ||
3803 | _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, | |
3804 | ||
3805 | ||
3806 | _CS_POSIX_V7_ILP32_OFF32_CFLAGS, | |
3807 | ||
3808 | _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, | |
3809 | ||
3810 | _CS_POSIX_V7_ILP32_OFF32_LIBS, | |
3811 | ||
3812 | _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, | |
3813 | ||
3814 | _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, | |
3815 | ||
3816 | _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, | |
3817 | ||
3818 | _CS_POSIX_V7_ILP32_OFFBIG_LIBS, | |
3819 | ||
3820 | _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, | |
3821 | ||
3822 | _CS_POSIX_V7_LP64_OFF64_CFLAGS, | |
3823 | ||
3824 | _CS_POSIX_V7_LP64_OFF64_LDFLAGS, | |
3825 | ||
3826 | _CS_POSIX_V7_LP64_OFF64_LIBS, | |
3827 | ||
3828 | _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, | |
3829 | ||
3830 | _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, | |
3831 | ||
3832 | _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, | |
3833 | ||
3834 | _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, | |
3835 | ||
3836 | _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, | |
3837 | ||
3838 | ||
3839 | _CS_V6_ENV, | |
3840 | ||
3841 | _CS_V7_ENV | |
3842 | ||
3843 | }; | |
3844 | # 613 "/usr/include/unistd.h" 2 3 4 | |
3845 | ||
3846 | ||
3847 | extern long int pathconf (const char *__path, int __name) | |
3848 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
3849 | ||
3850 | ||
3851 | extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__ , __leaf__)); | |
3852 | ||
3853 | ||
3854 | extern long int sysconf (int __name) __attribute__ ((__nothrow__ , __leaf__)); | |
3855 | ||
3856 | ||
3857 | ||
3858 | extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__ , __leaf__)); | |
3859 | ||
3860 | ||
3861 | ||
3862 | ||
3863 | extern __pid_t getpid (void) __attribute__ ((__nothrow__ , __leaf__)); | |
3864 | ||
3865 | ||
3866 | extern __pid_t getppid (void) __attribute__ ((__nothrow__ , __leaf__)); | |
3867 | ||
3868 | ||
3869 | extern __pid_t getpgrp (void) __attribute__ ((__nothrow__ , __leaf__)); | |
3870 | ||
3871 | ||
3872 | extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__)); | |
3873 | ||
3874 | extern __pid_t getpgid (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__)); | |
3875 | ||
3876 | ||
3877 | ||
3878 | ||
3879 | ||
3880 | ||
3881 | extern int setpgid (__pid_t __pid, __pid_t __pgid) __attribute__ ((__nothrow__ , __leaf__)); | |
3882 | # 663 "/usr/include/unistd.h" 3 4 | |
3883 | extern int setpgrp (void) __attribute__ ((__nothrow__ , __leaf__)); | |
3884 | ||
3885 | ||
3886 | ||
3887 | ||
3888 | ||
3889 | ||
3890 | extern __pid_t setsid (void) __attribute__ ((__nothrow__ , __leaf__)); | |
3891 | ||
3892 | ||
3893 | ||
3894 | extern __pid_t getsid (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__)); | |
3895 | ||
3896 | ||
3897 | ||
3898 | extern __uid_t getuid (void) __attribute__ ((__nothrow__ , __leaf__)); | |
3899 | ||
3900 | ||
3901 | extern __uid_t geteuid (void) __attribute__ ((__nothrow__ , __leaf__)); | |
3902 | ||
3903 | ||
3904 | extern __gid_t getgid (void) __attribute__ ((__nothrow__ , __leaf__)); | |
3905 | ||
3906 | ||
3907 | extern __gid_t getegid (void) __attribute__ ((__nothrow__ , __leaf__)); | |
3908 | ||
3909 | ||
3910 | ||
3911 | ||
3912 | extern int getgroups (int __size, __gid_t __list[]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3913 | # 703 "/usr/include/unistd.h" 3 4 | |
3914 | extern int setuid (__uid_t __uid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3915 | ||
3916 | ||
3917 | ||
3918 | ||
3919 | extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3920 | ||
3921 | ||
3922 | ||
3923 | ||
3924 | extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3925 | ||
3926 | ||
3927 | ||
3928 | ||
3929 | ||
3930 | ||
3931 | extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3932 | ||
3933 | ||
3934 | ||
3935 | ||
3936 | extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3937 | ||
3938 | ||
3939 | ||
3940 | ||
3941 | extern int setegid (__gid_t __gid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
3942 | # 759 "/usr/include/unistd.h" 3 4 | |
3943 | extern __pid_t fork (void) __attribute__ ((__nothrow__)); | |
3944 | ||
3945 | ||
3946 | ||
3947 | ||
3948 | ||
3949 | ||
3950 | ||
3951 | extern __pid_t vfork (void) __attribute__ ((__nothrow__ , __leaf__)); | |
3952 | ||
3953 | ||
3954 | ||
3955 | ||
3956 | ||
3957 | extern char *ttyname (int __fd) __attribute__ ((__nothrow__ , __leaf__)); | |
3958 | ||
3959 | ||
3960 | ||
3961 | extern int ttyname_r (int __fd, char *__buf, size_t __buflen) | |
3962 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); | |
3963 | ||
3964 | ||
3965 | ||
3966 | extern int isatty (int __fd) __attribute__ ((__nothrow__ , __leaf__)); | |
3967 | ||
3968 | ||
3969 | ||
3970 | ||
3971 | ||
3972 | extern int ttyslot (void) __attribute__ ((__nothrow__ , __leaf__)); | |
3973 | ||
3974 | ||
3975 | ||
3976 | ||
3977 | extern int link (const char *__from, const char *__to) | |
3978 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); | |
3979 | ||
3980 | ||
3981 | ||
3982 | ||
3983 | extern int linkat (int __fromfd, const char *__from, int __tofd, | |
3984 | const char *__to, int __flags) | |
3985 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__)); | |
3986 | ||
3987 | ||
3988 | ||
3989 | ||
3990 | extern int symlink (const char *__from, const char *__to) | |
3991 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); | |
3992 | ||
3993 | ||
3994 | ||
3995 | ||
3996 | extern ssize_t readlink (const char *__restrict __path, | |
3997 | char *__restrict __buf, size_t __len) | |
3998 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); | |
3999 | ||
4000 | ||
4001 | ||
4002 | ||
4003 | extern int symlinkat (const char *__from, int __tofd, | |
4004 | const char *__to) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__)); | |
4005 | ||
4006 | ||
4007 | extern ssize_t readlinkat (int __fd, const char *__restrict __path, | |
4008 | char *__restrict __buf, size_t __len) | |
4009 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)); | |
4010 | ||
4011 | ||
4012 | ||
4013 | extern int unlink (const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
4014 | ||
4015 | ||
4016 | ||
4017 | extern int unlinkat (int __fd, const char *__name, int __flag) | |
4018 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); | |
4019 | ||
4020 | ||
4021 | ||
4022 | extern int rmdir (const char *__path) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
4023 | ||
4024 | ||
4025 | ||
4026 | extern __pid_t tcgetpgrp (int __fd) __attribute__ ((__nothrow__ , __leaf__)); | |
4027 | ||
4028 | ||
4029 | extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __attribute__ ((__nothrow__ , __leaf__)); | |
4030 | ||
4031 | ||
4032 | ||
4033 | ||
4034 | ||
4035 | ||
4036 | extern char *getlogin (void); | |
4037 | ||
4038 | ||
4039 | ||
4040 | ||
4041 | ||
4042 | ||
4043 | ||
4044 | extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))); | |
4045 | ||
4046 | ||
4047 | ||
4048 | ||
4049 | extern int setlogin (const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
4050 | # 874 "/usr/include/unistd.h" 3 4 | |
4051 | # 1 "/usr/include/getopt.h" 1 3 4 | |
4052 | # 57 "/usr/include/getopt.h" 3 4 | |
4053 | extern char *optarg; | |
4054 | # 71 "/usr/include/getopt.h" 3 4 | |
4055 | extern int optind; | |
4056 | ||
4057 | ||
4058 | ||
4059 | ||
4060 | extern int opterr; | |
4061 | ||
4062 | ||
4063 | ||
4064 | extern int optopt; | |
4065 | # 150 "/usr/include/getopt.h" 3 4 | |
4066 | extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) | |
4067 | __attribute__ ((__nothrow__ , __leaf__)); | |
4068 | # 875 "/usr/include/unistd.h" 2 3 4 | |
4069 | ||
4070 | ||
4071 | ||
4072 | ||
4073 | ||
4074 | ||
4075 | ||
4076 | extern int gethostname (char *__name, size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
4077 | ||
4078 | ||
4079 | ||
4080 | ||
4081 | ||
4082 | ||
4083 | extern int sethostname (const char *__name, size_t __len) | |
4084 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
4085 | ||
4086 | ||
4087 | ||
4088 | extern int sethostid (long int __id) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
4089 | ||
4090 | ||
4091 | ||
4092 | ||
4093 | ||
4094 | extern int getdomainname (char *__name, size_t __len) | |
4095 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
4096 | extern int setdomainname (const char *__name, size_t __len) | |
4097 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
4098 | ||
4099 | ||
4100 | ||
4101 | ||
4102 | ||
4103 | extern int vhangup (void) __attribute__ ((__nothrow__ , __leaf__)); | |
4104 | ||
4105 | ||
4106 | extern int revoke (const char *__file) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
4107 | ||
4108 | ||
4109 | ||
4110 | ||
4111 | ||
4112 | ||
4113 | ||
4114 | extern int profil (unsigned short int *__sample_buffer, size_t __size, | |
4115 | size_t __offset, unsigned int __scale) | |
4116 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
4117 | ||
4118 | ||
4119 | ||
4120 | ||
4121 | ||
4122 | extern int acct (const char *__name) __attribute__ ((__nothrow__ , __leaf__)); | |
4123 | ||
4124 | ||
4125 | ||
4126 | extern char *getusershell (void) __attribute__ ((__nothrow__ , __leaf__)); | |
4127 | extern void endusershell (void) __attribute__ ((__nothrow__ , __leaf__)); | |
4128 | extern void setusershell (void) __attribute__ ((__nothrow__ , __leaf__)); | |
4129 | ||
4130 | ||
4131 | ||
4132 | ||
4133 | ||
4134 | extern int daemon (int __nochdir, int __noclose) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
4135 | ||
4136 | ||
4137 | ||
4138 | ||
4139 | ||
4140 | ||
4141 | extern int chroot (const char *__path) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
4142 | ||
4143 | ||
4144 | ||
4145 | extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); | |
4146 | ||
4147 | ||
4148 | ||
4149 | ||
4150 | ||
4151 | ||
4152 | ||
4153 | extern int fsync (int __fd); | |
4154 | # 972 "/usr/include/unistd.h" 3 4 | |
4155 | extern long int gethostid (void); | |
4156 | ||
4157 | ||
4158 | extern void sync (void) __attribute__ ((__nothrow__ , __leaf__)); | |
4159 | ||
4160 | ||
4161 | ||
4162 | ||
4163 | ||
4164 | extern int getpagesize (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); | |
4165 | ||
4166 | ||
4167 | ||
4168 | ||
4169 | extern int getdtablesize (void) __attribute__ ((__nothrow__ , __leaf__)); | |
4170 | # 996 "/usr/include/unistd.h" 3 4 | |
4171 | extern int truncate (const char *__file, __off_t __length) | |
4172 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
4173 | # 1019 "/usr/include/unistd.h" 3 4 | |
4174 | extern int ftruncate (int __fd, __off_t __length) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
4175 | # 1040 "/usr/include/unistd.h" 3 4 | |
4176 | extern int brk (void *__addr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
4177 | ||
4178 | ||
4179 | ||
4180 | ||
4181 | ||
4182 | extern void *sbrk (intptr_t __delta) __attribute__ ((__nothrow__ , __leaf__)); | |
4183 | # 1061 "/usr/include/unistd.h" 3 4 | |
4184 | extern long int syscall (long int __sysno, ...) __attribute__ ((__nothrow__ , __leaf__)); | |
4185 | # 1084 "/usr/include/unistd.h" 3 4 | |
4186 | extern int lockf (int __fd, int __cmd, __off_t __len) __attribute__ ((__warn_unused_result__)); | |
4187 | # 1115 "/usr/include/unistd.h" 3 4 | |
4188 | extern int fdatasync (int __fildes); | |
4189 | # 1151 "/usr/include/unistd.h" 3 4 | |
4190 | # 1 "/usr/include/bits/unistd.h" 1 3 4 | |
4191 | # 23 "/usr/include/bits/unistd.h" 3 4 | |
4192 | extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, | |
4193 | size_t __buflen) __attribute__ ((__warn_unused_result__)); | |
4194 | extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read") | |
4195 | __attribute__ ((__warn_unused_result__)); | |
4196 | extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk") | |
4197 | ||
4198 | ||
4199 | __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer"))) | |
4200 | ; | |
4201 | ||
4202 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t | |
4203 | read (int __fd, void *__buf, size_t __nbytes) | |
4204 | { | |
4205 | if (__builtin_object_size (__buf, 0) != (size_t) -1) | |
4206 | { | |
4207 | if (!__builtin_constant_p (__nbytes)) | |
4208 | return __read_chk (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0)); | |
4209 | ||
4210 | if (__nbytes > __builtin_object_size (__buf, 0)) | |
4211 | return __read_chk_warn (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0)); | |
4212 | } | |
4213 | return __read_alias (__fd, __buf, __nbytes); | |
4214 | } | |
4215 | # 123 "/usr/include/bits/unistd.h" 3 4 | |
4216 | extern ssize_t __readlink_chk (const char *__restrict __path, | |
4217 | char *__restrict __buf, size_t __len, | |
4218 | size_t __buflen) | |
4219 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); | |
4220 | extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) __asm__ ("" "readlink") __attribute__ ((__nothrow__ , __leaf__)) | |
4221 | ||
4222 | ||
4223 | __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); | |
4224 | extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) __asm__ ("" "__readlink_chk") __attribute__ ((__nothrow__ , __leaf__)) | |
4225 | ||
4226 | ||
4227 | ||
4228 | __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer"))) | |
4229 | ; | |
4230 | ||
4231 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t | |
4232 | __attribute__ ((__nothrow__ , __leaf__)) readlink (const char *__restrict __path, char *__restrict __buf, size_t __len) | |
4233 | ||
4234 | { | |
4235 | if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) | |
4236 | { | |
4237 | if (!__builtin_constant_p (__len)) | |
4238 | return __readlink_chk (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1)); | |
4239 | ||
4240 | if ( __len > __builtin_object_size (__buf, 2 > 1)) | |
4241 | return __readlink_chk_warn (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1)); | |
4242 | } | |
4243 | return __readlink_alias (__path, __buf, __len); | |
4244 | } | |
4245 | ||
4246 | ||
4247 | ||
4248 | extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, | |
4249 | char *__restrict __buf, size_t __len, | |
4250 | size_t __buflen) | |
4251 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)); | |
4252 | extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) __asm__ ("" "readlinkat") __attribute__ ((__nothrow__ , __leaf__)) | |
4253 | ||
4254 | ||
4255 | ||
4256 | __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)); | |
4257 | extern ssize_t __readlinkat_chk_warn (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) __asm__ ("" "__readlinkat_chk") __attribute__ ((__nothrow__ , __leaf__)) | |
4258 | ||
4259 | ||
4260 | ||
4261 | __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer"))) | |
4262 | ||
4263 | ; | |
4264 | ||
4265 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t | |
4266 | __attribute__ ((__nothrow__ , __leaf__)) readlinkat (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) | |
4267 | ||
4268 | { | |
4269 | if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) | |
4270 | { | |
4271 | if (!__builtin_constant_p (__len)) | |
4272 | return __readlinkat_chk (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1)); | |
4273 | ||
4274 | if (__len > __builtin_object_size (__buf, 2 > 1)) | |
4275 | return __readlinkat_chk_warn (__fd, __path, __buf, __len, | |
4276 | __builtin_object_size (__buf, 2 > 1)); | |
4277 | } | |
4278 | return __readlinkat_alias (__fd, __path, __buf, __len); | |
4279 | } | |
4280 | ||
4281 | ||
4282 | extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) | |
4283 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
4284 | extern char *__getcwd_alias (char *__buf, size_t __size) __asm__ ("" "getcwd") __attribute__ ((__nothrow__ , __leaf__)) | |
4285 | __attribute__ ((__warn_unused_result__)); | |
4286 | extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) __asm__ ("" "__getcwd_chk") __attribute__ ((__nothrow__ , __leaf__)) | |
4287 | ||
4288 | ||
4289 | __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer"))) | |
4290 | ; | |
4291 | ||
4292 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * | |
4293 | __attribute__ ((__nothrow__ , __leaf__)) getcwd (char *__buf, size_t __size) | |
4294 | { | |
4295 | if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) | |
4296 | { | |
4297 | if (!__builtin_constant_p (__size)) | |
4298 | return __getcwd_chk (__buf, __size, __builtin_object_size (__buf, 2 > 1)); | |
4299 | ||
4300 | if (__size > __builtin_object_size (__buf, 2 > 1)) | |
4301 | return __getcwd_chk_warn (__buf, __size, __builtin_object_size (__buf, 2 > 1)); | |
4302 | } | |
4303 | return __getcwd_alias (__buf, __size); | |
4304 | } | |
4305 | ||
4306 | ||
4307 | extern char *__getwd_chk (char *__buf, size_t buflen) | |
4308 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
4309 | extern char *__getwd_warn (char *__buf) __asm__ ("" "getwd") __attribute__ ((__nothrow__ , __leaf__)) | |
4310 | __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size"))) | |
4311 | ; | |
4312 | ||
4313 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * | |
4314 | __attribute__ ((__nothrow__ , __leaf__)) getwd (char *__buf) | |
4315 | { | |
4316 | if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) | |
4317 | return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1)); | |
4318 | return __getwd_warn (__buf); | |
4319 | } | |
4320 | ||
4321 | ||
4322 | extern size_t __confstr_chk (int __name, char *__buf, size_t __len, | |
4323 | size_t __buflen) __attribute__ ((__nothrow__ , __leaf__)); | |
4324 | extern size_t __confstr_alias (int __name, char *__buf, size_t __len) __asm__ ("" "confstr") __attribute__ ((__nothrow__ , __leaf__)) | |
4325 | ; | |
4326 | extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) __asm__ ("" "__confstr_chk") __attribute__ ((__nothrow__ , __leaf__)) | |
4327 | ||
4328 | ||
4329 | __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer"))) | |
4330 | ; | |
4331 | ||
4332 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t | |
4333 | __attribute__ ((__nothrow__ , __leaf__)) confstr (int __name, char *__buf, size_t __len) | |
4334 | { | |
4335 | if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) | |
4336 | { | |
4337 | if (!__builtin_constant_p (__len)) | |
4338 | return __confstr_chk (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1)); | |
4339 | ||
4340 | if (__builtin_object_size (__buf, 2 > 1) < __len) | |
4341 | return __confstr_chk_warn (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1)); | |
4342 | } | |
4343 | return __confstr_alias (__name, __buf, __len); | |
4344 | } | |
4345 | ||
4346 | ||
4347 | extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) | |
4348 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); | |
4349 | extern int __getgroups_alias (int __size, __gid_t __list[]) __asm__ ("" "getgroups") __attribute__ ((__nothrow__ , __leaf__)) | |
4350 | __attribute__ ((__warn_unused_result__)); | |
4351 | extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) __asm__ ("" "__getgroups_chk") __attribute__ ((__nothrow__ , __leaf__)) | |
4352 | ||
4353 | ||
4354 | __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer"))) | |
4355 | ; | |
4356 | ||
4357 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
4358 | __attribute__ ((__nothrow__ , __leaf__)) getgroups (int __size, __gid_t __list[]) | |
4359 | { | |
4360 | if (__builtin_object_size (__list, 2 > 1) != (size_t) -1) | |
4361 | { | |
4362 | if (!__builtin_constant_p (__size) || __size < 0) | |
4363 | return __getgroups_chk (__size, __list, __builtin_object_size (__list, 2 > 1)); | |
4364 | ||
4365 | if (__size * sizeof (__gid_t) > __builtin_object_size (__list, 2 > 1)) | |
4366 | return __getgroups_chk_warn (__size, __list, __builtin_object_size (__list, 2 > 1)); | |
4367 | } | |
4368 | return __getgroups_alias (__size, __list); | |
4369 | } | |
4370 | ||
4371 | ||
4372 | extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, | |
4373 | size_t __nreal) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); | |
4374 | extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) __asm__ ("" "ttyname_r") __attribute__ ((__nothrow__ , __leaf__)) | |
4375 | ||
4376 | __attribute__ ((__nonnull__ (2))); | |
4377 | extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__ttyname_r_chk") __attribute__ ((__nothrow__ , __leaf__)) | |
4378 | ||
4379 | ||
4380 | __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer"))) | |
4381 | ; | |
4382 | ||
4383 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
4384 | __attribute__ ((__nothrow__ , __leaf__)) ttyname_r (int __fd, char *__buf, size_t __buflen) | |
4385 | { | |
4386 | if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) | |
4387 | { | |
4388 | if (!__builtin_constant_p (__buflen)) | |
4389 | return __ttyname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)); | |
4390 | ||
4391 | if (__buflen > __builtin_object_size (__buf, 2 > 1)) | |
4392 | return __ttyname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)); | |
4393 | } | |
4394 | return __ttyname_r_alias (__fd, __buf, __buflen); | |
4395 | } | |
4396 | ||
4397 | ||
4398 | ||
4399 | extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) | |
4400 | __attribute__ ((__nonnull__ (1))); | |
4401 | extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r") | |
4402 | __attribute__ ((__nonnull__ (1))); | |
4403 | extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk") | |
4404 | ||
4405 | ||
4406 | __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer"))) | |
4407 | ; | |
4408 | ||
4409 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
4410 | getlogin_r (char *__buf, size_t __buflen) | |
4411 | { | |
4412 | if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) | |
4413 | { | |
4414 | if (!__builtin_constant_p (__buflen)) | |
4415 | return __getlogin_r_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)); | |
4416 | ||
4417 | if (__buflen > __builtin_object_size (__buf, 2 > 1)) | |
4418 | return __getlogin_r_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)); | |
4419 | } | |
4420 | return __getlogin_r_alias (__buf, __buflen); | |
4421 | } | |
4422 | ||
4423 | ||
4424 | ||
4425 | ||
4426 | extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) | |
4427 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); | |
4428 | extern int __gethostname_alias (char *__buf, size_t __buflen) __asm__ ("" "gethostname") __attribute__ ((__nothrow__ , __leaf__)) | |
4429 | __attribute__ ((__nonnull__ (1))); | |
4430 | extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__gethostname_chk") __attribute__ ((__nothrow__ , __leaf__)) | |
4431 | ||
4432 | ||
4433 | __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer"))) | |
4434 | ; | |
4435 | ||
4436 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
4437 | __attribute__ ((__nothrow__ , __leaf__)) gethostname (char *__buf, size_t __buflen) | |
4438 | { | |
4439 | if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) | |
4440 | { | |
4441 | if (!__builtin_constant_p (__buflen)) | |
4442 | return __gethostname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)); | |
4443 | ||
4444 | if (__buflen > __builtin_object_size (__buf, 2 > 1)) | |
4445 | return __gethostname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)); | |
4446 | } | |
4447 | return __gethostname_alias (__buf, __buflen); | |
4448 | } | |
4449 | ||
4450 | ||
4451 | ||
4452 | ||
4453 | extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) | |
4454 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
4455 | extern int __getdomainname_alias (char *__buf, size_t __buflen) __asm__ ("" "getdomainname") __attribute__ ((__nothrow__ , __leaf__)) | |
4456 | ||
4457 | __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); | |
4458 | extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getdomainname_chk") __attribute__ ((__nothrow__ , __leaf__)) | |
4459 | ||
4460 | ||
4461 | __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer"))) | |
4462 | ||
4463 | ; | |
4464 | ||
4465 | extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int | |
4466 | __attribute__ ((__nothrow__ , __leaf__)) getdomainname (char *__buf, size_t __buflen) | |
4467 | { | |
4468 | if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) | |
4469 | { | |
4470 | if (!__builtin_constant_p (__buflen)) | |
4471 | return __getdomainname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)); | |
4472 | ||
4473 | if (__buflen > __builtin_object_size (__buf, 2 > 1)) | |
4474 | return __getdomainname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)); | |
4475 | } | |
4476 | return __getdomainname_alias (__buf, __buflen); | |
4477 | } | |
4478 | # 1152 "/usr/include/unistd.h" 2 3 4 | |
4479 | ||
4480 | ||
4481 | ||
4482 | # 59 "writepart.c" 2 | |
4483 | # 1 "/usr/include/sys/ioctl.h" 1 3 4 | |
4484 | # 23 "/usr/include/sys/ioctl.h" 3 4 | |
4485 | ||
4486 | ||
4487 | ||
4488 | # 1 "/usr/include/bits/ioctls.h" 1 3 4 | |
4489 | # 23 "/usr/include/bits/ioctls.h" 3 4 | |
4490 | # 1 "/usr/include/asm/ioctls.h" 1 3 4 | |
4491 | # 1 "/usr/include/asm-generic/ioctls.h" 1 3 4 | |
4492 | ||
4493 | ||
4494 | ||
4495 | # 1 "/usr/include/linux/ioctl.h" 1 3 4 | |
4496 | ||
4497 | ||
4498 | ||
4499 | # 1 "/usr/include/asm/ioctl.h" 1 3 4 | |
4500 | # 1 "/usr/include/asm-generic/ioctl.h" 1 3 4 | |
4501 | # 1 "/usr/include/asm/ioctl.h" 2 3 4 | |
4502 | # 5 "/usr/include/linux/ioctl.h" 2 3 4 | |
4503 | # 5 "/usr/include/asm-generic/ioctls.h" 2 3 4 | |
4504 | # 1 "/usr/include/asm/ioctls.h" 2 3 4 | |
4505 | # 24 "/usr/include/bits/ioctls.h" 2 3 4 | |
4506 | # 27 "/usr/include/sys/ioctl.h" 2 3 4 | |
4507 | ||
4508 | ||
4509 | # 1 "/usr/include/bits/ioctl-types.h" 1 3 4 | |
4510 | # 24 "/usr/include/bits/ioctl-types.h" 3 4 | |
4511 | # 1 "/usr/include/asm/ioctls.h" 1 3 4 | |
4512 | # 25 "/usr/include/bits/ioctl-types.h" 2 3 4 | |
4513 | ||
4514 | ||
4515 | struct winsize | |
4516 | { | |
4517 | unsigned short int ws_row; | |
4518 | unsigned short int ws_col; | |
4519 | unsigned short int ws_xpixel; | |
4520 | unsigned short int ws_ypixel; | |
4521 | }; | |
4522 | ||
4523 | ||
4524 | struct termio | |
4525 | { | |
4526 | unsigned short int c_iflag; | |
4527 | unsigned short int c_oflag; | |
4528 | unsigned short int c_cflag; | |
4529 | unsigned short int c_lflag; | |
4530 | unsigned char c_line; | |
4531 | unsigned char c_cc[8]; | |
4532 | }; | |
4533 | # 30 "/usr/include/sys/ioctl.h" 2 3 4 | |
4534 | ||
4535 | ||
4536 | ||
4537 | ||
4538 | ||
4539 | ||
4540 | # 1 "/usr/include/sys/ttydefaults.h" 1 3 4 | |
4541 | # 37 "/usr/include/sys/ioctl.h" 2 3 4 | |
4542 | ||
4543 | ||
4544 | ||
4545 | ||
4546 | extern int ioctl (int __fd, unsigned long int __request, ...) __attribute__ ((__nothrow__ , __leaf__)); | |
4547 | ||
4548 | ||
4549 | # 60 "writepart.c" 2 | |
4550 | ||
4551 | # 1 "/usr/include/linux/fs.h" 1 3 4 | |
4552 | # 9 "/usr/include/linux/fs.h" 3 4 | |
4553 | # 1 "/usr/include/linux/limits.h" 1 3 4 | |
4554 | # 10 "/usr/include/linux/fs.h" 2 3 4 | |
4555 | ||
4556 | # 1 "/usr/include/linux/types.h" 1 3 4 | |
4557 | ||
4558 | ||
4559 | ||
4560 | # 1 "/usr/include/asm/types.h" 1 3 4 | |
4561 | ||
4562 | ||
4563 | ||
4564 | # 1 "/usr/include/asm-generic/types.h" 1 3 4 | |
4565 | ||
4566 | ||
4567 | ||
4568 | ||
4569 | ||
4570 | # 1 "/usr/include/asm-generic/int-ll64.h" 1 3 4 | |
4571 | # 11 "/usr/include/asm-generic/int-ll64.h" 3 4 | |
4572 | # 1 "/usr/include/asm/bitsperlong.h" 1 3 4 | |
4573 | # 10 "/usr/include/asm/bitsperlong.h" 3 4 | |
4574 | # 1 "/usr/include/asm-generic/bitsperlong.h" 1 3 4 | |
4575 | # 11 "/usr/include/asm/bitsperlong.h" 2 3 4 | |
4576 | # 12 "/usr/include/asm-generic/int-ll64.h" 2 3 4 | |
4577 | ||
4578 | ||
4579 | ||
4580 | ||
4581 | ||
4582 | ||
4583 | ||
4584 | typedef __signed__ char __s8; | |
4585 | typedef unsigned char __u8; | |
4586 | ||
4587 | typedef __signed__ short __s16; | |
4588 | typedef unsigned short __u16; | |
4589 | ||
4590 | typedef __signed__ int __s32; | |
4591 | typedef unsigned int __u32; | |
4592 | ||
4593 | ||
4594 | __extension__ typedef __signed__ long long __s64; | |
4595 | __extension__ typedef unsigned long long __u64; | |
4596 | # 7 "/usr/include/asm-generic/types.h" 2 3 4 | |
4597 | # 5 "/usr/include/asm/types.h" 2 3 4 | |
4598 | # 5 "/usr/include/linux/types.h" 2 3 4 | |
4599 | ||
4600 | ||
4601 | ||
4602 | # 1 "/usr/include/linux/posix_types.h" 1 3 4 | |
4603 | ||
4604 | ||
4605 | ||
4606 | # 1 "/usr/include/linux/stddef.h" 1 3 4 | |
4607 | # 5 "/usr/include/linux/posix_types.h" 2 3 4 | |
4608 | # 24 "/usr/include/linux/posix_types.h" 3 4 | |
4609 | typedef struct { | |
4610 | unsigned long fds_bits[1024 / (8 * sizeof(long))]; | |
4611 | } __kernel_fd_set; | |
4612 | ||
4613 | ||
4614 | typedef void (*__kernel_sighandler_t)(int); | |
4615 | ||
4616 | ||
4617 | typedef int __kernel_key_t; | |
4618 | typedef int __kernel_mqd_t; | |
4619 | ||
4620 | # 1 "/usr/include/asm/posix_types.h" 1 3 4 | |
4621 | ||
4622 | ||
4623 | ||
4624 | ||
4625 | ||
4626 | # 1 "/usr/include/asm/posix_types_64.h" 1 3 4 | |
4627 | # 10 "/usr/include/asm/posix_types_64.h" 3 4 | |
4628 | typedef unsigned short __kernel_old_uid_t; | |
4629 | typedef unsigned short __kernel_old_gid_t; | |
4630 | ||
4631 | ||
4632 | typedef unsigned long __kernel_old_dev_t; | |
4633 | ||
4634 | ||
4635 | # 1 "/usr/include/asm-generic/posix_types.h" 1 3 4 | |
4636 | # 14 "/usr/include/asm-generic/posix_types.h" 3 4 | |
4637 | typedef long __kernel_long_t; | |
4638 | typedef unsigned long __kernel_ulong_t; | |
4639 | ||
4640 | ||
4641 | ||
4642 | typedef __kernel_ulong_t __kernel_ino_t; | |
4643 | ||
4644 | ||
4645 | ||
4646 | typedef unsigned int __kernel_mode_t; | |
4647 | ||
4648 | ||
4649 | ||
4650 | typedef int __kernel_pid_t; | |
4651 | ||
4652 | ||
4653 | ||
4654 | typedef int __kernel_ipc_pid_t; | |
4655 | ||
4656 | ||
4657 | ||
4658 | typedef unsigned int __kernel_uid_t; | |
4659 | typedef unsigned int __kernel_gid_t; | |
4660 | ||
4661 | ||
4662 | ||
4663 | typedef __kernel_long_t __kernel_suseconds_t; | |
4664 | ||
4665 | ||
4666 | ||
4667 | typedef int __kernel_daddr_t; | |
4668 | ||
4669 | ||
4670 | ||
4671 | typedef unsigned int __kernel_uid32_t; | |
4672 | typedef unsigned int __kernel_gid32_t; | |
4673 | # 71 "/usr/include/asm-generic/posix_types.h" 3 4 | |
4674 | typedef __kernel_ulong_t __kernel_size_t; | |
4675 | typedef __kernel_long_t __kernel_ssize_t; | |
4676 | typedef __kernel_long_t __kernel_ptrdiff_t; | |
4677 | ||
4678 | ||
4679 | ||
4680 | ||
4681 | typedef struct { | |
4682 | int val[2]; | |
4683 | } __kernel_fsid_t; | |
4684 | ||
4685 | ||
4686 | ||
4687 | ||
4688 | ||
4689 | typedef __kernel_long_t __kernel_off_t; | |
4690 | typedef long long __kernel_loff_t; | |
4691 | typedef __kernel_long_t __kernel_time_t; | |
4692 | typedef __kernel_long_t __kernel_clock_t; | |
4693 | typedef int __kernel_timer_t; | |
4694 | typedef int __kernel_clockid_t; | |
4695 | typedef char * __kernel_caddr_t; | |
4696 | typedef unsigned short __kernel_uid16_t; | |
4697 | typedef unsigned short __kernel_gid16_t; | |
4698 | # 18 "/usr/include/asm/posix_types_64.h" 2 3 4 | |
4699 | # 7 "/usr/include/asm/posix_types.h" 2 3 4 | |
4700 | # 36 "/usr/include/linux/posix_types.h" 2 3 4 | |
4701 | # 9 "/usr/include/linux/types.h" 2 3 4 | |
4702 | # 27 "/usr/include/linux/types.h" 3 4 | |
4703 | typedef __u16 __le16; | |
4704 | typedef __u16 __be16; | |
4705 | typedef __u32 __le32; | |
4706 | typedef __u32 __be32; | |
4707 | typedef __u64 __le64; | |
4708 | typedef __u64 __be64; | |
4709 | ||
4710 | typedef __u16 __sum16; | |
4711 | typedef __u32 __wsum; | |
4712 | # 12 "/usr/include/linux/fs.h" 2 3 4 | |
4713 | # 42 "/usr/include/linux/fs.h" 3 4 | |
4714 | struct fstrim_range { | |
4715 | __u64 start; | |
4716 | __u64 len; | |
4717 | __u64 minlen; | |
4718 | }; | |
4719 | ||
4720 | ||
4721 | struct files_stat_struct { | |
4722 | unsigned long nr_files; | |
4723 | unsigned long nr_free_files; | |
4724 | unsigned long max_files; | |
4725 | }; | |
4726 | ||
4727 | struct inodes_stat_t { | |
4728 | long nr_inodes; | |
4729 | long nr_unused; | |
4730 | long dummy[5]; | |
4731 | }; | |
4732 | # 62 "writepart.c" 2 | |
4733 | ||
4734 | ||
4735 | # 1 "fdisk.h" 1 | |
4736 | # 42 "fdisk.h" | |
4737 | # 1 "/usr/include/setjmp.h" 1 3 4 | |
4738 | # 27 "/usr/include/setjmp.h" 3 4 | |
4739 | ||
4740 | ||
4741 | # 1 "/usr/include/bits/setjmp.h" 1 3 4 | |
4742 | # 26 "/usr/include/bits/setjmp.h" 3 4 | |
4743 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
4744 | # 27 "/usr/include/bits/setjmp.h" 2 3 4 | |
4745 | ||
4746 | ||
4747 | ||
4748 | ||
4749 | typedef long int __jmp_buf[8]; | |
4750 | # 30 "/usr/include/setjmp.h" 2 3 4 | |
4751 | # 1 "/usr/include/bits/sigset.h" 1 3 4 | |
4752 | # 31 "/usr/include/setjmp.h" 2 3 4 | |
4753 | ||
4754 | ||
4755 | ||
4756 | struct __jmp_buf_tag | |
4757 | { | |
4758 | ||
4759 | ||
4760 | ||
4761 | ||
4762 | __jmp_buf __jmpbuf; | |
4763 | int __mask_was_saved; | |
4764 | __sigset_t __saved_mask; | |
4765 | }; | |
4766 | ||
4767 | ||
4768 | ||
4769 | ||
4770 | typedef struct __jmp_buf_tag jmp_buf[1]; | |
4771 | ||
4772 | ||
4773 | ||
4774 | extern int setjmp (jmp_buf __env) __attribute__ ((__nothrow__)); | |
4775 | ||
4776 | ||
4777 | ||
4778 | ||
4779 | ||
4780 | ||
4781 | extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) __attribute__ ((__nothrow__)); | |
4782 | ||
4783 | ||
4784 | ||
4785 | extern int _setjmp (struct __jmp_buf_tag __env[1]) __attribute__ ((__nothrow__)); | |
4786 | ||
4787 | ||
4788 | ||
4789 | ||
4790 | ||
4791 | ||
4792 | ||
4793 | ||
4794 | ||
4795 | ||
4796 | extern void longjmp (struct __jmp_buf_tag __env[1], int __val) | |
4797 | __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); | |
4798 | ||
4799 | ||
4800 | ||
4801 | ||
4802 | ||
4803 | ||
4804 | ||
4805 | extern void _longjmp (struct __jmp_buf_tag __env[1], int __val) | |
4806 | __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); | |
4807 | ||
4808 | ||
4809 | ||
4810 | ||
4811 | ||
4812 | ||
4813 | ||
4814 | typedef struct __jmp_buf_tag sigjmp_buf[1]; | |
4815 | # 102 "/usr/include/setjmp.h" 3 4 | |
4816 | extern void siglongjmp (sigjmp_buf __env, int __val) | |
4817 | __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); | |
4818 | ||
4819 | ||
4820 | ||
4821 | ||
4822 | ||
4823 | # 1 "/usr/include/bits/setjmp2.h" 1 3 4 | |
4824 | # 25 "/usr/include/bits/setjmp2.h" 3 4 | |
4825 | extern void longjmp (struct __jmp_buf_tag __env[1], int __val) __asm__ ("" "__longjmp_chk") __attribute__ ((__nothrow__)) | |
4826 | ||
4827 | __attribute__ ((__noreturn__)); | |
4828 | extern void _longjmp (struct __jmp_buf_tag __env[1], int __val) __asm__ ("" "__longjmp_chk") __attribute__ ((__nothrow__)) | |
4829 | ||
4830 | __attribute__ ((__noreturn__)); | |
4831 | extern void siglongjmp (struct __jmp_buf_tag __env[1], int __val) __asm__ ("" "__longjmp_chk") __attribute__ ((__nothrow__)) | |
4832 | ||
4833 | __attribute__ ((__noreturn__)); | |
4834 | # 110 "/usr/include/setjmp.h" 2 3 4 | |
4835 | ||
4836 | ||
4837 | ||
4838 | # 43 "fdisk.h" 2 | |
4839 | ||
4840 | ||
4841 | # 1 "version.h" 1 | |
4842 | # 46 "fdisk.h" 2 | |
4843 | # 71 "fdisk.h" | |
4844 | ||
4845 | # 71 "fdisk.h" | |
4846 | enum failure { | |
4847 | usage, | |
4848 | unable_to_open, | |
4849 | unable_to_read, | |
4850 | unable_to_seek, | |
4851 | unable_to_write, | |
4852 | out_of_memory, | |
4853 | couldnt_save_sectors, | |
4854 | general | |
4855 | }; | |
4856 | ||
4857 | enum offset { ignore, lower, deflt, upper }; | |
4858 | ||
4859 | struct systypes { | |
4860 | unsigned char index; | |
4861 | char *name; | |
4862 | }; | |
4863 | ||
4864 | enum { | |
4865 | xfmt_unknown, | |
4866 | xfmt_AHDI, | |
4867 | xfmt_ICD | |
4868 | } xpart_fmt; | |
4869 | # 103 "fdisk.h" | |
4870 | struct apartition { | |
4871 | unsigned char flag; | |
4872 | char id[3]; | |
4873 | unsigned long start; | |
4874 | unsigned long size; | |
4875 | } __attribute((packed)); | |
4876 | ||
4877 | struct rootsector { | |
4878 | char unused[0x156]; | |
4879 | struct apartition icdpart[8]; | |
4880 | char unused2[0xc]; | |
4881 | unsigned long hd_size; | |
4882 | struct apartition part[4]; | |
4883 | unsigned long bsl_st; | |
4884 | unsigned long bsl_cnt; | |
4885 | unsigned short checksum; | |
4886 | } __attribute((packed)); | |
4887 | ||
4888 | ||
4889 | ||
4890 | ||
4891 | ||
4892 | ||
4893 | typedef struct _PARTITION { | |
4894 | unsigned long start; | |
4895 | unsigned long size; | |
4896 | int flag; | |
4897 | char id[4]; | |
4898 | unsigned long rootsec; | |
4899 | ||
4900 | ||
4901 | ||
4902 | ||
4903 | ||
4904 | int contents_valid; | |
4905 | } PARTITION; | |
4906 | ||
4907 | struct bootflags { | |
4908 | unsigned char flag; | |
4909 | char *name; | |
4910 | char *short_name; | |
4911 | }; | |
4912 | ||
4913 | struct partition_ID { | |
4914 | char id[4]; | |
4915 | char *name; | |
4916 | }; | |
4917 | ||
4918 | struct option { | |
4919 | char *name; | |
4920 | int *flag; | |
4921 | char *description; | |
4922 | }; | |
4923 | ||
4924 | ||
4925 | ||
4926 | ||
4927 | ||
4928 | ||
4929 | extern int type_open; | |
4930 | ||
4931 | extern char *disk_device; | |
4932 | extern char *line_ptr; | |
4933 | extern char line_buffer[80]; | |
4934 | ||
4935 | extern int fd; | |
4936 | extern int ext_index; | |
4937 | extern int listing; | |
4938 | extern int size_flag; | |
4939 | extern int force; | |
4940 | ||
4941 | extern int expert_mode; | |
4942 | extern int partitions; | |
4943 | ||
4944 | extern char *save_sector_file; | |
4945 | extern char *restore_sector_file; | |
4946 | ||
4947 | extern unsigned long hd_size; | |
4948 | extern unsigned long rs_hd_size; | |
4949 | extern unsigned long bsl_start; | |
4950 | extern unsigned long bsl_size; | |
4951 | extern unsigned long saved_bsl_start; | |
4952 | extern unsigned long saved_bsl_size; | |
4953 | extern int bsl_HDX_compat; | |
4954 | extern int XGM_flag; | |
4955 | ||
4956 | ||
4957 | extern PARTITION part_table[64]; | |
4958 | ||
4959 | extern struct bootflags bootflags[]; | |
4960 | extern int n_bootflags; | |
4961 | extern struct partition_ID partition_IDs[]; | |
4962 | extern int n_partition_IDs; | |
4963 | # 208 "fdisk.h" | |
4964 | extern jmp_buf listingbuf; | |
4965 | # 227 "fdisk.h" | |
4966 | static __inline__ unsigned short swab16( unsigned short val ) | |
4967 | { | |
4968 | return( (val << 8) | (val >> 8) ); | |
4969 | } | |
4970 | ||
4971 | static __inline__ unsigned long swab32( unsigned long val ) | |
4972 | { | |
4973 | unsigned short vall = val, valh = val >> 16; | |
4974 | vall = (vall << 8) | (vall >> 8); | |
4975 | valh = (valh << 8) | (valh >> 8); | |
4976 | return( (vall << 16) | valh ); | |
4977 | } | |
4978 | # 65 "writepart.c" 2 | |
4979 | # 1 "disk.h" 1 | |
4980 | # 36 "disk.h" | |
4981 | int sseek( unsigned int fd, unsigned long s ); | |
4982 | int sseek( unsigned int fd, unsigned long s ); | |
4983 | void sread( char *buffer, unsigned long secno ); | |
4984 | int msread( char *buffer, unsigned long secno, unsigned n ); | |
4985 | void dump_sector( unsigned long sec, unsigned char *buf ); | |
4986 | void swrite( char *buf, unsigned long secno ); | |
4987 | int dangerous_write( int fd, char *buf, unsigned long secno ); | |
4988 | int mswrite( char *buf, unsigned long secno, unsigned n ); | |
4989 | # 66 "writepart.c" 2 | |
4990 | # 1 "util.h" 1 | |
4991 | # 41 "util.h" | |
4992 | void fatal( enum failure why ) __attribute((noreturn)); | |
4993 | char *round_mb( unsigned long secs ); | |
4994 | char *atari_partition_type( char *type); | |
4995 | int is_valid_PID( const char *id ); | |
4996 | int is_reasonable_PID( const char *id ); | |
4997 | int is_valid_part_entry( struct apartition *pi ); | |
4998 | void list_atari_types( void ); | |
4999 | char *atari_boot_type( unsigned char flag); | |
5000 | char *atari_boot_type_short( unsigned char flag); | |
5001 | int check_rootsec_checksum( char *buf ); | |
5002 | void recalc_rootsec_checksum( char *buf ); | |
5003 | # 67 "writepart.c" 2 | |
5004 | # 1 "readpart.h" 1 | |
5005 | # 35 "readpart.h" | |
5006 | void swab_rs( struct rootsector *rs ); | |
5007 | void get_boot( void ); | |
5008 | # 68 "writepart.c" 2 | |
5009 | ||
5010 | ||
5011 | ||
5012 | int reread_ioctl( int fd ) | |
5013 | { | |
5014 | ||
5015 | if (ioctl( fd, | |
5016 | # 74 "writepart.c" 3 4 | |
5017 | (((0U) << (((0 +8)+8)+14)) | (((0x12)) << (0 +8)) | (((95)) << 0) | ((0) << ((0 +8)+8))) | |
5018 | # 74 "writepart.c" | |
5019 | )) { | |
5020 | perror( "\nBLKRRPART" ); | |
5021 | return -1; | |
5022 | } | |
5023 | return 0; | |
5024 | ||
5025 | ||
5026 | ||
5027 | ||
5028 | } | |
5029 | ||
5030 | ||
5031 | void reread_disk_partition( int fd ) | |
5032 | { | |
5033 | printf( "Re-reading the partition table ...\n" ); | |
5034 | fflush( | |
5035 | # 89 "writepart.c" 3 4 | |
5036 | stdout | |
5037 | # 89 "writepart.c" | |
5038 | ); | |
5039 | sync(); | |
5040 | sleep(3); | |
5041 | ||
5042 | if (reread_ioctl(fd)) | |
5043 | printf( "The command to re-read the partition table failed!\n" | |
5044 | "Reboot your system now to make sure that the partition table " | |
5045 | "is reread!\n" ); | |
5046 | } | |
5047 | ||
5048 | static void PART2diskpart( PARTITION *cp, struct apartition *dp, | |
5049 | unsigned long relto ) | |
5050 | { | |
5051 | dp->start = cp->start - relto; | |
5052 | dp->size = cp->size; | |
5053 | dp->flag = cp->flag | 0x01; | |
5054 | memcpy( dp->id, cp->id, 3 ); | |
5055 | } | |
5056 | ||
5057 | static void set_checksum( char *buffer, int was_bootable ) | |
5058 | { | |
5059 | ||
5060 | recalc_rootsec_checksum( buffer ); | |
5061 | if (!was_bootable) { | |
5062 | ||
5063 | ||
5064 | ||
5065 | short *cks = (short *)&buffer[512 -2]; | |
5066 | ++(*cks); | |
5067 | ||
5068 | if (*cks == 0x55aa) | |
5069 | ++(*cks); | |
5070 | } | |
5071 | } | |
5072 | ||
5073 | ||
5074 | void put_boot( int first_ext, int last_ext, PARTITION *master_XGM ) | |
5075 | { | |
5076 | char buffer[512]; | |
5077 | struct rootsector *rs = (struct rootsector *)buffer; | |
5078 | struct apartition *pi; | |
5079 | int i, bootable; | |
5080 | PARTITION cont_XGM; | |
5081 | ||
5082 | ||
5083 | sread( buffer, 0 ); | |
5084 | swab_rs( rs ); | |
5085 | bootable = check_rootsec_checksum( buffer ); | |
5086 | ||
5087 | ||
5088 | pi = &rs->part[0]; | |
5089 | for( i = 0; i < partitions; ++i ) { | |
5090 | if (i == first_ext) { | |
5091 | ||
5092 | PART2diskpart( master_XGM, pi, 0 ); | |
5093 | } | |
5094 | else if (i > first_ext && i <= last_ext) | |
5095 | ||
5096 | continue; | |
5097 | else { | |
5098 | ||
5099 | PART2diskpart( &part_table[i], pi, 0 ); | |
5100 | } | |
5101 | ++pi; | |
5102 | } | |
5103 | ||
5104 | for( ; pi <= &rs->part[3]; ++pi ) | |
5105 | pi->flag &= ~0x01; | |
5106 | ||
5107 | ||
5108 | ||
5109 | if (xpart_fmt == xfmt_ICD && partitions > 4) { | |
5110 | for( pi = &rs->icdpart[0], i = 4; | |
5111 | i < partitions && i < 12; | |
5112 | ++i, ++pi ) | |
5113 | PART2diskpart( &part_table[i], pi, 0 ); | |
5114 | ||
5115 | for( ; pi <= &rs->icdpart[7]; ++pi ) | |
5116 | pi->flag &= ~0x01; | |
5117 | } | |
5118 | ||
5119 | ||
5120 | rs->hd_size = rs_hd_size; | |
5121 | rs->bsl_st = bsl_start; | |
5122 | rs->bsl_cnt = bsl_size; | |
5123 | ||
5124 | ||
5125 | set_checksum( buffer, bootable ); | |
5126 | swab_rs( rs ); | |
5127 | swrite( buffer, 0 ); | |
5128 | ||
5129 | ||
5130 | if (xpart_fmt == xfmt_AHDI && first_ext >= 0) { | |
5131 | for( i = first_ext; i <= last_ext; ++i ) { | |
5132 | sread( buffer, part_table[i].rootsec ); | |
5133 | swab_rs( rs ); | |
5134 | bootable = check_rootsec_checksum( buffer ); | |
5135 | # 195 "writepart.c" | |
5136 | PART2diskpart( &part_table[i], &rs->part[0], | |
5137 | part_table[i].rootsec ); | |
5138 | ||
5139 | if (i == last_ext) { | |
5140 | ||
5141 | rs->part[1].flag &= ~0x01; | |
5142 | } | |
5143 | else { | |
5144 | ||
5145 | ||
5146 | ||
5147 | ||
5148 | ||
5149 | ||
5150 | cont_XGM.start = part_table[i+1].rootsec; | |
5151 | cont_XGM.size = part_table[i+1].start + | |
5152 | part_table[i+1].size - cont_XGM.start; | |
5153 | cont_XGM.flag = 0; | |
5154 | strcpy( cont_XGM.id, "XGM" ); | |
5155 | ||
5156 | ||
5157 | PART2diskpart( &cont_XGM, &rs->part[1], master_XGM->start ); | |
5158 | } | |
5159 | ||
5160 | ||
5161 | rs->part[2].flag &= ~0x01; | |
5162 | rs->part[3].flag &= ~0x01; | |
5163 | ||
5164 | ||
5165 | ||
5166 | ||
5167 | ||
5168 | ||
5169 | if (i == first_ext) | |
5170 | set_checksum( buffer, bootable ); | |
5171 | swab_rs( rs ); | |
5172 | swrite( buffer, part_table[i].rootsec ); | |
5173 | } | |
5174 | } | |
5175 | ||
5176 | ||
5177 | if (bsl_size > 0 && | |
5178 | (bsl_start != saved_bsl_start || bsl_size != saved_bsl_size)) { | |
5179 | unsigned long sec; | |
5180 | for( sec = bsl_start; sec < bsl_start+bsl_size; ++sec ) { | |
5181 | memset( buffer, 0, 512 ); | |
5182 | if (sec == bsl_start && bsl_HDX_compat) | |
5183 | ||
5184 | buffer[3] = 0xa5; | |
5185 | swrite( buffer, sec ); | |
5186 | } | |
5187 | } | |
5188 | ||
5189 | reread_disk_partition( fd ); | |
5190 | } |