Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 29.49 KB | None | 0 0
  1. typedef signed char __int8_t;
  2. typedef unsigned char __uint8_t;
  3. typedef short int __int16_t;
  4. typedef short unsigned int __uint16_t;
  5. typedef int __int32_t;
  6. typedef unsigned int __uint32_t;
  7. typedef long long int __int64_t;
  8. typedef long long unsigned int __uint64_t;
  9. typedef signed char __int_least8_t;
  10. typedef unsigned char __uint_least8_t;
  11. typedef short int __int_least16_t;
  12. typedef short unsigned int __uint_least16_t;
  13. typedef int __int_least32_t;
  14. typedef unsigned int __uint_least32_t;
  15. typedef long long int __int_least64_t;
  16. typedef long long unsigned int __uint_least64_t;
  17. typedef int __intptr_t;
  18. typedef unsigned int __uintptr_t;
  19. typedef unsigned int size_t;
  20. typedef int ptrdiff_t;
  21. typedef short unsigned int wchar_t;
  22. typedef __builtin_va_list __gnuc_va_list;
  23. typedef void *_LOCK_T;
  24. void __cygwin_lock_init(_LOCK_T *);
  25. void __cygwin_lock_init_recursive(_LOCK_T *);
  26. void __cygwin_lock_fini(_LOCK_T *);
  27. void __cygwin_lock_lock(_LOCK_T *);
  28. int __cygwin_lock_trylock(_LOCK_T *);
  29. void __cygwin_lock_unlock(_LOCK_T *);
  30. typedef long _off_t;
  31. typedef short __dev_t;
  32. typedef unsigned short __uid_t;
  33. typedef unsigned short __gid_t;
  34. __extension__ typedef long long _off64_t;
  35. typedef long _fpos_t;
  36. typedef _off64_t _fpos64_t;
  37. typedef signed int _ssize_t;
  38. typedef unsigned int wint_t;
  39. typedef struct
  40. {
  41.     int __count;
  42.     union
  43.     {
  44.         wint_t __wch;
  45.         unsigned char __wchb[4];
  46.     } __value;
  47. } _mbstate_t;
  48. typedef _LOCK_T _flock_t;
  49. typedef void *_iconv_t;
  50. typedef unsigned long __ULong;
  51. struct _reent;
  52. struct _Bigint
  53. {
  54.     struct _Bigint *_next;
  55.     int _k, _maxwds, _sign, _wds;
  56.     __ULong _x[1];
  57. };
  58. struct __tm
  59. {
  60.     int __tm_sec;
  61.     int __tm_min;
  62.     int __tm_hour;
  63.     int __tm_mday;
  64.     int __tm_mon;
  65.     int __tm_year;
  66.     int __tm_wday;
  67.     int __tm_yday;
  68.     int __tm_isdst;
  69. };
  70. struct _on_exit_args {
  71.     void * _fnargs[32];
  72.     void * _dso_handle[32];
  73.     __ULong _fntypes;
  74.     __ULong _is_cxa;
  75. };
  76. struct _atexit {
  77.     struct _atexit *_next;
  78.     int _ind;
  79.     void (*_fns[32])(void);
  80.     struct _on_exit_args _on_exit_args;
  81. };
  82. struct __sbuf {
  83.     unsigned char *_base;
  84.     int _size;
  85. };
  86. struct __sFILE {
  87.     unsigned char *_p;
  88.     int _r;
  89.     int _w;
  90.     short _flags;
  91.     short _file;
  92.     struct __sbuf _bf;
  93.     int _lbfsize;
  94.     void * _cookie;
  95.     _ssize_t (__attribute__((__cdecl__)) * _read) (struct _reent *, void *, char *, size_t)
  96.     ;
  97.     _ssize_t (__attribute__((__cdecl__)) * _write) (struct _reent *, void *, const char *, size_t)
  98.     ;
  99.     _fpos_t (__attribute__((__cdecl__)) * _seek) (struct _reent *, void *, _fpos_t, int);
  100.     int (__attribute__((__cdecl__)) * _close) (struct _reent *, void *);
  101.     struct __sbuf _ub;
  102.     unsigned char *_up;
  103.     int _ur;
  104.     unsigned char _ubuf[3];
  105.     unsigned char _nbuf[1];
  106.     struct __sbuf _lb;
  107.     int _blksize;
  108.     _off_t _offset;
  109.     struct _reent *_data;
  110.     _flock_t _lock;
  111.     _mbstate_t _mbstate;
  112.     int _flags2;
  113. };
  114. struct __sFILE64 {
  115.     unsigned char *_p;
  116.     int _r;
  117.     int _w;
  118.     short _flags;
  119.     short _file;
  120.     struct __sbuf _bf;
  121.     int _lbfsize;
  122.     struct _reent *_data;
  123.     void * _cookie;
  124.     _ssize_t (__attribute__((__cdecl__)) * _read) (struct _reent *, void *, char *, size_t)
  125.     ;
  126.     _ssize_t (__attribute__((__cdecl__)) * _write) (struct _reent *, void *, const char *, size_t)
  127.     ;
  128.     _fpos_t (__attribute__((__cdecl__)) * _seek) (struct _reent *, void *, _fpos_t, int);
  129.     int (__attribute__((__cdecl__)) * _close) (struct _reent *, void *);
  130.     struct __sbuf _ub;
  131.     unsigned char *_up;
  132.     int _ur;
  133.     unsigned char _ubuf[3];
  134.     unsigned char _nbuf[1];
  135.     struct __sbuf _lb;
  136.     int _blksize;
  137.     int _flags2;
  138.     _off64_t _offset;
  139.     _fpos64_t (__attribute__((__cdecl__)) * _seek64) (struct _reent *, void *, _fpos64_t, int);
  140.     _flock_t _lock;
  141.     _mbstate_t _mbstate;
  142. };
  143. typedef struct __sFILE64 __FILE;
  144. struct _glue
  145. {
  146.     struct _glue *_next;
  147.     int _niobs;
  148.     __FILE *_iobs;
  149. };
  150. struct _rand48 {
  151.     unsigned short _seed[3];
  152.     unsigned short _mult[3];
  153.     unsigned short _add;
  154. };
  155. struct _reent
  156. {
  157.     int _errno;
  158.     __FILE *_stdin, *_stdout, *_stderr;
  159.     int _inc;
  160.     char _emergency[25];
  161.     int _current_category;
  162.     const char *_current_locale;
  163.     int __sdidinit;
  164.     void (__attribute__((__cdecl__)) * __cleanup) (struct _reent *);
  165.     struct _Bigint *_result;
  166.     int _result_k;
  167.     struct _Bigint *_p5s;
  168.     struct _Bigint **_freelist;
  169.     int _cvtlen;
  170.     char *_cvtbuf;
  171.     union
  172.     {
  173.         struct
  174.         {
  175.             unsigned int _unused_rand;
  176.             char * _strtok_last;
  177.             char _asctime_buf[26];
  178.             struct __tm _localtime_buf;
  179.             int _gamma_signgam;
  180.             __extension__ unsigned long long _rand_next;
  181.             struct _rand48 _r48;
  182.             _mbstate_t _mblen_state;
  183.             _mbstate_t _mbtowc_state;
  184.             _mbstate_t _wctomb_state;
  185.             char _l64a_buf[8];
  186.             char _signal_buf[24];
  187.             int _getdate_err;
  188.             _mbstate_t _mbrlen_state;
  189.             _mbstate_t _mbrtowc_state;
  190.             _mbstate_t _mbsrtowcs_state;
  191.             _mbstate_t _wcrtomb_state;
  192.             _mbstate_t _wcsrtombs_state;
  193.             int _h_errno;
  194.         } _reent;
  195.         struct
  196.         {
  197.             unsigned char * _nextf[30];
  198.             unsigned int _nmalloc[30];
  199.         } _unused;
  200.     } _new;
  201.     struct _atexit *_atexit;
  202.     struct _atexit _atexit0;
  203.     void (**(_sig_func))(int);
  204.     struct _glue __sglue;
  205.     __FILE __sf[3];
  206. };
  207. extern struct _reent *_impure_ptr ;
  208. extern struct _reent *const _global_impure_ptr ;
  209. void _reclaim_reent (struct _reent *);
  210. struct _reent * __attribute__((__cdecl__)) __getreent (void);
  211. typedef long int __off_t;
  212. typedef int __pid_t;
  213. __extension__ typedef long long int __loff_t;
  214. typedef unsigned char u_char;
  215. typedef unsigned short u_short;
  216. typedef unsigned int u_int;
  217. typedef unsigned long u_long;
  218. typedef unsigned short ushort;
  219. typedef unsigned int uint;
  220. typedef unsigned long ulong;
  221. typedef unsigned long clock_t;
  222. typedef long time_t;
  223. struct timespec {
  224.     time_t tv_sec;
  225.     long tv_nsec;
  226. };
  227. struct itimerspec {
  228.     struct timespec it_interval;
  229.     struct timespec it_value;
  230. };
  231. typedef long daddr_t;
  232. typedef char * caddr_t;
  233. typedef int pid_t;
  234. typedef _ssize_t ssize_t;
  235. typedef unsigned short nlink_t;
  236. typedef long fd_mask;
  237. typedef struct _types_fd_set {
  238.     fd_mask fds_bits[(((64)+(((sizeof (fd_mask) * 8))-1))/((sizeof (fd_mask) * 8)))];
  239. } _types_fd_set;
  240. typedef unsigned long clockid_t;
  241. typedef unsigned long timer_t;
  242. typedef unsigned long useconds_t;
  243. typedef long suseconds_t;
  244. typedef signed char int8_t;
  245. typedef short int16_t;
  246. typedef int int32_t;
  247. typedef long long int64_t;
  248. typedef unsigned char uint8_t;
  249. typedef unsigned short uint16_t;
  250. typedef unsigned int uint32_t;
  251. typedef unsigned long long uint64_t;
  252. typedef signed char int_least8_t;
  253. typedef short int_least16_t;
  254. typedef int int_least32_t;
  255. typedef long long int_least64_t;
  256. typedef unsigned char uint_least8_t;
  257. typedef unsigned short uint_least16_t;
  258. typedef unsigned int uint_least32_t;
  259. typedef unsigned long long uint_least64_t;
  260. typedef signed char int_fast8_t;
  261. typedef int int_fast16_t;
  262. typedef int int_fast32_t;
  263. typedef long long int_fast64_t;
  264. typedef unsigned char uint_fast8_t;
  265. typedef unsigned int uint_fast16_t;
  266. typedef unsigned int uint_fast32_t;
  267. typedef unsigned long long uint_fast64_t;
  268. typedef int intptr_t;
  269. typedef unsigned int uintptr_t;
  270. typedef long long intmax_t;
  271. typedef unsigned long long uintmax_t;
  272. static __inline unsigned short
  273. bswap_16 (unsigned short __x)
  274. {
  275.     return (__x >> 8) | (__x << 8);
  276. }
  277. static __inline unsigned int
  278. bswap_32 (unsigned int __x)
  279. {
  280.     return (bswap_16 (__x & 0xffff) << 16) | (bswap_16 (__x >> 16));
  281. }
  282. static __inline unsigned long long
  283. bswap_64 (unsigned long long __x)
  284. {
  285.     return (((unsigned long long) bswap_32 (__x & 0xffffffffull)) << 32) | (bswap_32 (__x >> 32));
  286. }
  287. typedef struct timespec timespec_t;
  288. typedef struct timespec timestruc_t;
  289. typedef _off64_t off_t;
  290. typedef __loff_t loff_t;
  291. typedef __int16_t __dev16_t;
  292. typedef __uint32_t dev_t;
  293. typedef __int32_t blksize_t;
  294. typedef __int32_t __blkcnt32_t;
  295. typedef __int64_t blkcnt_t;
  296. typedef unsigned long fsblkcnt_t;
  297. typedef unsigned long fsfilcnt_t;
  298. typedef unsigned short __uid16_t;
  299. typedef __uint32_t uid_t;
  300. typedef unsigned short __gid16_t;
  301. typedef __uint32_t gid_t;
  302. typedef __uint32_t __ino32_t;
  303. typedef __uint64_t ino_t;
  304. typedef __uint32_t id_t;
  305. struct flock {
  306.     short l_type;
  307.     short l_whence;
  308.     off_t l_start;
  309.     off_t l_len;
  310.     pid_t l_pid;
  311. };
  312. typedef long long key_t;
  313. typedef unsigned long vm_offset_t;
  314. typedef unsigned long vm_size_t;
  315. typedef void *vm_object_t;
  316. typedef unsigned char u_int8_t;
  317. typedef __uint16_t u_int16_t;
  318. typedef __uint32_t u_int32_t;
  319. typedef __uint64_t u_int64_t;
  320. typedef __int32_t register_t;
  321. typedef char *addr_t;
  322. typedef unsigned mode_t;
  323. typedef struct __pthread_t {char __dummy;} *pthread_t;
  324. typedef struct __pthread_mutex_t {char __dummy;} *pthread_mutex_t;
  325. typedef struct __pthread_key_t {char __dummy;} *pthread_key_t;
  326. typedef struct __pthread_attr_t {char __dummy;} *pthread_attr_t;
  327. typedef struct __pthread_mutexattr_t {char __dummy;} *pthread_mutexattr_t;
  328. typedef struct __pthread_condattr_t {char __dummy;} *pthread_condattr_t;
  329. typedef struct __pthread_cond_t {char __dummy;} *pthread_cond_t;
  330. typedef struct
  331. {
  332.     pthread_mutex_t mutex;
  333.     int state;
  334. }
  335. pthread_once_t;
  336. typedef struct __pthread_spinlock_t {char __dummy;} *pthread_spinlock_t;
  337. typedef struct __pthread_rwlock_t {char __dummy;} *pthread_rwlock_t;
  338. typedef struct __pthread_rwlockattr_t {char __dummy;} *pthread_rwlockattr_t;
  339. extern __inline__ __attribute__ ((__always_inline__)) int gnu_dev_major(dev_t);
  340. extern __inline__ __attribute__ ((__always_inline__)) int gnu_dev_minor(dev_t);
  341. extern __inline__ __attribute__ ((__always_inline__)) dev_t gnu_dev_makedev(int, int);
  342. extern __inline__ __attribute__ ((__always_inline__)) int
  343. gnu_dev_major(dev_t dev)
  344. {
  345.     return (int)(((dev) >> 16) & 0xffff);
  346. }
  347. extern __inline__ __attribute__ ((__always_inline__)) int
  348. gnu_dev_minor(dev_t dev)
  349. {
  350.     return (int)((dev) & 0xffff);
  351. }
  352. extern __inline__ __attribute__ ((__always_inline__)) dev_t
  353. gnu_dev_makedev(int maj, int min)
  354. {
  355.     return (((maj) << 16) | ((min) & 0xffff));
  356. }
  357. typedef __FILE FILE;
  358. typedef _fpos64_t fpos_t;
  359. ssize_t __attribute__((__cdecl__)) getline (char **, size_t *, FILE *);
  360. ssize_t __attribute__((__cdecl__)) getdelim (char **, size_t *, int, FILE *);
  361. FILE * __attribute__((__cdecl__)) tmpfile (void);
  362. char * __attribute__((__cdecl__)) tmpnam (char *);
  363. int __attribute__((__cdecl__)) fclose (FILE *);
  364. int __attribute__((__cdecl__)) fflush (FILE *);
  365. FILE * __attribute__((__cdecl__)) freopen (const char *, const char *, FILE *);
  366. void __attribute__((__cdecl__)) setbuf (FILE *, char *);
  367. int __attribute__((__cdecl__)) setvbuf (FILE *, char *, int, size_t);
  368. int __attribute__((__cdecl__)) fprintf (FILE *, const char *, ...) __attribute__ ((__format__ (__printf__, 2, 3)))
  369. ;
  370. int __attribute__((__cdecl__)) fscanf (FILE *, const char *, ...) __attribute__ ((__format__ (__scanf__, 2, 3)))
  371. ;
  372. int __attribute__((__cdecl__)) printf (const char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)))
  373. ;
  374. int __attribute__((__cdecl__)) scanf (const char *, ...) __attribute__ ((__format__ (__scanf__, 1, 2)))
  375. ;
  376. int __attribute__((__cdecl__)) sscanf (const char *, const char *, ...) __attribute__ ((__format__ (__scanf__, 2, 3)))
  377. ;
  378. int __attribute__((__cdecl__)) vfprintf (FILE *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 2, 0)))
  379. ;
  380. int __attribute__((__cdecl__)) vprintf (const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 1, 0)))
  381. ;
  382. int __attribute__((__cdecl__)) vsprintf (char *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 2, 0)))
  383. ;
  384. int __attribute__((__cdecl__)) fgetc (FILE *);
  385. char * __attribute__((__cdecl__)) fgets (char *, int, FILE *);
  386. int __attribute__((__cdecl__)) fputc (int, FILE *);
  387. int __attribute__((__cdecl__)) fputs (const char *, FILE *);
  388. int __attribute__((__cdecl__)) getc (FILE *);
  389. int __attribute__((__cdecl__)) getchar (void);
  390. char * __attribute__((__cdecl__)) gets (char *);
  391. int __attribute__((__cdecl__)) putc (int, FILE *);
  392. int __attribute__((__cdecl__)) putchar (int);
  393. int __attribute__((__cdecl__)) puts (const char *);
  394. int __attribute__((__cdecl__)) ungetc (int, FILE *);
  395. size_t __attribute__((__cdecl__)) fread (void * , size_t _size, size_t _n, FILE *);
  396. size_t __attribute__((__cdecl__)) fwrite (const void * , size_t _size, size_t _n, FILE *);
  397. int __attribute__((__cdecl__)) fgetpos (FILE *, fpos_t *);
  398. int __attribute__((__cdecl__)) fseek (FILE *, long, int);
  399. int __attribute__((__cdecl__)) fsetpos (FILE *, const fpos_t *);
  400. long __attribute__((__cdecl__)) ftell ( FILE *);
  401. void __attribute__((__cdecl__)) rewind (FILE *);
  402. void __attribute__((__cdecl__)) clearerr (FILE *);
  403. int __attribute__((__cdecl__)) feof (FILE *);
  404. int __attribute__((__cdecl__)) ferror (FILE *);
  405. void __attribute__((__cdecl__)) perror (const char *);
  406. FILE * __attribute__((__cdecl__)) fopen (const char * _name, const char * _type);
  407. int __attribute__((__cdecl__)) sprintf (char *, const char *, ...) __attribute__ ((__format__ (__printf__, 2, 3)))
  408. ;
  409. int __attribute__((__cdecl__)) remove (const char *);
  410. int __attribute__((__cdecl__)) rename (const char *, const char *);
  411. int __attribute__((__cdecl__)) fseeko (FILE *, off_t, int);
  412. off_t __attribute__((__cdecl__)) ftello ( FILE *);
  413. int __attribute__((__cdecl__)) asiprintf (char **, const char *, ...) __attribute__ ((__format__ (__printf__, 2, 3)))
  414. ;
  415. char * __attribute__((__cdecl__)) asniprintf (char *, size_t *, const char *, ...) __attribute__ ((__format__ (__printf__, 3, 4)))
  416. ;
  417. char * __attribute__((__cdecl__)) asnprintf (char *, size_t *, const char *, ...) __attribute__ ((__format__ (__printf__, 3, 4)))
  418. ;
  419. int __attribute__((__cdecl__)) asprintf (char **, const char *, ...) __attribute__ ((__format__ (__printf__, 2, 3)))
  420. ;
  421. int __attribute__((__cdecl__)) diprintf (int, const char *, ...) __attribute__ ((__format__ (__printf__, 2, 3)))
  422. ;
  423. int __attribute__((__cdecl__)) fcloseall (void);
  424. int __attribute__((__cdecl__)) fiprintf (FILE *, const char *, ...) __attribute__ ((__format__ (__printf__, 2, 3)))
  425. ;
  426. int __attribute__((__cdecl__)) fiscanf (FILE *, const char *, ...) __attribute__ ((__format__ (__scanf__, 2, 3)))
  427. ;
  428. int __attribute__((__cdecl__)) iprintf (const char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)))
  429. ;
  430. int __attribute__((__cdecl__)) iscanf (const char *, ...) __attribute__ ((__format__ (__scanf__, 1, 2)))
  431. ;
  432. int __attribute__((__cdecl__)) siprintf (char *, const char *, ...) __attribute__ ((__format__ (__printf__, 2, 3)))
  433. ;
  434. int __attribute__((__cdecl__)) siscanf (const char *, const char *, ...) __attribute__ ((__format__ (__scanf__, 2, 3)))
  435. ;
  436. int __attribute__((__cdecl__)) snprintf (char *, size_t, const char *, ...) __attribute__ ((__format__ (__printf__, 3, 4)))
  437. ;
  438. int __attribute__((__cdecl__)) sniprintf (char *, size_t, const char *, ...) __attribute__ ((__format__ (__printf__, 3, 4)))
  439. ;
  440. char * __attribute__((__cdecl__)) tempnam (const char *, const char *);
  441. int __attribute__((__cdecl__)) vasiprintf (char **, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 2, 0)))
  442. ;
  443. char * __attribute__((__cdecl__)) vasniprintf (char *, size_t *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 3, 0)))
  444. ;
  445. char * __attribute__((__cdecl__)) vasnprintf (char *, size_t *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 3, 0)))
  446. ;
  447. int __attribute__((__cdecl__)) vasprintf (char **, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 2, 0)))
  448. ;
  449. int __attribute__((__cdecl__)) vdiprintf (int, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 2, 0)))
  450. ;
  451. int __attribute__((__cdecl__)) vfiprintf (FILE *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 2, 0)))
  452. ;
  453. int __attribute__((__cdecl__)) vfiscanf (FILE *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__scanf__, 2, 0)))
  454. ;
  455. int __attribute__((__cdecl__)) vfscanf (FILE *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__scanf__, 2, 0)))
  456. ;
  457. int __attribute__((__cdecl__)) viprintf (const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 1, 0)))
  458. ;
  459. int __attribute__((__cdecl__)) viscanf (const char *, __gnuc_va_list) __attribute__ ((__format__ (__scanf__, 1, 0)))
  460. ;
  461. int __attribute__((__cdecl__)) vscanf (const char *, __gnuc_va_list) __attribute__ ((__format__ (__scanf__, 1, 0)))
  462. ;
  463. int __attribute__((__cdecl__)) vsiprintf (char *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 2, 0)))
  464. ;
  465. int __attribute__((__cdecl__)) vsiscanf (const char *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__scanf__, 2, 0)))
  466. ;
  467. int __attribute__((__cdecl__)) vsniprintf (char *, size_t, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 3, 0)))
  468. ;
  469. int __attribute__((__cdecl__)) vsnprintf (char *, size_t, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 3, 0)))
  470. ;
  471. int __attribute__((__cdecl__)) vsscanf (const char *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__scanf__, 2, 0)))
  472. ;
  473. FILE * __attribute__((__cdecl__)) fdopen (int, const char *);
  474. int __attribute__((__cdecl__)) fileno (FILE *);
  475. int __attribute__((__cdecl__)) getw (FILE *);
  476. int __attribute__((__cdecl__)) pclose (FILE *);
  477. FILE * __attribute__((__cdecl__)) popen (const char *, const char *);
  478. int __attribute__((__cdecl__)) putw (int, FILE *);
  479. void __attribute__((__cdecl__)) setbuffer (FILE *, char *, int);
  480. int __attribute__((__cdecl__)) setlinebuf (FILE *);
  481. int __attribute__((__cdecl__)) getc_unlocked (FILE *);
  482. int __attribute__((__cdecl__)) getchar_unlocked (void);
  483. void __attribute__((__cdecl__)) flockfile (FILE *);
  484. int __attribute__((__cdecl__)) ftrylockfile (FILE *);
  485. void __attribute__((__cdecl__)) funlockfile (FILE *);
  486. int __attribute__((__cdecl__)) putc_unlocked (int, FILE *);
  487. int __attribute__((__cdecl__)) putchar_unlocked (int);
  488. int __attribute__((__cdecl__)) dprintf (int, const char *, ...) __attribute__ ((__format__ (__printf__, 2, 3)))
  489. ;
  490. FILE * __attribute__((__cdecl__)) fmemopen (void *, size_t, const char *);
  491. FILE * __attribute__((__cdecl__)) open_memstream (char **, size_t *);
  492. int __attribute__((__cdecl__)) renameat (int, const char *, int, const char *);
  493. int __attribute__((__cdecl__)) vdprintf (int, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 2, 0)))
  494. ;
  495. int __attribute__((__cdecl__)) _asiprintf_r (struct _reent *, char **, const char *, ...) __attribute__ ((__format__ (__printf__, 3, 4)))
  496. ;
  497. char * __attribute__((__cdecl__)) _asniprintf_r (struct _reent *, char *, size_t *, const char *, ...) __attribute__ ((__format__ (__printf__, 4, 5)))
  498. ;
  499. char * __attribute__((__cdecl__)) _asnprintf_r (struct _reent *, char *, size_t *, const char *, ...) __attribute__ ((__format__ (__printf__, 4, 5)))
  500. ;
  501. int __attribute__((__cdecl__)) _asprintf_r (struct _reent *, char **, const char *, ...) __attribute__ ((__format__ (__printf__, 3, 4)))
  502. ;
  503. int __attribute__((__cdecl__)) _diprintf_r (struct _reent *, int, const char *, ...) __attribute__ ((__format__ (__printf__, 3, 4)))
  504. ;
  505. int __attribute__((__cdecl__)) _dprintf_r (struct _reent *, int, const char *, ...) __attribute__ ((__format__ (__printf__, 3, 4)))
  506. ;
  507. int __attribute__((__cdecl__)) _fclose_r (struct _reent *, FILE *);
  508. int __attribute__((__cdecl__)) _fcloseall_r (struct _reent *);
  509. FILE * __attribute__((__cdecl__)) _fdopen_r (struct _reent *, int, const char *);
  510. int __attribute__((__cdecl__)) _fflush_r (struct _reent *, FILE *);
  511. int __attribute__((__cdecl__)) _fgetc_r (struct _reent *, FILE *);
  512. char * __attribute__((__cdecl__)) _fgets_r (struct _reent *, char *, int, FILE *);
  513. int __attribute__((__cdecl__)) _fgetpos_r (struct _reent *, FILE *, fpos_t *);
  514. int __attribute__((__cdecl__)) _fsetpos_r (struct _reent *, FILE *, const fpos_t *);
  515. int __attribute__((__cdecl__)) _fiprintf_r (struct _reent *, FILE *, const char *, ...) __attribute__ ((__format__ (__printf__, 3, 4)))
  516. ;
  517. int __attribute__((__cdecl__)) _fiscanf_r (struct _reent *, FILE *, const char *, ...) __attribute__ ((__format__ (__scanf__, 3, 4)))
  518. ;
  519. FILE * __attribute__((__cdecl__)) _fmemopen_r (struct _reent *, void *, size_t, const char *);
  520. FILE * __attribute__((__cdecl__)) _fopen_r (struct _reent *, const char *, const char *);
  521. FILE * __attribute__((__cdecl__)) _freopen_r (struct _reent *, const char *, const char *, FILE *);
  522. int __attribute__((__cdecl__)) _fprintf_r (struct _reent *, FILE *, const char *, ...) __attribute__ ((__format__ (__printf__, 3, 4)))
  523. ;
  524. int __attribute__((__cdecl__)) _fpurge_r (struct _reent *, FILE *);
  525. int __attribute__((__cdecl__)) _fputc_r (struct _reent *, int, FILE *);
  526. int __attribute__((__cdecl__)) _fputs_r (struct _reent *, const char *, FILE *);
  527. size_t __attribute__((__cdecl__)) _fread_r (struct _reent *, void * , size_t _size, size_t _n, FILE *);
  528. int __attribute__((__cdecl__)) _fscanf_r (struct _reent *, FILE *, const char *, ...) __attribute__ ((__format__ (__scanf__, 3, 4)))
  529. ;
  530. int __attribute__((__cdecl__)) _fseek_r (struct _reent *, FILE *, long, int);
  531. int __attribute__((__cdecl__)) _fseeko_r (struct _reent *, FILE *, _off_t, int);
  532. long __attribute__((__cdecl__)) _ftell_r (struct _reent *, FILE *);
  533. _off_t __attribute__((__cdecl__)) _ftello_r (struct _reent *, FILE *);
  534. void __attribute__((__cdecl__)) _rewind_r (struct _reent *, FILE *);
  535. size_t __attribute__((__cdecl__)) _fwrite_r (struct _reent *, const void * , size_t _size, size_t _n, FILE *);
  536. int __attribute__((__cdecl__)) _getc_r (struct _reent *, FILE *);
  537. int __attribute__((__cdecl__)) _getc_unlocked_r (struct _reent *, FILE *);
  538. int __attribute__((__cdecl__)) _getchar_r (struct _reent *);
  539. int __attribute__((__cdecl__)) _getchar_unlocked_r (struct _reent *);
  540. char * __attribute__((__cdecl__)) _gets_r (struct _reent *, char *);
  541. int __attribute__((__cdecl__)) _iprintf_r (struct _reent *, const char *, ...) __attribute__ ((__format__ (__printf__, 2, 3)))
  542. ;
  543. int __attribute__((__cdecl__)) _iscanf_r (struct _reent *, const char *, ...) __attribute__ ((__format__ (__scanf__, 2, 3)))
  544. ;
  545. FILE * __attribute__((__cdecl__)) _open_memstream_r (struct _reent *, char **, size_t *);
  546. void __attribute__((__cdecl__)) _perror_r (struct _reent *, const char *);
  547. int __attribute__((__cdecl__)) _printf_r (struct _reent *, const char *, ...) __attribute__ ((__format__ (__printf__, 2, 3)))
  548. ;
  549. int __attribute__((__cdecl__)) _putc_r (struct _reent *, int, FILE *);
  550. int __attribute__((__cdecl__)) _putc_unlocked_r (struct _reent *, int, FILE *);
  551. int __attribute__((__cdecl__)) _putchar_unlocked_r (struct _reent *, int);
  552. int __attribute__((__cdecl__)) _putchar_r (struct _reent *, int);
  553. int __attribute__((__cdecl__)) _puts_r (struct _reent *, const char *);
  554. int __attribute__((__cdecl__)) _remove_r (struct _reent *, const char *);
  555. int __attribute__((__cdecl__)) _rename_r (struct _reent *, const char *_old, const char *_new)
  556. ;
  557. int __attribute__((__cdecl__)) _scanf_r (struct _reent *, const char *, ...) __attribute__ ((__format__ (__scanf__, 2, 3)))
  558. ;
  559. int __attribute__((__cdecl__)) _siprintf_r (struct _reent *, char *, const char *, ...) __attribute__ ((__format__ (__printf__, 3, 4)))
  560. ;
  561. int __attribute__((__cdecl__)) _siscanf_r (struct _reent *, const char *, const char *, ...) __attribute__ ((__format__ (__scanf__, 3, 4)))
  562. ;
  563. int __attribute__((__cdecl__)) _sniprintf_r (struct _reent *, char *, size_t, const char *, ...) __attribute__ ((__format__ (__printf__, 4, 5)))
  564. ;
  565. int __attribute__((__cdecl__)) _snprintf_r (struct _reent *, char *, size_t, const char *, ...) __attribute__ ((__format__ (__printf__, 4, 5)))
  566. ;
  567. int __attribute__((__cdecl__)) _sprintf_r (struct _reent *, char *, const char *, ...) __attribute__ ((__format__ (__printf__, 3, 4)))
  568. ;
  569. int __attribute__((__cdecl__)) _sscanf_r (struct _reent *, const char *, const char *, ...) __attribute__ ((__format__ (__scanf__, 3, 4)))
  570. ;
  571. char * __attribute__((__cdecl__)) _tempnam_r (struct _reent *, const char *, const char *);
  572. FILE * __attribute__((__cdecl__)) _tmpfile_r (struct _reent *);
  573. char * __attribute__((__cdecl__)) _tmpnam_r (struct _reent *, char *);
  574. int __attribute__((__cdecl__)) _ungetc_r (struct _reent *, int, FILE *);
  575. int __attribute__((__cdecl__)) _vasiprintf_r (struct _reent *, char **, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 3, 0)))
  576. ;
  577. char * __attribute__((__cdecl__)) _vasniprintf_r (struct _reent*, char *, size_t *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 4, 0)))
  578. ;
  579. char * __attribute__((__cdecl__)) _vasnprintf_r (struct _reent*, char *, size_t *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 4, 0)))
  580. ;
  581. int __attribute__((__cdecl__)) _vasprintf_r (struct _reent *, char **, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 3, 0)))
  582. ;
  583. int __attribute__((__cdecl__)) _vdiprintf_r (struct _reent *, int, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 3, 0)))
  584. ;
  585. int __attribute__((__cdecl__)) _vdprintf_r (struct _reent *, int, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 3, 0)))
  586. ;
  587. int __attribute__((__cdecl__)) _vfiprintf_r (struct _reent *, FILE *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 3, 0)))
  588. ;
  589. int __attribute__((__cdecl__)) _vfiscanf_r (struct _reent *, FILE *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__scanf__, 3, 0)))
  590. ;
  591. int __attribute__((__cdecl__)) _vfprintf_r (struct _reent *, FILE *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 3, 0)))
  592. ;
  593. int __attribute__((__cdecl__)) _vfscanf_r (struct _reent *, FILE *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__scanf__, 3, 0)))
  594. ;
  595. int __attribute__((__cdecl__)) _viprintf_r (struct _reent *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 2, 0)))
  596. ;
  597. int __attribute__((__cdecl__)) _viscanf_r (struct _reent *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__scanf__, 2, 0)))
  598. ;
  599. int __attribute__((__cdecl__)) _vprintf_r (struct _reent *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 2, 0)))
  600. ;
  601. int __attribute__((__cdecl__)) _vscanf_r (struct _reent *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__scanf__, 2, 0)))
  602. ;
  603. int __attribute__((__cdecl__)) _vsiprintf_r (struct _reent *, char *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 3, 0)))
  604. ;
  605. int __attribute__((__cdecl__)) _vsiscanf_r (struct _reent *, const char *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__scanf__, 3, 0)))
  606. ;
  607. int __attribute__((__cdecl__)) _vsniprintf_r (struct _reent *, char *, size_t, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 4, 0)))
  608. ;
  609. int __attribute__((__cdecl__)) _vsnprintf_r (struct _reent *, char *, size_t, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 4, 0)))
  610. ;
  611. int __attribute__((__cdecl__)) _vsprintf_r (struct _reent *, char *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__printf__, 3, 0)))
  612. ;
  613. int __attribute__((__cdecl__)) _vsscanf_r (struct _reent *, const char *, const char *, __gnuc_va_list) __attribute__ ((__format__ (__scanf__, 3, 0)))
  614. ;
  615. int __attribute__((__cdecl__)) fpurge (FILE *);
  616. ssize_t __attribute__((__cdecl__)) __getdelim (char **, size_t *, int, FILE *);
  617. ssize_t __attribute__((__cdecl__)) __getline (char **, size_t *, FILE *);
  618. int __attribute__((__cdecl__)) __srget_r (struct _reent *, FILE *);
  619. int __attribute__((__cdecl__)) __swbuf_r (struct _reent *, int, FILE *);
  620. FILE *__attribute__((__cdecl__)) funopen (const void * __cookie, int (*__readfn)(void * __c, char *__buf, size_t __n), int (*__writefn)(void * __c, const char *__buf, size_t __n), _fpos64_t (*__seekfn)(void * __c, _fpos64_t __off, int __whence), int (*__closefn)(void * __c))
  621. ;
  622. FILE *__attribute__((__cdecl__)) _funopen_r (struct _reent *, const void * __cookie, int (*__readfn)(void * __c, char *__buf, size_t __n), int (*__writefn)(void * __c, const char *__buf, size_t __n), _fpos64_t (*__seekfn)(void * __c, _fpos64_t __off, int __whence), int (*__closefn)(void * __c))
  623. ;
  624. typedef ssize_t cookie_read_function_t(void *__cookie, char *__buf, size_t __n);
  625. typedef ssize_t cookie_write_function_t(void *__cookie, const char *__buf,
  626. size_t __n);
  627. typedef int cookie_seek_function_t(void *__cookie, _off64_t *__off,
  628. int __whence);
  629. typedef int cookie_close_function_t(void *__cookie);
  630. typedef struct
  631. {
  632.     cookie_read_function_t *read;
  633.     cookie_write_function_t *write;
  634.     cookie_seek_function_t *seek;
  635.     cookie_close_function_t *close;
  636. } cookie_io_functions_t;
  637. FILE *__attribute__((__cdecl__)) fopencookie (void *__cookie, const char *__mode, cookie_io_functions_t __functions)
  638. ;
  639. FILE *__attribute__((__cdecl__)) _fopencookie_r (struct _reent *, void *__cookie, const char *__mode, cookie_io_functions_t __functions)
  640. ;
  641. extern __inline__ __attribute__ ((__always_inline__)) int __sgetc_r(struct _reent *__ptr, FILE *__p);
  642. extern __inline__ __attribute__ ((__always_inline__)) int __sgetc_r(struct _reent *__ptr, FILE *__p)
  643. {
  644.     int __c = (--(__p)->_r < 0 ? __srget_r(__ptr, __p) : (int)(*(__p)->_p++));
  645.     if ((__p->_flags & 0x4000) && (__c == '\r'))
  646.     {
  647.         int __c2 = (--(__p)->_r < 0 ? __srget_r(__ptr, __p) : (int)(*(__p)->_p++));
  648.         if (__c2 == '\n')
  649.         __c = __c2;
  650.         else
  651.         ungetc(__c2, __p);
  652.     }
  653.     return __c;
  654. }
  655. int main() {
  656.     printf("hello");
  657. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement