4 # 1 "/usr/include/stdc-predef.h" 1 3 4
8 static char vcid[] __attribute__ ((unused)) =
9 "$Id: writepart.c,v 1.8 1998/02/07 21:27:17 rnhodek Exp $";
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
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
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
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
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;
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;
59 typedef signed long int __int64_t;
60 typedef unsigned long int __uint64_t;
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
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;
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;
94 typedef int __daddr_t;
98 typedef int __clockid_t;
101 typedef void * __timer_t;
104 typedef long int __blksize_t;
109 typedef long int __blkcnt_t;
110 typedef long int __blkcnt64_t;
113 typedef unsigned long int __fsblkcnt_t;
114 typedef unsigned long int __fsblkcnt64_t;
117 typedef unsigned long int __fsfilcnt_t;
118 typedef unsigned long int __fsfilcnt64_t;
121 typedef long int __fsword_t;
123 typedef long int __ssize_t;
126 typedef long int __syscall_slong_t;
128 typedef unsigned long int __syscall_ulong_t;
132 typedef __off64_t __loff_t;
133 typedef __quad_t *__qaddr_t;
134 typedef char *__caddr_t;
137 typedef long int __intptr_t;
140 typedef unsigned int __socklen_t;
141 # 36 "/usr/include/stdio.h" 2 3 4
142 # 44 "/usr/include/stdio.h" 3 4
147 typedef struct _IO_FILE FILE;
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
166 # 1 "/usr/include/wchar.h" 1 3 4
167 # 82 "/usr/include/wchar.h" 3 4
181 # 21 "/usr/include/_G_config.h" 2 3 4
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;
208 struct _IO_marker *_next;
209 struct _IO_FILE *_sbuf;
214 # 177 "/usr/include/libio.h" 3 4
218 enum __codecvt_result
225 # 245 "/usr/include/libio.h" 3 4
235 char* _IO_write_base;
242 char *_IO_backup_base;
245 struct _IO_marker *_markers;
247 struct _IO_FILE *_chain;
259 unsigned short _cur_column;
260 signed char _vtable_offset;
266 # 293 "/usr/include/libio.h" 3 4
268 # 302 "/usr/include/libio.h" 3 4
277 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
282 typedef struct _IO_FILE _IO_FILE;
285 struct _IO_FILE_plus;
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);
299 typedef __ssize_t __io_write_fn (void *__cookie, const char *__buf,
308 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
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__));
322 extern int _IO_peekc_locked (_IO_FILE *__fp);
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,
336 extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
337 extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
339 extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
340 extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
342 extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__));
343 # 75 "/usr/include/stdio.h" 2 3 4
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;
360 typedef _G_fpos_t fpos_t;
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
371 extern struct _IO_FILE *stdin;
372 extern struct _IO_FILE *stdout;
373 extern struct _IO_FILE *stderr;
381 extern int remove (const char *__filename) __attribute__ ((__nothrow__ , __leaf__));
383 extern int rename (const char *__old, const char *__new) __attribute__ ((__nothrow__ , __leaf__));
388 extern int renameat (int __oldfd, const char *__old, int __newfd,
389 const char *__new) __attribute__ ((__nothrow__ , __leaf__));
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__));
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__));
418 extern int fclose (FILE *__stream);
423 extern int fflush (FILE *__stream);
425 # 252 "/usr/include/stdio.h" 3 4
426 extern int fflush_unlocked (FILE *__stream);
427 # 266 "/usr/include/stdio.h" 3 4
434 extern FILE *fopen (const char *__restrict __filename,
435 const char *__restrict __modes) __attribute__ ((__warn_unused_result__));
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
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__));
454 extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
461 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__));
465 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
466 int __modes, size_t __n) __attribute__ ((__nothrow__ , __leaf__));
472 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
473 size_t __size) __attribute__ ((__nothrow__ , __leaf__));
476 extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
485 extern int fprintf (FILE *__restrict __stream,
486 const char *__restrict __format, ...);
491 extern int printf (const char *__restrict __format, ...);
493 extern int sprintf (char *__restrict __s,
494 const char *__restrict __format, ...) __attribute__ ((__nothrow__));
500 extern int vfprintf (FILE *__restrict __s, const char *__restrict __format,
501 __gnuc_va_list __arg);
506 extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg);
508 extern int vsprintf (char *__restrict __s, const char *__restrict __format,
509 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
515 extern int snprintf (char *__restrict __s, size_t __maxlen,
516 const char *__restrict __format, ...)
517 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
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)));
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)));
537 extern int fscanf (FILE *__restrict __stream,
538 const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__));
543 extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__));
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")
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__))
556 # 463 "/usr/include/stdio.h" 3 4
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__));
573 extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg)
574 __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__));
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")
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")
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__))
593 __attribute__ ((__format__ (__scanf__, 2, 0)));
594 # 522 "/usr/include/stdio.h" 3 4
604 extern int fgetc (FILE *__stream);
605 extern int getc (FILE *__stream);
611 extern int getchar (void);
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);
629 extern int fputc (int __c, FILE *__stream);
630 extern int putc (int __c, FILE *__stream);
636 extern int putchar (int __c);
638 # 594 "/usr/include/stdio.h" 3 4
639 extern int fputc_unlocked (int __c, FILE *__stream);
647 extern int putc_unlocked (int __c, FILE *__stream);
648 extern int putchar_unlocked (int __c);
655 extern int getw (FILE *__stream);
658 extern int putw (int __w, FILE *__stream);
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
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__));
685 extern __ssize_t getline (char **__restrict __lineptr,
686 size_t *__restrict __n,
687 FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
696 extern int fputs (const char *__restrict __s, FILE *__restrict __stream);
702 extern int puts (const char *__s);
709 extern int ungetc (int __c, FILE *__stream);
716 extern size_t fread (void *__restrict __ptr, size_t __size,
717 size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
722 extern size_t fwrite (const void *__restrict __ptr, size_t __size,
723 size_t __n, FILE *__restrict __s);
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);
738 extern int fseek (FILE *__stream, long int __off, int __whence);
743 extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__));
748 extern void rewind (FILE *__stream);
750 # 773 "/usr/include/stdio.h" 3 4
751 extern int fseeko (FILE *__stream, __off_t __off, int __whence);
756 extern __off_t ftello (FILE *__stream) __attribute__ ((__warn_unused_result__));
757 # 792 "/usr/include/stdio.h" 3 4
764 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
769 extern int fsetpos (FILE *__stream, const fpos_t *__pos);
770 # 815 "/usr/include/stdio.h" 3 4
772 # 824 "/usr/include/stdio.h" 3 4
775 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
777 extern int feof (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
779 extern int ferror (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
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__));
795 extern void perror (const char *__s);
802 # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
803 # 26 "/usr/include/bits/sys_errlist.h" 3 4
805 extern const char *const sys_errlist[];
806 # 854 "/usr/include/stdio.h" 2 3 4
811 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
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__));
824 extern int pclose (FILE *__stream);
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__));
836 extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
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
846 return _IO_getc (stdin);
852 extern __inline __attribute__ ((__gnu_inline__)) int
853 fgetc_unlocked (FILE *__fp)
855 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
862 extern __inline __attribute__ ((__gnu_inline__)) int
863 getc_unlocked (FILE *__fp)
865 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
869 extern __inline __attribute__ ((__gnu_inline__)) int
870 getchar_unlocked (void)
872 return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
878 extern __inline __attribute__ ((__gnu_inline__)) int
881 return _IO_putc (__c, stdout);
887 extern __inline __attribute__ ((__gnu_inline__)) int
888 fputc_unlocked (int __c, FILE *__stream)
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)));
897 extern __inline __attribute__ ((__gnu_inline__)) int
898 putc_unlocked (int __c, FILE *__stream)
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)));
904 extern __inline __attribute__ ((__gnu_inline__)) int
905 putchar_unlocked (int __c)
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)));
909 # 124 "/usr/include/bits/stdio.h" 3 4
910 extern __inline __attribute__ ((__gnu_inline__)) int
911 __attribute__ ((__nothrow__ , __leaf__)) feof_unlocked (FILE *__stream)
913 return (((__stream)->_flags & 0x10) != 0);
917 extern __inline __attribute__ ((__gnu_inline__)) int
918 __attribute__ ((__nothrow__ , __leaf__)) ferror_unlocked (FILE *__stream)
920 return (((__stream)->_flags & 0x20) != 0);
922 # 934 "/usr/include/stdio.h" 2 3 4
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__));
934 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int
935 __attribute__ ((__nothrow__ , __leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...)
937 return __builtin___sprintf_chk (__s, 2 - 1,
938 __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ());
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)
950 return __builtin___vsprintf_chk (__s, 2 - 1,
951 __builtin_object_size (__s, 2 > 1), __fmt, __ap);
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__));
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, ...)
968 return __builtin___snprintf_chk (__s, __n, 2 - 1,
969 __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ());
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)
981 return __builtin___vsnprintf_chk (__s, __n, 2 - 1,
982 __builtin_object_size (__s, 2 > 1), __fmt, __ap);
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);
998 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int
999 fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
1001 return __fprintf_chk (__stream, 2 - 1, __fmt,
1002 __builtin_va_arg_pack ());
1005 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int
1006 printf (const char *__restrict __fmt, ...)
1008 return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ());
1017 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int
1018 vprintf (const char *__restrict __fmt, __gnuc_va_list __ap)
1021 return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap);
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)
1031 return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap);
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)));
1042 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int
1043 dprintf (int __fd, const char *__restrict __fmt, ...)
1045 return __dprintf_chk (__fd, 2 - 1, __fmt,
1046 __builtin_va_arg_pack ());
1053 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int
1054 vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap)
1056 return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap);
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")
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")
1067 __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer")))
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)
1073 if (__builtin_object_size (__s, 2 > 1) != (size_t) -1)
1075 if (!__builtin_constant_p (__n) || __n <= 0)
1076 return __fgets_chk (__s, __builtin_object_size (__s, 2 > 1), __n, __stream);
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);
1081 return __fgets_alias (__s, __n, __stream);
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")
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")
1096 __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer")))
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)
1103 if (__builtin_object_size (__ptr, 0) != (size_t) -1)
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);
1110 if (__size * __n > __builtin_object_size (__ptr, 0))
1111 return __fread_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream);
1113 return __fread_alias (__ptr, __size, __n, __stream);
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")
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")
1128 __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer")))
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)
1135 if (__builtin_object_size (__ptr, 0) != (size_t) -1)
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,
1143 if (__size * __n > __builtin_object_size (__ptr, 0))
1144 return __fread_unlocked_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n,
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)
1154 size_t __cnt = __size * __n;
1155 char *__cptr = (char *) __ptr;
1159 for (; __cnt > 0; --__cnt)
1161 int __c = (__builtin_expect (((__stream)->_IO_read_ptr >= (__stream)->_IO_read_end), 0) ? __uflow (__stream) : *(unsigned char *) (__stream)->_IO_read_ptr++);
1166 return (__cptr - (char *) __ptr) / __size;
1169 return __fread_unlocked_alias (__ptr, __size, __n, __stream);
1171 # 937 "/usr/include/stdio.h" 2 3 4
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
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
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)
1218 return __builtin_bswap32 (__bsx);
1220 # 108 "/usr/include/bits/byteswap.h" 3 4
1221 static __inline __uint64_t
1222 __bswap_64 (__uint64_t __bsx)
1224 return __builtin_bswap64 (__bsx);
1226 # 61 "/usr/include/endian.h" 2 3 4
1227 # 65 "/usr/include/bits/waitstatus.h" 2 3 4
1235 unsigned int __w_termsig:7;
1236 unsigned int __w_coredump:1;
1237 unsigned int __w_retcode:8;
1246 } __wait_terminated;
1250 unsigned int __w_stopval:8;
1251 unsigned int __w_stopsig:8;
1261 # 43 "/usr/include/stdlib.h" 2 3 4
1262 # 67 "/usr/include/stdlib.h" 3 4
1267 } __WAIT_STATUS __attribute__ ((__transparent_union__));
1268 # 95 "/usr/include/stdlib.h" 3 4
1291 __extension__ typedef struct
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__));
1304 extern double atof (const char *__nptr)
1305 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
1307 extern int atoi (const char *__nptr)
1308 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
1310 extern long int atol (const char *__nptr)
1311 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
1317 __extension__ extern long long int atoll (const char *__nptr)
1318 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
1324 extern double strtod (const char *__restrict __nptr,
1325 char **__restrict __endptr)
1326 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
1332 extern float strtof (const char *__restrict __nptr,
1333 char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
1335 extern long double strtold (const char *__restrict __nptr,
1336 char **__restrict __endptr)
1337 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
1343 extern long int strtol (const char *__restrict __nptr,
1344 char **__restrict __endptr, int __base)
1345 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
1347 extern unsigned long int strtoul (const char *__restrict __nptr,
1348 char **__restrict __endptr, int __base)
1349 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
1355 extern long long int strtoq (const char *__restrict __nptr,
1356 char **__restrict __endptr, int __base)
1357 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
1360 extern unsigned long long int strtouq (const char *__restrict __nptr,
1361 char **__restrict __endptr, int __base)
1362 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
1369 extern long long int strtoll (const char *__restrict __nptr,
1370 char **__restrict __endptr, int __base)
1371 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
1374 extern unsigned long long int strtoull (const char *__restrict __nptr,
1375 char **__restrict __endptr, int __base)
1376 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
1378 # 276 "/usr/include/stdlib.h" 3 4
1380 extern __inline __attribute__ ((__gnu_inline__)) int
1381 __attribute__ ((__nothrow__ , __leaf__)) atoi (const char *__nptr)
1383 return (int) strtol (__nptr, (char **) ((void *)0), 10);
1385 extern __inline __attribute__ ((__gnu_inline__)) long int
1386 __attribute__ ((__nothrow__ , __leaf__)) atol (const char *__nptr)
1388 return strtol (__nptr, (char **) ((void *)0), 10);
1394 __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int
1395 __attribute__ ((__nothrow__ , __leaf__)) atoll (const char *__nptr)
1397 return strtoll (__nptr, (char **) ((void *)0), 10);
1400 # 305 "/usr/include/stdlib.h" 3 4
1401 extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
1404 extern long int a64l (const char *__s)
1405 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
1410 # 1 "/usr/include/sys/types.h" 1 3 4
1411 # 27 "/usr/include/sys/types.h" 3 4
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;
1429 typedef __loff_t loff_t;
1433 typedef __ino_t ino_t;
1434 # 60 "/usr/include/sys/types.h" 3 4
1435 typedef __dev_t dev_t;
1440 typedef __gid_t gid_t;
1445 typedef __mode_t mode_t;
1450 typedef __nlink_t nlink_t;
1455 typedef __uid_t uid_t;
1456 # 98 "/usr/include/sys/types.h" 3 4
1457 typedef __pid_t pid_t;
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;
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
1478 typedef __clock_t clock_t;
1482 # 73 "/usr/include/time.h" 3 4
1485 typedef __time_t time_t;
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
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__)));
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__)));
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
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;
1535 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
1537 # 34 "/usr/include/sys/select.h" 2 3 4
1541 typedef __sigset_t sigset_t;
1547 # 1 "/usr/include/time.h" 1 3 4
1548 # 120 "/usr/include/time.h" 3 4
1552 __syscall_slong_t tv_nsec;
1554 # 44 "/usr/include/sys/select.h" 2 3 4
1556 # 1 "/usr/include/bits/time.h" 1 3 4
1557 # 30 "/usr/include/bits/time.h" 3 4
1561 __suseconds_t tv_usec;
1563 # 46 "/usr/include/sys/select.h" 2 3 4
1566 typedef __suseconds_t suseconds_t;
1572 typedef long int __fd_mask;
1573 # 64 "/usr/include/sys/select.h" 3 4
1582 __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))];
1592 typedef __fd_mask fd_mask;
1593 # 96 "/usr/include/sys/select.h" 3 4
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);
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
1620 # 220 "/usr/include/sys/types.h" 2 3 4
1623 # 1 "/usr/include/sys/sysmacros.h" 1 3 4
1624 # 24 "/usr/include/sys/sysmacros.h" 3 4
1628 extern unsigned int gnu_dev_major (unsigned long long int __dev)
1629 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
1631 extern unsigned int gnu_dev_minor (unsigned long long int __dev)
1632 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
1634 extern unsigned long long int gnu_dev_makedev (unsigned int __major,
1635 unsigned int __minor)
1636 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
1639 __extension__ extern __inline __attribute__ ((__gnu_inline__)) __attribute__ ((__const__)) unsigned int
1640 __attribute__ ((__nothrow__ , __leaf__)) gnu_dev_major (unsigned long long int __dev)
1642 return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
1645 __extension__ extern __inline __attribute__ ((__gnu_inline__)) __attribute__ ((__const__)) unsigned int
1646 __attribute__ ((__nothrow__ , __leaf__)) gnu_dev_minor (unsigned long long int __dev)
1648 return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
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)
1654 return ((__minor & 0xff) | ((__major & 0xfff) << 8)
1655 | (((unsigned long long int) (__minor & ~0xff)) << 12)
1656 | (((unsigned long long int) (__major & ~0xfff)) << 32));
1660 # 223 "/usr/include/sys/types.h" 2 3 4
1666 typedef __blksize_t blksize_t;
1673 typedef __blkcnt_t blkcnt_t;
1677 typedef __fsblkcnt_t fsblkcnt_t;
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;
1691 union pthread_attr_t
1697 typedef union pthread_attr_t pthread_attr_t;
1703 typedef struct __pthread_internal_list
1705 struct __pthread_internal_list *__prev;
1706 struct __pthread_internal_list *__next;
1708 # 90 "/usr/include/bits/pthreadtypes.h" 3 4
1711 struct __pthread_mutex_s
1714 unsigned int __count;
1717 unsigned int __nusers;
1725 __pthread_list_t __list;
1726 # 125 "/usr/include/bits/pthreadtypes.h" 3 4
1736 } pthread_mutexattr_t;
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;
1751 unsigned int __nwaiters;
1752 unsigned int __broadcast_seq;
1755 __extension__ long long int __align;
1762 } pthread_condattr_t;
1766 typedef unsigned int pthread_key_t;
1770 typedef int pthread_once_t;
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;
1789 signed char __rwelision;
1794 unsigned char __pad1[7];
1797 unsigned long int __pad2;
1800 unsigned int __flags;
1803 # 220 "/usr/include/bits/pthreadtypes.h" 3 4
1812 } pthread_rwlockattr_t;
1818 typedef volatile int pthread_spinlock_t;
1827 } pthread_barrier_t;
1833 } pthread_barrierattr_t;
1834 # 271 "/usr/include/sys/types.h" 2 3 4
1838 # 315 "/usr/include/stdlib.h" 2 3 4
1845 extern long int random (void) __attribute__ ((__nothrow__ , __leaf__));
1848 extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__));
1854 extern char *initstate (unsigned int __seed, char *__statebuf,
1855 size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
1859 extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
1878 extern int random_r (struct random_data *__restrict __buf,
1879 int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1881 extern int srandom_r (unsigned int __seed, struct random_data *__buf)
1882 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
1884 extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
1886 struct random_data *__restrict __buf)
1887 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4)));
1889 extern int setstate_r (char *__restrict __statebuf,
1890 struct random_data *__restrict __buf)
1891 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1898 extern int rand (void) __attribute__ ((__nothrow__ , __leaf__));
1900 extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__));
1905 extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__));
1913 extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__));
1914 extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
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)));
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)));
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)));
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;
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)));
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)));
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)));
1972 extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
1973 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
1975 extern int seed48_r (unsigned short int __seed16v[3],
1976 struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1978 extern int lcong48_r (unsigned short int __param[7],
1979 struct drand48_data *__buffer)
1980 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
1990 extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
1992 extern void *calloc (size_t __nmemb, size_t __size)
1993 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
2004 extern void *realloc (void *__ptr, size_t __size)
2005 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
2007 extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));
2012 extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));
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
2027 extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__));
2034 # 493 "/usr/include/stdlib.h" 2 3 4
2040 extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
2045 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
2046 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
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__));
2057 extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));
2061 extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2069 extern int at_quick_exit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2077 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
2078 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2085 extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));
2091 extern void quick_exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));
2099 extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));
2106 extern char *getenv (const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
2108 # 578 "/usr/include/stdlib.h" 3 4
2109 extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2115 extern int setenv (const char *__name, const char *__value, int __replace)
2116 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
2119 extern int unsetenv (const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
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
2141 extern int system (const char *__command) __attribute__ ((__warn_unused_result__));
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__));
2152 typedef int (*__compar_fn_t) (const void *, const void *);
2153 # 751 "/usr/include/stdlib.h" 3 4
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__));
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)
2168 size_t __l, __u, __idx;
2176 __idx = (__l + __u) / 2;
2177 __p = (void *) (((const char *) __base) + (__idx * __size));
2178 __comparison = (*__compar) (__key, __p);
2179 if (__comparison < 0)
2181 else if (__comparison > 0)
2184 return (void *) __p;
2189 # 760 "/usr/include/stdlib.h" 2 3 4
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__));
2202 __extension__ extern long long int llabs (long long int __x)
2203 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__));
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__));
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__));
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__));
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__));
2236 extern char *gcvt (double __value, int __ndigit, char *__buf)
2237 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__));
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__));
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)));
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)));
2275 extern int mblen (const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__));
2278 extern int mbtowc (wchar_t *__restrict __pwc,
2279 const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__));
2282 extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__));
2286 extern size_t mbstowcs (wchar_t *__restrict __pwcs,
2287 const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__));
2289 extern size_t wcstombs (char *__restrict __s,
2290 const wchar_t *__restrict __pwcs, size_t __n)
2291 __attribute__ ((__nothrow__ , __leaf__));
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)));
2311 # 1 "/usr/include/bits/stdlib-float.h" 1 3 4
2312 # 24 "/usr/include/bits/stdlib-float.h" 3 4
2314 extern __inline __attribute__ ((__gnu_inline__)) double
2315 __attribute__ ((__nothrow__ , __leaf__)) atof (const char *__nptr)
2317 return strtod (__nptr, (char **) ((void *)0));
2320 # 955 "/usr/include/stdlib.h" 2 3 4
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__))
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__))
2335 __attribute__ ((__warn_unused_result__))
2336 __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer")))
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)
2342 if (__builtin_object_size (__resolved, 2 > 1) != (size_t) -1)
2348 return __realpath_chk (__name, __resolved, __builtin_object_size (__resolved, 2 > 1));
2351 return __realpath_alias (__name, __resolved);
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__))
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__))
2363 __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf")))
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)
2369 if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)
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));
2376 return __ptsname_r_alias (__fd, __buf, __buflen);
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__));
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)
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);
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__))
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__))
2412 __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)")))
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)
2419 if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1)
2421 if (!__builtin_constant_p (__len))
2422 return __mbstowcs_chk (__dst, __src, __len,
2423 __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t));
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));
2429 return __mbstowcs_alias (__dst, __src, __len);
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__))
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__))
2444 __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len")));
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)
2450 if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1)
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));
2457 return __wcstombs_alias (__dst, __src, __len);
2459 # 959 "/usr/include/stdlib.h" 2 3 4
2460 # 967 "/usr/include/stdlib.h" 3 4
2462 # 57 "writepart.c" 2
2463 # 1 "/usr/include/string.h" 1 3 4
2464 # 27 "/usr/include/string.h" 3 4
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
2481 extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
2482 size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
2485 extern void *memmove (void *__dest, const void *__src, size_t __n)
2486 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
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)));
2501 extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
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)));
2511 # 123 "/usr/include/string.h" 3 4
2514 extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
2515 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
2517 extern char *strncpy (char *__restrict __dest,
2518 const char *__restrict __src, size_t __n)
2519 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
2522 extern char *strcat (char *__restrict __dest, const char *__restrict __src)
2523 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
2525 extern char *strncat (char *__restrict __dest, const char *__restrict __src,
2526 size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
2529 extern int strcmp (const char *__s1, const char *__s2)
2530 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2532 extern int strncmp (const char *__s1, const char *__s2, size_t __n)
2533 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2536 extern int strcoll (const char *__s1, const char *__s2)
2537 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2539 extern size_t strxfrm (char *__restrict __dest,
2540 const char *__restrict __src, size_t __n)
2541 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
2548 # 1 "/usr/include/xlocale.h" 1 3 4
2549 # 27 "/usr/include/xlocale.h" 3 4
2550 typedef struct __locale_struct
2553 struct __locale_data *__locales[13];
2556 const unsigned short int *__ctype_b;
2557 const int *__ctype_tolower;
2558 const int *__ctype_toupper;
2561 const char *__names[13];
2565 typedef __locale_t locale_t;
2566 # 160 "/usr/include/string.h" 2 3 4
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)));
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)));
2578 extern char *strdup (const char *__s)
2579 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
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
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)));
2598 # 277 "/usr/include/string.h" 3 4
2602 extern size_t strcspn (const char *__s, const char *__reject)
2603 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
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)));
2618 extern char *strtok (char *__restrict __s, const char *__restrict __delim)
2619 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
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)));
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
2635 extern size_t strlen (const char *__s)
2636 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2642 extern size_t strnlen (const char *__string, size_t __maxlen)
2643 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2649 extern char *strerror (int __errnum) __attribute__ ((__nothrow__ , __leaf__));
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__))
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__));
2662 extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
2666 extern void bcopy (const void *__src, void *__dest, size_t __n)
2667 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
2670 extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
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)));
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)));
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)));
2701 extern char *strsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__));
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)));
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
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)
2730 size_t __result = 0;
2731 while (__s[__result] != '\0' && __s[__result] != __reject)
2736 extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c2 (const char *__s, int __reject1,
2738 extern __inline __attribute__ ((__gnu_inline__)) size_t
2739 __strcspn_c2 (const char *__s, int __reject1, int __reject2)
2741 size_t __result = 0;
2742 while (__s[__result] != '\0' && __s[__result] != __reject1
2743 && __s[__result] != __reject2)
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,
2754 size_t __result = 0;
2755 while (__s[__result] != '\0' && __s[__result] != __reject1
2756 && __s[__result] != __reject2 && __s[__result] != __reject3)
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)
2765 size_t __result = 0;
2767 while (__s[__result] == __accept)
2772 extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c2 (const char *__s, int __accept1,
2774 extern __inline __attribute__ ((__gnu_inline__)) size_t
2775 __strspn_c2 (const char *__s, int __accept1, int __accept2)
2777 size_t __result = 0;
2779 while (__s[__result] == __accept1 || __s[__result] == __accept2)
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)
2789 size_t __result = 0;
2791 while (__s[__result] == __accept1 || __s[__result] == __accept2
2792 || __s[__result] == __accept3)
2796 # 1097 "/usr/include/bits/string2.h" 3 4
2797 extern __inline __attribute__ ((__gnu_inline__)) char *__strpbrk_c2 (const char *__s, int __accept1,
2799 extern __inline __attribute__ ((__gnu_inline__)) char *
2800 __strpbrk_c2 (const char *__s, int __accept1, int __accept2)
2803 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2)
2805 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
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)
2814 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2
2815 && *__s != __accept3)
2817 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
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)
2825 if (__s == ((void *)0))
2827 while (*__s == __sep)
2829 __result = ((void *)0);
2833 while (*__s != '\0')
2834 if (*__s++ == __sep)
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)
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))
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)
2860 char *__retval = *__s;
2861 if (__retval != ((void *)0))
2863 char *__cp = __retval;
2871 if (*__cp == __reject1 || *__cp == __reject2)
2883 extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_3c (char **__s, char __reject1, char __reject2,
2885 extern __inline __attribute__ ((__gnu_inline__)) char *
2886 __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
2888 char *__retval = *__s;
2889 if (__retval != ((void *)0))
2891 char *__cp = __retval;
2899 if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3)
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
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)
2926 return __builtin___memcpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 0));
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)
2932 return __builtin___memmove_chk (__dest, __src, __len, __builtin_object_size (__dest, 0));
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)
2938 # 90 "/usr/include/bits/string3.h" 3 4
2939 return __builtin___memset_chk (__dest, __ch, __len, __builtin_object_size (__dest, 0));
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)
2946 (void) __builtin___memmove_chk (__dest, __src, __len, __builtin_object_size (__dest, 0));
2949 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void
2950 __attribute__ ((__nothrow__ , __leaf__)) bzero (void *__dest, size_t __len)
2952 (void) __builtin___memset_chk (__dest, '\0', __len, __builtin_object_size (__dest, 0));
2956 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char *
2957 __attribute__ ((__nothrow__ , __leaf__)) strcpy (char *__restrict __dest, const char *__restrict __src)
2959 return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1));
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)
2966 return __builtin___strncpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1));
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__))
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)
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);
2985 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char *
2986 __attribute__ ((__nothrow__ , __leaf__)) strcat (char *__restrict __dest, const char *__restrict __src)
2988 return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1));
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)
2996 return __builtin___strncat_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1));
2998 # 636 "/usr/include/string.h" 2 3 4
3003 # 58 "writepart.c" 2
3004 # 1 "/usr/include/unistd.h" 1 3 4
3005 # 27 "/usr/include/unistd.h" 3 4
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
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;
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);
3047 extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__));
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__));
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);
3078 extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval)
3079 __attribute__ ((__nothrow__ , __leaf__));
3086 extern int usleep (__useconds_t __useconds);
3087 # 472 "/usr/include/unistd.h" 3 4
3088 extern int pause (void);
3092 extern int chown (const char *__file, __uid_t __owner, __gid_t __group)
3093 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
3097 extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
3102 extern int lchown (const char *__file, __uid_t __owner, __gid_t __group)
3103 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
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__));
3116 extern int chdir (const char *__path) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
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__));
3130 extern int dup (int __fd) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
3133 extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__ , __leaf__));
3134 # 546 "/usr/include/unistd.h" 3 4
3135 extern char **__environ;
3143 extern int execve (const char *__path, char *const __argv[],
3144 char *const __envp[]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
3149 extern int fexecve (int __fd, char *const __argv[], char *const __envp[])
3150 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
3155 extern int execv (const char *__path, char *const __argv[])
3156 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
3160 extern int execle (const char *__path, const char *__arg, ...)
3161 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
3165 extern int execl (const char *__path, const char *__arg, ...)
3166 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
3170 extern int execvp (const char *__file, char *const __argv[])
3171 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
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__));
3184 extern void _exit (int __status) __attribute__ ((__noreturn__));
3190 # 1 "/usr/include/bits/confname.h" 1 3 4
3191 # 24 "/usr/include/bits/confname.h" 3 4
3206 _PC_CHOWN_RESTRICTED,
3222 _PC_REC_INCR_XFER_SIZE,
3224 _PC_REC_MAX_XFER_SIZE,
3226 _PC_REC_MIN_XFER_SIZE,
3259 _SC_REALTIME_SIGNALS,
3261 _SC_PRIORITY_SCHEDULING,
3265 _SC_ASYNCHRONOUS_IO,
3269 _SC_SYNCHRONIZED_IO,
3279 _SC_MEMORY_PROTECTION,
3281 _SC_MESSAGE_PASSING,
3285 _SC_SHARED_MEMORY_OBJECTS,
3291 _SC_AIO_PRIO_DELTA_MAX,
3325 _SC_COLL_WEIGHTS_MAX,
3327 _SC_EQUIV_CLASS_MAX,
3335 _SC_CHARCLASS_NAME_MAX,
3369 _SC_IOV_MAX = _SC_UIO_MAXIOV,
3371 _SC_PII_INTERNET_STREAM,
3373 _SC_PII_INTERNET_DGRAM,
3387 _SC_THREAD_SAFE_FUNCTIONS,
3389 _SC_GETGR_R_SIZE_MAX,
3391 _SC_GETPW_R_SIZE_MAX,
3397 _SC_THREAD_DESTRUCTOR_ITERATIONS,
3399 _SC_THREAD_KEYS_MAX,
3401 _SC_THREAD_STACK_MIN,
3403 _SC_THREAD_THREADS_MAX,
3405 _SC_THREAD_ATTR_STACKADDR,
3407 _SC_THREAD_ATTR_STACKSIZE,
3409 _SC_THREAD_PRIORITY_SCHEDULING,
3411 _SC_THREAD_PRIO_INHERIT,
3413 _SC_THREAD_PRIO_PROTECT,
3415 _SC_THREAD_PROCESS_SHARED,
3418 _SC_NPROCESSORS_CONF,
3420 _SC_NPROCESSORS_ONLN,
3433 _SC_XOPEN_XCU_VERSION,
3508 _SC_XBS5_ILP32_OFF32,
3510 _SC_XBS5_ILP32_OFFBIG,
3512 _SC_XBS5_LP64_OFF64,
3514 _SC_XBS5_LPBIG_OFFBIG,
3521 _SC_XOPEN_REALTIME_THREADS,
3532 _SC_C_LANG_SUPPORT_R,
3534 _SC_CLOCK_SELECTION,
3542 _SC_DEVICE_SPECIFIC,
3544 _SC_DEVICE_SPECIFIC_R,
3552 _SC_FILE_ATTRIBUTES,
3558 _SC_MONOTONIC_CLOCK,
3566 _SC_READER_WRITER_LOCKS,
3580 _SC_SPORADIC_SERVER,
3582 _SC_THREAD_SPORADIC_SERVER,
3584 _SC_SYSTEM_DATABASE,
3586 _SC_SYSTEM_DATABASE_R,
3590 _SC_TYPED_MEMORY_OBJECTS,
3598 _SC_2_PBS_ACCOUNTING,
3610 _SC_2_PBS_CHECKPOINT,
3615 _SC_V6_ILP32_OFFBIG,
3619 _SC_V6_LPBIG_OFFBIG,
3626 _SC_TRACE_EVENT_FILTER,
3633 _SC_LEVEL1_ICACHE_SIZE,
3635 _SC_LEVEL1_ICACHE_ASSOC,
3637 _SC_LEVEL1_ICACHE_LINESIZE,
3639 _SC_LEVEL1_DCACHE_SIZE,
3641 _SC_LEVEL1_DCACHE_ASSOC,
3643 _SC_LEVEL1_DCACHE_LINESIZE,
3645 _SC_LEVEL2_CACHE_SIZE,
3647 _SC_LEVEL2_CACHE_ASSOC,
3649 _SC_LEVEL2_CACHE_LINESIZE,
3651 _SC_LEVEL3_CACHE_SIZE,
3653 _SC_LEVEL3_CACHE_ASSOC,
3655 _SC_LEVEL3_CACHE_LINESIZE,
3657 _SC_LEVEL4_CACHE_SIZE,
3659 _SC_LEVEL4_CACHE_ASSOC,
3661 _SC_LEVEL4_CACHE_LINESIZE,
3665 _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,
3672 _SC_V7_ILP32_OFFBIG,
3676 _SC_V7_LPBIG_OFFBIG,
3682 _SC_TRACE_EVENT_NAME_MAX,
3688 _SC_TRACE_USER_EVENT_MAX,
3694 _SC_THREAD_ROBUST_PRIO_INHERIT,
3696 _SC_THREAD_ROBUST_PRIO_PROTECT
3706 _CS_V6_WIDTH_RESTRICTED_ENVS,
3710 _CS_GNU_LIBC_VERSION,
3712 _CS_GNU_LIBPTHREAD_VERSION,
3715 _CS_V5_WIDTH_RESTRICTED_ENVS,
3719 _CS_V7_WIDTH_RESTRICTED_ENVS,
3723 _CS_LFS_CFLAGS = 1000,
3737 _CS_LFS64_LINTFLAGS,
3740 _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
3742 _CS_XBS5_ILP32_OFF32_LDFLAGS,
3744 _CS_XBS5_ILP32_OFF32_LIBS,
3746 _CS_XBS5_ILP32_OFF32_LINTFLAGS,
3748 _CS_XBS5_ILP32_OFFBIG_CFLAGS,
3750 _CS_XBS5_ILP32_OFFBIG_LDFLAGS,
3752 _CS_XBS5_ILP32_OFFBIG_LIBS,
3754 _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,
3756 _CS_XBS5_LP64_OFF64_CFLAGS,
3758 _CS_XBS5_LP64_OFF64_LDFLAGS,
3760 _CS_XBS5_LP64_OFF64_LIBS,
3762 _CS_XBS5_LP64_OFF64_LINTFLAGS,
3764 _CS_XBS5_LPBIG_OFFBIG_CFLAGS,
3766 _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,
3768 _CS_XBS5_LPBIG_OFFBIG_LIBS,
3770 _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS,
3773 _CS_POSIX_V6_ILP32_OFF32_CFLAGS,
3775 _CS_POSIX_V6_ILP32_OFF32_LDFLAGS,
3777 _CS_POSIX_V6_ILP32_OFF32_LIBS,
3779 _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS,
3781 _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS,
3783 _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS,
3785 _CS_POSIX_V6_ILP32_OFFBIG_LIBS,
3787 _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS,
3789 _CS_POSIX_V6_LP64_OFF64_CFLAGS,
3791 _CS_POSIX_V6_LP64_OFF64_LDFLAGS,
3793 _CS_POSIX_V6_LP64_OFF64_LIBS,
3795 _CS_POSIX_V6_LP64_OFF64_LINTFLAGS,
3797 _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,
3799 _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS,
3801 _CS_POSIX_V6_LPBIG_OFFBIG_LIBS,
3803 _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS,
3806 _CS_POSIX_V7_ILP32_OFF32_CFLAGS,
3808 _CS_POSIX_V7_ILP32_OFF32_LDFLAGS,
3810 _CS_POSIX_V7_ILP32_OFF32_LIBS,
3812 _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS,
3814 _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS,
3816 _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS,
3818 _CS_POSIX_V7_ILP32_OFFBIG_LIBS,
3820 _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS,
3822 _CS_POSIX_V7_LP64_OFF64_CFLAGS,
3824 _CS_POSIX_V7_LP64_OFF64_LDFLAGS,
3826 _CS_POSIX_V7_LP64_OFF64_LIBS,
3828 _CS_POSIX_V7_LP64_OFF64_LINTFLAGS,
3830 _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS,
3832 _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS,
3834 _CS_POSIX_V7_LPBIG_OFFBIG_LIBS,
3836 _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS,
3844 # 613 "/usr/include/unistd.h" 2 3 4
3847 extern long int pathconf (const char *__path, int __name)
3848 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
3851 extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__ , __leaf__));
3854 extern long int sysconf (int __name) __attribute__ ((__nothrow__ , __leaf__));
3858 extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__ , __leaf__));
3863 extern __pid_t getpid (void) __attribute__ ((__nothrow__ , __leaf__));
3866 extern __pid_t getppid (void) __attribute__ ((__nothrow__ , __leaf__));
3869 extern __pid_t getpgrp (void) __attribute__ ((__nothrow__ , __leaf__));
3872 extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__));
3874 extern __pid_t getpgid (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__));
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__));
3890 extern __pid_t setsid (void) __attribute__ ((__nothrow__ , __leaf__));
3894 extern __pid_t getsid (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__));
3898 extern __uid_t getuid (void) __attribute__ ((__nothrow__ , __leaf__));
3901 extern __uid_t geteuid (void) __attribute__ ((__nothrow__ , __leaf__));
3904 extern __gid_t getgid (void) __attribute__ ((__nothrow__ , __leaf__));
3907 extern __gid_t getegid (void) __attribute__ ((__nothrow__ , __leaf__));
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__));
3919 extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
3924 extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
3931 extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
3936 extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
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__));
3951 extern __pid_t vfork (void) __attribute__ ((__nothrow__ , __leaf__));
3957 extern char *ttyname (int __fd) __attribute__ ((__nothrow__ , __leaf__));
3961 extern int ttyname_r (int __fd, char *__buf, size_t __buflen)
3962 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__));
3966 extern int isatty (int __fd) __attribute__ ((__nothrow__ , __leaf__));
3972 extern int ttyslot (void) __attribute__ ((__nothrow__ , __leaf__));
3977 extern int link (const char *__from, const char *__to)
3978 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__));
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__));
3990 extern int symlink (const char *__from, const char *__to)
3991 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__));
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__));
4003 extern int symlinkat (const char *__from, int __tofd,
4004 const char *__to) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__));
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__));
4013 extern int unlink (const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
4017 extern int unlinkat (int __fd, const char *__name, int __flag)
4018 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
4022 extern int rmdir (const char *__path) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
4026 extern __pid_t tcgetpgrp (int __fd) __attribute__ ((__nothrow__ , __leaf__));
4029 extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __attribute__ ((__nothrow__ , __leaf__));
4036 extern char *getlogin (void);
4044 extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1)));
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
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
4076 extern int gethostname (char *__name, size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
4083 extern int sethostname (const char *__name, size_t __len)
4084 __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
4088 extern int sethostid (long int __id) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
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__));
4103 extern int vhangup (void) __attribute__ ((__nothrow__ , __leaf__));
4106 extern int revoke (const char *__file) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
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)));
4122 extern int acct (const char *__name) __attribute__ ((__nothrow__ , __leaf__));
4126 extern char *getusershell (void) __attribute__ ((__nothrow__ , __leaf__));
4127 extern void endusershell (void) __attribute__ ((__nothrow__ , __leaf__));
4128 extern void setusershell (void) __attribute__ ((__nothrow__ , __leaf__));
4134 extern int daemon (int __nochdir, int __noclose) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
4141 extern int chroot (const char *__path) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
4145 extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1)));
4153 extern int fsync (int __fd);
4154 # 972 "/usr/include/unistd.h" 3 4
4155 extern long int gethostid (void);
4158 extern void sync (void) __attribute__ ((__nothrow__ , __leaf__));
4164 extern int getpagesize (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
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__));
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")
4199 __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer")))
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)
4205 if (__builtin_object_size (__buf, 0) != (size_t) -1)
4207 if (!__builtin_constant_p (__nbytes))
4208 return __read_chk (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0));
4210 if (__nbytes > __builtin_object_size (__buf, 0))
4211 return __read_chk_warn (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0));
4213 return __read_alias (__fd, __buf, __nbytes);
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,
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__))
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__))
4228 __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer")))
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)
4235 if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)
4237 if (!__builtin_constant_p (__len))
4238 return __readlink_chk (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1));
4240 if ( __len > __builtin_object_size (__buf, 2 > 1))
4241 return __readlink_chk_warn (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1));
4243 return __readlink_alias (__path, __buf, __len);
4248 extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path,
4249 char *__restrict __buf, size_t __len,
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__))
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__))
4261 __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer")))
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)
4269 if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)
4271 if (!__builtin_constant_p (__len))
4272 return __readlinkat_chk (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1));
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));
4278 return __readlinkat_alias (__fd, __path, __buf, __len);
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__))
4289 __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer")))
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)
4295 if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)
4297 if (!__builtin_constant_p (__size))
4298 return __getcwd_chk (__buf, __size, __builtin_object_size (__buf, 2 > 1));
4300 if (__size > __builtin_object_size (__buf, 2 > 1))
4301 return __getcwd_chk_warn (__buf, __size, __builtin_object_size (__buf, 2 > 1));
4303 return __getcwd_alias (__buf, __size);
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")))
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)
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);
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__))
4326 extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) __asm__ ("" "__confstr_chk") __attribute__ ((__nothrow__ , __leaf__))
4329 __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer")))
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)
4335 if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)
4337 if (!__builtin_constant_p (__len))
4338 return __confstr_chk (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1));
4340 if (__builtin_object_size (__buf, 2 > 1) < __len)
4341 return __confstr_chk_warn (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1));
4343 return __confstr_alias (__name, __buf, __len);
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__))
4354 __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer")))
4357 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int
4358 __attribute__ ((__nothrow__ , __leaf__)) getgroups (int __size, __gid_t __list[])
4360 if (__builtin_object_size (__list, 2 > 1) != (size_t) -1)
4362 if (!__builtin_constant_p (__size) || __size < 0)
4363 return __getgroups_chk (__size, __list, __builtin_object_size (__list, 2 > 1));
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));
4368 return __getgroups_alias (__size, __list);
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__))
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__))
4380 __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer")))
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)
4386 if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)
4388 if (!__builtin_constant_p (__buflen))
4389 return __ttyname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1));
4391 if (__buflen > __builtin_object_size (__buf, 2 > 1))
4392 return __ttyname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1));
4394 return __ttyname_r_alias (__fd, __buf, __buflen);
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")
4406 __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer")))
4409 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int
4410 getlogin_r (char *__buf, size_t __buflen)
4412 if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)
4414 if (!__builtin_constant_p (__buflen))
4415 return __getlogin_r_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1));
4417 if (__buflen > __builtin_object_size (__buf, 2 > 1))
4418 return __getlogin_r_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1));
4420 return __getlogin_r_alias (__buf, __buflen);
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__))
4433 __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer")))
4436 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int
4437 __attribute__ ((__nothrow__ , __leaf__)) gethostname (char *__buf, size_t __buflen)
4439 if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)
4441 if (!__builtin_constant_p (__buflen))
4442 return __gethostname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1));
4444 if (__buflen > __builtin_object_size (__buf, 2 > 1))
4445 return __gethostname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1));
4447 return __gethostname_alias (__buf, __buflen);
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__))
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__))
4461 __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer")))
4465 extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int
4466 __attribute__ ((__nothrow__ , __leaf__)) getdomainname (char *__buf, size_t __buflen)
4468 if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)
4470 if (!__builtin_constant_p (__buflen))
4471 return __getdomainname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1));
4473 if (__buflen > __builtin_object_size (__buf, 2 > 1))
4474 return __getdomainname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1));
4476 return __getdomainname_alias (__buf, __buflen);
4478 # 1152 "/usr/include/unistd.h" 2 3 4
4482 # 59 "writepart.c" 2
4483 # 1 "/usr/include/sys/ioctl.h" 1 3 4
4484 # 23 "/usr/include/sys/ioctl.h" 3 4
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
4495 # 1 "/usr/include/linux/ioctl.h" 1 3 4
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
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
4517 unsigned short int ws_row;
4518 unsigned short int ws_col;
4519 unsigned short int ws_xpixel;
4520 unsigned short int ws_ypixel;
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];
4533 # 30 "/usr/include/sys/ioctl.h" 2 3 4
4540 # 1 "/usr/include/sys/ttydefaults.h" 1 3 4
4541 # 37 "/usr/include/sys/ioctl.h" 2 3 4
4546 extern int ioctl (int __fd, unsigned long int __request, ...) __attribute__ ((__nothrow__ , __leaf__));
4549 # 60 "writepart.c" 2
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
4556 # 1 "/usr/include/linux/types.h" 1 3 4
4560 # 1 "/usr/include/asm/types.h" 1 3 4
4564 # 1 "/usr/include/asm-generic/types.h" 1 3 4
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
4584 typedef __signed__ char __s8;
4585 typedef unsigned char __u8;
4587 typedef __signed__ short __s16;
4588 typedef unsigned short __u16;
4590 typedef __signed__ int __s32;
4591 typedef unsigned int __u32;
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
4602 # 1 "/usr/include/linux/posix_types.h" 1 3 4
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
4610 unsigned long fds_bits[1024 / (8 * sizeof(long))];
4614 typedef void (*__kernel_sighandler_t)(int);
4617 typedef int __kernel_key_t;
4618 typedef int __kernel_mqd_t;
4620 # 1 "/usr/include/asm/posix_types.h" 1 3 4
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;
4632 typedef unsigned long __kernel_old_dev_t;
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;
4642 typedef __kernel_ulong_t __kernel_ino_t;
4646 typedef unsigned int __kernel_mode_t;
4650 typedef int __kernel_pid_t;
4654 typedef int __kernel_ipc_pid_t;
4658 typedef unsigned int __kernel_uid_t;
4659 typedef unsigned int __kernel_gid_t;
4663 typedef __kernel_long_t __kernel_suseconds_t;
4667 typedef int __kernel_daddr_t;
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;
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;
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 {
4721 struct files_stat_struct {
4722 unsigned long nr_files;
4723 unsigned long nr_free_files;
4724 unsigned long max_files;
4727 struct inodes_stat_t {
4732 # 62 "writepart.c" 2
4737 # 1 "/usr/include/setjmp.h" 1 3 4
4738 # 27 "/usr/include/setjmp.h" 3 4
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
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
4756 struct __jmp_buf_tag
4763 int __mask_was_saved;
4764 __sigset_t __saved_mask;
4770 typedef struct __jmp_buf_tag jmp_buf[1];
4774 extern int setjmp (jmp_buf __env) __attribute__ ((__nothrow__));
4781 extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) __attribute__ ((__nothrow__));
4785 extern int _setjmp (struct __jmp_buf_tag __env[1]) __attribute__ ((__nothrow__));
4796 extern void longjmp (struct __jmp_buf_tag __env[1], int __val)
4797 __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
4805 extern void _longjmp (struct __jmp_buf_tag __env[1], int __val)
4806 __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
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__));
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__))
4827 __attribute__ ((__noreturn__));
4828 extern void _longjmp (struct __jmp_buf_tag __env[1], int __val) __asm__ ("" "__longjmp_chk") __attribute__ ((__nothrow__))
4830 __attribute__ ((__noreturn__));
4831 extern void siglongjmp (struct __jmp_buf_tag __env[1], int __val) __asm__ ("" "__longjmp_chk") __attribute__ ((__nothrow__))
4833 __attribute__ ((__noreturn__));
4834 # 110 "/usr/include/setjmp.h" 2 3 4
4853 couldnt_save_sectors,
4857 enum offset { ignore, lower, deflt, upper };
4860 unsigned char index;
4873 unsigned long start;
4875 } __attribute((packed));
4879 struct apartition icdpart[8];
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));
4893 typedef struct _PARTITION {
4894 unsigned long start;
4898 unsigned long rootsec;
4913 struct partition_ID {
4929 extern int type_open;
4931 extern char *disk_device;
4932 extern char *line_ptr;
4933 extern char line_buffer[80];
4936 extern int ext_index;
4938 extern int size_flag;
4941 extern int expert_mode;
4942 extern int partitions;
4944 extern char *save_sector_file;
4945 extern char *restore_sector_file;
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;
4957 extern PARTITION part_table[64];
4959 extern struct bootflags bootflags[];
4960 extern int n_bootflags;
4961 extern struct partition_ID partition_IDs[];
4962 extern int n_partition_IDs;
4964 extern jmp_buf listingbuf;
4966 static __inline__ unsigned short swab16( unsigned short val )
4968 return( (val << 8) | (val >> 8) );
4971 static __inline__ unsigned long swab32( unsigned long val )
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 );
4978 # 65 "writepart.c" 2
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
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
5006 void swab_rs( struct rootsector *rs );
5007 void get_boot( void );
5008 # 68 "writepart.c" 2
5012 int reread_ioctl( int fd )
5016 # 74 "writepart.c" 3 4
5017 (((0U) << (((0 +8)+8)+14)) | (((0x12)) << (0 +8)) | (((95)) << 0) | ((0) << ((0 +8)+8)))
5020 perror( "\nBLKRRPART" );
5031 void reread_disk_partition( int fd )
5033 printf( "Re-reading the partition table ...\n" );
5035 # 89 "writepart.c" 3 4
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 "
5048 static void PART2diskpart( PARTITION *cp, struct apartition *dp,
5049 unsigned long relto )
5051 dp->start = cp->start - relto;
5052 dp->size = cp->size;
5053 dp->flag = cp->flag | 0x01;
5054 memcpy( dp->id, cp->id, 3 );
5057 static void set_checksum( char *buffer, int was_bootable )
5060 recalc_rootsec_checksum( buffer );
5061 if (!was_bootable) {
5065 short *cks = (short *)&buffer[512 -2];
5074 void put_boot( int first_ext, int last_ext, PARTITION *master_XGM )
5077 struct rootsector *rs = (struct rootsector *)buffer;
5078 struct apartition *pi;
5085 bootable = check_rootsec_checksum( buffer );
5089 for( i = 0; i < partitions; ++i ) {
5090 if (i == first_ext) {
5092 PART2diskpart( master_XGM, pi, 0 );
5094 else if (i > first_ext && i <= last_ext)
5099 PART2diskpart( &part_table[i], pi, 0 );
5104 for( ; pi <= &rs->part[3]; ++pi )
5109 if (xpart_fmt == xfmt_ICD && partitions > 4) {
5110 for( pi = &rs->icdpart[0], i = 4;
5111 i < partitions && i < 12;
5113 PART2diskpart( &part_table[i], pi, 0 );
5115 for( ; pi <= &rs->icdpart[7]; ++pi )
5120 rs->hd_size = rs_hd_size;
5121 rs->bsl_st = bsl_start;
5122 rs->bsl_cnt = bsl_size;
5125 set_checksum( buffer, bootable );
5127 swrite( buffer, 0 );
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 );
5134 bootable = check_rootsec_checksum( buffer );
5136 PART2diskpart( &part_table[i], &rs->part[0],
5137 part_table[i].rootsec );
5139 if (i == last_ext) {
5141 rs->part[1].flag &= ~0x01;
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;
5154 strcpy( cont_XGM.id, "XGM" );
5157 PART2diskpart( &cont_XGM, &rs->part[1], master_XGM->start );
5161 rs->part[2].flag &= ~0x01;
5162 rs->part[3].flag &= ~0x01;
5170 set_checksum( buffer, bootable );
5172 swrite( buffer, part_table[i].rootsec );
5178 (bsl_start != saved_bsl_start || bsl_size != saved_bsl_size)) {
5180 for( sec = bsl_start; sec < bsl_start+bsl_size; ++sec ) {
5181 memset( buffer, 0, 512 );
5182 if (sec == bsl_start && bsl_HDX_compat)
5185 swrite( buffer, sec );
5189 reread_disk_partition( fd );