| 1 | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
|
|---|
| 2 |
|
|---|
| 3 | # 1 "reorder.c"
|
|---|
| 4 | # 1 "<built-in>"
|
|---|
| 5 | # 1 "<command-line>"
|
|---|
| 6 | # 1 "reorder.c"
|
|---|
| 7 | # 1 "/usr/include/stdio.h" 1 3 4
|
|---|
| 8 | # 28 "/usr/include/stdio.h" 3 4
|
|---|
| 9 | # 1 "/usr/include/features.h" 1 3 4
|
|---|
| 10 | # 363 "/usr/include/features.h" 3 4
|
|---|
| 11 | # 1 "/usr/include/sys/cdefs.h" 1 3 4
|
|---|
| 12 | # 372 "/usr/include/sys/cdefs.h" 3 4
|
|---|
| 13 | # 1 "/usr/include/bits/wordsize.h" 1 3 4
|
|---|
| 14 | # 373 "/usr/include/sys/cdefs.h" 2 3 4
|
|---|
| 15 | # 364 "/usr/include/features.h" 2 3 4
|
|---|
| 16 | # 387 "/usr/include/features.h" 3 4
|
|---|
| 17 | # 1 "/usr/include/gnu/stubs.h" 1 3 4
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | # 1 "/usr/include/bits/wordsize.h" 1 3 4
|
|---|
| 22 | # 5 "/usr/include/gnu/stubs.h" 2 3 4
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | # 1 "/usr/include/gnu/stubs-32.h" 1 3 4
|
|---|
| 26 | # 8 "/usr/include/gnu/stubs.h" 2 3 4
|
|---|
| 27 | # 388 "/usr/include/features.h" 2 3 4
|
|---|
| 28 | # 29 "/usr/include/stdio.h" 2 3 4
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | # 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
|
|---|
| 35 | # 212 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 3 4
|
|---|
| 36 | typedef unsigned int size_t;
|
|---|
| 37 | # 35 "/usr/include/stdio.h" 2 3 4
|
|---|
| 38 |
|
|---|
| 39 | # 1 "/usr/include/bits/types.h" 1 3 4
|
|---|
| 40 | # 28 "/usr/include/bits/types.h" 3 4
|
|---|
| 41 | # 1 "/usr/include/bits/wordsize.h" 1 3 4
|
|---|
| 42 | # 29 "/usr/include/bits/types.h" 2 3 4
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 | typedef unsigned char __u_char;
|
|---|
| 46 | typedef unsigned short int __u_short;
|
|---|
| 47 | typedef unsigned int __u_int;
|
|---|
| 48 | typedef unsigned long int __u_long;
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 | typedef signed char __int8_t;
|
|---|
| 52 | typedef unsigned char __uint8_t;
|
|---|
| 53 | typedef signed short int __int16_t;
|
|---|
| 54 | typedef unsigned short int __uint16_t;
|
|---|
| 55 | typedef signed int __int32_t;
|
|---|
| 56 | typedef unsigned int __uint32_t;
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 | __extension__ typedef signed long long int __int64_t;
|
|---|
| 62 | __extension__ typedef unsigned long long int __uint64_t;
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 | __extension__ typedef long long int __quad_t;
|
|---|
| 71 | __extension__ typedef unsigned long long int __u_quad_t;
|
|---|
| 72 | # 131 "/usr/include/bits/types.h" 3 4
|
|---|
| 73 | # 1 "/usr/include/bits/typesizes.h" 1 3 4
|
|---|
| 74 | # 132 "/usr/include/bits/types.h" 2 3 4
|
|---|
| 75 |
|
|---|
| 76 |
|
|---|
| 77 | __extension__ typedef __u_quad_t __dev_t;
|
|---|
| 78 | __extension__ typedef unsigned int __uid_t;
|
|---|
| 79 | __extension__ typedef unsigned int __gid_t;
|
|---|
| 80 | __extension__ typedef unsigned long int __ino_t;
|
|---|
| 81 | __extension__ typedef __u_quad_t __ino64_t;
|
|---|
| 82 | __extension__ typedef unsigned int __mode_t;
|
|---|
| 83 | __extension__ typedef unsigned int __nlink_t;
|
|---|
| 84 | __extension__ typedef long int __off_t;
|
|---|
| 85 | __extension__ typedef __quad_t __off64_t;
|
|---|
| 86 | __extension__ typedef int __pid_t;
|
|---|
| 87 | __extension__ typedef struct { int __val[2]; } __fsid_t;
|
|---|
| 88 | __extension__ typedef long int __clock_t;
|
|---|
| 89 | __extension__ typedef unsigned long int __rlim_t;
|
|---|
| 90 | __extension__ typedef __u_quad_t __rlim64_t;
|
|---|
| 91 | __extension__ typedef unsigned int __id_t;
|
|---|
| 92 | __extension__ typedef long int __time_t;
|
|---|
| 93 | __extension__ typedef unsigned int __useconds_t;
|
|---|
| 94 | __extension__ typedef long int __suseconds_t;
|
|---|
| 95 |
|
|---|
| 96 | __extension__ typedef int __daddr_t;
|
|---|
| 97 | __extension__ typedef long int __swblk_t;
|
|---|
| 98 | __extension__ typedef int __key_t;
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 | __extension__ typedef int __clockid_t;
|
|---|
| 102 |
|
|---|
| 103 |
|
|---|
| 104 | __extension__ typedef void * __timer_t;
|
|---|
| 105 |
|
|---|
| 106 |
|
|---|
| 107 | __extension__ typedef long int __blksize_t;
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 |
|
|---|
| 112 | __extension__ typedef long int __blkcnt_t;
|
|---|
| 113 | __extension__ typedef __quad_t __blkcnt64_t;
|
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 | __extension__ typedef unsigned long int __fsblkcnt_t;
|
|---|
| 117 | __extension__ typedef __u_quad_t __fsblkcnt64_t;
|
|---|
| 118 |
|
|---|
| 119 |
|
|---|
| 120 | __extension__ typedef unsigned long int __fsfilcnt_t;
|
|---|
| 121 | __extension__ typedef __u_quad_t __fsfilcnt64_t;
|
|---|
| 122 |
|
|---|
| 123 | __extension__ typedef int __ssize_t;
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 | typedef __off64_t __loff_t;
|
|---|
| 128 | typedef __quad_t *__qaddr_t;
|
|---|
| 129 | typedef char *__caddr_t;
|
|---|
| 130 |
|
|---|
| 131 |
|
|---|
| 132 | __extension__ typedef int __intptr_t;
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 | __extension__ typedef unsigned int __socklen_t;
|
|---|
| 136 | # 37 "/usr/include/stdio.h" 2 3 4
|
|---|
| 137 | # 45 "/usr/include/stdio.h" 3 4
|
|---|
| 138 | struct _IO_FILE;
|
|---|
| 139 |
|
|---|
| 140 |
|
|---|
| 141 |
|
|---|
| 142 | typedef struct _IO_FILE FILE;
|
|---|
| 143 |
|
|---|
| 144 |
|
|---|
| 145 |
|
|---|
| 146 |
|
|---|
| 147 |
|
|---|
| 148 | # 65 "/usr/include/stdio.h" 3 4
|
|---|
| 149 | typedef struct _IO_FILE __FILE;
|
|---|
| 150 | # 75 "/usr/include/stdio.h" 3 4
|
|---|
| 151 | # 1 "/usr/include/libio.h" 1 3 4
|
|---|
| 152 | # 32 "/usr/include/libio.h" 3 4
|
|---|
| 153 | # 1 "/usr/include/_G_config.h" 1 3 4
|
|---|
| 154 | # 15 "/usr/include/_G_config.h" 3 4
|
|---|
| 155 | # 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
|
|---|
| 156 | # 16 "/usr/include/_G_config.h" 2 3 4
|
|---|
| 157 |
|
|---|
| 158 |
|
|---|
| 159 |
|
|---|
| 160 |
|
|---|
| 161 | # 1 "/usr/include/wchar.h" 1 3 4
|
|---|
| 162 | # 83 "/usr/include/wchar.h" 3 4
|
|---|
| 163 | typedef struct
|
|---|
| 164 | {
|
|---|
| 165 | int __count;
|
|---|
| 166 | union
|
|---|
| 167 | {
|
|---|
| 168 |
|
|---|
| 169 | unsigned int __wch;
|
|---|
| 170 |
|
|---|
| 171 |
|
|---|
| 172 |
|
|---|
| 173 | char __wchb[4];
|
|---|
| 174 | } __value;
|
|---|
| 175 | } __mbstate_t;
|
|---|
| 176 | # 21 "/usr/include/_G_config.h" 2 3 4
|
|---|
| 177 |
|
|---|
| 178 | typedef struct
|
|---|
| 179 | {
|
|---|
| 180 | __off_t __pos;
|
|---|
| 181 | __mbstate_t __state;
|
|---|
| 182 | } _G_fpos_t;
|
|---|
| 183 | typedef struct
|
|---|
| 184 | {
|
|---|
| 185 | __off64_t __pos;
|
|---|
| 186 | __mbstate_t __state;
|
|---|
| 187 | } _G_fpos64_t;
|
|---|
| 188 | # 53 "/usr/include/_G_config.h" 3 4
|
|---|
| 189 | typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
|
|---|
| 190 | typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
|
|---|
| 191 | typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
|
|---|
| 192 | typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
|
|---|
| 193 | # 33 "/usr/include/libio.h" 2 3 4
|
|---|
| 194 | # 53 "/usr/include/libio.h" 3 4
|
|---|
| 195 | # 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stdarg.h" 1 3 4
|
|---|
| 196 | # 40 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stdarg.h" 3 4
|
|---|
| 197 | typedef __builtin_va_list __gnuc_va_list;
|
|---|
| 198 | # 54 "/usr/include/libio.h" 2 3 4
|
|---|
| 199 | # 172 "/usr/include/libio.h" 3 4
|
|---|
| 200 | struct _IO_jump_t; struct _IO_FILE;
|
|---|
| 201 | # 182 "/usr/include/libio.h" 3 4
|
|---|
| 202 | typedef void _IO_lock_t;
|
|---|
| 203 |
|
|---|
| 204 |
|
|---|
| 205 |
|
|---|
| 206 |
|
|---|
| 207 |
|
|---|
| 208 | struct _IO_marker {
|
|---|
| 209 | struct _IO_marker *_next;
|
|---|
| 210 | struct _IO_FILE *_sbuf;
|
|---|
| 211 |
|
|---|
| 212 |
|
|---|
| 213 |
|
|---|
| 214 | int _pos;
|
|---|
| 215 | # 205 "/usr/include/libio.h" 3 4
|
|---|
| 216 | };
|
|---|
| 217 |
|
|---|
| 218 |
|
|---|
| 219 | enum __codecvt_result
|
|---|
| 220 | {
|
|---|
| 221 | __codecvt_ok,
|
|---|
| 222 | __codecvt_partial,
|
|---|
| 223 | __codecvt_error,
|
|---|
| 224 | __codecvt_noconv
|
|---|
| 225 | };
|
|---|
| 226 | # 273 "/usr/include/libio.h" 3 4
|
|---|
| 227 | struct _IO_FILE {
|
|---|
| 228 | int _flags;
|
|---|
| 229 |
|
|---|
| 230 |
|
|---|
| 231 |
|
|---|
| 232 |
|
|---|
| 233 | char* _IO_read_ptr;
|
|---|
| 234 | char* _IO_read_end;
|
|---|
| 235 | char* _IO_read_base;
|
|---|
| 236 | char* _IO_write_base;
|
|---|
| 237 | char* _IO_write_ptr;
|
|---|
| 238 | char* _IO_write_end;
|
|---|
| 239 | char* _IO_buf_base;
|
|---|
| 240 | char* _IO_buf_end;
|
|---|
| 241 |
|
|---|
| 242 | char *_IO_save_base;
|
|---|
| 243 | char *_IO_backup_base;
|
|---|
| 244 | char *_IO_save_end;
|
|---|
| 245 |
|
|---|
| 246 | struct _IO_marker *_markers;
|
|---|
| 247 |
|
|---|
| 248 | struct _IO_FILE *_chain;
|
|---|
| 249 |
|
|---|
| 250 | int _fileno;
|
|---|
| 251 |
|
|---|
| 252 |
|
|---|
| 253 |
|
|---|
| 254 | int _flags2;
|
|---|
| 255 |
|
|---|
| 256 | __off_t _old_offset;
|
|---|
| 257 |
|
|---|
| 258 |
|
|---|
| 259 |
|
|---|
| 260 | unsigned short _cur_column;
|
|---|
| 261 | signed char _vtable_offset;
|
|---|
| 262 | char _shortbuf[1];
|
|---|
| 263 |
|
|---|
| 264 |
|
|---|
| 265 |
|
|---|
| 266 | _IO_lock_t *_lock;
|
|---|
| 267 | # 321 "/usr/include/libio.h" 3 4
|
|---|
| 268 | __off64_t _offset;
|
|---|
| 269 | # 330 "/usr/include/libio.h" 3 4
|
|---|
| 270 | void *__pad1;
|
|---|
| 271 | void *__pad2;
|
|---|
| 272 | void *__pad3;
|
|---|
| 273 | void *__pad4;
|
|---|
| 274 | size_t __pad5;
|
|---|
| 275 |
|
|---|
| 276 | int _mode;
|
|---|
| 277 |
|
|---|
| 278 | char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
|
|---|
| 279 |
|
|---|
| 280 | };
|
|---|
| 281 |
|
|---|
| 282 |
|
|---|
| 283 | typedef struct _IO_FILE _IO_FILE;
|
|---|
| 284 |
|
|---|
| 285 |
|
|---|
| 286 | struct _IO_FILE_plus;
|
|---|
| 287 |
|
|---|
| 288 | extern struct _IO_FILE_plus _IO_2_1_stdin_;
|
|---|
| 289 | extern struct _IO_FILE_plus _IO_2_1_stdout_;
|
|---|
| 290 | extern struct _IO_FILE_plus _IO_2_1_stderr_;
|
|---|
| 291 | # 366 "/usr/include/libio.h" 3 4
|
|---|
| 292 | typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
|
|---|
| 293 |
|
|---|
| 294 |
|
|---|
| 295 |
|
|---|
| 296 |
|
|---|
| 297 |
|
|---|
| 298 |
|
|---|
| 299 |
|
|---|
| 300 | typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
|
|---|
| 301 | size_t __n);
|
|---|
| 302 |
|
|---|
| 303 |
|
|---|
| 304 |
|
|---|
| 305 |
|
|---|
| 306 |
|
|---|
| 307 |
|
|---|
| 308 |
|
|---|
| 309 | typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
|
|---|
| 310 |
|
|---|
| 311 |
|
|---|
| 312 | typedef int __io_close_fn (void *__cookie);
|
|---|
| 313 | # 418 "/usr/include/libio.h" 3 4
|
|---|
| 314 | extern int __underflow (_IO_FILE *);
|
|---|
| 315 | extern int __uflow (_IO_FILE *);
|
|---|
| 316 | extern int __overflow (_IO_FILE *, int);
|
|---|
| 317 | # 462 "/usr/include/libio.h" 3 4
|
|---|
| 318 | extern int _IO_getc (_IO_FILE *__fp);
|
|---|
| 319 | extern int _IO_putc (int __c, _IO_FILE *__fp);
|
|---|
| 320 | extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
|
|---|
| 321 | extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));
|
|---|
| 322 |
|
|---|
| 323 | extern int _IO_peekc_locked (_IO_FILE *__fp);
|
|---|
| 324 |
|
|---|
| 325 |
|
|---|
| 326 |
|
|---|
| 327 |
|
|---|
| 328 |
|
|---|
| 329 | extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
|
|---|
| 330 | extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
|
|---|
| 331 | extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
|
|---|
| 332 | # 492 "/usr/include/libio.h" 3 4
|
|---|
| 333 | extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
|
|---|
| 334 | __gnuc_va_list, int *__restrict);
|
|---|
| 335 | extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
|
|---|
| 336 | __gnuc_va_list);
|
|---|
| 337 | extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
|
|---|
| 338 | extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
|
|---|
| 339 |
|
|---|
| 340 | extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
|
|---|
| 341 | extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
|
|---|
| 342 |
|
|---|
| 343 | extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
|
|---|
| 344 | # 76 "/usr/include/stdio.h" 2 3 4
|
|---|
| 345 |
|
|---|
| 346 |
|
|---|
| 347 |
|
|---|
| 348 |
|
|---|
| 349 | typedef __gnuc_va_list va_list;
|
|---|
| 350 | # 91 "/usr/include/stdio.h" 3 4
|
|---|
| 351 | typedef __off_t off_t;
|
|---|
| 352 | # 103 "/usr/include/stdio.h" 3 4
|
|---|
| 353 | typedef __ssize_t ssize_t;
|
|---|
| 354 |
|
|---|
| 355 |
|
|---|
| 356 |
|
|---|
| 357 |
|
|---|
| 358 |
|
|---|
| 359 |
|
|---|
| 360 |
|
|---|
| 361 | typedef _G_fpos_t fpos_t;
|
|---|
| 362 |
|
|---|
| 363 |
|
|---|
| 364 |
|
|---|
| 365 |
|
|---|
| 366 | # 165 "/usr/include/stdio.h" 3 4
|
|---|
| 367 | # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
|
|---|
| 368 | # 166 "/usr/include/stdio.h" 2 3 4
|
|---|
| 369 |
|
|---|
| 370 |
|
|---|
| 371 |
|
|---|
| 372 | extern struct _IO_FILE *stdin;
|
|---|
| 373 | extern struct _IO_FILE *stdout;
|
|---|
| 374 | extern struct _IO_FILE *stderr;
|
|---|
| 375 |
|
|---|
| 376 |
|
|---|
| 377 |
|
|---|
| 378 |
|
|---|
| 379 |
|
|---|
| 380 |
|
|---|
| 381 |
|
|---|
| 382 |
|
|---|
| 383 |
|
|---|
| 384 | extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
|
|---|
| 385 |
|
|---|
| 386 | extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
|
|---|
| 387 |
|
|---|
| 388 |
|
|---|
| 389 |
|
|---|
| 390 |
|
|---|
| 391 | extern int renameat (int __oldfd, __const char *__old, int __newfd,
|
|---|
| 392 | __const char *__new) __attribute__ ((__nothrow__));
|
|---|
| 393 |
|
|---|
| 394 |
|
|---|
| 395 |
|
|---|
| 396 |
|
|---|
| 397 |
|
|---|
| 398 |
|
|---|
| 399 |
|
|---|
| 400 |
|
|---|
| 401 | extern FILE *tmpfile (void) ;
|
|---|
| 402 | # 212 "/usr/include/stdio.h" 3 4
|
|---|
| 403 | extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) ;
|
|---|
| 404 |
|
|---|
| 405 |
|
|---|
| 406 |
|
|---|
| 407 |
|
|---|
| 408 |
|
|---|
| 409 | extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) ;
|
|---|
| 410 | # 230 "/usr/include/stdio.h" 3 4
|
|---|
| 411 | extern char *tempnam (__const char *__dir, __const char *__pfx)
|
|---|
| 412 | __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
|
|---|
| 413 |
|
|---|
| 414 |
|
|---|
| 415 |
|
|---|
| 416 |
|
|---|
| 417 |
|
|---|
| 418 |
|
|---|
| 419 |
|
|---|
| 420 |
|
|---|
| 421 | extern int fclose (FILE *__stream);
|
|---|
| 422 |
|
|---|
| 423 |
|
|---|
| 424 |
|
|---|
| 425 |
|
|---|
| 426 | extern int fflush (FILE *__stream);
|
|---|
| 427 |
|
|---|
| 428 | # 255 "/usr/include/stdio.h" 3 4
|
|---|
| 429 | extern int fflush_unlocked (FILE *__stream);
|
|---|
| 430 | # 269 "/usr/include/stdio.h" 3 4
|
|---|
| 431 |
|
|---|
| 432 |
|
|---|
| 433 |
|
|---|
| 434 |
|
|---|
| 435 |
|
|---|
| 436 |
|
|---|
| 437 | extern FILE *fopen (__const char *__restrict __filename,
|
|---|
| 438 | __const char *__restrict __modes) ;
|
|---|
| 439 |
|
|---|
| 440 |
|
|---|
| 441 |
|
|---|
| 442 |
|
|---|
| 443 | extern FILE *freopen (__const char *__restrict __filename,
|
|---|
| 444 | __const char *__restrict __modes,
|
|---|
| 445 | FILE *__restrict __stream) ;
|
|---|
| 446 | # 298 "/usr/include/stdio.h" 3 4
|
|---|
| 447 |
|
|---|
| 448 | # 309 "/usr/include/stdio.h" 3 4
|
|---|
| 449 | extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) ;
|
|---|
| 450 | # 322 "/usr/include/stdio.h" 3 4
|
|---|
| 451 | extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
|
|---|
| 452 | __attribute__ ((__nothrow__)) ;
|
|---|
| 453 |
|
|---|
| 454 |
|
|---|
| 455 |
|
|---|
| 456 |
|
|---|
| 457 | extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__)) ;
|
|---|
| 458 |
|
|---|
| 459 |
|
|---|
| 460 |
|
|---|
| 461 |
|
|---|
| 462 |
|
|---|
| 463 |
|
|---|
| 464 | extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
|
|---|
| 465 |
|
|---|
| 466 |
|
|---|
| 467 |
|
|---|
| 468 | extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
|
|---|
| 469 | int __modes, size_t __n) __attribute__ ((__nothrow__));
|
|---|
| 470 |
|
|---|
| 471 |
|
|---|
| 472 |
|
|---|
| 473 |
|
|---|
| 474 |
|
|---|
| 475 | extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
|
|---|
| 476 | size_t __size) __attribute__ ((__nothrow__));
|
|---|
| 477 |
|
|---|
| 478 |
|
|---|
| 479 | extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
|
|---|
| 480 |
|
|---|
| 481 |
|
|---|
| 482 |
|
|---|
| 483 |
|
|---|
| 484 |
|
|---|
| 485 |
|
|---|
| 486 |
|
|---|
| 487 |
|
|---|
| 488 | extern int fprintf (FILE *__restrict __stream,
|
|---|
| 489 | __const char *__restrict __format, ...);
|
|---|
| 490 |
|
|---|
| 491 |
|
|---|
| 492 |
|
|---|
| 493 |
|
|---|
| 494 | extern int printf (__const char *__restrict __format, ...);
|
|---|
| 495 |
|
|---|
| 496 | extern int sprintf (char *__restrict __s,
|
|---|
| 497 | __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
|
|---|
| 498 |
|
|---|
| 499 |
|
|---|
| 500 |
|
|---|
| 501 |
|
|---|
| 502 |
|
|---|
| 503 | extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
|
|---|
| 504 | __gnuc_va_list __arg);
|
|---|
| 505 |
|
|---|
| 506 |
|
|---|
| 507 |
|
|---|
| 508 |
|
|---|
| 509 | extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
|
|---|
| 510 |
|
|---|
| 511 | extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
|
|---|
| 512 | __gnuc_va_list __arg) __attribute__ ((__nothrow__));
|
|---|
| 513 |
|
|---|
| 514 |
|
|---|
| 515 |
|
|---|
| 516 |
|
|---|
| 517 |
|
|---|
| 518 | extern int snprintf (char *__restrict __s, size_t __maxlen,
|
|---|
| 519 | __const char *__restrict __format, ...)
|
|---|
| 520 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
|
|---|
| 521 |
|
|---|
| 522 | extern int vsnprintf (char *__restrict __s, size_t __maxlen,
|
|---|
| 523 | __const char *__restrict __format, __gnuc_va_list __arg)
|
|---|
| 524 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
|
|---|
| 525 |
|
|---|
| 526 | # 420 "/usr/include/stdio.h" 3 4
|
|---|
| 527 | extern int vdprintf (int __fd, __const char *__restrict __fmt,
|
|---|
| 528 | __gnuc_va_list __arg)
|
|---|
| 529 | __attribute__ ((__format__ (__printf__, 2, 0)));
|
|---|
| 530 | extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
|
|---|
| 531 | __attribute__ ((__format__ (__printf__, 2, 3)));
|
|---|
| 532 |
|
|---|
| 533 |
|
|---|
| 534 |
|
|---|
| 535 |
|
|---|
| 536 |
|
|---|
| 537 |
|
|---|
| 538 |
|
|---|
| 539 |
|
|---|
| 540 | extern int fscanf (FILE *__restrict __stream,
|
|---|
| 541 | __const char *__restrict __format, ...) ;
|
|---|
| 542 |
|
|---|
| 543 |
|
|---|
| 544 |
|
|---|
| 545 |
|
|---|
| 546 | extern int scanf (__const char *__restrict __format, ...) ;
|
|---|
| 547 |
|
|---|
| 548 | extern int sscanf (__const char *__restrict __s,
|
|---|
| 549 | __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
|
|---|
| 550 | # 451 "/usr/include/stdio.h" 3 4
|
|---|
| 551 | extern int fscanf (FILE *__restrict __stream, __const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf")
|
|---|
| 552 |
|
|---|
| 553 | ;
|
|---|
| 554 | extern int scanf (__const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf")
|
|---|
| 555 | ;
|
|---|
| 556 | extern int sscanf (__const char *__restrict __s, __const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__))
|
|---|
| 557 |
|
|---|
| 558 | ;
|
|---|
| 559 | # 471 "/usr/include/stdio.h" 3 4
|
|---|
| 560 |
|
|---|
| 561 |
|
|---|
| 562 |
|
|---|
| 563 |
|
|---|
| 564 |
|
|---|
| 565 |
|
|---|
| 566 |
|
|---|
| 567 |
|
|---|
| 568 | extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
|
|---|
| 569 | __gnuc_va_list __arg)
|
|---|
| 570 | __attribute__ ((__format__ (__scanf__, 2, 0))) ;
|
|---|
| 571 |
|
|---|
| 572 |
|
|---|
| 573 |
|
|---|
| 574 |
|
|---|
| 575 |
|
|---|
| 576 | extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
|
|---|
| 577 | __attribute__ ((__format__ (__scanf__, 1, 0))) ;
|
|---|
| 578 |
|
|---|
| 579 |
|
|---|
| 580 | extern int vsscanf (__const char *__restrict __s,
|
|---|
| 581 | __const char *__restrict __format, __gnuc_va_list __arg)
|
|---|
| 582 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
|
|---|
| 583 | # 502 "/usr/include/stdio.h" 3 4
|
|---|
| 584 | extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf")
|
|---|
| 585 |
|
|---|
| 586 |
|
|---|
| 587 |
|
|---|
| 588 | __attribute__ ((__format__ (__scanf__, 2, 0))) ;
|
|---|
| 589 | extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf")
|
|---|
| 590 |
|
|---|
| 591 | __attribute__ ((__format__ (__scanf__, 1, 0))) ;
|
|---|
| 592 | extern int vsscanf (__const char *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__))
|
|---|
| 593 |
|
|---|
| 594 |
|
|---|
| 595 |
|
|---|
| 596 | __attribute__ ((__format__ (__scanf__, 2, 0)));
|
|---|
| 597 | # 530 "/usr/include/stdio.h" 3 4
|
|---|
| 598 |
|
|---|
| 599 |
|
|---|
| 600 |
|
|---|
| 601 |
|
|---|
| 602 |
|
|---|
| 603 |
|
|---|
| 604 |
|
|---|
| 605 |
|
|---|
| 606 |
|
|---|
| 607 | extern int fgetc (FILE *__stream);
|
|---|
| 608 | extern int getc (FILE *__stream);
|
|---|
| 609 |
|
|---|
| 610 |
|
|---|
| 611 |
|
|---|
| 612 |
|
|---|
| 613 |
|
|---|
| 614 | extern int getchar (void);
|
|---|
| 615 |
|
|---|
| 616 | # 558 "/usr/include/stdio.h" 3 4
|
|---|
| 617 | extern int getc_unlocked (FILE *__stream);
|
|---|
| 618 | extern int getchar_unlocked (void);
|
|---|
| 619 | # 569 "/usr/include/stdio.h" 3 4
|
|---|
| 620 | extern int fgetc_unlocked (FILE *__stream);
|
|---|
| 621 |
|
|---|
| 622 |
|
|---|
| 623 |
|
|---|
| 624 |
|
|---|
| 625 |
|
|---|
| 626 |
|
|---|
| 627 |
|
|---|
| 628 |
|
|---|
| 629 |
|
|---|
| 630 |
|
|---|
| 631 |
|
|---|
| 632 | extern int fputc (int __c, FILE *__stream);
|
|---|
| 633 | extern int putc (int __c, FILE *__stream);
|
|---|
| 634 |
|
|---|
| 635 |
|
|---|
| 636 |
|
|---|
| 637 |
|
|---|
| 638 |
|
|---|
| 639 | extern int putchar (int __c);
|
|---|
| 640 |
|
|---|
| 641 | # 602 "/usr/include/stdio.h" 3 4
|
|---|
| 642 | extern int fputc_unlocked (int __c, FILE *__stream);
|
|---|
| 643 |
|
|---|
| 644 |
|
|---|
| 645 |
|
|---|
| 646 |
|
|---|
| 647 |
|
|---|
| 648 |
|
|---|
| 649 |
|
|---|
| 650 | extern int putc_unlocked (int __c, FILE *__stream);
|
|---|
| 651 | extern int putchar_unlocked (int __c);
|
|---|
| 652 |
|
|---|
| 653 |
|
|---|
| 654 |
|
|---|
| 655 |
|
|---|
| 656 |
|
|---|
| 657 |
|
|---|
| 658 | extern int getw (FILE *__stream);
|
|---|
| 659 |
|
|---|
| 660 |
|
|---|
| 661 | extern int putw (int __w, FILE *__stream);
|
|---|
| 662 |
|
|---|
| 663 |
|
|---|
| 664 |
|
|---|
| 665 |
|
|---|
| 666 |
|
|---|
| 667 |
|
|---|
| 668 |
|
|---|
| 669 |
|
|---|
| 670 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
|
|---|
| 671 | ;
|
|---|
| 672 |
|
|---|
| 673 |
|
|---|
| 674 |
|
|---|
| 675 |
|
|---|
| 676 |
|
|---|
| 677 |
|
|---|
| 678 | extern char *gets (char *__s) ;
|
|---|
| 679 |
|
|---|
| 680 | # 664 "/usr/include/stdio.h" 3 4
|
|---|
| 681 | extern __ssize_t __getdelim (char **__restrict __lineptr,
|
|---|
| 682 | size_t *__restrict __n, int __delimiter,
|
|---|
| 683 | FILE *__restrict __stream) ;
|
|---|
| 684 | extern __ssize_t getdelim (char **__restrict __lineptr,
|
|---|
| 685 | size_t *__restrict __n, int __delimiter,
|
|---|
| 686 | FILE *__restrict __stream) ;
|
|---|
| 687 |
|
|---|
| 688 |
|
|---|
| 689 |
|
|---|
| 690 |
|
|---|
| 691 |
|
|---|
| 692 |
|
|---|
| 693 |
|
|---|
| 694 | extern __ssize_t getline (char **__restrict __lineptr,
|
|---|
| 695 | size_t *__restrict __n,
|
|---|
| 696 | FILE *__restrict __stream) ;
|
|---|
| 697 |
|
|---|
| 698 |
|
|---|
| 699 |
|
|---|
| 700 |
|
|---|
| 701 |
|
|---|
| 702 |
|
|---|
| 703 |
|
|---|
| 704 |
|
|---|
| 705 | extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
|
|---|
| 706 |
|
|---|
| 707 |
|
|---|
| 708 |
|
|---|
| 709 |
|
|---|
| 710 |
|
|---|
| 711 | extern int puts (__const char *__s);
|
|---|
| 712 |
|
|---|
| 713 |
|
|---|
| 714 |
|
|---|
| 715 |
|
|---|
| 716 |
|
|---|
| 717 |
|
|---|
| 718 | extern int ungetc (int __c, FILE *__stream);
|
|---|
| 719 |
|
|---|
| 720 |
|
|---|
| 721 |
|
|---|
| 722 |
|
|---|
| 723 |
|
|---|
| 724 |
|
|---|
| 725 | extern size_t fread (void *__restrict __ptr, size_t __size,
|
|---|
| 726 | size_t __n, FILE *__restrict __stream) ;
|
|---|
| 727 |
|
|---|
| 728 |
|
|---|
| 729 |
|
|---|
| 730 |
|
|---|
| 731 | extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
|
|---|
| 732 | size_t __n, FILE *__restrict __s) ;
|
|---|
| 733 |
|
|---|
| 734 | # 736 "/usr/include/stdio.h" 3 4
|
|---|
| 735 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
|
|---|
| 736 | size_t __n, FILE *__restrict __stream) ;
|
|---|
| 737 | extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
|
|---|
| 738 | size_t __n, FILE *__restrict __stream) ;
|
|---|
| 739 |
|
|---|
| 740 |
|
|---|
| 741 |
|
|---|
| 742 |
|
|---|
| 743 |
|
|---|
| 744 |
|
|---|
| 745 |
|
|---|
| 746 |
|
|---|
| 747 | extern int fseek (FILE *__stream, long int __off, int __whence);
|
|---|
| 748 |
|
|---|
| 749 |
|
|---|
| 750 |
|
|---|
| 751 |
|
|---|
| 752 | extern long int ftell (FILE *__stream) ;
|
|---|
| 753 |
|
|---|
| 754 |
|
|---|
| 755 |
|
|---|
| 756 |
|
|---|
| 757 | extern void rewind (FILE *__stream);
|
|---|
| 758 |
|
|---|
| 759 | # 772 "/usr/include/stdio.h" 3 4
|
|---|
| 760 | extern int fseeko (FILE *__stream, __off_t __off, int __whence);
|
|---|
| 761 |
|
|---|
| 762 |
|
|---|
| 763 |
|
|---|
| 764 |
|
|---|
| 765 | extern __off_t ftello (FILE *__stream) ;
|
|---|
| 766 | # 791 "/usr/include/stdio.h" 3 4
|
|---|
| 767 |
|
|---|
| 768 |
|
|---|
| 769 |
|
|---|
| 770 |
|
|---|
| 771 |
|
|---|
| 772 |
|
|---|
| 773 | extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
|
|---|
| 774 |
|
|---|
| 775 |
|
|---|
| 776 |
|
|---|
| 777 |
|
|---|
| 778 | extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
|
|---|
| 779 | # 814 "/usr/include/stdio.h" 3 4
|
|---|
| 780 |
|
|---|
| 781 | # 823 "/usr/include/stdio.h" 3 4
|
|---|
| 782 |
|
|---|
| 783 |
|
|---|
| 784 | extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
|
|---|
| 785 |
|
|---|
| 786 | extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ;
|
|---|
| 787 |
|
|---|
| 788 | extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ;
|
|---|
| 789 |
|
|---|
| 790 |
|
|---|
| 791 |
|
|---|
| 792 |
|
|---|
| 793 | extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
|
|---|
| 794 | extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
|
|---|
| 795 | extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
|
|---|
| 796 |
|
|---|
| 797 |
|
|---|
| 798 |
|
|---|
| 799 |
|
|---|
| 800 |
|
|---|
| 801 |
|
|---|
| 802 |
|
|---|
| 803 |
|
|---|
| 804 | extern void perror (__const char *__s);
|
|---|
| 805 |
|
|---|
| 806 |
|
|---|
| 807 |
|
|---|
| 808 |
|
|---|
| 809 |
|
|---|
| 810 |
|
|---|
| 811 | # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
|
|---|
| 812 | # 27 "/usr/include/bits/sys_errlist.h" 3 4
|
|---|
| 813 | extern int sys_nerr;
|
|---|
| 814 | extern __const char *__const sys_errlist[];
|
|---|
| 815 | # 853 "/usr/include/stdio.h" 2 3 4
|
|---|
| 816 |
|
|---|
| 817 |
|
|---|
| 818 |
|
|---|
| 819 |
|
|---|
| 820 | extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ;
|
|---|
| 821 |
|
|---|
| 822 |
|
|---|
| 823 |
|
|---|
| 824 |
|
|---|
| 825 | extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
|
|---|
| 826 | # 872 "/usr/include/stdio.h" 3 4
|
|---|
| 827 | extern FILE *popen (__const char *__command, __const char *__modes) ;
|
|---|
| 828 |
|
|---|
| 829 |
|
|---|
| 830 |
|
|---|
| 831 |
|
|---|
| 832 |
|
|---|
| 833 | extern int pclose (FILE *__stream);
|
|---|
| 834 |
|
|---|
| 835 |
|
|---|
| 836 |
|
|---|
| 837 |
|
|---|
| 838 |
|
|---|
| 839 | extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
|
|---|
| 840 | # 912 "/usr/include/stdio.h" 3 4
|
|---|
| 841 | extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
|
|---|
| 842 |
|
|---|
| 843 |
|
|---|
| 844 |
|
|---|
| 845 | extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ;
|
|---|
| 846 |
|
|---|
| 847 |
|
|---|
| 848 | extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
|
|---|
| 849 | # 942 "/usr/include/stdio.h" 3 4
|
|---|
| 850 |
|
|---|
| 851 | # 2 "reorder.c" 2
|
|---|
| 852 | # 1 "/usr/include/stdlib.h" 1 3 4
|
|---|
| 853 | # 33 "/usr/include/stdlib.h" 3 4
|
|---|
| 854 | # 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
|
|---|
| 855 | # 324 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 3 4
|
|---|
| 856 | typedef long int wchar_t;
|
|---|
| 857 | # 34 "/usr/include/stdlib.h" 2 3 4
|
|---|
| 858 |
|
|---|
| 859 |
|
|---|
| 860 |
|
|---|
| 861 |
|
|---|
| 862 |
|
|---|
| 863 |
|
|---|
| 864 |
|
|---|
| 865 |
|
|---|
| 866 | # 1 "/usr/include/bits/waitflags.h" 1 3 4
|
|---|
| 867 | # 43 "/usr/include/stdlib.h" 2 3 4
|
|---|
| 868 | # 1 "/usr/include/bits/waitstatus.h" 1 3 4
|
|---|
| 869 | # 65 "/usr/include/bits/waitstatus.h" 3 4
|
|---|
| 870 | # 1 "/usr/include/endian.h" 1 3 4
|
|---|
| 871 | # 37 "/usr/include/endian.h" 3 4
|
|---|
| 872 | # 1 "/usr/include/bits/endian.h" 1 3 4
|
|---|
| 873 | # 38 "/usr/include/endian.h" 2 3 4
|
|---|
| 874 | # 61 "/usr/include/endian.h" 3 4
|
|---|
| 875 | # 1 "/usr/include/bits/byteswap.h" 1 3 4
|
|---|
| 876 | # 62 "/usr/include/endian.h" 2 3 4
|
|---|
| 877 | # 66 "/usr/include/bits/waitstatus.h" 2 3 4
|
|---|
| 878 |
|
|---|
| 879 | union wait
|
|---|
| 880 | {
|
|---|
| 881 | int w_status;
|
|---|
| 882 | struct
|
|---|
| 883 | {
|
|---|
| 884 |
|
|---|
| 885 | unsigned int __w_termsig:7;
|
|---|
| 886 | unsigned int __w_coredump:1;
|
|---|
| 887 | unsigned int __w_retcode:8;
|
|---|
| 888 | unsigned int:16;
|
|---|
| 889 |
|
|---|
| 890 |
|
|---|
| 891 |
|
|---|
| 892 |
|
|---|
| 893 |
|
|---|
| 894 |
|
|---|
| 895 |
|
|---|
| 896 | } __wait_terminated;
|
|---|
| 897 | struct
|
|---|
| 898 | {
|
|---|
| 899 |
|
|---|
| 900 | unsigned int __w_stopval:8;
|
|---|
| 901 | unsigned int __w_stopsig:8;
|
|---|
| 902 | unsigned int:16;
|
|---|
| 903 |
|
|---|
| 904 |
|
|---|
| 905 |
|
|---|
| 906 |
|
|---|
| 907 |
|
|---|
| 908 |
|
|---|
| 909 | } __wait_stopped;
|
|---|
| 910 | };
|
|---|
| 911 | # 44 "/usr/include/stdlib.h" 2 3 4
|
|---|
| 912 | # 68 "/usr/include/stdlib.h" 3 4
|
|---|
| 913 | typedef union
|
|---|
| 914 | {
|
|---|
| 915 | union wait *__uptr;
|
|---|
| 916 | int *__iptr;
|
|---|
| 917 | } __WAIT_STATUS __attribute__ ((__transparent_union__));
|
|---|
| 918 | # 96 "/usr/include/stdlib.h" 3 4
|
|---|
| 919 |
|
|---|
| 920 |
|
|---|
| 921 | typedef struct
|
|---|
| 922 | {
|
|---|
| 923 | int quot;
|
|---|
| 924 | int rem;
|
|---|
| 925 | } div_t;
|
|---|
| 926 |
|
|---|
| 927 |
|
|---|
| 928 |
|
|---|
| 929 | typedef struct
|
|---|
| 930 | {
|
|---|
| 931 | long int quot;
|
|---|
| 932 | long int rem;
|
|---|
| 933 | } ldiv_t;
|
|---|
| 934 |
|
|---|
| 935 |
|
|---|
| 936 |
|
|---|
| 937 |
|
|---|
| 938 |
|
|---|
| 939 |
|
|---|
| 940 |
|
|---|
| 941 | __extension__ typedef struct
|
|---|
| 942 | {
|
|---|
| 943 | long long int quot;
|
|---|
| 944 | long long int rem;
|
|---|
| 945 | } lldiv_t;
|
|---|
| 946 |
|
|---|
| 947 |
|
|---|
| 948 | # 140 "/usr/include/stdlib.h" 3 4
|
|---|
| 949 | extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ;
|
|---|
| 950 |
|
|---|
| 951 |
|
|---|
| 952 |
|
|---|
| 953 |
|
|---|
| 954 | extern double atof (__const char *__nptr)
|
|---|
| 955 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 956 |
|
|---|
| 957 | extern int atoi (__const char *__nptr)
|
|---|
| 958 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 959 |
|
|---|
| 960 | extern long int atol (__const char *__nptr)
|
|---|
| 961 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 962 |
|
|---|
| 963 |
|
|---|
| 964 |
|
|---|
| 965 |
|
|---|
| 966 |
|
|---|
| 967 | __extension__ extern long long int atoll (__const char *__nptr)
|
|---|
| 968 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 969 |
|
|---|
| 970 |
|
|---|
| 971 |
|
|---|
| 972 |
|
|---|
| 973 |
|
|---|
| 974 | extern double strtod (__const char *__restrict __nptr,
|
|---|
| 975 | char **__restrict __endptr)
|
|---|
| 976 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 977 |
|
|---|
| 978 |
|
|---|
| 979 |
|
|---|
| 980 |
|
|---|
| 981 |
|
|---|
| 982 | extern float strtof (__const char *__restrict __nptr,
|
|---|
| 983 | char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 984 |
|
|---|
| 985 | extern long double strtold (__const char *__restrict __nptr,
|
|---|
| 986 | char **__restrict __endptr)
|
|---|
| 987 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 988 |
|
|---|
| 989 |
|
|---|
| 990 |
|
|---|
| 991 |
|
|---|
| 992 |
|
|---|
| 993 | extern long int strtol (__const char *__restrict __nptr,
|
|---|
| 994 | char **__restrict __endptr, int __base)
|
|---|
| 995 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 996 |
|
|---|
| 997 | extern unsigned long int strtoul (__const char *__restrict __nptr,
|
|---|
| 998 | char **__restrict __endptr, int __base)
|
|---|
| 999 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1000 |
|
|---|
| 1001 |
|
|---|
| 1002 |
|
|---|
| 1003 |
|
|---|
| 1004 | __extension__
|
|---|
| 1005 | extern long long int strtoq (__const char *__restrict __nptr,
|
|---|
| 1006 | char **__restrict __endptr, int __base)
|
|---|
| 1007 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1008 |
|
|---|
| 1009 | __extension__
|
|---|
| 1010 | extern unsigned long long int strtouq (__const char *__restrict __nptr,
|
|---|
| 1011 | char **__restrict __endptr, int __base)
|
|---|
| 1012 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1013 |
|
|---|
| 1014 |
|
|---|
| 1015 |
|
|---|
| 1016 |
|
|---|
| 1017 |
|
|---|
| 1018 | __extension__
|
|---|
| 1019 | extern long long int strtoll (__const char *__restrict __nptr,
|
|---|
| 1020 | char **__restrict __endptr, int __base)
|
|---|
| 1021 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1022 |
|
|---|
| 1023 | __extension__
|
|---|
| 1024 | extern unsigned long long int strtoull (__const char *__restrict __nptr,
|
|---|
| 1025 | char **__restrict __endptr, int __base)
|
|---|
| 1026 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1027 |
|
|---|
| 1028 | # 311 "/usr/include/stdlib.h" 3 4
|
|---|
| 1029 | extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
|
|---|
| 1030 |
|
|---|
| 1031 |
|
|---|
| 1032 | extern long int a64l (__const char *__s)
|
|---|
| 1033 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1034 |
|
|---|
| 1035 |
|
|---|
| 1036 |
|
|---|
| 1037 |
|
|---|
| 1038 | # 1 "/usr/include/sys/types.h" 1 3 4
|
|---|
| 1039 | # 28 "/usr/include/sys/types.h" 3 4
|
|---|
| 1040 |
|
|---|
| 1041 |
|
|---|
| 1042 |
|
|---|
| 1043 |
|
|---|
| 1044 |
|
|---|
| 1045 |
|
|---|
| 1046 | typedef __u_char u_char;
|
|---|
| 1047 | typedef __u_short u_short;
|
|---|
| 1048 | typedef __u_int u_int;
|
|---|
| 1049 | typedef __u_long u_long;
|
|---|
| 1050 | typedef __quad_t quad_t;
|
|---|
| 1051 | typedef __u_quad_t u_quad_t;
|
|---|
| 1052 | typedef __fsid_t fsid_t;
|
|---|
| 1053 |
|
|---|
| 1054 |
|
|---|
| 1055 |
|
|---|
| 1056 |
|
|---|
| 1057 | typedef __loff_t loff_t;
|
|---|
| 1058 |
|
|---|
| 1059 |
|
|---|
| 1060 |
|
|---|
| 1061 | typedef __ino_t ino_t;
|
|---|
| 1062 | # 61 "/usr/include/sys/types.h" 3 4
|
|---|
| 1063 | typedef __dev_t dev_t;
|
|---|
| 1064 |
|
|---|
| 1065 |
|
|---|
| 1066 |
|
|---|
| 1067 |
|
|---|
| 1068 | typedef __gid_t gid_t;
|
|---|
| 1069 |
|
|---|
| 1070 |
|
|---|
| 1071 |
|
|---|
| 1072 |
|
|---|
| 1073 | typedef __mode_t mode_t;
|
|---|
| 1074 |
|
|---|
| 1075 |
|
|---|
| 1076 |
|
|---|
| 1077 |
|
|---|
| 1078 | typedef __nlink_t nlink_t;
|
|---|
| 1079 |
|
|---|
| 1080 |
|
|---|
| 1081 |
|
|---|
| 1082 |
|
|---|
| 1083 | typedef __uid_t uid_t;
|
|---|
| 1084 | # 99 "/usr/include/sys/types.h" 3 4
|
|---|
| 1085 | typedef __pid_t pid_t;
|
|---|
| 1086 |
|
|---|
| 1087 |
|
|---|
| 1088 |
|
|---|
| 1089 |
|
|---|
| 1090 |
|
|---|
| 1091 | typedef __id_t id_t;
|
|---|
| 1092 | # 116 "/usr/include/sys/types.h" 3 4
|
|---|
| 1093 | typedef __daddr_t daddr_t;
|
|---|
| 1094 | typedef __caddr_t caddr_t;
|
|---|
| 1095 |
|
|---|
| 1096 |
|
|---|
| 1097 |
|
|---|
| 1098 |
|
|---|
| 1099 |
|
|---|
| 1100 | typedef __key_t key_t;
|
|---|
| 1101 | # 133 "/usr/include/sys/types.h" 3 4
|
|---|
| 1102 | # 1 "/usr/include/time.h" 1 3 4
|
|---|
| 1103 | # 58 "/usr/include/time.h" 3 4
|
|---|
| 1104 |
|
|---|
| 1105 |
|
|---|
| 1106 | typedef __clock_t clock_t;
|
|---|
| 1107 |
|
|---|
| 1108 |
|
|---|
| 1109 |
|
|---|
| 1110 | # 74 "/usr/include/time.h" 3 4
|
|---|
| 1111 |
|
|---|
| 1112 |
|
|---|
| 1113 | typedef __time_t time_t;
|
|---|
| 1114 |
|
|---|
| 1115 |
|
|---|
| 1116 |
|
|---|
| 1117 | # 92 "/usr/include/time.h" 3 4
|
|---|
| 1118 | typedef __clockid_t clockid_t;
|
|---|
| 1119 | # 104 "/usr/include/time.h" 3 4
|
|---|
| 1120 | typedef __timer_t timer_t;
|
|---|
| 1121 | # 134 "/usr/include/sys/types.h" 2 3 4
|
|---|
| 1122 | # 147 "/usr/include/sys/types.h" 3 4
|
|---|
| 1123 | # 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
|
|---|
| 1124 | # 148 "/usr/include/sys/types.h" 2 3 4
|
|---|
| 1125 |
|
|---|
| 1126 |
|
|---|
| 1127 |
|
|---|
| 1128 | typedef unsigned long int ulong;
|
|---|
| 1129 | typedef unsigned short int ushort;
|
|---|
| 1130 | typedef unsigned int uint;
|
|---|
| 1131 | # 195 "/usr/include/sys/types.h" 3 4
|
|---|
| 1132 | typedef int int8_t __attribute__ ((__mode__ (__QI__)));
|
|---|
| 1133 | typedef int int16_t __attribute__ ((__mode__ (__HI__)));
|
|---|
| 1134 | typedef int int32_t __attribute__ ((__mode__ (__SI__)));
|
|---|
| 1135 | typedef int int64_t __attribute__ ((__mode__ (__DI__)));
|
|---|
| 1136 |
|
|---|
| 1137 |
|
|---|
| 1138 | typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
|
|---|
| 1139 | typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
|
|---|
| 1140 | typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
|
|---|
| 1141 | typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
|
|---|
| 1142 |
|
|---|
| 1143 | typedef int register_t __attribute__ ((__mode__ (__word__)));
|
|---|
| 1144 | # 220 "/usr/include/sys/types.h" 3 4
|
|---|
| 1145 | # 1 "/usr/include/sys/select.h" 1 3 4
|
|---|
| 1146 | # 31 "/usr/include/sys/select.h" 3 4
|
|---|
| 1147 | # 1 "/usr/include/bits/select.h" 1 3 4
|
|---|
| 1148 | # 32 "/usr/include/sys/select.h" 2 3 4
|
|---|
| 1149 |
|
|---|
| 1150 |
|
|---|
| 1151 | # 1 "/usr/include/bits/sigset.h" 1 3 4
|
|---|
| 1152 | # 24 "/usr/include/bits/sigset.h" 3 4
|
|---|
| 1153 | typedef int __sig_atomic_t;
|
|---|
| 1154 |
|
|---|
| 1155 |
|
|---|
| 1156 |
|
|---|
| 1157 |
|
|---|
| 1158 | typedef struct
|
|---|
| 1159 | {
|
|---|
| 1160 | unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
|
|---|
| 1161 | } __sigset_t;
|
|---|
| 1162 | # 35 "/usr/include/sys/select.h" 2 3 4
|
|---|
| 1163 |
|
|---|
| 1164 |
|
|---|
| 1165 |
|
|---|
| 1166 | typedef __sigset_t sigset_t;
|
|---|
| 1167 |
|
|---|
| 1168 |
|
|---|
| 1169 |
|
|---|
| 1170 |
|
|---|
| 1171 |
|
|---|
| 1172 | # 1 "/usr/include/time.h" 1 3 4
|
|---|
| 1173 | # 120 "/usr/include/time.h" 3 4
|
|---|
| 1174 | struct timespec
|
|---|
| 1175 | {
|
|---|
| 1176 | __time_t tv_sec;
|
|---|
| 1177 | long int tv_nsec;
|
|---|
| 1178 | };
|
|---|
| 1179 | # 45 "/usr/include/sys/select.h" 2 3 4
|
|---|
| 1180 |
|
|---|
| 1181 | # 1 "/usr/include/bits/time.h" 1 3 4
|
|---|
| 1182 | # 31 "/usr/include/bits/time.h" 3 4
|
|---|
| 1183 | struct timeval
|
|---|
| 1184 | {
|
|---|
| 1185 | __time_t tv_sec;
|
|---|
| 1186 | __suseconds_t tv_usec;
|
|---|
| 1187 | };
|
|---|
| 1188 | # 47 "/usr/include/sys/select.h" 2 3 4
|
|---|
| 1189 |
|
|---|
| 1190 |
|
|---|
| 1191 | typedef __suseconds_t suseconds_t;
|
|---|
| 1192 |
|
|---|
| 1193 |
|
|---|
| 1194 |
|
|---|
| 1195 |
|
|---|
| 1196 |
|
|---|
| 1197 | typedef long int __fd_mask;
|
|---|
| 1198 | # 65 "/usr/include/sys/select.h" 3 4
|
|---|
| 1199 | typedef struct
|
|---|
| 1200 | {
|
|---|
| 1201 |
|
|---|
| 1202 |
|
|---|
| 1203 |
|
|---|
| 1204 |
|
|---|
| 1205 |
|
|---|
| 1206 |
|
|---|
| 1207 | __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))];
|
|---|
| 1208 |
|
|---|
| 1209 |
|
|---|
| 1210 | } fd_set;
|
|---|
| 1211 |
|
|---|
| 1212 |
|
|---|
| 1213 |
|
|---|
| 1214 |
|
|---|
| 1215 |
|
|---|
| 1216 |
|
|---|
| 1217 | typedef __fd_mask fd_mask;
|
|---|
| 1218 | # 97 "/usr/include/sys/select.h" 3 4
|
|---|
| 1219 |
|
|---|
| 1220 | # 107 "/usr/include/sys/select.h" 3 4
|
|---|
| 1221 | extern int select (int __nfds, fd_set *__restrict __readfds,
|
|---|
| 1222 | fd_set *__restrict __writefds,
|
|---|
| 1223 | fd_set *__restrict __exceptfds,
|
|---|
| 1224 | struct timeval *__restrict __timeout);
|
|---|
| 1225 | # 119 "/usr/include/sys/select.h" 3 4
|
|---|
| 1226 | extern int pselect (int __nfds, fd_set *__restrict __readfds,
|
|---|
| 1227 | fd_set *__restrict __writefds,
|
|---|
| 1228 | fd_set *__restrict __exceptfds,
|
|---|
| 1229 | const struct timespec *__restrict __timeout,
|
|---|
| 1230 | const __sigset_t *__restrict __sigmask);
|
|---|
| 1231 | # 132 "/usr/include/sys/select.h" 3 4
|
|---|
| 1232 |
|
|---|
| 1233 | # 221 "/usr/include/sys/types.h" 2 3 4
|
|---|
| 1234 |
|
|---|
| 1235 |
|
|---|
| 1236 | # 1 "/usr/include/sys/sysmacros.h" 1 3 4
|
|---|
| 1237 | # 30 "/usr/include/sys/sysmacros.h" 3 4
|
|---|
| 1238 |
|
|---|
| 1239 |
|
|---|
| 1240 | __extension__
|
|---|
| 1241 | extern unsigned int gnu_dev_major (unsigned long long int __dev)
|
|---|
| 1242 | __attribute__ ((__nothrow__)) __attribute__ ((__const__));
|
|---|
| 1243 | __extension__
|
|---|
| 1244 | extern unsigned int gnu_dev_minor (unsigned long long int __dev)
|
|---|
| 1245 | __attribute__ ((__nothrow__)) __attribute__ ((__const__));
|
|---|
| 1246 | __extension__
|
|---|
| 1247 | extern unsigned long long int gnu_dev_makedev (unsigned int __major,
|
|---|
| 1248 | unsigned int __minor)
|
|---|
| 1249 | __attribute__ ((__nothrow__)) __attribute__ ((__const__));
|
|---|
| 1250 | # 64 "/usr/include/sys/sysmacros.h" 3 4
|
|---|
| 1251 |
|
|---|
| 1252 | # 224 "/usr/include/sys/types.h" 2 3 4
|
|---|
| 1253 |
|
|---|
| 1254 |
|
|---|
| 1255 |
|
|---|
| 1256 |
|
|---|
| 1257 |
|
|---|
| 1258 | typedef __blksize_t blksize_t;
|
|---|
| 1259 |
|
|---|
| 1260 |
|
|---|
| 1261 |
|
|---|
| 1262 |
|
|---|
| 1263 |
|
|---|
| 1264 |
|
|---|
| 1265 | typedef __blkcnt_t blkcnt_t;
|
|---|
| 1266 |
|
|---|
| 1267 |
|
|---|
| 1268 |
|
|---|
| 1269 | typedef __fsblkcnt_t fsblkcnt_t;
|
|---|
| 1270 |
|
|---|
| 1271 |
|
|---|
| 1272 |
|
|---|
| 1273 | typedef __fsfilcnt_t fsfilcnt_t;
|
|---|
| 1274 | # 271 "/usr/include/sys/types.h" 3 4
|
|---|
| 1275 | # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
|
|---|
| 1276 | # 36 "/usr/include/bits/pthreadtypes.h" 3 4
|
|---|
| 1277 | typedef unsigned long int pthread_t;
|
|---|
| 1278 |
|
|---|
| 1279 |
|
|---|
| 1280 | typedef union
|
|---|
| 1281 | {
|
|---|
| 1282 | char __size[36];
|
|---|
| 1283 | long int __align;
|
|---|
| 1284 | } pthread_attr_t;
|
|---|
| 1285 |
|
|---|
| 1286 |
|
|---|
| 1287 | typedef struct __pthread_internal_slist
|
|---|
| 1288 | {
|
|---|
| 1289 | struct __pthread_internal_slist *__next;
|
|---|
| 1290 | } __pthread_slist_t;
|
|---|
| 1291 |
|
|---|
| 1292 |
|
|---|
| 1293 |
|
|---|
| 1294 |
|
|---|
| 1295 | typedef union
|
|---|
| 1296 | {
|
|---|
| 1297 | struct __pthread_mutex_s
|
|---|
| 1298 | {
|
|---|
| 1299 | int __lock;
|
|---|
| 1300 | unsigned int __count;
|
|---|
| 1301 | int __owner;
|
|---|
| 1302 |
|
|---|
| 1303 |
|
|---|
| 1304 | int __kind;
|
|---|
| 1305 | unsigned int __nusers;
|
|---|
| 1306 | __extension__ union
|
|---|
| 1307 | {
|
|---|
| 1308 | int __spins;
|
|---|
| 1309 | __pthread_slist_t __list;
|
|---|
| 1310 | };
|
|---|
| 1311 | } __data;
|
|---|
| 1312 | char __size[24];
|
|---|
| 1313 | long int __align;
|
|---|
| 1314 | } pthread_mutex_t;
|
|---|
| 1315 |
|
|---|
| 1316 | typedef union
|
|---|
| 1317 | {
|
|---|
| 1318 | char __size[4];
|
|---|
| 1319 | long int __align;
|
|---|
| 1320 | } pthread_mutexattr_t;
|
|---|
| 1321 |
|
|---|
| 1322 |
|
|---|
| 1323 |
|
|---|
| 1324 |
|
|---|
| 1325 | typedef union
|
|---|
| 1326 | {
|
|---|
| 1327 | struct
|
|---|
| 1328 | {
|
|---|
| 1329 | int __lock;
|
|---|
| 1330 | unsigned int __futex;
|
|---|
| 1331 | __extension__ unsigned long long int __total_seq;
|
|---|
| 1332 | __extension__ unsigned long long int __wakeup_seq;
|
|---|
| 1333 | __extension__ unsigned long long int __woken_seq;
|
|---|
| 1334 | void *__mutex;
|
|---|
| 1335 | unsigned int __nwaiters;
|
|---|
| 1336 | unsigned int __broadcast_seq;
|
|---|
| 1337 | } __data;
|
|---|
| 1338 | char __size[48];
|
|---|
| 1339 | __extension__ long long int __align;
|
|---|
| 1340 | } pthread_cond_t;
|
|---|
| 1341 |
|
|---|
| 1342 | typedef union
|
|---|
| 1343 | {
|
|---|
| 1344 | char __size[4];
|
|---|
| 1345 | long int __align;
|
|---|
| 1346 | } pthread_condattr_t;
|
|---|
| 1347 |
|
|---|
| 1348 |
|
|---|
| 1349 |
|
|---|
| 1350 | typedef unsigned int pthread_key_t;
|
|---|
| 1351 |
|
|---|
| 1352 |
|
|---|
| 1353 |
|
|---|
| 1354 | typedef int pthread_once_t;
|
|---|
| 1355 |
|
|---|
| 1356 |
|
|---|
| 1357 |
|
|---|
| 1358 |
|
|---|
| 1359 |
|
|---|
| 1360 | typedef union
|
|---|
| 1361 | {
|
|---|
| 1362 | struct
|
|---|
| 1363 | {
|
|---|
| 1364 | int __lock;
|
|---|
| 1365 | unsigned int __nr_readers;
|
|---|
| 1366 | unsigned int __readers_wakeup;
|
|---|
| 1367 | unsigned int __writer_wakeup;
|
|---|
| 1368 | unsigned int __nr_readers_queued;
|
|---|
| 1369 | unsigned int __nr_writers_queued;
|
|---|
| 1370 |
|
|---|
| 1371 |
|
|---|
| 1372 | unsigned char __flags;
|
|---|
| 1373 | unsigned char __shared;
|
|---|
| 1374 | unsigned char __pad1;
|
|---|
| 1375 | unsigned char __pad2;
|
|---|
| 1376 | int __writer;
|
|---|
| 1377 | } __data;
|
|---|
| 1378 | char __size[32];
|
|---|
| 1379 | long int __align;
|
|---|
| 1380 | } pthread_rwlock_t;
|
|---|
| 1381 |
|
|---|
| 1382 | typedef union
|
|---|
| 1383 | {
|
|---|
| 1384 | char __size[8];
|
|---|
| 1385 | long int __align;
|
|---|
| 1386 | } pthread_rwlockattr_t;
|
|---|
| 1387 |
|
|---|
| 1388 |
|
|---|
| 1389 |
|
|---|
| 1390 |
|
|---|
| 1391 |
|
|---|
| 1392 | typedef volatile int pthread_spinlock_t;
|
|---|
| 1393 |
|
|---|
| 1394 |
|
|---|
| 1395 |
|
|---|
| 1396 |
|
|---|
| 1397 | typedef union
|
|---|
| 1398 | {
|
|---|
| 1399 | char __size[20];
|
|---|
| 1400 | long int __align;
|
|---|
| 1401 | } pthread_barrier_t;
|
|---|
| 1402 |
|
|---|
| 1403 | typedef union
|
|---|
| 1404 | {
|
|---|
| 1405 | char __size[4];
|
|---|
| 1406 | int __align;
|
|---|
| 1407 | } pthread_barrierattr_t;
|
|---|
| 1408 | # 272 "/usr/include/sys/types.h" 2 3 4
|
|---|
| 1409 |
|
|---|
| 1410 |
|
|---|
| 1411 |
|
|---|
| 1412 | # 321 "/usr/include/stdlib.h" 2 3 4
|
|---|
| 1413 |
|
|---|
| 1414 |
|
|---|
| 1415 |
|
|---|
| 1416 |
|
|---|
| 1417 |
|
|---|
| 1418 |
|
|---|
| 1419 | extern long int random (void) __attribute__ ((__nothrow__));
|
|---|
| 1420 |
|
|---|
| 1421 |
|
|---|
| 1422 | extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
|
|---|
| 1423 |
|
|---|
| 1424 |
|
|---|
| 1425 |
|
|---|
| 1426 |
|
|---|
| 1427 |
|
|---|
| 1428 | extern char *initstate (unsigned int __seed, char *__statebuf,
|
|---|
| 1429 | size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
|
|---|
| 1430 |
|
|---|
| 1431 |
|
|---|
| 1432 |
|
|---|
| 1433 | extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1434 |
|
|---|
| 1435 |
|
|---|
| 1436 |
|
|---|
| 1437 |
|
|---|
| 1438 |
|
|---|
| 1439 |
|
|---|
| 1440 |
|
|---|
| 1441 | struct random_data
|
|---|
| 1442 | {
|
|---|
| 1443 | int32_t *fptr;
|
|---|
| 1444 | int32_t *rptr;
|
|---|
| 1445 | int32_t *state;
|
|---|
| 1446 | int rand_type;
|
|---|
| 1447 | int rand_deg;
|
|---|
| 1448 | int rand_sep;
|
|---|
| 1449 | int32_t *end_ptr;
|
|---|
| 1450 | };
|
|---|
| 1451 |
|
|---|
| 1452 | extern int random_r (struct random_data *__restrict __buf,
|
|---|
| 1453 | int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1454 |
|
|---|
| 1455 | extern int srandom_r (unsigned int __seed, struct random_data *__buf)
|
|---|
| 1456 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
|
|---|
| 1457 |
|
|---|
| 1458 | extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
|
|---|
| 1459 | size_t __statelen,
|
|---|
| 1460 | struct random_data *__restrict __buf)
|
|---|
| 1461 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
|
|---|
| 1462 |
|
|---|
| 1463 | extern int setstate_r (char *__restrict __statebuf,
|
|---|
| 1464 | struct random_data *__restrict __buf)
|
|---|
| 1465 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1466 |
|
|---|
| 1467 |
|
|---|
| 1468 |
|
|---|
| 1469 |
|
|---|
| 1470 |
|
|---|
| 1471 |
|
|---|
| 1472 | extern int rand (void) __attribute__ ((__nothrow__));
|
|---|
| 1473 |
|
|---|
| 1474 | extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
|
|---|
| 1475 |
|
|---|
| 1476 |
|
|---|
| 1477 |
|
|---|
| 1478 |
|
|---|
| 1479 | extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
|
|---|
| 1480 |
|
|---|
| 1481 |
|
|---|
| 1482 |
|
|---|
| 1483 |
|
|---|
| 1484 |
|
|---|
| 1485 |
|
|---|
| 1486 |
|
|---|
| 1487 | extern double drand48 (void) __attribute__ ((__nothrow__));
|
|---|
| 1488 | extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1489 |
|
|---|
| 1490 |
|
|---|
| 1491 | extern long int lrand48 (void) __attribute__ ((__nothrow__));
|
|---|
| 1492 | extern long int nrand48 (unsigned short int __xsubi[3])
|
|---|
| 1493 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1494 |
|
|---|
| 1495 |
|
|---|
| 1496 | extern long int mrand48 (void) __attribute__ ((__nothrow__));
|
|---|
| 1497 | extern long int jrand48 (unsigned short int __xsubi[3])
|
|---|
| 1498 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1499 |
|
|---|
| 1500 |
|
|---|
| 1501 | extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
|
|---|
| 1502 | extern unsigned short int *seed48 (unsigned short int __seed16v[3])
|
|---|
| 1503 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1504 | extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1505 |
|
|---|
| 1506 |
|
|---|
| 1507 |
|
|---|
| 1508 |
|
|---|
| 1509 |
|
|---|
| 1510 | struct drand48_data
|
|---|
| 1511 | {
|
|---|
| 1512 | unsigned short int __x[3];
|
|---|
| 1513 | unsigned short int __old_x[3];
|
|---|
| 1514 | unsigned short int __c;
|
|---|
| 1515 | unsigned short int __init;
|
|---|
| 1516 | unsigned long long int __a;
|
|---|
| 1517 | };
|
|---|
| 1518 |
|
|---|
| 1519 |
|
|---|
| 1520 | extern int drand48_r (struct drand48_data *__restrict __buffer,
|
|---|
| 1521 | double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1522 | extern int erand48_r (unsigned short int __xsubi[3],
|
|---|
| 1523 | struct drand48_data *__restrict __buffer,
|
|---|
| 1524 | double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1525 |
|
|---|
| 1526 |
|
|---|
| 1527 | extern int lrand48_r (struct drand48_data *__restrict __buffer,
|
|---|
| 1528 | long int *__restrict __result)
|
|---|
| 1529 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1530 | extern int nrand48_r (unsigned short int __xsubi[3],
|
|---|
| 1531 | struct drand48_data *__restrict __buffer,
|
|---|
| 1532 | long int *__restrict __result)
|
|---|
| 1533 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1534 |
|
|---|
| 1535 |
|
|---|
| 1536 | extern int mrand48_r (struct drand48_data *__restrict __buffer,
|
|---|
| 1537 | long int *__restrict __result)
|
|---|
| 1538 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1539 | extern int jrand48_r (unsigned short int __xsubi[3],
|
|---|
| 1540 | struct drand48_data *__restrict __buffer,
|
|---|
| 1541 | long int *__restrict __result)
|
|---|
| 1542 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1543 |
|
|---|
| 1544 |
|
|---|
| 1545 | extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
|
|---|
| 1546 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
|
|---|
| 1547 |
|
|---|
| 1548 | extern int seed48_r (unsigned short int __seed16v[3],
|
|---|
| 1549 | struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1550 |
|
|---|
| 1551 | extern int lcong48_r (unsigned short int __param[7],
|
|---|
| 1552 | struct drand48_data *__buffer)
|
|---|
| 1553 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 1554 |
|
|---|
| 1555 |
|
|---|
| 1556 |
|
|---|
| 1557 |
|
|---|
| 1558 |
|
|---|
| 1559 |
|
|---|
| 1560 |
|
|---|
| 1561 |
|
|---|
| 1562 |
|
|---|
| 1563 | extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
|
|---|
| 1564 |
|
|---|
| 1565 | extern void *calloc (size_t __nmemb, size_t __size)
|
|---|
| 1566 | __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
|
|---|
| 1567 |
|
|---|
| 1568 |
|
|---|
| 1569 |
|
|---|
| 1570 |
|
|---|
| 1571 |
|
|---|
| 1572 |
|
|---|
| 1573 |
|
|---|
| 1574 |
|
|---|
| 1575 |
|
|---|
| 1576 |
|
|---|
| 1577 | extern void *realloc (void *__ptr, size_t __size)
|
|---|
| 1578 | __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
|
|---|
| 1579 |
|
|---|
| 1580 | extern void free (void *__ptr) __attribute__ ((__nothrow__));
|
|---|
| 1581 |
|
|---|
| 1582 |
|
|---|
| 1583 |
|
|---|
| 1584 |
|
|---|
| 1585 | extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
|
|---|
| 1586 |
|
|---|
| 1587 |
|
|---|
| 1588 |
|
|---|
| 1589 | # 1 "/usr/include/alloca.h" 1 3 4
|
|---|
| 1590 | # 25 "/usr/include/alloca.h" 3 4
|
|---|
| 1591 | # 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
|
|---|
| 1592 | # 26 "/usr/include/alloca.h" 2 3 4
|
|---|
| 1593 |
|
|---|
| 1594 |
|
|---|
| 1595 |
|
|---|
| 1596 |
|
|---|
| 1597 |
|
|---|
| 1598 |
|
|---|
| 1599 |
|
|---|
| 1600 | extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
|
|---|
| 1601 |
|
|---|
| 1602 |
|
|---|
| 1603 |
|
|---|
| 1604 |
|
|---|
| 1605 |
|
|---|
| 1606 |
|
|---|
| 1607 | # 498 "/usr/include/stdlib.h" 2 3 4
|
|---|
| 1608 |
|
|---|
| 1609 |
|
|---|
| 1610 |
|
|---|
| 1611 |
|
|---|
| 1612 |
|
|---|
| 1613 | extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
|
|---|
| 1614 |
|
|---|
| 1615 |
|
|---|
| 1616 |
|
|---|
| 1617 |
|
|---|
| 1618 | extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
|
|---|
| 1619 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1620 |
|
|---|
| 1621 |
|
|---|
| 1622 |
|
|---|
| 1623 |
|
|---|
| 1624 | extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
|
|---|
| 1625 |
|
|---|
| 1626 |
|
|---|
| 1627 |
|
|---|
| 1628 | extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1629 | # 531 "/usr/include/stdlib.h" 3 4
|
|---|
| 1630 |
|
|---|
| 1631 |
|
|---|
| 1632 |
|
|---|
| 1633 |
|
|---|
| 1634 |
|
|---|
| 1635 | extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
|
|---|
| 1636 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1637 |
|
|---|
| 1638 |
|
|---|
| 1639 |
|
|---|
| 1640 |
|
|---|
| 1641 |
|
|---|
| 1642 |
|
|---|
| 1643 | extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
|
|---|
| 1644 | # 554 "/usr/include/stdlib.h" 3 4
|
|---|
| 1645 |
|
|---|
| 1646 |
|
|---|
| 1647 |
|
|---|
| 1648 |
|
|---|
| 1649 |
|
|---|
| 1650 |
|
|---|
| 1651 | extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
|
|---|
| 1652 |
|
|---|
| 1653 |
|
|---|
| 1654 |
|
|---|
| 1655 |
|
|---|
| 1656 |
|
|---|
| 1657 |
|
|---|
| 1658 | extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1659 |
|
|---|
| 1660 |
|
|---|
| 1661 |
|
|---|
| 1662 |
|
|---|
| 1663 | extern char *__secure_getenv (__const char *__name)
|
|---|
| 1664 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1665 |
|
|---|
| 1666 |
|
|---|
| 1667 |
|
|---|
| 1668 |
|
|---|
| 1669 |
|
|---|
| 1670 | extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1671 |
|
|---|
| 1672 |
|
|---|
| 1673 |
|
|---|
| 1674 |
|
|---|
| 1675 |
|
|---|
| 1676 | extern int setenv (__const char *__name, __const char *__value, int __replace)
|
|---|
| 1677 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
|
|---|
| 1678 |
|
|---|
| 1679 |
|
|---|
| 1680 | extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1681 |
|
|---|
| 1682 |
|
|---|
| 1683 |
|
|---|
| 1684 |
|
|---|
| 1685 |
|
|---|
| 1686 |
|
|---|
| 1687 | extern int clearenv (void) __attribute__ ((__nothrow__));
|
|---|
| 1688 | # 606 "/usr/include/stdlib.h" 3 4
|
|---|
| 1689 | extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1690 | # 620 "/usr/include/stdlib.h" 3 4
|
|---|
| 1691 | extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1692 | # 642 "/usr/include/stdlib.h" 3 4
|
|---|
| 1693 | extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1694 | # 663 "/usr/include/stdlib.h" 3 4
|
|---|
| 1695 | extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1696 | # 712 "/usr/include/stdlib.h" 3 4
|
|---|
| 1697 |
|
|---|
| 1698 |
|
|---|
| 1699 |
|
|---|
| 1700 |
|
|---|
| 1701 |
|
|---|
| 1702 | extern int system (__const char *__command) ;
|
|---|
| 1703 |
|
|---|
| 1704 | # 734 "/usr/include/stdlib.h" 3 4
|
|---|
| 1705 | extern char *realpath (__const char *__restrict __name,
|
|---|
| 1706 | char *__restrict __resolved) __attribute__ ((__nothrow__)) ;
|
|---|
| 1707 |
|
|---|
| 1708 |
|
|---|
| 1709 |
|
|---|
| 1710 |
|
|---|
| 1711 |
|
|---|
| 1712 |
|
|---|
| 1713 | typedef int (*__compar_fn_t) (__const void *, __const void *);
|
|---|
| 1714 | # 752 "/usr/include/stdlib.h" 3 4
|
|---|
| 1715 |
|
|---|
| 1716 |
|
|---|
| 1717 |
|
|---|
| 1718 | extern void *bsearch (__const void *__key, __const void *__base,
|
|---|
| 1719 | size_t __nmemb, size_t __size, __compar_fn_t __compar)
|
|---|
| 1720 | __attribute__ ((__nonnull__ (1, 2, 5))) ;
|
|---|
| 1721 |
|
|---|
| 1722 |
|
|---|
| 1723 |
|
|---|
| 1724 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
|
|---|
| 1725 | __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
|
|---|
| 1726 | # 771 "/usr/include/stdlib.h" 3 4
|
|---|
| 1727 | extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
|
|---|
| 1728 | extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
|
|---|
| 1729 |
|
|---|
| 1730 |
|
|---|
| 1731 |
|
|---|
| 1732 | __extension__ extern long long int llabs (long long int __x)
|
|---|
| 1733 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
|
|---|
| 1734 |
|
|---|
| 1735 |
|
|---|
| 1736 |
|
|---|
| 1737 |
|
|---|
| 1738 |
|
|---|
| 1739 |
|
|---|
| 1740 |
|
|---|
| 1741 | extern div_t div (int __numer, int __denom)
|
|---|
| 1742 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
|
|---|
| 1743 | extern ldiv_t ldiv (long int __numer, long int __denom)
|
|---|
| 1744 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
|
|---|
| 1745 |
|
|---|
| 1746 |
|
|---|
| 1747 |
|
|---|
| 1748 |
|
|---|
| 1749 | __extension__ extern lldiv_t lldiv (long long int __numer,
|
|---|
| 1750 | long long int __denom)
|
|---|
| 1751 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
|
|---|
| 1752 |
|
|---|
| 1753 | # 808 "/usr/include/stdlib.h" 3 4
|
|---|
| 1754 | extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
|
|---|
| 1755 | int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
|
|---|
| 1756 |
|
|---|
| 1757 |
|
|---|
| 1758 |
|
|---|
| 1759 |
|
|---|
| 1760 | extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
|
|---|
| 1761 | int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
|
|---|
| 1762 |
|
|---|
| 1763 |
|
|---|
| 1764 |
|
|---|
| 1765 |
|
|---|
| 1766 | extern char *gcvt (double __value, int __ndigit, char *__buf)
|
|---|
| 1767 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
|
|---|
| 1768 |
|
|---|
| 1769 |
|
|---|
| 1770 |
|
|---|
| 1771 |
|
|---|
| 1772 | extern char *qecvt (long double __value, int __ndigit,
|
|---|
| 1773 | int *__restrict __decpt, int *__restrict __sign)
|
|---|
| 1774 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
|
|---|
| 1775 | extern char *qfcvt (long double __value, int __ndigit,
|
|---|
| 1776 | int *__restrict __decpt, int *__restrict __sign)
|
|---|
| 1777 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
|
|---|
| 1778 | extern char *qgcvt (long double __value, int __ndigit, char *__buf)
|
|---|
| 1779 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
|
|---|
| 1780 |
|
|---|
| 1781 |
|
|---|
| 1782 |
|
|---|
| 1783 |
|
|---|
| 1784 | extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
|
|---|
| 1785 | int *__restrict __sign, char *__restrict __buf,
|
|---|
| 1786 | size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
|
|---|
| 1787 | extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
|
|---|
| 1788 | int *__restrict __sign, char *__restrict __buf,
|
|---|
| 1789 | size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
|
|---|
| 1790 |
|
|---|
| 1791 | extern int qecvt_r (long double __value, int __ndigit,
|
|---|
| 1792 | int *__restrict __decpt, int *__restrict __sign,
|
|---|
| 1793 | char *__restrict __buf, size_t __len)
|
|---|
| 1794 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
|
|---|
| 1795 | extern int qfcvt_r (long double __value, int __ndigit,
|
|---|
| 1796 | int *__restrict __decpt, int *__restrict __sign,
|
|---|
| 1797 | char *__restrict __buf, size_t __len)
|
|---|
| 1798 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
|
|---|
| 1799 |
|
|---|
| 1800 |
|
|---|
| 1801 |
|
|---|
| 1802 |
|
|---|
| 1803 |
|
|---|
| 1804 |
|
|---|
| 1805 |
|
|---|
| 1806 | extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ;
|
|---|
| 1807 |
|
|---|
| 1808 |
|
|---|
| 1809 | extern int mbtowc (wchar_t *__restrict __pwc,
|
|---|
| 1810 | __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ;
|
|---|
| 1811 |
|
|---|
| 1812 |
|
|---|
| 1813 | extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ;
|
|---|
| 1814 |
|
|---|
| 1815 |
|
|---|
| 1816 |
|
|---|
| 1817 | extern size_t mbstowcs (wchar_t *__restrict __pwcs,
|
|---|
| 1818 | __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
|
|---|
| 1819 |
|
|---|
| 1820 | extern size_t wcstombs (char *__restrict __s,
|
|---|
| 1821 | __const wchar_t *__restrict __pwcs, size_t __n)
|
|---|
| 1822 | __attribute__ ((__nothrow__));
|
|---|
| 1823 |
|
|---|
| 1824 |
|
|---|
| 1825 |
|
|---|
| 1826 |
|
|---|
| 1827 |
|
|---|
| 1828 |
|
|---|
| 1829 |
|
|---|
| 1830 |
|
|---|
| 1831 | extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
|
|---|
| 1832 | # 896 "/usr/include/stdlib.h" 3 4
|
|---|
| 1833 | extern int getsubopt (char **__restrict __optionp,
|
|---|
| 1834 | char *__const *__restrict __tokens,
|
|---|
| 1835 | char **__restrict __valuep)
|
|---|
| 1836 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) ;
|
|---|
| 1837 | # 948 "/usr/include/stdlib.h" 3 4
|
|---|
| 1838 | extern int getloadavg (double __loadavg[], int __nelem)
|
|---|
| 1839 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 1840 | # 964 "/usr/include/stdlib.h" 3 4
|
|---|
| 1841 |
|
|---|
| 1842 | # 3 "reorder.c" 2
|
|---|
| 1843 | # 1 "/usr/include/pthread.h" 1 3 4
|
|---|
| 1844 | # 25 "/usr/include/pthread.h" 3 4
|
|---|
| 1845 | # 1 "/usr/include/sched.h" 1 3 4
|
|---|
| 1846 | # 30 "/usr/include/sched.h" 3 4
|
|---|
| 1847 | # 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
|
|---|
| 1848 | # 31 "/usr/include/sched.h" 2 3 4
|
|---|
| 1849 |
|
|---|
| 1850 |
|
|---|
| 1851 |
|
|---|
| 1852 | # 1 "/usr/include/time.h" 1 3 4
|
|---|
| 1853 | # 35 "/usr/include/sched.h" 2 3 4
|
|---|
| 1854 | # 43 "/usr/include/sched.h" 3 4
|
|---|
| 1855 | # 1 "/usr/include/bits/sched.h" 1 3 4
|
|---|
| 1856 | # 74 "/usr/include/bits/sched.h" 3 4
|
|---|
| 1857 | struct sched_param
|
|---|
| 1858 | {
|
|---|
| 1859 | int __sched_priority;
|
|---|
| 1860 | };
|
|---|
| 1861 |
|
|---|
| 1862 |
|
|---|
| 1863 | # 97 "/usr/include/bits/sched.h" 3 4
|
|---|
| 1864 |
|
|---|
| 1865 |
|
|---|
| 1866 |
|
|---|
| 1867 |
|
|---|
| 1868 |
|
|---|
| 1869 |
|
|---|
| 1870 |
|
|---|
| 1871 |
|
|---|
| 1872 | struct __sched_param
|
|---|
| 1873 | {
|
|---|
| 1874 | int __sched_priority;
|
|---|
| 1875 | };
|
|---|
| 1876 | # 120 "/usr/include/bits/sched.h" 3 4
|
|---|
| 1877 | typedef unsigned long int __cpu_mask;
|
|---|
| 1878 |
|
|---|
| 1879 |
|
|---|
| 1880 |
|
|---|
| 1881 |
|
|---|
| 1882 |
|
|---|
| 1883 |
|
|---|
| 1884 | typedef struct
|
|---|
| 1885 | {
|
|---|
| 1886 | __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))];
|
|---|
| 1887 | } cpu_set_t;
|
|---|
| 1888 | # 203 "/usr/include/bits/sched.h" 3 4
|
|---|
| 1889 |
|
|---|
| 1890 |
|
|---|
| 1891 | extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
|
|---|
| 1892 | __attribute__ ((__nothrow__));
|
|---|
| 1893 | extern cpu_set_t *__sched_cpualloc (size_t __count) __attribute__ ((__nothrow__)) ;
|
|---|
| 1894 | extern void __sched_cpufree (cpu_set_t *__set) __attribute__ ((__nothrow__));
|
|---|
| 1895 |
|
|---|
| 1896 |
|
|---|
| 1897 | # 44 "/usr/include/sched.h" 2 3 4
|
|---|
| 1898 |
|
|---|
| 1899 |
|
|---|
| 1900 |
|
|---|
| 1901 |
|
|---|
| 1902 |
|
|---|
| 1903 |
|
|---|
| 1904 |
|
|---|
| 1905 | extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param)
|
|---|
| 1906 | __attribute__ ((__nothrow__));
|
|---|
| 1907 |
|
|---|
| 1908 |
|
|---|
| 1909 | extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __attribute__ ((__nothrow__));
|
|---|
| 1910 |
|
|---|
| 1911 |
|
|---|
| 1912 | extern int sched_setscheduler (__pid_t __pid, int __policy,
|
|---|
| 1913 | __const struct sched_param *__param) __attribute__ ((__nothrow__));
|
|---|
| 1914 |
|
|---|
| 1915 |
|
|---|
| 1916 | extern int sched_getscheduler (__pid_t __pid) __attribute__ ((__nothrow__));
|
|---|
| 1917 |
|
|---|
| 1918 |
|
|---|
| 1919 | extern int sched_yield (void) __attribute__ ((__nothrow__));
|
|---|
| 1920 |
|
|---|
| 1921 |
|
|---|
| 1922 | extern int sched_get_priority_max (int __algorithm) __attribute__ ((__nothrow__));
|
|---|
| 1923 |
|
|---|
| 1924 |
|
|---|
| 1925 | extern int sched_get_priority_min (int __algorithm) __attribute__ ((__nothrow__));
|
|---|
| 1926 |
|
|---|
| 1927 |
|
|---|
| 1928 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __attribute__ ((__nothrow__));
|
|---|
| 1929 | # 126 "/usr/include/sched.h" 3 4
|
|---|
| 1930 |
|
|---|
| 1931 | # 26 "/usr/include/pthread.h" 2 3 4
|
|---|
| 1932 | # 1 "/usr/include/time.h" 1 3 4
|
|---|
| 1933 | # 30 "/usr/include/time.h" 3 4
|
|---|
| 1934 |
|
|---|
| 1935 |
|
|---|
| 1936 |
|
|---|
| 1937 |
|
|---|
| 1938 |
|
|---|
| 1939 |
|
|---|
| 1940 |
|
|---|
| 1941 |
|
|---|
| 1942 | # 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
|
|---|
| 1943 | # 39 "/usr/include/time.h" 2 3 4
|
|---|
| 1944 |
|
|---|
| 1945 |
|
|---|
| 1946 |
|
|---|
| 1947 | # 1 "/usr/include/bits/time.h" 1 3 4
|
|---|
| 1948 | # 43 "/usr/include/time.h" 2 3 4
|
|---|
| 1949 | # 131 "/usr/include/time.h" 3 4
|
|---|
| 1950 |
|
|---|
| 1951 |
|
|---|
| 1952 | struct tm
|
|---|
| 1953 | {
|
|---|
| 1954 | int tm_sec;
|
|---|
| 1955 | int tm_min;
|
|---|
| 1956 | int tm_hour;
|
|---|
| 1957 | int tm_mday;
|
|---|
| 1958 | int tm_mon;
|
|---|
| 1959 | int tm_year;
|
|---|
| 1960 | int tm_wday;
|
|---|
| 1961 | int tm_yday;
|
|---|
| 1962 | int tm_isdst;
|
|---|
| 1963 |
|
|---|
| 1964 |
|
|---|
| 1965 | long int tm_gmtoff;
|
|---|
| 1966 | __const char *tm_zone;
|
|---|
| 1967 |
|
|---|
| 1968 |
|
|---|
| 1969 |
|
|---|
| 1970 |
|
|---|
| 1971 | };
|
|---|
| 1972 |
|
|---|
| 1973 |
|
|---|
| 1974 |
|
|---|
| 1975 |
|
|---|
| 1976 |
|
|---|
| 1977 |
|
|---|
| 1978 |
|
|---|
| 1979 |
|
|---|
| 1980 | struct itimerspec
|
|---|
| 1981 | {
|
|---|
| 1982 | struct timespec it_interval;
|
|---|
| 1983 | struct timespec it_value;
|
|---|
| 1984 | };
|
|---|
| 1985 |
|
|---|
| 1986 |
|
|---|
| 1987 | struct sigevent;
|
|---|
| 1988 | # 180 "/usr/include/time.h" 3 4
|
|---|
| 1989 |
|
|---|
| 1990 |
|
|---|
| 1991 |
|
|---|
| 1992 | extern clock_t clock (void) __attribute__ ((__nothrow__));
|
|---|
| 1993 |
|
|---|
| 1994 |
|
|---|
| 1995 | extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
|
|---|
| 1996 |
|
|---|
| 1997 |
|
|---|
| 1998 | extern double difftime (time_t __time1, time_t __time0)
|
|---|
| 1999 | __attribute__ ((__nothrow__)) __attribute__ ((__const__));
|
|---|
| 2000 |
|
|---|
| 2001 |
|
|---|
| 2002 | extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
|
|---|
| 2003 |
|
|---|
| 2004 |
|
|---|
| 2005 |
|
|---|
| 2006 |
|
|---|
| 2007 |
|
|---|
| 2008 | extern size_t strftime (char *__restrict __s, size_t __maxsize,
|
|---|
| 2009 | __const char *__restrict __format,
|
|---|
| 2010 | __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
|
|---|
| 2011 |
|
|---|
| 2012 | # 215 "/usr/include/time.h" 3 4
|
|---|
| 2013 | # 1 "/usr/include/xlocale.h" 1 3 4
|
|---|
| 2014 | # 28 "/usr/include/xlocale.h" 3 4
|
|---|
| 2015 | typedef struct __locale_struct
|
|---|
| 2016 | {
|
|---|
| 2017 |
|
|---|
| 2018 | struct __locale_data *__locales[13];
|
|---|
| 2019 |
|
|---|
| 2020 |
|
|---|
| 2021 | const unsigned short int *__ctype_b;
|
|---|
| 2022 | const int *__ctype_tolower;
|
|---|
| 2023 | const int *__ctype_toupper;
|
|---|
| 2024 |
|
|---|
| 2025 |
|
|---|
| 2026 | const char *__names[13];
|
|---|
| 2027 | } *__locale_t;
|
|---|
| 2028 |
|
|---|
| 2029 |
|
|---|
| 2030 | typedef __locale_t locale_t;
|
|---|
| 2031 | # 216 "/usr/include/time.h" 2 3 4
|
|---|
| 2032 |
|
|---|
| 2033 | extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
|
|---|
| 2034 | __const char *__restrict __format,
|
|---|
| 2035 | __const struct tm *__restrict __tp,
|
|---|
| 2036 | __locale_t __loc) __attribute__ ((__nothrow__));
|
|---|
| 2037 | # 230 "/usr/include/time.h" 3 4
|
|---|
| 2038 |
|
|---|
| 2039 |
|
|---|
| 2040 |
|
|---|
| 2041 | extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
|
|---|
| 2042 |
|
|---|
| 2043 |
|
|---|
| 2044 |
|
|---|
| 2045 | extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
|
|---|
| 2046 |
|
|---|
| 2047 |
|
|---|
| 2048 |
|
|---|
| 2049 |
|
|---|
| 2050 |
|
|---|
| 2051 | extern struct tm *gmtime_r (__const time_t *__restrict __timer,
|
|---|
| 2052 | struct tm *__restrict __tp) __attribute__ ((__nothrow__));
|
|---|
| 2053 |
|
|---|
| 2054 |
|
|---|
| 2055 |
|
|---|
| 2056 | extern struct tm *localtime_r (__const time_t *__restrict __timer,
|
|---|
| 2057 | struct tm *__restrict __tp) __attribute__ ((__nothrow__));
|
|---|
| 2058 |
|
|---|
| 2059 |
|
|---|
| 2060 |
|
|---|
| 2061 |
|
|---|
| 2062 |
|
|---|
| 2063 | extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
|
|---|
| 2064 |
|
|---|
| 2065 |
|
|---|
| 2066 | extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
|
|---|
| 2067 |
|
|---|
| 2068 |
|
|---|
| 2069 |
|
|---|
| 2070 |
|
|---|
| 2071 |
|
|---|
| 2072 |
|
|---|
| 2073 |
|
|---|
| 2074 | extern char *asctime_r (__const struct tm *__restrict __tp,
|
|---|
| 2075 | char *__restrict __buf) __attribute__ ((__nothrow__));
|
|---|
| 2076 |
|
|---|
| 2077 |
|
|---|
| 2078 | extern char *ctime_r (__const time_t *__restrict __timer,
|
|---|
| 2079 | char *__restrict __buf) __attribute__ ((__nothrow__));
|
|---|
| 2080 |
|
|---|
| 2081 |
|
|---|
| 2082 |
|
|---|
| 2083 |
|
|---|
| 2084 | extern char *__tzname[2];
|
|---|
| 2085 | extern int __daylight;
|
|---|
| 2086 | extern long int __timezone;
|
|---|
| 2087 |
|
|---|
| 2088 |
|
|---|
| 2089 |
|
|---|
| 2090 |
|
|---|
| 2091 | extern char *tzname[2];
|
|---|
| 2092 |
|
|---|
| 2093 |
|
|---|
| 2094 |
|
|---|
| 2095 | extern void tzset (void) __attribute__ ((__nothrow__));
|
|---|
| 2096 |
|
|---|
| 2097 |
|
|---|
| 2098 |
|
|---|
| 2099 | extern int daylight;
|
|---|
| 2100 | extern long int timezone;
|
|---|
| 2101 |
|
|---|
| 2102 |
|
|---|
| 2103 |
|
|---|
| 2104 |
|
|---|
| 2105 |
|
|---|
| 2106 | extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
|
|---|
| 2107 | # 313 "/usr/include/time.h" 3 4
|
|---|
| 2108 | extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
|
|---|
| 2109 |
|
|---|
| 2110 |
|
|---|
| 2111 | extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
|
|---|
| 2112 |
|
|---|
| 2113 |
|
|---|
| 2114 | extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
|
|---|
| 2115 | # 328 "/usr/include/time.h" 3 4
|
|---|
| 2116 | extern int nanosleep (__const struct timespec *__requested_time,
|
|---|
| 2117 | struct timespec *__remaining);
|
|---|
| 2118 |
|
|---|
| 2119 |
|
|---|
| 2120 |
|
|---|
| 2121 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
|
|---|
| 2122 |
|
|---|
| 2123 |
|
|---|
| 2124 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
|
|---|
| 2125 |
|
|---|
| 2126 |
|
|---|
| 2127 | extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
|
|---|
| 2128 | __attribute__ ((__nothrow__));
|
|---|
| 2129 |
|
|---|
| 2130 |
|
|---|
| 2131 |
|
|---|
| 2132 |
|
|---|
| 2133 |
|
|---|
| 2134 |
|
|---|
| 2135 | extern int clock_nanosleep (clockid_t __clock_id, int __flags,
|
|---|
| 2136 | __const struct timespec *__req,
|
|---|
| 2137 | struct timespec *__rem);
|
|---|
| 2138 |
|
|---|
| 2139 |
|
|---|
| 2140 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__));
|
|---|
| 2141 |
|
|---|
| 2142 |
|
|---|
| 2143 |
|
|---|
| 2144 |
|
|---|
| 2145 | extern int timer_create (clockid_t __clock_id,
|
|---|
| 2146 | struct sigevent *__restrict __evp,
|
|---|
| 2147 | timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
|
|---|
| 2148 |
|
|---|
| 2149 |
|
|---|
| 2150 | extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
|
|---|
| 2151 |
|
|---|
| 2152 |
|
|---|
| 2153 | extern int timer_settime (timer_t __timerid, int __flags,
|
|---|
| 2154 | __const struct itimerspec *__restrict __value,
|
|---|
| 2155 | struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
|
|---|
| 2156 |
|
|---|
| 2157 |
|
|---|
| 2158 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
|
|---|
| 2159 | __attribute__ ((__nothrow__));
|
|---|
| 2160 |
|
|---|
| 2161 |
|
|---|
| 2162 | extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
|
|---|
| 2163 | # 417 "/usr/include/time.h" 3 4
|
|---|
| 2164 |
|
|---|
| 2165 | # 27 "/usr/include/pthread.h" 2 3 4
|
|---|
| 2166 |
|
|---|
| 2167 |
|
|---|
| 2168 | # 1 "/usr/include/bits/setjmp.h" 1 3 4
|
|---|
| 2169 | # 29 "/usr/include/bits/setjmp.h" 3 4
|
|---|
| 2170 | typedef int __jmp_buf[6];
|
|---|
| 2171 | # 30 "/usr/include/pthread.h" 2 3 4
|
|---|
| 2172 | # 1 "/usr/include/bits/wordsize.h" 1 3 4
|
|---|
| 2173 | # 31 "/usr/include/pthread.h" 2 3 4
|
|---|
| 2174 |
|
|---|
| 2175 |
|
|---|
| 2176 |
|
|---|
| 2177 | enum
|
|---|
| 2178 | {
|
|---|
| 2179 | PTHREAD_CREATE_JOINABLE,
|
|---|
| 2180 |
|
|---|
| 2181 | PTHREAD_CREATE_DETACHED
|
|---|
| 2182 |
|
|---|
| 2183 | };
|
|---|
| 2184 |
|
|---|
| 2185 |
|
|---|
| 2186 |
|
|---|
| 2187 | enum
|
|---|
| 2188 | {
|
|---|
| 2189 | PTHREAD_MUTEX_TIMED_NP,
|
|---|
| 2190 | PTHREAD_MUTEX_RECURSIVE_NP,
|
|---|
| 2191 | PTHREAD_MUTEX_ERRORCHECK_NP,
|
|---|
| 2192 | PTHREAD_MUTEX_ADAPTIVE_NP
|
|---|
| 2193 |
|
|---|
| 2194 | ,
|
|---|
| 2195 | PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
|
|---|
| 2196 | PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
|
|---|
| 2197 | PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,
|
|---|
| 2198 | PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL
|
|---|
| 2199 |
|
|---|
| 2200 |
|
|---|
| 2201 |
|
|---|
| 2202 |
|
|---|
| 2203 |
|
|---|
| 2204 | };
|
|---|
| 2205 |
|
|---|
| 2206 |
|
|---|
| 2207 |
|
|---|
| 2208 |
|
|---|
| 2209 | enum
|
|---|
| 2210 | {
|
|---|
| 2211 | PTHREAD_MUTEX_STALLED,
|
|---|
| 2212 | PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED,
|
|---|
| 2213 | PTHREAD_MUTEX_ROBUST,
|
|---|
| 2214 | PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST
|
|---|
| 2215 | };
|
|---|
| 2216 | # 115 "/usr/include/pthread.h" 3 4
|
|---|
| 2217 | enum
|
|---|
| 2218 | {
|
|---|
| 2219 | PTHREAD_RWLOCK_PREFER_READER_NP,
|
|---|
| 2220 | PTHREAD_RWLOCK_PREFER_WRITER_NP,
|
|---|
| 2221 | PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP,
|
|---|
| 2222 | PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP
|
|---|
| 2223 | };
|
|---|
| 2224 | # 147 "/usr/include/pthread.h" 3 4
|
|---|
| 2225 | enum
|
|---|
| 2226 | {
|
|---|
| 2227 | PTHREAD_INHERIT_SCHED,
|
|---|
| 2228 |
|
|---|
| 2229 | PTHREAD_EXPLICIT_SCHED
|
|---|
| 2230 |
|
|---|
| 2231 | };
|
|---|
| 2232 |
|
|---|
| 2233 |
|
|---|
| 2234 |
|
|---|
| 2235 | enum
|
|---|
| 2236 | {
|
|---|
| 2237 | PTHREAD_SCOPE_SYSTEM,
|
|---|
| 2238 |
|
|---|
| 2239 | PTHREAD_SCOPE_PROCESS
|
|---|
| 2240 |
|
|---|
| 2241 | };
|
|---|
| 2242 |
|
|---|
| 2243 |
|
|---|
| 2244 |
|
|---|
| 2245 | enum
|
|---|
| 2246 | {
|
|---|
| 2247 | PTHREAD_PROCESS_PRIVATE,
|
|---|
| 2248 |
|
|---|
| 2249 | PTHREAD_PROCESS_SHARED
|
|---|
| 2250 |
|
|---|
| 2251 | };
|
|---|
| 2252 | # 182 "/usr/include/pthread.h" 3 4
|
|---|
| 2253 | struct _pthread_cleanup_buffer
|
|---|
| 2254 | {
|
|---|
| 2255 | void (*__routine) (void *);
|
|---|
| 2256 | void *__arg;
|
|---|
| 2257 | int __canceltype;
|
|---|
| 2258 | struct _pthread_cleanup_buffer *__prev;
|
|---|
| 2259 | };
|
|---|
| 2260 |
|
|---|
| 2261 |
|
|---|
| 2262 | enum
|
|---|
| 2263 | {
|
|---|
| 2264 | PTHREAD_CANCEL_ENABLE,
|
|---|
| 2265 |
|
|---|
| 2266 | PTHREAD_CANCEL_DISABLE
|
|---|
| 2267 |
|
|---|
| 2268 | };
|
|---|
| 2269 | enum
|
|---|
| 2270 | {
|
|---|
| 2271 | PTHREAD_CANCEL_DEFERRED,
|
|---|
| 2272 |
|
|---|
| 2273 | PTHREAD_CANCEL_ASYNCHRONOUS
|
|---|
| 2274 |
|
|---|
| 2275 | };
|
|---|
| 2276 | # 220 "/usr/include/pthread.h" 3 4
|
|---|
| 2277 |
|
|---|
| 2278 |
|
|---|
| 2279 |
|
|---|
| 2280 |
|
|---|
| 2281 |
|
|---|
| 2282 | extern int pthread_create (pthread_t *__restrict __newthread,
|
|---|
| 2283 | __const pthread_attr_t *__restrict __attr,
|
|---|
| 2284 | void *(*__start_routine) (void *),
|
|---|
| 2285 | void *__restrict __arg) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));
|
|---|
| 2286 |
|
|---|
| 2287 |
|
|---|
| 2288 |
|
|---|
| 2289 |
|
|---|
| 2290 |
|
|---|
| 2291 | extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__));
|
|---|
| 2292 |
|
|---|
| 2293 |
|
|---|
| 2294 |
|
|---|
| 2295 |
|
|---|
| 2296 |
|
|---|
| 2297 |
|
|---|
| 2298 |
|
|---|
| 2299 | extern int pthread_join (pthread_t __th, void **__thread_return);
|
|---|
| 2300 | # 263 "/usr/include/pthread.h" 3 4
|
|---|
| 2301 | extern int pthread_detach (pthread_t __th) __attribute__ ((__nothrow__));
|
|---|
| 2302 |
|
|---|
| 2303 |
|
|---|
| 2304 |
|
|---|
| 2305 | extern pthread_t pthread_self (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
|
|---|
| 2306 |
|
|---|
| 2307 |
|
|---|
| 2308 | extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __attribute__ ((__nothrow__));
|
|---|
| 2309 |
|
|---|
| 2310 |
|
|---|
| 2311 |
|
|---|
| 2312 |
|
|---|
| 2313 |
|
|---|
| 2314 |
|
|---|
| 2315 |
|
|---|
| 2316 | extern int pthread_attr_init (pthread_attr_t *__attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2317 |
|
|---|
| 2318 |
|
|---|
| 2319 | extern int pthread_attr_destroy (pthread_attr_t *__attr)
|
|---|
| 2320 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2321 |
|
|---|
| 2322 |
|
|---|
| 2323 | extern int pthread_attr_getdetachstate (__const pthread_attr_t *__attr,
|
|---|
| 2324 | int *__detachstate)
|
|---|
| 2325 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2326 |
|
|---|
| 2327 |
|
|---|
| 2328 | extern int pthread_attr_setdetachstate (pthread_attr_t *__attr,
|
|---|
| 2329 | int __detachstate)
|
|---|
| 2330 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2331 |
|
|---|
| 2332 |
|
|---|
| 2333 |
|
|---|
| 2334 | extern int pthread_attr_getguardsize (__const pthread_attr_t *__attr,
|
|---|
| 2335 | size_t *__guardsize)
|
|---|
| 2336 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2337 |
|
|---|
| 2338 |
|
|---|
| 2339 | extern int pthread_attr_setguardsize (pthread_attr_t *__attr,
|
|---|
| 2340 | size_t __guardsize)
|
|---|
| 2341 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2342 |
|
|---|
| 2343 |
|
|---|
| 2344 |
|
|---|
| 2345 | extern int pthread_attr_getschedparam (__const pthread_attr_t *__restrict
|
|---|
| 2346 | __attr,
|
|---|
| 2347 | struct sched_param *__restrict __param)
|
|---|
| 2348 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2349 |
|
|---|
| 2350 |
|
|---|
| 2351 | extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr,
|
|---|
| 2352 | __const struct sched_param *__restrict
|
|---|
| 2353 | __param) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2354 |
|
|---|
| 2355 |
|
|---|
| 2356 | extern int pthread_attr_getschedpolicy (__const pthread_attr_t *__restrict
|
|---|
| 2357 | __attr, int *__restrict __policy)
|
|---|
| 2358 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2359 |
|
|---|
| 2360 |
|
|---|
| 2361 | extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy)
|
|---|
| 2362 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2363 |
|
|---|
| 2364 |
|
|---|
| 2365 | extern int pthread_attr_getinheritsched (__const pthread_attr_t *__restrict
|
|---|
| 2366 | __attr, int *__restrict __inherit)
|
|---|
| 2367 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2368 |
|
|---|
| 2369 |
|
|---|
| 2370 | extern int pthread_attr_setinheritsched (pthread_attr_t *__attr,
|
|---|
| 2371 | int __inherit)
|
|---|
| 2372 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2373 |
|
|---|
| 2374 |
|
|---|
| 2375 |
|
|---|
| 2376 | extern int pthread_attr_getscope (__const pthread_attr_t *__restrict __attr,
|
|---|
| 2377 | int *__restrict __scope)
|
|---|
| 2378 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2379 |
|
|---|
| 2380 |
|
|---|
| 2381 | extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope)
|
|---|
| 2382 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2383 |
|
|---|
| 2384 |
|
|---|
| 2385 | extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict
|
|---|
| 2386 | __attr, void **__restrict __stackaddr)
|
|---|
| 2387 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__));
|
|---|
| 2388 |
|
|---|
| 2389 |
|
|---|
| 2390 |
|
|---|
| 2391 |
|
|---|
| 2392 |
|
|---|
| 2393 | extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
|
|---|
| 2394 | void *__stackaddr)
|
|---|
| 2395 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__));
|
|---|
| 2396 |
|
|---|
| 2397 |
|
|---|
| 2398 | extern int pthread_attr_getstacksize (__const pthread_attr_t *__restrict
|
|---|
| 2399 | __attr, size_t *__restrict __stacksize)
|
|---|
| 2400 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2401 |
|
|---|
| 2402 |
|
|---|
| 2403 |
|
|---|
| 2404 |
|
|---|
| 2405 | extern int pthread_attr_setstacksize (pthread_attr_t *__attr,
|
|---|
| 2406 | size_t __stacksize)
|
|---|
| 2407 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2408 |
|
|---|
| 2409 |
|
|---|
| 2410 |
|
|---|
| 2411 | extern int pthread_attr_getstack (__const pthread_attr_t *__restrict __attr,
|
|---|
| 2412 | void **__restrict __stackaddr,
|
|---|
| 2413 | size_t *__restrict __stacksize)
|
|---|
| 2414 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3)));
|
|---|
| 2415 |
|
|---|
| 2416 |
|
|---|
| 2417 |
|
|---|
| 2418 |
|
|---|
| 2419 | extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
|
|---|
| 2420 | size_t __stacksize) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2421 | # 413 "/usr/include/pthread.h" 3 4
|
|---|
| 2422 | extern int pthread_setschedparam (pthread_t __target_thread, int __policy,
|
|---|
| 2423 | __const struct sched_param *__param)
|
|---|
| 2424 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));
|
|---|
| 2425 |
|
|---|
| 2426 |
|
|---|
| 2427 | extern int pthread_getschedparam (pthread_t __target_thread,
|
|---|
| 2428 | int *__restrict __policy,
|
|---|
| 2429 | struct sched_param *__restrict __param)
|
|---|
| 2430 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
|
|---|
| 2431 |
|
|---|
| 2432 |
|
|---|
| 2433 | extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
|
|---|
| 2434 | __attribute__ ((__nothrow__));
|
|---|
| 2435 | # 478 "/usr/include/pthread.h" 3 4
|
|---|
| 2436 | extern int pthread_once (pthread_once_t *__once_control,
|
|---|
| 2437 | void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2438 | # 490 "/usr/include/pthread.h" 3 4
|
|---|
| 2439 | extern int pthread_setcancelstate (int __state, int *__oldstate);
|
|---|
| 2440 |
|
|---|
| 2441 |
|
|---|
| 2442 |
|
|---|
| 2443 | extern int pthread_setcanceltype (int __type, int *__oldtype);
|
|---|
| 2444 |
|
|---|
| 2445 |
|
|---|
| 2446 | extern int pthread_cancel (pthread_t __th);
|
|---|
| 2447 |
|
|---|
| 2448 |
|
|---|
| 2449 |
|
|---|
| 2450 |
|
|---|
| 2451 | extern void pthread_testcancel (void);
|
|---|
| 2452 |
|
|---|
| 2453 |
|
|---|
| 2454 |
|
|---|
| 2455 |
|
|---|
| 2456 | typedef struct
|
|---|
| 2457 | {
|
|---|
| 2458 | struct
|
|---|
| 2459 | {
|
|---|
| 2460 | __jmp_buf __cancel_jmp_buf;
|
|---|
| 2461 | int __mask_was_saved;
|
|---|
| 2462 | } __cancel_jmp_buf[1];
|
|---|
| 2463 | void *__pad[4];
|
|---|
| 2464 | } __pthread_unwind_buf_t __attribute__ ((__aligned__));
|
|---|
| 2465 | # 524 "/usr/include/pthread.h" 3 4
|
|---|
| 2466 | struct __pthread_cleanup_frame
|
|---|
| 2467 | {
|
|---|
| 2468 | void (*__cancel_routine) (void *);
|
|---|
| 2469 | void *__cancel_arg;
|
|---|
| 2470 | int __do_it;
|
|---|
| 2471 | int __cancel_type;
|
|---|
| 2472 | };
|
|---|
| 2473 | # 664 "/usr/include/pthread.h" 3 4
|
|---|
| 2474 | extern void __pthread_register_cancel (__pthread_unwind_buf_t *__buf)
|
|---|
| 2475 | __attribute__ ((__regparm__ (1)));
|
|---|
| 2476 | # 676 "/usr/include/pthread.h" 3 4
|
|---|
| 2477 | extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf)
|
|---|
| 2478 | __attribute__ ((__regparm__ (1)));
|
|---|
| 2479 | # 717 "/usr/include/pthread.h" 3 4
|
|---|
| 2480 | extern void __pthread_unwind_next (__pthread_unwind_buf_t *__buf)
|
|---|
| 2481 | __attribute__ ((__regparm__ (1))) __attribute__ ((__noreturn__))
|
|---|
| 2482 |
|
|---|
| 2483 | __attribute__ ((__weak__))
|
|---|
| 2484 |
|
|---|
| 2485 | ;
|
|---|
| 2486 |
|
|---|
| 2487 |
|
|---|
| 2488 |
|
|---|
| 2489 | struct __jmp_buf_tag;
|
|---|
| 2490 | extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __attribute__ ((__nothrow__));
|
|---|
| 2491 |
|
|---|
| 2492 |
|
|---|
| 2493 |
|
|---|
| 2494 |
|
|---|
| 2495 |
|
|---|
| 2496 | extern int pthread_mutex_init (pthread_mutex_t *__mutex,
|
|---|
| 2497 | __const pthread_mutexattr_t *__mutexattr)
|
|---|
| 2498 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2499 |
|
|---|
| 2500 |
|
|---|
| 2501 | extern int pthread_mutex_destroy (pthread_mutex_t *__mutex)
|
|---|
| 2502 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2503 |
|
|---|
| 2504 |
|
|---|
| 2505 | extern int pthread_mutex_trylock (pthread_mutex_t *__mutex)
|
|---|
| 2506 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2507 |
|
|---|
| 2508 |
|
|---|
| 2509 | extern int pthread_mutex_lock (pthread_mutex_t *__mutex)
|
|---|
| 2510 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2511 |
|
|---|
| 2512 |
|
|---|
| 2513 |
|
|---|
| 2514 | extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,
|
|---|
| 2515 | __const struct timespec *__restrict
|
|---|
| 2516 | __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2517 |
|
|---|
| 2518 |
|
|---|
| 2519 |
|
|---|
| 2520 | extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
|
|---|
| 2521 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2522 |
|
|---|
| 2523 |
|
|---|
| 2524 |
|
|---|
| 2525 | extern int pthread_mutex_getprioceiling (__const pthread_mutex_t *
|
|---|
| 2526 | __restrict __mutex,
|
|---|
| 2527 | int *__restrict __prioceiling)
|
|---|
| 2528 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2529 |
|
|---|
| 2530 |
|
|---|
| 2531 |
|
|---|
| 2532 | extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex,
|
|---|
| 2533 | int __prioceiling,
|
|---|
| 2534 | int *__restrict __old_ceiling)
|
|---|
| 2535 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));
|
|---|
| 2536 |
|
|---|
| 2537 |
|
|---|
| 2538 |
|
|---|
| 2539 |
|
|---|
| 2540 | extern int pthread_mutex_consistent (pthread_mutex_t *__mutex)
|
|---|
| 2541 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2542 | # 790 "/usr/include/pthread.h" 3 4
|
|---|
| 2543 | extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr)
|
|---|
| 2544 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2545 |
|
|---|
| 2546 |
|
|---|
| 2547 | extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr)
|
|---|
| 2548 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2549 |
|
|---|
| 2550 |
|
|---|
| 2551 | extern int pthread_mutexattr_getpshared (__const pthread_mutexattr_t *
|
|---|
| 2552 | __restrict __attr,
|
|---|
| 2553 | int *__restrict __pshared)
|
|---|
| 2554 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2555 |
|
|---|
| 2556 |
|
|---|
| 2557 | extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
|
|---|
| 2558 | int __pshared)
|
|---|
| 2559 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2560 |
|
|---|
| 2561 |
|
|---|
| 2562 |
|
|---|
| 2563 | extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict
|
|---|
| 2564 | __attr, int *__restrict __kind)
|
|---|
| 2565 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2566 |
|
|---|
| 2567 |
|
|---|
| 2568 |
|
|---|
| 2569 |
|
|---|
| 2570 | extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind)
|
|---|
| 2571 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2572 |
|
|---|
| 2573 |
|
|---|
| 2574 |
|
|---|
| 2575 | extern int pthread_mutexattr_getprotocol (__const pthread_mutexattr_t *
|
|---|
| 2576 | __restrict __attr,
|
|---|
| 2577 | int *__restrict __protocol)
|
|---|
| 2578 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2579 |
|
|---|
| 2580 |
|
|---|
| 2581 |
|
|---|
| 2582 | extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr,
|
|---|
| 2583 | int __protocol)
|
|---|
| 2584 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2585 |
|
|---|
| 2586 |
|
|---|
| 2587 | extern int pthread_mutexattr_getprioceiling (__const pthread_mutexattr_t *
|
|---|
| 2588 | __restrict __attr,
|
|---|
| 2589 | int *__restrict __prioceiling)
|
|---|
| 2590 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2591 |
|
|---|
| 2592 |
|
|---|
| 2593 | extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr,
|
|---|
| 2594 | int __prioceiling)
|
|---|
| 2595 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2596 |
|
|---|
| 2597 |
|
|---|
| 2598 |
|
|---|
| 2599 | extern int pthread_mutexattr_getrobust (__const pthread_mutexattr_t *__attr,
|
|---|
| 2600 | int *__robustness)
|
|---|
| 2601 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2602 |
|
|---|
| 2603 |
|
|---|
| 2604 |
|
|---|
| 2605 |
|
|---|
| 2606 |
|
|---|
| 2607 |
|
|---|
| 2608 |
|
|---|
| 2609 | extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr,
|
|---|
| 2610 | int __robustness)
|
|---|
| 2611 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2612 | # 872 "/usr/include/pthread.h" 3 4
|
|---|
| 2613 | extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock,
|
|---|
| 2614 | __const pthread_rwlockattr_t *__restrict
|
|---|
| 2615 | __attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2616 |
|
|---|
| 2617 |
|
|---|
| 2618 | extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock)
|
|---|
| 2619 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2620 |
|
|---|
| 2621 |
|
|---|
| 2622 | extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock)
|
|---|
| 2623 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2624 |
|
|---|
| 2625 |
|
|---|
| 2626 | extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock)
|
|---|
| 2627 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2628 |
|
|---|
| 2629 |
|
|---|
| 2630 |
|
|---|
| 2631 | extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock,
|
|---|
| 2632 | __const struct timespec *__restrict
|
|---|
| 2633 | __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2634 |
|
|---|
| 2635 |
|
|---|
| 2636 |
|
|---|
| 2637 | extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock)
|
|---|
| 2638 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2639 |
|
|---|
| 2640 |
|
|---|
| 2641 | extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock)
|
|---|
| 2642 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2643 |
|
|---|
| 2644 |
|
|---|
| 2645 |
|
|---|
| 2646 | extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock,
|
|---|
| 2647 | __const struct timespec *__restrict
|
|---|
| 2648 | __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2649 |
|
|---|
| 2650 |
|
|---|
| 2651 |
|
|---|
| 2652 | extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock)
|
|---|
| 2653 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2654 |
|
|---|
| 2655 |
|
|---|
| 2656 |
|
|---|
| 2657 |
|
|---|
| 2658 |
|
|---|
| 2659 | extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr)
|
|---|
| 2660 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2661 |
|
|---|
| 2662 |
|
|---|
| 2663 | extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr)
|
|---|
| 2664 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2665 |
|
|---|
| 2666 |
|
|---|
| 2667 | extern int pthread_rwlockattr_getpshared (__const pthread_rwlockattr_t *
|
|---|
| 2668 | __restrict __attr,
|
|---|
| 2669 | int *__restrict __pshared)
|
|---|
| 2670 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2671 |
|
|---|
| 2672 |
|
|---|
| 2673 | extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr,
|
|---|
| 2674 | int __pshared)
|
|---|
| 2675 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2676 |
|
|---|
| 2677 |
|
|---|
| 2678 | extern int pthread_rwlockattr_getkind_np (__const pthread_rwlockattr_t *
|
|---|
| 2679 | __restrict __attr,
|
|---|
| 2680 | int *__restrict __pref)
|
|---|
| 2681 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2682 |
|
|---|
| 2683 |
|
|---|
| 2684 | extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr,
|
|---|
| 2685 | int __pref) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2686 |
|
|---|
| 2687 |
|
|---|
| 2688 |
|
|---|
| 2689 |
|
|---|
| 2690 |
|
|---|
| 2691 |
|
|---|
| 2692 |
|
|---|
| 2693 | extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
|
|---|
| 2694 | __const pthread_condattr_t *__restrict
|
|---|
| 2695 | __cond_attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2696 |
|
|---|
| 2697 |
|
|---|
| 2698 | extern int pthread_cond_destroy (pthread_cond_t *__cond)
|
|---|
| 2699 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2700 |
|
|---|
| 2701 |
|
|---|
| 2702 | extern int pthread_cond_signal (pthread_cond_t *__cond)
|
|---|
| 2703 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2704 |
|
|---|
| 2705 |
|
|---|
| 2706 | extern int pthread_cond_broadcast (pthread_cond_t *__cond)
|
|---|
| 2707 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2708 |
|
|---|
| 2709 |
|
|---|
| 2710 |
|
|---|
| 2711 |
|
|---|
| 2712 |
|
|---|
| 2713 |
|
|---|
| 2714 | extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
|
|---|
| 2715 | pthread_mutex_t *__restrict __mutex)
|
|---|
| 2716 | __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2717 | # 984 "/usr/include/pthread.h" 3 4
|
|---|
| 2718 | extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond,
|
|---|
| 2719 | pthread_mutex_t *__restrict __mutex,
|
|---|
| 2720 | __const struct timespec *__restrict
|
|---|
| 2721 | __abstime) __attribute__ ((__nonnull__ (1, 2, 3)));
|
|---|
| 2722 |
|
|---|
| 2723 |
|
|---|
| 2724 |
|
|---|
| 2725 |
|
|---|
| 2726 | extern int pthread_condattr_init (pthread_condattr_t *__attr)
|
|---|
| 2727 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2728 |
|
|---|
| 2729 |
|
|---|
| 2730 | extern int pthread_condattr_destroy (pthread_condattr_t *__attr)
|
|---|
| 2731 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2732 |
|
|---|
| 2733 |
|
|---|
| 2734 | extern int pthread_condattr_getpshared (__const pthread_condattr_t *
|
|---|
| 2735 | __restrict __attr,
|
|---|
| 2736 | int *__restrict __pshared)
|
|---|
| 2737 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2738 |
|
|---|
| 2739 |
|
|---|
| 2740 | extern int pthread_condattr_setpshared (pthread_condattr_t *__attr,
|
|---|
| 2741 | int __pshared) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2742 |
|
|---|
| 2743 |
|
|---|
| 2744 |
|
|---|
| 2745 | extern int pthread_condattr_getclock (__const pthread_condattr_t *
|
|---|
| 2746 | __restrict __attr,
|
|---|
| 2747 | __clockid_t *__restrict __clock_id)
|
|---|
| 2748 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2749 |
|
|---|
| 2750 |
|
|---|
| 2751 | extern int pthread_condattr_setclock (pthread_condattr_t *__attr,
|
|---|
| 2752 | __clockid_t __clock_id)
|
|---|
| 2753 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2754 | # 1028 "/usr/include/pthread.h" 3 4
|
|---|
| 2755 | extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
|
|---|
| 2756 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2757 |
|
|---|
| 2758 |
|
|---|
| 2759 | extern int pthread_spin_destroy (pthread_spinlock_t *__lock)
|
|---|
| 2760 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2761 |
|
|---|
| 2762 |
|
|---|
| 2763 | extern int pthread_spin_lock (pthread_spinlock_t *__lock)
|
|---|
| 2764 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2765 |
|
|---|
| 2766 |
|
|---|
| 2767 | extern int pthread_spin_trylock (pthread_spinlock_t *__lock)
|
|---|
| 2768 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2769 |
|
|---|
| 2770 |
|
|---|
| 2771 | extern int pthread_spin_unlock (pthread_spinlock_t *__lock)
|
|---|
| 2772 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2773 |
|
|---|
| 2774 |
|
|---|
| 2775 |
|
|---|
| 2776 |
|
|---|
| 2777 |
|
|---|
| 2778 |
|
|---|
| 2779 | extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
|
|---|
| 2780 | __const pthread_barrierattr_t *__restrict
|
|---|
| 2781 | __attr, unsigned int __count)
|
|---|
| 2782 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2783 |
|
|---|
| 2784 |
|
|---|
| 2785 | extern int pthread_barrier_destroy (pthread_barrier_t *__barrier)
|
|---|
| 2786 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2787 |
|
|---|
| 2788 |
|
|---|
| 2789 | extern int pthread_barrier_wait (pthread_barrier_t *__barrier)
|
|---|
| 2790 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2791 |
|
|---|
| 2792 |
|
|---|
| 2793 |
|
|---|
| 2794 | extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr)
|
|---|
| 2795 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2796 |
|
|---|
| 2797 |
|
|---|
| 2798 | extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr)
|
|---|
| 2799 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2800 |
|
|---|
| 2801 |
|
|---|
| 2802 | extern int pthread_barrierattr_getpshared (__const pthread_barrierattr_t *
|
|---|
| 2803 | __restrict __attr,
|
|---|
| 2804 | int *__restrict __pshared)
|
|---|
| 2805 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 2806 |
|
|---|
| 2807 |
|
|---|
| 2808 | extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr,
|
|---|
| 2809 | int __pshared)
|
|---|
| 2810 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2811 | # 1095 "/usr/include/pthread.h" 3 4
|
|---|
| 2812 | extern int pthread_key_create (pthread_key_t *__key,
|
|---|
| 2813 | void (*__destr_function) (void *))
|
|---|
| 2814 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 2815 |
|
|---|
| 2816 |
|
|---|
| 2817 | extern int pthread_key_delete (pthread_key_t __key) __attribute__ ((__nothrow__));
|
|---|
| 2818 |
|
|---|
| 2819 |
|
|---|
| 2820 | extern void *pthread_getspecific (pthread_key_t __key) __attribute__ ((__nothrow__));
|
|---|
| 2821 |
|
|---|
| 2822 |
|
|---|
| 2823 | extern int pthread_setspecific (pthread_key_t __key,
|
|---|
| 2824 | __const void *__pointer) __attribute__ ((__nothrow__)) ;
|
|---|
| 2825 |
|
|---|
| 2826 |
|
|---|
| 2827 |
|
|---|
| 2828 |
|
|---|
| 2829 | extern int pthread_getcpuclockid (pthread_t __thread_id,
|
|---|
| 2830 | __clockid_t *__clock_id)
|
|---|
| 2831 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
|
|---|
| 2832 | # 1129 "/usr/include/pthread.h" 3 4
|
|---|
| 2833 | extern int pthread_atfork (void (*__prepare) (void),
|
|---|
| 2834 | void (*__parent) (void),
|
|---|
| 2835 | void (*__child) (void)) __attribute__ ((__nothrow__));
|
|---|
| 2836 | # 1143 "/usr/include/pthread.h" 3 4
|
|---|
| 2837 |
|
|---|
| 2838 | # 4 "reorder.c" 2
|
|---|
| 2839 |
|
|---|
| 2840 |
|
|---|
| 2841 |
|
|---|
| 2842 | static int iSet = 2;
|
|---|
| 2843 | static int iCheck = 2;
|
|---|
| 2844 |
|
|---|
| 2845 | static int a = 0;
|
|---|
| 2846 | static int b = 0;
|
|---|
| 2847 |
|
|---|
| 2848 | void *setThread(void *param);
|
|---|
| 2849 | void *checkThread(void *param);
|
|---|
| 2850 | void set();
|
|---|
| 2851 | int check();
|
|---|
| 2852 |
|
|---|
| 2853 | int main(int argc, char *argv[]) {
|
|---|
| 2854 | int i, err;
|
|---|
| 2855 |
|
|---|
| 2856 | if (argc != 1) {
|
|---|
| 2857 | if (argc != 3) {
|
|---|
| 2858 | fprintf(stderr, "./reorder <param1> <param2>\n");
|
|---|
| 2859 | exit(-1);
|
|---|
| 2860 | } else {
|
|---|
| 2861 | sscanf(argv[1], "%d", &iSet);
|
|---|
| 2862 | sscanf(argv[2], "%d", &iCheck);
|
|---|
| 2863 | }
|
|---|
| 2864 | }
|
|---|
| 2865 |
|
|---|
| 2866 |
|
|---|
| 2867 |
|
|---|
| 2868 | pthread_t setPool[iSet];
|
|---|
| 2869 | pthread_t checkPool[iCheck];
|
|---|
| 2870 |
|
|---|
| 2871 | for (i = 0; i < iSet; i++) {
|
|---|
| 2872 | if (0 != (err = pthread_create(&setPool[i], ((void *)0), &setThread, ((void *)0)))) {
|
|---|
| 2873 | fprintf(stderr, "Error [%d] found creating set thread.\n", err);
|
|---|
| 2874 | exit(-1);
|
|---|
| 2875 | }
|
|---|
| 2876 | }
|
|---|
| 2877 |
|
|---|
| 2878 | for (i = 0; i < iCheck; i++) {
|
|---|
| 2879 | if (0 != (err = pthread_create(&checkPool[i], ((void *)0), &checkThread,
|
|---|
| 2880 | ((void *)0)))) {
|
|---|
| 2881 | fprintf(stderr, "Error [%d] found creating check thread.\n", err);
|
|---|
| 2882 | exit(-1);
|
|---|
| 2883 | }
|
|---|
| 2884 | }
|
|---|
| 2885 |
|
|---|
| 2886 | for (i = 0; i < iSet; i++) {
|
|---|
| 2887 | if (0 != (err = pthread_join(setPool[i], ((void *)0)))) {
|
|---|
| 2888 | fprintf(stderr, "pthread join error: %d\n", err);
|
|---|
| 2889 | exit(-1);
|
|---|
| 2890 | }
|
|---|
| 2891 | }
|
|---|
| 2892 |
|
|---|
| 2893 | for (i = 0; i < iCheck; i++) {
|
|---|
| 2894 | if (0 != (err = pthread_join(checkPool[i], ((void *)0)))) {
|
|---|
| 2895 | fprintf(stderr, "pthread join error: %d\n", err);
|
|---|
| 2896 | exit(-1);
|
|---|
| 2897 | }
|
|---|
| 2898 | }
|
|---|
| 2899 |
|
|---|
| 2900 | return 0;
|
|---|
| 2901 | }
|
|---|
| 2902 |
|
|---|
| 2903 | void *setThread(void *param) {
|
|---|
| 2904 | a = 1;
|
|---|
| 2905 | b = -1;
|
|---|
| 2906 |
|
|---|
| 2907 | return ((void *)0);
|
|---|
| 2908 | }
|
|---|
| 2909 |
|
|---|
| 2910 | void *checkThread(void *param) {
|
|---|
| 2911 | if (! ((a == 0 && b == 0) || (a == 1 && b == -1))) {
|
|---|
| 2912 | fprintf(stderr, "Bug found!\n");
|
|---|
| 2913 | ERROR: __VERIFIER_error();
|
|---|
| 2914 | }
|
|---|
| 2915 |
|
|---|
| 2916 | return ((void *)0);
|
|---|
| 2917 | }
|
|---|