Skip to contentSkip to conversation

{get|set}_thread_area issue on ARM

LTP Yury Norov 3 participants 7 messages Dec 4, 2015 – Dec 7, 2015

lore
Share & tools
lore

Yury Norov

author
#0 lore raw

Hi all,

I just tried build ltp for arm, and one (maybe, first of) test failed build. Namely, set_thread_area01.c

The reason is that __NR_set_thread_area and __NR_get_thread_area are not declared. They should come from /usr/arm-linux-gnueabi/include/asm/unistd.h
But there's only:
[...]

#define __NR_remap_file_pages           (__NR_SYSCALL_BASE+253)
                                         /* for set_thread_area */
                                         /* for get_thread_area */

#define __NR_set_tid_address (__NR_SYSCALL_BASE+256)
[...]

In kernel, there are stubs for corresponding syscall numbers. So it looks like this pair is deprecated and unsupported. I can build ltp for aarch64 and x84_64 just fine.

Could someone explain me what am I doing wrong?

BR,
Yury.

ltp config:
CCC=arm-linux-gnueabi

./configure --target=arm --host=arm --prefix=$PWD/aarch32 \
                     CC=$CCC-gcc \
                     AR=$CCC-ar \
                     RANLIB=$CCC-ranlib \
                     STRIP=$CCC-strip \
                     LDFLAGS="-Wl,--rpath=/root/lib32
                     -Wl,--dynamic-linker=/root/lib32/ld-2.21.so"
yury@yury-N73SV:~/work/ltp$ arm-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabi/5/lto-wrapper
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.2.1-22ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++
--prefix=/usr --program-suffix=-5 --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/lib
--enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-libitm --disable-libquadmath --enable-plugin
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-armel-cross/jre
--enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-armel-cross
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-armel-cross
--with-arch-directory=arm
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libgcj
--enable-objc-gc --enable-multiarch --enable-multilib
--disable-sjlj-exceptions --with-arch=armv5t --with-float=soft
--disable-werror --enable-multilib --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=arm-linux-gnueabi --program-prefix=arm-linux-gnueabi-
--includedir=/usr/arm-linux-gnueabi/include
Thread model: posix
gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu1)
#1 lore raw

----- Original Message -----

Quoted 19 lines

From: "Yury Norov" <[email protected]>
To: [email protected]
Cc: "David Howells" <[email protected]>
Sent: Friday, 4 December, 2015 4:47:11 AM
Subject: [LTP] {get|set}_thread_area issue on ARM

Hi all,

I just tried build ltp for arm, and one (maybe, first of) test failed build. Namely, set_thread_area01.c

The reason is that __NR_set_thread_area and __NR_get_thread_area are not declared. They should come from /usr/arm-linux-gnueabi/include/asm/unistd.h
But there's only:
[...]

#define __NR_remap_file_pages           (__NR_SYSCALL_BASE+253)
                                         /* for set_thread_area */
                                         /* for get_thread_area */
Quoted 6 lines

#define __NR_set_tid_address (__NR_SYSCALL_BASE+256)
[...]

In kernel, there are stubs for corresponding syscall numbers. So it looks like this pair is deprecated and unsupported. I can build ltp for aarch64 and x84_64 just fine.

Looking at history, it appears it was never supported.

Quoted 2 lines

Could someone explain me what am I doing wrong?

Can you try to add:
#include "linux_syscall_numbers.h"
to testcases/kernel/syscalls/set_thread_area/set_thread_area01.c and see if it compiles. And when you run it, it should end with TCONF.

Regards,
Jan

Quoted 51 lines

BR,
Yury.

ltp config:
CCC=arm-linux-gnueabi

./configure --target=arm --host=arm --prefix=$PWD/aarch32 \
                     CC=$CCC-gcc \
                     AR=$CCC-ar \
                     RANLIB=$CCC-ranlib \
                     STRIP=$CCC-strip \
                     LDFLAGS="-Wl,--rpath=/root/lib32
                     -Wl,--dynamic-linker=/root/lib32/ld-2.21.so"
yury@yury-N73SV:~/work/ltp$ arm-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabi/5/lto-wrapper
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.2.1-22ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++
--prefix=/usr --program-suffix=-5 --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/lib
--enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-libitm --disable-libquadmath --enable-plugin
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-armel-cross/jre
--enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-armel-cross
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-armel-cross
--with-arch-directory=arm
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libgcj
--enable-objc-gc --enable-multiarch --enable-multilib
--disable-sjlj-exceptions --with-arch=armv5t --with-float=soft
--disable-werror --enable-multilib --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=arm-linux-gnueabi --program-prefix=arm-linux-gnueabi-
--includedir=/usr/arm-linux-gnueabi/include
Thread model: posix
gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu1)

--
Mailing list info: http://lists.linux.it/listinfo/ltp

author
#2 lore raw
Quoted 36 lines · Jan Stancek

----- Original Message -----

Quoted 19 lines

From: "Yury Norov" <[email protected]>
To: [email protected]
Cc: "David Howells" <[email protected]>
Sent: Friday, 4 December, 2015 4:47:11 AM
Subject: [LTP] {get|set}_thread_area issue on ARM

Hi all,

I just tried build ltp for arm, and one (maybe, first of) test failed build. Namely, set_thread_area01.c

The reason is that __NR_set_thread_area and __NR_get_thread_area are not declared. They should come from /usr/arm-linux-gnueabi/include/asm/unistd.h
But there's only:
[...]

#define __NR_remap_file_pages           (__NR_SYSCALL_BASE+253)
                                         /* for set_thread_area */
                                         /* for get_thread_area */
Quoted 6 lines

#define __NR_set_tid_address (__NR_SYSCALL_BASE+256)
[...]

In kernel, there are stubs for corresponding syscall numbers. So it looks like this pair is deprecated and unsupported. I can build ltp for aarch64 and x84_64 just fine.

Looking at history, it appears it was never supported.

Quoted 2 lines

Could someone explain me what am I doing wrong?

Quoted 7 lines

Can you try to add:
#include "linux_syscall_numbers.h"
to testcases/kernel/syscalls/set_thread_area/set_thread_area01.c and see if it compiles. And when you run it, it should end with TCONF.

Regards,
Jan

Hi Jan,

It doesn't help much. The problem is not in that ltp doesn't know symbols, but because they are identical - both are -1.
(__LTP__NR_INVALID_SYSCALL)

And gcc treats is as an error:
arm-linux-gnueabi-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -g -O2 -Wold-style-definition -I/home/yury/work/ltp/testcases/kernel/include -I../../../../include -I../../../../include -Wl,--rpath=/root/lib32 -Wl,--dynamic-linker=/root/lib32/ld-2.21.so -L../../../../lib
set_thread_area01.c -lltp -o set_thread_area01
set_thread_area01.c: In function ?get_name?:
set_thread_area01.c:70:2: error: duplicate case value
case __NR_get_thread_area:
^
set_thread_area01.c:67:2: error: previously used here
case __NR_set_thread_area:
^
set_thread_area01.c: In function ?main?:
set_thread_area01.c:87:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

   for (i = 0; i < sizeof(tests) / sizeof(struct test); i++) {
                 ^

<builtin>: recipe for target 'set_thread_area01' failed

BTW, I forgot to mention, if I "uncomment" that definitions in system headers, everything becomes fine.

Preprocessed sources for arm and x86_64 are attached.

BR,
Yury.

-------------- next part --------------
# 1 "set_thread_area01.c"
# 1 "/home/yury/work/ltp/testcases/kernel/syscalls/set_thread_area//" # 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/arm-linux-gnueabi/include/stdc-predef.h" 1 3
# 1 "<command-line>" 2
# 1 "set_thread_area01.c"
# 22 "set_thread_area01.c"
# 1 "set_thread_area.h" 1
# 1 "/usr/arm-linux-gnueabi/include/stdio.h" 1 3
# 27 "/usr/arm-linux-gnueabi/include/stdio.h" 3
# 1 "/usr/arm-linux-gnueabi/include/features.h" 1 3
# 364 "/usr/arm-linux-gnueabi/include/features.h" 3
# 1 "/usr/arm-linux-gnueabi/include/sys/cdefs.h" 1 3
# 402 "/usr/arm-linux-gnueabi/include/sys/cdefs.h" 3
# 1 "/usr/arm-linux-gnueabi/include/bits/wordsize.h" 1 3
# 403 "/usr/arm-linux-gnueabi/include/sys/cdefs.h" 2 3
# 365 "/usr/arm-linux-gnueabi/include/features.h" 2 3
# 388 "/usr/arm-linux-gnueabi/include/features.h" 3
# 1 "/usr/arm-linux-gnueabi/include/gnu/stubs.h" 1 3

# 1 "/usr/arm-linux-gnueabi/include/gnu/stubs-soft.h" 1 3 # 8 "/usr/arm-linux-gnueabi/include/gnu/stubs.h" 2 3 # 389 "/usr/arm-linux-gnueabi/include/features.h" 2 3 # 28 "/usr/arm-linux-gnueabi/include/stdio.h" 2 3

# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 1 3 4 # 216 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 3 4

# 216 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 3 4 typedef unsigned int size_t;
# 34 "/usr/arm-linux-gnueabi/include/stdio.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/types.h" 1 3 # 27 "/usr/arm-linux-gnueabi/include/bits/types.h" 3 # 1 "/usr/arm-linux-gnueabi/include/bits/wordsize.h" 1 3 # 28 "/usr/arm-linux-gnueabi/include/bits/types.h" 2 3

typedef unsigned char __u_char;
typedef unsigned short int __u_short;
typedef unsigned int __u_int;
typedef unsigned long int __u_long;

typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef signed short int __int16_t;
typedef unsigned short int __uint16_t;
typedef signed int __int32_t;
typedef unsigned int __uint32_t;

__extension__ typedef signed long long int __int64_t; __extension__ typedef unsigned long long int __uint64_t;

__extension__ typedef long long int __quad_t; __extension__ typedef unsigned long long int __u_quad_t; # 121 "/usr/arm-linux-gnueabi/include/bits/types.h" 3 # 1 "/usr/arm-linux-gnueabi/include/bits/typesizes.h" 1 3 # 122 "/usr/arm-linux-gnueabi/include/bits/types.h" 2 3

__extension__ typedef __u_quad_t __dev_t; __extension__ typedef unsigned int __uid_t; __extension__ typedef unsigned int __gid_t; __extension__ typedef unsigned long int __ino_t; __extension__ typedef __u_quad_t __ino64_t; __extension__ typedef unsigned int __mode_t; __extension__ typedef unsigned int __nlink_t; __extension__ typedef long int __off_t; __extension__ typedef __quad_t __off64_t; __extension__ typedef int __pid_t; __extension__ typedef struct { int __val[2]; } __fsid_t; __extension__ typedef long int __clock_t; __extension__ typedef unsigned long int __rlim_t; __extension__ typedef __u_quad_t __rlim64_t; __extension__ typedef unsigned int __id_t; __extension__ typedef long int __time_t; __extension__ typedef unsigned int __useconds_t; __extension__ typedef long int __suseconds_t;

__extension__ typedef int __daddr_t;
__extension__ typedef int __key_t;

__extension__ typedef int __clockid_t;

__extension__ typedef void * __timer_t;

__extension__ typedef long int __blksize_t;

__extension__ typedef long int __blkcnt_t;
__extension__ typedef __quad_t __blkcnt64_t;

__extension__ typedef unsigned long int __fsblkcnt_t; __extension__ typedef __u_quad_t __fsblkcnt64_t;

__extension__ typedef unsigned long int __fsfilcnt_t; __extension__ typedef __u_quad_t __fsfilcnt64_t;

__extension__ typedef int __fsword_t;

__extension__ typedef int __ssize_t;

__extension__ typedef long int __syscall_slong_t;

__extension__ typedef unsigned long int __syscall_ulong_t;

typedef __off64_t __loff_t;
typedef __quad_t *__qaddr_t;
typedef char *__caddr_t;

__extension__ typedef int __intptr_t;

__extension__ typedef unsigned int __socklen_t;
# 36 "/usr/arm-linux-gnueabi/include/stdio.h" 2 3
# 44 "/usr/arm-linux-gnueabi/include/stdio.h" 3
struct _IO_FILE;

typedef struct _IO_FILE FILE;

# 64 "/usr/arm-linux-gnueabi/include/stdio.h" 3
typedef struct _IO_FILE __FILE;
# 74 "/usr/arm-linux-gnueabi/include/stdio.h" 3
# 1 "/usr/arm-linux-gnueabi/include/libio.h" 1 3
# 31 "/usr/arm-linux-gnueabi/include/libio.h" 3
# 1 "/usr/arm-linux-gnueabi/include/_G_config.h" 1 3
# 15 "/usr/arm-linux-gnueabi/include/_G_config.h" 3
# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 1 3 4 # 16 "/usr/arm-linux-gnueabi/include/_G_config.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/wchar.h" 1 3
# 82 "/usr/arm-linux-gnueabi/include/wchar.h" 3
typedef struct
{
int __count;
union
{

    unsigned int __wch;



    char __wchb[4];

} __value;
} __mbstate_t;
# 21 "/usr/arm-linux-gnueabi/include/_G_config.h" 2 3 typedef struct
{
__off_t __pos;
__mbstate_t __state;
} _G_fpos_t;
typedef struct
{
__off64_t __pos;
__mbstate_t __state;
} _G_fpos64_t;
# 32 "/usr/arm-linux-gnueabi/include/libio.h" 2 3
# 49 "/usr/arm-linux-gnueabi/include/libio.h" 3
# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stdarg.h" 1 3 4 # 40 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stdarg.h" 3 4 typedef __builtin_va_list __gnuc_va_list;
# 50 "/usr/arm-linux-gnueabi/include/libio.h" 2 3
# 144 "/usr/arm-linux-gnueabi/include/libio.h" 3
struct _IO_jump_t; struct _IO_FILE;
# 154 "/usr/arm-linux-gnueabi/include/libio.h" 3
typedef void _IO_lock_t;

struct _IO_marker {
struct _IO_marker *_next;
struct _IO_FILE *_sbuf;

int _pos;
# 177 "/usr/arm-linux-gnueabi/include/libio.h" 3
};

enum __codecvt_result
{
__codecvt_ok,
__codecvt_partial,
__codecvt_error,
__codecvt_noconv
};
# 245 "/usr/arm-linux-gnueabi/include/libio.h" 3
struct _IO_FILE {
int _flags;

char* _IO_read_ptr;
char* _IO_read_end;
char* _IO_read_base;
char* _IO_write_base;
char* _IO_write_ptr;
char* _IO_write_end;
char* _IO_buf_base;
char* _IO_buf_end;

char *_IO_save_base;
char *_IO_backup_base;
char *_IO_save_end;

struct _IO_marker *_markers;

struct _IO_FILE *_chain;

int _fileno;

int _flags2;

__off_t _old_offset;

  unsigned short _cur_column;
  signed char _vtable_offset;
  char _shortbuf[1];

_IO_lock_t *_lock;
# 293 "/usr/arm-linux-gnueabi/include/libio.h" 3
__off64_t _offset;
# 302 "/usr/arm-linux-gnueabi/include/libio.h" 3
void *__pad1;
void *__pad2;
void *__pad3;
void *__pad4;
size_t __pad5;

int _mode;

  char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];

};

typedef struct _IO_FILE _IO_FILE;

struct _IO_FILE_plus;

extern struct _IO_FILE_plus _IO_2_1_stdin_;
extern struct _IO_FILE_plus _IO_2_1_stdout_;
extern struct _IO_FILE_plus _IO_2_1_stderr_;
# 338 "/usr/arm-linux-gnueabi/include/libio.h" 3
typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);

typedef __ssize_t __io_write_fn (void *__cookie, const char *__buf,

     size_t __n);

typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);

typedef int __io_close_fn (void *__cookie);
# 390 "/usr/arm-linux-gnueabi/include/libio.h" 3
extern int __underflow (_IO_FILE *);
extern int __uflow (_IO_FILE *);
extern int __overflow (_IO_FILE *, int);
# 434 "/usr/arm-linux-gnueabi/include/libio.h" 3
extern int _IO_getc (_IO_FILE *__fp);
extern int _IO_putc (int __c, _IO_FILE *__fp);
extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__)); extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__));

extern int _IO_peekc_locked (_IO_FILE *__fp);

extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); # 464 "/usr/arm-linux-gnueabi/include/libio.h" 3
extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
__gnuc_va_list, int *__restrict);
extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,

    __gnuc_va_list);

extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t); extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);

extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int); extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);

extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); # 75 "/usr/arm-linux-gnueabi/include/stdio.h" 2 3

typedef __gnuc_va_list va_list;
# 90 "/usr/arm-linux-gnueabi/include/stdio.h" 3
typedef __off_t off_t;
# 102 "/usr/arm-linux-gnueabi/include/stdio.h" 3
typedef __ssize_t ssize_t;

typedef _G_fpos_t fpos_t;

# 164 "/usr/arm-linux-gnueabi/include/stdio.h" 3 # 1 "/usr/arm-linux-gnueabi/include/bits/stdio_lim.h" 1 3 # 165 "/usr/arm-linux-gnueabi/include/stdio.h" 2 3

extern struct _IO_FILE *stdin;
extern struct _IO_FILE *stdout;
extern struct _IO_FILE *stderr;

extern int remove (const char *__filename) __attribute__ ((__nothrow__ , __leaf__));

extern int rename (const char *__old, const char *__new) __attribute__ ((__nothrow__ , __leaf__));

extern int renameat (int __oldfd, const char *__old, int __newfd,

       const char *__new) __attribute__ ((__nothrow__ , __leaf__));

extern FILE *tmpfile (void) __attribute__ ((__warn_unused_result__));
# 209 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern char *tmpnam (char *__s) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 227 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern char *tempnam (const char *__dir, const char *__pfx)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));

extern int fclose (FILE *__stream);

extern int fflush (FILE *__stream);

# 252 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern int fflush_unlocked (FILE *__stream);
# 266 "/usr/arm-linux-gnueabi/include/stdio.h" 3

extern FILE *fopen (const char *__restrict __filename,

      const char *__restrict __modes) __attribute__ ((__warn_unused_result__));

extern FILE *freopen (const char *__restrict __filename,
const char *__restrict __modes,
FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
# 295 "/usr/arm-linux-gnueabi/include/stdio.h" 3

# 306 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern FILE *fdopen (int __fd, const char *__modes) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 319 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern FILE *fmemopen (void *__s, size_t __len, const char *__modes)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__));

extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,

      int __modes, size_t __n) __attribute__ ((__nothrow__ , __leaf__));

extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,

         size_t __size) __attribute__ ((__nothrow__ , __leaf__));

extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));

extern int fprintf (FILE *__restrict __stream,

      const char *__restrict __format, ...);

extern int printf (const char *__restrict __format, ...);

extern int sprintf (char *__restrict __s,

      const char *__restrict __format, ...) __attribute__ ((__nothrow__));

extern int vfprintf (FILE *__restrict __s, const char *__restrict __format,

       __gnuc_va_list __arg);

extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg);

extern int vsprintf (char *__restrict __s, const char *__restrict __format,

       __gnuc_va_list __arg) __attribute__ ((__nothrow__));

extern int snprintf (char *__restrict __s, size_t __maxlen,

       const char *__restrict __format, ...)
     __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));

extern int vsnprintf (char *__restrict __s, size_t __maxlen,
const char *__restrict __format, __gnuc_va_list __arg)
__attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));

# 412 "/usr/arm-linux-gnueabi/include/stdio.h" 3 extern int vdprintf (int __fd, const char *__restrict __fmt,

       __gnuc_va_list __arg)
     __attribute__ ((__format__ (__printf__, 2, 0)));
extern int dprintf (int __fd, const char *__restrict __fmt, ...)
     __attribute__ ((__format__ (__printf__, 2, 3)));

extern int fscanf (FILE *__restrict __stream,

     const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__));

extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__));

extern int sscanf (const char *__restrict __s,

     const char *__restrict __format, ...) __attribute__ ((__nothrow__ , __leaf__));

# 443 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf")

                          __attribute__ ((__warn_unused_result__));
extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf")
                         __attribute__ ((__warn_unused_result__));

extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__ , __leaf__))

                      ;

# 463 "/usr/arm-linux-gnueabi/include/stdio.h" 3

extern int vfscanf (FILE *__restrict __s, const char *__restrict __format,

      __gnuc_va_list __arg)
     __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__));

extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg)

     __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__));

extern int vsscanf (const char *__restrict __s,
const char *__restrict __format, __gnuc_va_list __arg)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
# 494 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf")

     __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__));

extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf")

     __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__));

extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__ , __leaf__))

     __attribute__ ((__format__ (__scanf__, 2, 0)));

# 522 "/usr/arm-linux-gnueabi/include/stdio.h" 3

extern int fgetc (FILE *__stream);
extern int getc (FILE *__stream);

extern int getchar (void);

# 550 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern int getc_unlocked (FILE *__stream);
extern int getchar_unlocked (void);
# 561 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern int fgetc_unlocked (FILE *__stream);

extern int fputc (int __c, FILE *__stream);
extern int putc (int __c, FILE *__stream);

extern int putchar (int __c);

# 594 "/usr/arm-linux-gnueabi/include/stdio.h" 3 extern int fputc_unlocked (int __c, FILE *__stream);

extern int putc_unlocked (int __c, FILE *__stream); extern int putchar_unlocked (int __c);

extern int getw (FILE *__stream);

extern int putw (int __w, FILE *__stream);

extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)

     __attribute__ ((__warn_unused_result__));

# 640 "/usr/arm-linux-gnueabi/include/stdio.h" 3

# 665 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern __ssize_t __getdelim (char **__restrict __lineptr,
size_t *__restrict __n, int __delimiter,
FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
extern __ssize_t getdelim (char **__restrict __lineptr,
size_t *__restrict __n, int __delimiter,
FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));

extern __ssize_t getline (char **__restrict __lineptr,

       size_t *__restrict __n,
       FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));

extern int fputs (const char *__restrict __s, FILE *__restrict __stream);

extern int puts (const char *__s);

extern int ungetc (int __c, FILE *__stream);

extern size_t fread (void *__restrict __ptr, size_t __size,

       size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));

extern size_t fwrite (const void *__restrict __ptr, size_t __size,

        size_t __n, FILE *__restrict __s);

# 737 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,

         size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size,
          size_t __n, FILE *__restrict __stream);

extern int fseek (FILE *__stream, long int __off, int __whence);

extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__));

extern void rewind (FILE *__stream);

# 773 "/usr/arm-linux-gnueabi/include/stdio.h" 3 extern int fseeko (FILE *__stream, __off_t __off, int __whence);

extern __off_t ftello (FILE *__stream) __attribute__ ((__warn_unused_result__)); # 792 "/usr/arm-linux-gnueabi/include/stdio.h" 3

extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);

extern int fsetpos (FILE *__stream, const fpos_t *__pos); # 815 "/usr/arm-linux-gnueabi/include/stdio.h" 3

# 824 "/usr/arm-linux-gnueabi/include/stdio.h" 3

extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));

extern int feof (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int ferror (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern void perror (const char *__s);

# 1 "/usr/arm-linux-gnueabi/include/bits/sys_errlist.h" 1 3 # 26 "/usr/arm-linux-gnueabi/include/bits/sys_errlist.h" 3 extern int sys_nerr;
extern const char *const sys_errlist[];
# 854 "/usr/arm-linux-gnueabi/include/stdio.h" 2 3

extern int fileno (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 872 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern FILE *popen (const char *__command, const char *__modes) __attribute__ ((__warn_unused_result__));

extern int pclose (FILE *__stream);

extern char *ctermid (char *__s) __attribute__ ((__nothrow__ , __leaf__)); # 912 "/usr/arm-linux-gnueabi/include/stdio.h" 3
extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));

extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); # 933 "/usr/arm-linux-gnueabi/include/stdio.h" 3
# 1 "/usr/arm-linux-gnueabi/include/bits/stdio.h" 1 3
# 43 "/usr/arm-linux-gnueabi/include/bits/stdio.h" 3
extern __inline __attribute__ ((__gnu_inline__)) int
getchar (void)
{
return _IO_getc (stdin);
}

extern __inline __attribute__ ((__gnu_inline__)) int
fgetc_unlocked (FILE *__fp)
{
return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
}

extern __inline __attribute__ ((__gnu_inline__)) int
getc_unlocked (FILE *__fp)
{
return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
}

extern __inline __attribute__ ((__gnu_inline__)) int
getchar_unlocked (void)
{
return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
}

extern __inline __attribute__ ((__gnu_inline__)) int putchar (int __c)
{
return _IO_putc (__c, stdout);
}

extern __inline __attribute__ ((__gnu_inline__)) int
fputc_unlocked (int __c, FILE *__stream)
{
return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
}

extern __inline __attribute__ ((__gnu_inline__)) int
putc_unlocked (int __c, FILE *__stream)
{
return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
}

extern __inline __attribute__ ((__gnu_inline__)) int
putchar_unlocked (int __c)
{
return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
}
# 124 "/usr/arm-linux-gnueabi/include/bits/stdio.h" 3
extern __inline __attribute__ ((__gnu_inline__)) int
__attribute__ ((__nothrow__ , __leaf__)) feof_unlocked (FILE *__stream)
{
return (((__stream)->_flags & 0x10) != 0);
}

extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__nothrow__ , __leaf__)) ferror_unlocked (FILE *__stream) {
return (((__stream)->_flags & 0x20) != 0);
}
# 934 "/usr/arm-linux-gnueabi/include/stdio.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/stdio2.h" 1 3
# 23 "/usr/arm-linux-gnueabi/include/bits/stdio2.h" 3
extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen,

     const char *__restrict __format, ...) __attribute__ ((__nothrow__ , __leaf__));

extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen,
const char *__restrict __format,
__gnuc_va_list __ap) __attribute__ ((__nothrow__ , __leaf__));

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) {
return __builtin___sprintf_chk (__s, 2 - 1,

      __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ());
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) vsprintf (char *__restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap)

{
return __builtin___vsprintf_chk (__s, 2 - 1,

       __builtin_object_size (__s, 2 > 1), __fmt, __ap);
}

extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag,
size_t __slen, const char *__restrict __format,
...) __attribute__ ((__nothrow__ , __leaf__));
extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag,
size_t __slen, const char *__restrict __format, __gnuc_va_list __ap) __attribute__ ((__nothrow__ , __leaf__));

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...)

{
return __builtin___snprintf_chk (__s, __n, 2 - 1,

       __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ());
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) vsnprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap)

{
return __builtin___vsnprintf_chk (__s, __n, 2 - 1,

        __builtin_object_size (__s, 2 > 1), __fmt, __ap);
}

extern int __fprintf_chk (FILE *__restrict __stream, int __flag,

     const char *__restrict __format, ...);
extern int __printf_chk (int __flag, const char *__restrict __format, ...);
extern int __vfprintf_chk (FILE *__restrict __stream, int __flag,
      const char *__restrict __format, __gnuc_va_list __ap);
extern int __vprintf_chk (int __flag, const char *__restrict __format,
     __gnuc_va_list __ap);

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
{
return __fprintf_chk (__stream, 2 - 1, __fmt,
__builtin_va_arg_pack ());
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int printf (const char *__restrict __fmt, ...)
{
return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ());
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vprintf (const char *__restrict __fmt, __gnuc_va_list __ap)
{

  return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap);

}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vfprintf (FILE *__restrict __stream,
const char *__restrict __fmt, __gnuc_va_list __ap)
{
return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap);
}

extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt,

     ...) __attribute__ ((__format__ (__printf__, 3, 4)));
extern int __vdprintf_chk (int __fd, int __flag,
      const char *__restrict __fmt, __gnuc_va_list __arg)
     __attribute__ ((__format__ (__printf__, 3, 0)));

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int dprintf (int __fd, const char *__restrict __fmt, ...)
{
return __dprintf_chk (__fd, 2 - 1, __fmt,
__builtin_va_arg_pack ());
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap)
{
return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap);
}
# 241 "/usr/arm-linux-gnueabi/include/bits/stdio2.h" 3
extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n,

     FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));

extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets")

                                        __attribute__ ((__warn_unused_result__));

extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk")

__attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
{
if (__builtin_object_size (__s, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__n) || __n <= 0)

return __fgets_chk (__s, __builtin_object_size (__s, 2 > 1), __n, __stream);

      if ((size_t) __n > __builtin_object_size (__s, 2 > 1))
 return __fgets_chk_warn (__s, __builtin_object_size (__s, 2 > 1), __n, __stream);
    }

return __fgets_alias (__s, __n, __stream);
}

extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen,

      size_t __size, size_t __n,
      FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));

extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread")

            __attribute__ ((__warn_unused_result__));

extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk")

__attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t fread (void *__restrict __ptr, size_t __size, size_t __n,
FILE *__restrict __stream)
{
if (__builtin_object_size (__ptr, 0) != (size_t) -1)

    {
      if (!__builtin_constant_p (__size)
   || !__builtin_constant_p (__n)
   || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2)))

return __fread_chk (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream);

      if (__size * __n > __builtin_object_size (__ptr, 0))
 return __fread_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream);
    }

return __fread_alias (__ptr, __size, __n, __stream);
}
# 327 "/usr/arm-linux-gnueabi/include/bits/stdio2.h" 3
extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen,

        size_t __size, size_t __n,
        FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));

extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked")

                     __attribute__ ((__warn_unused_result__));

extern size_t __fread_unlocked_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_unlocked_chk")

__attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n,
FILE *__restrict __stream)
{
if (__builtin_object_size (__ptr, 0) != (size_t) -1)

    {
      if (!__builtin_constant_p (__size)
   || !__builtin_constant_p (__n)
   || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2)))
 return __fread_unlocked_chk (__ptr, __builtin_object_size (__ptr, 0), __size, __n,
         __stream);

      if (__size * __n > __builtin_object_size (__ptr, 0))
 return __fread_unlocked_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n,
       __stream);
    }

if (__builtin_constant_p (__size)

      && __builtin_constant_p (__n)
      && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2))
      && __size * __n <= 8)
    {
      size_t __cnt = __size * __n;
      char *__cptr = (char *) __ptr;
      if (__cnt == 0)

return 0;

      for (; __cnt > 0; --__cnt)
 {
   int __c = (__builtin_expect (((__stream)->_IO_read_ptr >= (__stream)->_IO_read_end), 0) ? __uflow (__stream) : *(unsigned char *) (__stream)->_IO_read_ptr++);
   if (__c == (-1))
     break;
   *__cptr++ = __c;
 }
      return (__cptr - (char *) __ptr) / __size;
    }

return __fread_unlocked_alias (__ptr, __size, __n, __stream);
}
# 937 "/usr/arm-linux-gnueabi/include/stdio.h" 2 3

# 2 "set_thread_area.h" 2
# 1 "/usr/arm-linux-gnueabi/include/errno.h" 1 3
# 31 "/usr/arm-linux-gnueabi/include/errno.h" 3

# 1 "/usr/arm-linux-gnueabi/include/bits/errno.h" 1 3 # 24 "/usr/arm-linux-gnueabi/include/bits/errno.h" 3 # 1 "/usr/arm-linux-gnueabi/include/linux/errno.h" 1 3 # 1 "/usr/arm-linux-gnueabi/include/asm/errno.h" 1 3 # 1 "/usr/arm-linux-gnueabi/include/asm-generic/errno.h" 1 3

# 1 "/usr/arm-linux-gnueabi/include/asm-generic/errno-base.h" 1 3
# 5 "/usr/arm-linux-gnueabi/include/asm-generic/errno.h" 2 3
# 1 "/usr/arm-linux-gnueabi/include/asm/errno.h" 2 3
# 1 "/usr/arm-linux-gnueabi/include/linux/errno.h" 2 3
# 25 "/usr/arm-linux-gnueabi/include/bits/errno.h" 2 3
# 50 "/usr/arm-linux-gnueabi/include/bits/errno.h" 3
extern int *__errno_location (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); # 36 "/usr/arm-linux-gnueabi/include/errno.h" 2 3
# 58 "/usr/arm-linux-gnueabi/include/errno.h" 3

# 3 "set_thread_area.h" 2

# 1 "../../../../include/test.h" 1
# 38 "../../../../include/test.h"
# 1 "/usr/arm-linux-gnueabi/include/signal.h" 1 3
# 30 "/usr/arm-linux-gnueabi/include/signal.h" 3

# 1 "/usr/arm-linux-gnueabi/include/bits/sigset.h" 1 3 # 22 "/usr/arm-linux-gnueabi/include/bits/sigset.h" 3 typedef int __sig_atomic_t;

typedef struct

  {
    unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];

} __sigset_t;
# 102 "/usr/arm-linux-gnueabi/include/bits/sigset.h" 3
extern int __sigismember (const __sigset_t *, int);
extern int __sigaddset (__sigset_t *, int);
extern int __sigdelset (__sigset_t *, int);
# 116 "/usr/arm-linux-gnueabi/include/bits/sigset.h" 3
extern __inline __attribute__ ((__gnu_inline__)) int __sigismember (const __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return (__set->__val[__word] & __mask) ? 1 : 0; } extern __inline __attribute__ ((__gnu_inline__)) int __sigaddset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] |= __mask), 0); } extern __inline __attribute__ ((__gnu_inline__)) int __sigdelset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] &= ~__mask), 0); } # 33 "/usr/arm-linux-gnueabi/include/signal.h" 2 3

typedef __sig_atomic_t sig_atomic_t;

typedef __sigset_t sigset_t;

# 1 "/usr/arm-linux-gnueabi/include/bits/signum.h" 1 3 # 58 "/usr/arm-linux-gnueabi/include/signal.h" 2 3

typedef __pid_t pid_t;

typedef __uid_t uid_t;

# 1 "/usr/arm-linux-gnueabi/include/time.h" 1 3
# 120 "/usr/arm-linux-gnueabi/include/time.h" 3
struct timespec

  {
    __time_t tv_sec;
    __syscall_slong_t tv_nsec;

};
# 76 "/usr/arm-linux-gnueabi/include/signal.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/siginfo.h" 1 3 # 24 "/usr/arm-linux-gnueabi/include/bits/siginfo.h" 3 # 1 "/usr/arm-linux-gnueabi/include/bits/wordsize.h" 1 3 # 25 "/usr/arm-linux-gnueabi/include/bits/siginfo.h" 2 3

typedef union sigval

  {
    int sival_int;
    void *sival_ptr;
  } sigval_t;
# 50 "/usr/arm-linux-gnueabi/include/bits/siginfo.h" 3
typedef struct
  {
    int si_signo;
    int si_errno;

    int si_code;

    union
      {

int _pad[((128 / sizeof (int)) - 3)];

struct

   {
     __pid_t si_pid;
     __uid_t si_uid;

} _kill;

struct

   {
     int si_tid;
     int si_overrun;
     sigval_t si_sigval;

} _timer;

struct

   {
     __pid_t si_pid;
     __uid_t si_uid;
     sigval_t si_sigval;

} _rt;

struct

   {
     __pid_t si_pid;
     __uid_t si_uid;
     int si_status;
     __clock_t si_utime;
     __clock_t si_stime;

} _sigchld;

struct

   {
     void *si_addr;
     short int si_addr_lsb;

} _sigfault;

struct

   {
     long int si_band;
     int si_fd;

} _sigpoll;

struct

   {
     void *_call_addr;
     int _syscall;
     unsigned int _arch;
   } _sigsys;
      } _sifields;

} siginfo_t;
# 141 "/usr/arm-linux-gnueabi/include/bits/siginfo.h" 3 enum
{
SI_ASYNCNL = -60,

SI_TKILL = -6,

SI_SIGIO,

SI_ASYNCIO,

SI_MESGQ,

SI_TIMER,

SI_QUEUE,

SI_USER,

SI_KERNEL = 0x80

};

enum
{
ILL_ILLOPC = 1,

ILL_ILLOPN,

ILL_ILLADR,

ILL_ILLTRP,

ILL_PRVOPC,

ILL_PRVREG,

ILL_COPROC,

ILL_BADSTK

};

enum
{
FPE_INTDIV = 1,

FPE_INTOVF,

FPE_FLTDIV,

FPE_FLTOVF,

FPE_FLTUND,

FPE_FLTRES,

FPE_FLTINV,

FPE_FLTSUB

};

enum
{
SEGV_MAPERR = 1,

SEGV_ACCERR

};

enum
{
BUS_ADRALN = 1,

BUS_ADRERR,

BUS_OBJERR,

BUS_MCEERR_AR,

BUS_MCEERR_AO

};
# 245 "/usr/arm-linux-gnueabi/include/bits/siginfo.h" 3 enum
{
CLD_EXITED = 1,

CLD_KILLED,

CLD_DUMPED,

CLD_TRAPPED,

CLD_STOPPED,

CLD_CONTINUED

};

enum
{
POLL_IN = 1,

POLL_OUT,

POLL_MSG,

POLL_ERR,

POLL_PRI,

POLL_HUP

};
# 297 "/usr/arm-linux-gnueabi/include/bits/siginfo.h" 3 typedef union pthread_attr_t pthread_attr_t;

typedef struct sigevent

  {
    sigval_t sigev_value;
    int sigev_signo;
    int sigev_notify;

    union
      {

int _pad[((64 / sizeof (int)) - 3)];

__pid_t _tid;

struct

   {
     void (*_function) (sigval_t);
     pthread_attr_t *_attribute;
   } _sigev_thread;
      } _sigev_un;

} sigevent_t;

enum
{
SIGEV_SIGNAL = 0,

SIGEV_NONE,

SIGEV_THREAD,

SIGEV_THREAD_ID = 4

};
# 81 "/usr/arm-linux-gnueabi/include/signal.h" 2 3

typedef void (*__sighandler_t) (int);

extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler)

     __attribute__ ((__nothrow__ , __leaf__));

# 100 "/usr/arm-linux-gnueabi/include/signal.h" 3

extern __sighandler_t signal (int __sig, __sighandler_t __handler)

     __attribute__ ((__nothrow__ , __leaf__));

# 114 "/usr/arm-linux-gnueabi/include/signal.h" 3

# 127 "/usr/arm-linux-gnueabi/include/signal.h" 3
extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__ , __leaf__));

extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__ , __leaf__));

extern int raise (int __sig) __attribute__ ((__nothrow__ , __leaf__));

extern __sighandler_t ssignal (int __sig, __sighandler_t __handler)

     __attribute__ ((__nothrow__ , __leaf__));

extern int gsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__));

extern void psignal (int __sig, const char *__s);

extern void psiginfo (const siginfo_t *__pinfo, const char *__s);
# 189 "/usr/arm-linux-gnueabi/include/signal.h" 3
extern int sigblock (int __mask) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));

extern int sigsetmask (int __mask) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));

extern int siggetmask (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__)); # 209 "/usr/arm-linux-gnueabi/include/signal.h" 3
typedef __sighandler_t sig_t;

extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int sigismember (const sigset_t *__set, int __signo)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

# 245 "/usr/arm-linux-gnueabi/include/signal.h" 3 # 1 "/usr/arm-linux-gnueabi/include/bits/sigaction.h" 1 3 # 24 "/usr/arm-linux-gnueabi/include/bits/sigaction.h" 3 struct sigaction
{

    union
      {

__sighandler_t sa_handler;

 void (*sa_sigaction) (int, siginfo_t *, void *);
      }
    __sigaction_handler;







    __sigset_t sa_mask;


    int sa_flags;


    void (*sa_restorer) (void);

};
# 246 "/usr/arm-linux-gnueabi/include/signal.h" 2 3

extern int sigprocmask (int __how, const sigset_t *__restrict __set,
sigset_t *__restrict __oset) __attribute__ ((__nothrow__ , __leaf__));

extern int sigsuspend (const sigset_t *__set) __attribute__ ((__nonnull__ (1)));

extern int sigaction (int __sig, const struct sigaction *__restrict __act,

        struct sigaction *__restrict __oact) __attribute__ ((__nothrow__ , __leaf__));

extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int sigwait (const sigset_t *__restrict __set, int *__restrict __sig)

     __attribute__ ((__nonnull__ (1, 2)));

extern int sigwaitinfo (const sigset_t *__restrict __set,
siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1)));

extern int sigtimedwait (const sigset_t *__restrict __set,
siginfo_t *__restrict __info,
const struct timespec *__restrict __timeout)
__attribute__ ((__nonnull__ (1)));

extern int sigqueue (__pid_t __pid, int __sig, const union sigval __val)

     __attribute__ ((__nothrow__ , __leaf__));

# 303 "/usr/arm-linux-gnueabi/include/signal.h" 3
extern const char *const _sys_siglist[65];
extern const char *const sys_siglist[65];

# 1 "/usr/arm-linux-gnueabi/include/bits/sigcontext.h" 1 3 # 27 "/usr/arm-linux-gnueabi/include/bits/sigcontext.h" 3 # 1 "/usr/arm-linux-gnueabi/include/asm/sigcontext.h" 1 3 # 9 "/usr/arm-linux-gnueabi/include/asm/sigcontext.h" 3 struct sigcontext {
unsigned long trap_no;
unsigned long error_code;
unsigned long oldmask;
unsigned long arm_r0;
unsigned long arm_r1;
unsigned long arm_r2;
unsigned long arm_r3;
unsigned long arm_r4;
unsigned long arm_r5;
unsigned long arm_r6;
unsigned long arm_r7;
unsigned long arm_r8;
unsigned long arm_r9;
unsigned long arm_r10;
unsigned long arm_fp;
unsigned long arm_ip;
unsigned long arm_sp;
unsigned long arm_lr;
unsigned long arm_pc;
unsigned long arm_cpsr;
unsigned long fault_address;
};
# 28 "/usr/arm-linux-gnueabi/include/bits/sigcontext.h" 2 3

# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 1 3 4 # 32 "/usr/arm-linux-gnueabi/include/bits/sigcontext.h" 2 3 # 309 "/usr/arm-linux-gnueabi/include/signal.h" 2 3

extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__ , __leaf__));

# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 1 3 4 # 319 "/usr/arm-linux-gnueabi/include/signal.h" 2 3

extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__ , __leaf__));

# 1 "/usr/arm-linux-gnueabi/include/bits/sigstack.h" 1 3 # 25 "/usr/arm-linux-gnueabi/include/bits/sigstack.h" 3 struct sigstack

  {
    void *ss_sp;
    int ss_onstack;

};

enum
{
SS_ONSTACK = 1,

SS_DISABLE

};
# 49 "/usr/arm-linux-gnueabi/include/bits/sigstack.h" 3 typedef struct sigaltstack

  {
    void *ss_sp;
    int ss_flags;
    size_t ss_size;

} stack_t;
# 326 "/usr/arm-linux-gnueabi/include/signal.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/sys/ucontext.h" 1 3 # 24 "/usr/arm-linux-gnueabi/include/sys/ucontext.h" 3 # 1 "/usr/arm-linux-gnueabi/include/signal.h" 1 3 # 25 "/usr/arm-linux-gnueabi/include/sys/ucontext.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/sigcontext.h" 1 3 # 29 "/usr/arm-linux-gnueabi/include/sys/ucontext.h" 2 3

typedef int greg_t;

typedef greg_t gregset_t[18];

enum
{
REG_R0 = 0,

REG_R1 = 1,

REG_R2 = 2,

REG_R3 = 3,

REG_R4 = 4,

REG_R5 = 5,

REG_R6 = 6,

REG_R7 = 7,

REG_R8 = 8,

REG_R9 = 9,

REG_R10 = 10,

REG_R11 = 11,

REG_R12 = 12,

REG_R13 = 13,

REG_R14 = 14,

REG_R15 = 15

};

struct _libc_fpstate
{
struct

  {
    unsigned int sign1:1;
    unsigned int unused:15;
    unsigned int sign2:1;
    unsigned int exponent:14;
    unsigned int j:1;
    unsigned int mantissa1:31;
    unsigned int mantissa0:32;

} fpregs[8];
unsigned int fpsr:32;
unsigned int fpcr:32;
unsigned char ftype[8];
unsigned int init_flag;
};

typedef struct _libc_fpstate fpregset_t;

typedef struct sigcontext mcontext_t;

typedef struct ucontext

  {
    unsigned long uc_flags;
    struct ucontext *uc_link;
    stack_t uc_stack;
    mcontext_t uc_mcontext;
    __sigset_t uc_sigmask;
    unsigned long uc_regspace[128] __attribute__((__aligned__(8)));

} ucontext_t;
# 329 "/usr/arm-linux-gnueabi/include/signal.h" 2 3

extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));

extern int sigaltstack (const struct sigaltstack *__restrict __ss,
struct sigaltstack *__restrict __oss) __attribute__ ((__nothrow__ , __leaf__));
# 363 "/usr/arm-linux-gnueabi/include/signal.h" 3
# 1 "/usr/arm-linux-gnueabi/include/bits/pthreadtypes.h" 1 3
# 21 "/usr/arm-linux-gnueabi/include/bits/pthreadtypes.h" 3
# 1 "/usr/arm-linux-gnueabi/include/endian.h" 1 3
# 36 "/usr/arm-linux-gnueabi/include/endian.h" 3
# 1 "/usr/arm-linux-gnueabi/include/bits/endian.h" 1 3
# 37 "/usr/arm-linux-gnueabi/include/endian.h" 2 3
# 60 "/usr/arm-linux-gnueabi/include/endian.h" 3
# 1 "/usr/arm-linux-gnueabi/include/bits/byteswap.h" 1 3
# 34 "/usr/arm-linux-gnueabi/include/bits/byteswap.h" 3
# 1 "/usr/arm-linux-gnueabi/include/bits/byteswap-16.h" 1 3
# 35 "/usr/arm-linux-gnueabi/include/bits/byteswap.h" 2 3
# 43 "/usr/arm-linux-gnueabi/include/bits/byteswap.h" 3
static __inline unsigned int
__bswap_32 (unsigned int __bsx)
{
return __builtin_bswap32 (__bsx);
}
# 74 "/usr/arm-linux-gnueabi/include/bits/byteswap.h" 3
static __inline __uint64_t
__bswap_64 (__uint64_t __bsx)
{
return __builtin_bswap64 (__bsx);
}
# 61 "/usr/arm-linux-gnueabi/include/endian.h" 2 3
# 22 "/usr/arm-linux-gnueabi/include/bits/pthreadtypes.h" 2 3
# 37 "/usr/arm-linux-gnueabi/include/bits/pthreadtypes.h" 3
typedef unsigned long int pthread_t;

union pthread_attr_t
{
char __size[36];
long int __align;
};

typedef struct __pthread_internal_slist
{
struct __pthread_internal_slist *__next;
} __pthread_slist_t;

typedef union
{
struct __pthread_mutex_s

  {
    int __lock;
    unsigned int __count;
    int __owner;


    int __kind;
    unsigned int __nusers;
    __extension__ union
    {
      int __spins;
      __pthread_slist_t __list;
    };

} __data;
char __size[24];
long int __align;
} pthread_mutex_t;

typedef union
{
char __size[4];
long int __align;
} pthread_mutexattr_t;

typedef union
{
struct

  {
    int __lock;
    unsigned int __futex;
    __extension__ unsigned long long int __total_seq;
    __extension__ unsigned long long int __wakeup_seq;
    __extension__ unsigned long long int __woken_seq;
    void *__mutex;
    unsigned int __nwaiters;
    unsigned int __broadcast_seq;

} __data;
char __size[48];
__extension__ long long int __align;
} pthread_cond_t;

typedef union
{
char __size[4];
long int __align;
} pthread_condattr_t;

typedef unsigned int pthread_key_t;

typedef int pthread_once_t;

typedef union
{
struct

  {
    int __lock;
    unsigned int __nr_readers;
    unsigned int __readers_wakeup;
    unsigned int __writer_wakeup;
    unsigned int __nr_readers_queued;
    unsigned int __nr_writers_queued;
# 147 "/usr/arm-linux-gnueabi/include/bits/pthreadtypes.h" 3
    unsigned char __flags;
    unsigned char __shared;
    unsigned char __pad1;
    unsigned char __pad2;

    int __writer;

} __data;
char __size[32];
long int __align;
} pthread_rwlock_t;

typedef union
{
char __size[8];
long int __align;
} pthread_rwlockattr_t;

typedef volatile int pthread_spinlock_t;

typedef union
{
char __size[20];
long int __align;
} pthread_barrier_t;

typedef union
{
char __size[4];
int __align;
} pthread_barrierattr_t;
# 364 "/usr/arm-linux-gnueabi/include/signal.h" 2 3
# 1 "/usr/arm-linux-gnueabi/include/bits/sigthread.h" 1 3
# 30 "/usr/arm-linux-gnueabi/include/bits/sigthread.h" 3
extern int pthread_sigmask (int __how,
const __sigset_t *__restrict __newmask,
__sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__ , __leaf__));

extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__ , __leaf__)); # 365 "/usr/arm-linux-gnueabi/include/signal.h" 2 3

extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__ , __leaf__));

extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__ , __leaf__));

# 39 "../../../../include/test.h" 2
# 1 "/usr/arm-linux-gnueabi/include/unistd.h" 1 3
# 27 "/usr/arm-linux-gnueabi/include/unistd.h" 3

# 202 "/usr/arm-linux-gnueabi/include/unistd.h" 3 # 1 "/usr/arm-linux-gnueabi/include/bits/posix_opt.h" 1 3 # 203 "/usr/arm-linux-gnueabi/include/unistd.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/environments.h" 1 3 # 22 "/usr/arm-linux-gnueabi/include/bits/environments.h" 3 # 1 "/usr/arm-linux-gnueabi/include/bits/wordsize.h" 1 3 # 23 "/usr/arm-linux-gnueabi/include/bits/environments.h" 2 3 # 207 "/usr/arm-linux-gnueabi/include/unistd.h" 2 3
# 226 "/usr/arm-linux-gnueabi/include/unistd.h" 3
# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 1 3 4 # 227 "/usr/arm-linux-gnueabi/include/unistd.h" 2 3

typedef __gid_t gid_t;
# 255 "/usr/arm-linux-gnueabi/include/unistd.h" 3
typedef __useconds_t useconds_t;
# 267 "/usr/arm-linux-gnueabi/include/unistd.h" 3
typedef __intptr_t intptr_t;

typedef __socklen_t socklen_t;
# 287 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int access (const char *__name, int __type) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); # 304 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int faccessat (int __fd, const char *__file, int __type, int __flag)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__));

# 334 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern __off_t lseek (int __fd, __off_t __offset, int __whence) __attribute__ ((__nothrow__ , __leaf__)); # 353 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int close (int __fd);

extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__));

extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)); # 376 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern ssize_t pread (int __fd, void *__buf, size_t __nbytes,

        __off_t __offset) __attribute__ ((__warn_unused_result__));

extern ssize_t pwrite (int __fd, const void *__buf, size_t __n,

         __off_t __offset) __attribute__ ((__warn_unused_result__));

# 417 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int pipe (int __pipedes[2]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 432 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern unsigned int alarm (unsigned int __seconds) __attribute__ ((__nothrow__ , __leaf__));
# 444 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern unsigned int sleep (unsigned int __seconds);

extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval)

     __attribute__ ((__nothrow__ , __leaf__));

extern int usleep (__useconds_t __useconds);
# 469 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int pause (void);

extern int chown (const char *__file, __uid_t __owner, __gid_t __group)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int lchown (const char *__file, __uid_t __owner, __gid_t __group)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern int fchownat (int __fd, const char *__file, __uid_t __owner,

       __gid_t __group, int __flag)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__));

extern int chdir (const char *__path) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern int fchdir (int __fd) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 511 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern char *getcwd (char *__buf, size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 525 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern char *getwd (char *__buf)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__));

extern int dup (int __fd) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__ , __leaf__)); # 543 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern char **__environ;

extern int execve (const char *__path, char *const __argv[],

     char *const __envp[]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int fexecve (int __fd, char *const __argv[], char *const __envp[])

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern int execv (const char *__path, char *const __argv[])

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int execle (const char *__path, const char *__arg, ...)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int execl (const char *__path, const char *__arg, ...)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int execvp (const char *__file, char *const __argv[])

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int execlp (const char *__file, const char *__arg, ...)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

# 598 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int nice (int __inc) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern void _exit (int __status) __attribute__ ((__noreturn__));

# 1 "/usr/arm-linux-gnueabi/include/bits/confname.h" 1 3 # 24 "/usr/arm-linux-gnueabi/include/bits/confname.h" 3 enum

  {
    _PC_LINK_MAX,

    _PC_MAX_CANON,

    _PC_MAX_INPUT,

    _PC_NAME_MAX,

    _PC_PATH_MAX,

    _PC_PIPE_BUF,

    _PC_CHOWN_RESTRICTED,

    _PC_NO_TRUNC,

    _PC_VDISABLE,

    _PC_SYNC_IO,

    _PC_ASYNC_IO,

    _PC_PRIO_IO,

    _PC_SOCK_MAXBUF,

    _PC_FILESIZEBITS,

    _PC_REC_INCR_XFER_SIZE,

    _PC_REC_MAX_XFER_SIZE,

    _PC_REC_MIN_XFER_SIZE,

    _PC_REC_XFER_ALIGN,

    _PC_ALLOC_SIZE_MIN,

    _PC_SYMLINK_MAX,

    _PC_2_SYMLINKS
  };

enum

  {
    _SC_ARG_MAX,

    _SC_CHILD_MAX,

    _SC_CLK_TCK,

    _SC_NGROUPS_MAX,

    _SC_OPEN_MAX,

    _SC_STREAM_MAX,

    _SC_TZNAME_MAX,

    _SC_JOB_CONTROL,

    _SC_SAVED_IDS,

    _SC_REALTIME_SIGNALS,

    _SC_PRIORITY_SCHEDULING,

    _SC_TIMERS,

    _SC_ASYNCHRONOUS_IO,

    _SC_PRIORITIZED_IO,

    _SC_SYNCHRONIZED_IO,

    _SC_FSYNC,

    _SC_MAPPED_FILES,

    _SC_MEMLOCK,

    _SC_MEMLOCK_RANGE,

    _SC_MEMORY_PROTECTION,

    _SC_MESSAGE_PASSING,

    _SC_SEMAPHORES,

    _SC_SHARED_MEMORY_OBJECTS,

    _SC_AIO_LISTIO_MAX,

    _SC_AIO_MAX,

    _SC_AIO_PRIO_DELTA_MAX,

    _SC_DELAYTIMER_MAX,

    _SC_MQ_OPEN_MAX,

    _SC_MQ_PRIO_MAX,

    _SC_VERSION,

    _SC_PAGESIZE,


    _SC_RTSIG_MAX,

    _SC_SEM_NSEMS_MAX,

    _SC_SEM_VALUE_MAX,

    _SC_SIGQUEUE_MAX,

    _SC_TIMER_MAX,




    _SC_BC_BASE_MAX,

    _SC_BC_DIM_MAX,

    _SC_BC_SCALE_MAX,

    _SC_BC_STRING_MAX,

    _SC_COLL_WEIGHTS_MAX,

    _SC_EQUIV_CLASS_MAX,

    _SC_EXPR_NEST_MAX,

    _SC_LINE_MAX,

    _SC_RE_DUP_MAX,

    _SC_CHARCLASS_NAME_MAX,


    _SC_2_VERSION,

    _SC_2_C_BIND,

    _SC_2_C_DEV,

    _SC_2_FORT_DEV,

    _SC_2_FORT_RUN,

    _SC_2_SW_DEV,

    _SC_2_LOCALEDEF,


    _SC_PII,

    _SC_PII_XTI,

    _SC_PII_SOCKET,

    _SC_PII_INTERNET,

    _SC_PII_OSI,

    _SC_POLL,

    _SC_SELECT,

    _SC_UIO_MAXIOV,

    _SC_IOV_MAX = _SC_UIO_MAXIOV,

    _SC_PII_INTERNET_STREAM,

    _SC_PII_INTERNET_DGRAM,

    _SC_PII_OSI_COTS,

    _SC_PII_OSI_CLTS,

    _SC_PII_OSI_M,

    _SC_T_IOV_MAX,



    _SC_THREADS,

    _SC_THREAD_SAFE_FUNCTIONS,

    _SC_GETGR_R_SIZE_MAX,

    _SC_GETPW_R_SIZE_MAX,

    _SC_LOGIN_NAME_MAX,

    _SC_TTY_NAME_MAX,

    _SC_THREAD_DESTRUCTOR_ITERATIONS,

    _SC_THREAD_KEYS_MAX,

    _SC_THREAD_STACK_MIN,

    _SC_THREAD_THREADS_MAX,

    _SC_THREAD_ATTR_STACKADDR,

    _SC_THREAD_ATTR_STACKSIZE,

    _SC_THREAD_PRIORITY_SCHEDULING,

    _SC_THREAD_PRIO_INHERIT,

    _SC_THREAD_PRIO_PROTECT,

    _SC_THREAD_PROCESS_SHARED,


    _SC_NPROCESSORS_CONF,

    _SC_NPROCESSORS_ONLN,

    _SC_PHYS_PAGES,

    _SC_AVPHYS_PAGES,

    _SC_ATEXIT_MAX,

    _SC_PASS_MAX,


    _SC_XOPEN_VERSION,

    _SC_XOPEN_XCU_VERSION,

    _SC_XOPEN_UNIX,

    _SC_XOPEN_CRYPT,

    _SC_XOPEN_ENH_I18N,

    _SC_XOPEN_SHM,


    _SC_2_CHAR_TERM,

    _SC_2_C_VERSION,

    _SC_2_UPE,


    _SC_XOPEN_XPG2,

    _SC_XOPEN_XPG3,

    _SC_XOPEN_XPG4,


    _SC_CHAR_BIT,

    _SC_CHAR_MAX,

    _SC_CHAR_MIN,

    _SC_INT_MAX,

    _SC_INT_MIN,

    _SC_LONG_BIT,

    _SC_WORD_BIT,

    _SC_MB_LEN_MAX,

    _SC_NZERO,

    _SC_SSIZE_MAX,

    _SC_SCHAR_MAX,

    _SC_SCHAR_MIN,

    _SC_SHRT_MAX,

    _SC_SHRT_MIN,

    _SC_UCHAR_MAX,

    _SC_UINT_MAX,

    _SC_ULONG_MAX,

    _SC_USHRT_MAX,


    _SC_NL_ARGMAX,

    _SC_NL_LANGMAX,

    _SC_NL_MSGMAX,

    _SC_NL_NMAX,

    _SC_NL_SETMAX,

    _SC_NL_TEXTMAX,


    _SC_XBS5_ILP32_OFF32,

    _SC_XBS5_ILP32_OFFBIG,

    _SC_XBS5_LP64_OFF64,

    _SC_XBS5_LPBIG_OFFBIG,


    _SC_XOPEN_LEGACY,

    _SC_XOPEN_REALTIME,

    _SC_XOPEN_REALTIME_THREADS,


    _SC_ADVISORY_INFO,

    _SC_BARRIERS,

    _SC_BASE,

    _SC_C_LANG_SUPPORT,

    _SC_C_LANG_SUPPORT_R,

    _SC_CLOCK_SELECTION,

    _SC_CPUTIME,

    _SC_THREAD_CPUTIME,

    _SC_DEVICE_IO,

    _SC_DEVICE_SPECIFIC,

    _SC_DEVICE_SPECIFIC_R,

    _SC_FD_MGMT,

    _SC_FIFO,

    _SC_PIPE,

    _SC_FILE_ATTRIBUTES,

    _SC_FILE_LOCKING,

    _SC_FILE_SYSTEM,

    _SC_MONOTONIC_CLOCK,

    _SC_MULTI_PROCESS,

    _SC_SINGLE_PROCESS,

    _SC_NETWORKING,

    _SC_READER_WRITER_LOCKS,

    _SC_SPIN_LOCKS,

    _SC_REGEXP,

    _SC_REGEX_VERSION,

    _SC_SHELL,

    _SC_SIGNALS,

    _SC_SPAWN,

    _SC_SPORADIC_SERVER,

    _SC_THREAD_SPORADIC_SERVER,

    _SC_SYSTEM_DATABASE,

    _SC_SYSTEM_DATABASE_R,

    _SC_TIMEOUTS,

    _SC_TYPED_MEMORY_OBJECTS,

    _SC_USER_GROUPS,

    _SC_USER_GROUPS_R,

    _SC_2_PBS,

    _SC_2_PBS_ACCOUNTING,

    _SC_2_PBS_LOCATE,

    _SC_2_PBS_MESSAGE,

    _SC_2_PBS_TRACK,

    _SC_SYMLOOP_MAX,

    _SC_STREAMS,

    _SC_2_PBS_CHECKPOINT,


    _SC_V6_ILP32_OFF32,

    _SC_V6_ILP32_OFFBIG,

    _SC_V6_LP64_OFF64,

    _SC_V6_LPBIG_OFFBIG,


    _SC_HOST_NAME_MAX,

    _SC_TRACE,

    _SC_TRACE_EVENT_FILTER,

    _SC_TRACE_INHERIT,

    _SC_TRACE_LOG,


    _SC_LEVEL1_ICACHE_SIZE,

    _SC_LEVEL1_ICACHE_ASSOC,

    _SC_LEVEL1_ICACHE_LINESIZE,

    _SC_LEVEL1_DCACHE_SIZE,

    _SC_LEVEL1_DCACHE_ASSOC,

    _SC_LEVEL1_DCACHE_LINESIZE,

    _SC_LEVEL2_CACHE_SIZE,

    _SC_LEVEL2_CACHE_ASSOC,

    _SC_LEVEL2_CACHE_LINESIZE,

    _SC_LEVEL3_CACHE_SIZE,

    _SC_LEVEL3_CACHE_ASSOC,

    _SC_LEVEL3_CACHE_LINESIZE,

    _SC_LEVEL4_CACHE_SIZE,

    _SC_LEVEL4_CACHE_ASSOC,

    _SC_LEVEL4_CACHE_LINESIZE,



    _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,

    _SC_RAW_SOCKETS,


    _SC_V7_ILP32_OFF32,

    _SC_V7_ILP32_OFFBIG,

    _SC_V7_LP64_OFF64,

    _SC_V7_LPBIG_OFFBIG,


    _SC_SS_REPL_MAX,


    _SC_TRACE_EVENT_NAME_MAX,

    _SC_TRACE_NAME_MAX,

    _SC_TRACE_SYS_MAX,

    _SC_TRACE_USER_EVENT_MAX,


    _SC_XOPEN_STREAMS,


    _SC_THREAD_ROBUST_PRIO_INHERIT,

    _SC_THREAD_ROBUST_PRIO_PROTECT
  };

enum

  {
    _CS_PATH,


    _CS_V6_WIDTH_RESTRICTED_ENVS,



    _CS_GNU_LIBC_VERSION,

    _CS_GNU_LIBPTHREAD_VERSION,


    _CS_V5_WIDTH_RESTRICTED_ENVS,



    _CS_V7_WIDTH_RESTRICTED_ENVS,



    _CS_LFS_CFLAGS = 1000,

    _CS_LFS_LDFLAGS,

    _CS_LFS_LIBS,

    _CS_LFS_LINTFLAGS,

    _CS_LFS64_CFLAGS,

    _CS_LFS64_LDFLAGS,

    _CS_LFS64_LIBS,

    _CS_LFS64_LINTFLAGS,


    _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,

    _CS_XBS5_ILP32_OFF32_LDFLAGS,

    _CS_XBS5_ILP32_OFF32_LIBS,

    _CS_XBS5_ILP32_OFF32_LINTFLAGS,

    _CS_XBS5_ILP32_OFFBIG_CFLAGS,

    _CS_XBS5_ILP32_OFFBIG_LDFLAGS,

    _CS_XBS5_ILP32_OFFBIG_LIBS,

    _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,

    _CS_XBS5_LP64_OFF64_CFLAGS,

    _CS_XBS5_LP64_OFF64_LDFLAGS,

    _CS_XBS5_LP64_OFF64_LIBS,

    _CS_XBS5_LP64_OFF64_LINTFLAGS,

    _CS_XBS5_LPBIG_OFFBIG_CFLAGS,

    _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,

    _CS_XBS5_LPBIG_OFFBIG_LIBS,

    _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS,


    _CS_POSIX_V6_ILP32_OFF32_CFLAGS,

    _CS_POSIX_V6_ILP32_OFF32_LDFLAGS,

    _CS_POSIX_V6_ILP32_OFF32_LIBS,

    _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS,

    _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS,

    _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS,

    _CS_POSIX_V6_ILP32_OFFBIG_LIBS,

    _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS,

    _CS_POSIX_V6_LP64_OFF64_CFLAGS,

    _CS_POSIX_V6_LP64_OFF64_LDFLAGS,

    _CS_POSIX_V6_LP64_OFF64_LIBS,

    _CS_POSIX_V6_LP64_OFF64_LINTFLAGS,

    _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,

    _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS,

    _CS_POSIX_V6_LPBIG_OFFBIG_LIBS,

    _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS,


    _CS_POSIX_V7_ILP32_OFF32_CFLAGS,

    _CS_POSIX_V7_ILP32_OFF32_LDFLAGS,

    _CS_POSIX_V7_ILP32_OFF32_LIBS,

    _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS,

    _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS,

    _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS,

    _CS_POSIX_V7_ILP32_OFFBIG_LIBS,

    _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS,

    _CS_POSIX_V7_LP64_OFF64_CFLAGS,

    _CS_POSIX_V7_LP64_OFF64_LDFLAGS,

    _CS_POSIX_V7_LP64_OFF64_LIBS,

    _CS_POSIX_V7_LP64_OFF64_LINTFLAGS,

    _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS,

    _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS,

    _CS_POSIX_V7_LPBIG_OFFBIG_LIBS,

    _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS,


    _CS_V6_ENV,

    _CS_V7_ENV

};
# 610 "/usr/arm-linux-gnueabi/include/unistd.h" 2 3

extern long int pathconf (const char *__path, int __name)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__ , __leaf__));

extern long int sysconf (int __name) __attribute__ ((__nothrow__ , __leaf__));

extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t getpid (void) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t getppid (void) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t getpgrp (void) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t getpgid (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__));

extern int setpgid (__pid_t __pid, __pid_t __pgid) __attribute__ ((__nothrow__ , __leaf__)); # 660 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int setpgrp (void) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t setsid (void) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t getsid (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__));

extern __uid_t getuid (void) __attribute__ ((__nothrow__ , __leaf__));

extern __uid_t geteuid (void) __attribute__ ((__nothrow__ , __leaf__));

extern __gid_t getgid (void) __attribute__ ((__nothrow__ , __leaf__));

extern __gid_t getegid (void) __attribute__ ((__nothrow__ , __leaf__));

extern int getgroups (int __size, __gid_t __list[]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 700 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int setuid (__uid_t __uid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int setegid (__gid_t __gid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 756 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern __pid_t fork (void) __attribute__ ((__nothrow__));

extern __pid_t vfork (void) __attribute__ ((__nothrow__ , __leaf__));

extern char *ttyname (int __fd) __attribute__ ((__nothrow__ , __leaf__));

extern int ttyname_r (int __fd, char *__buf, size_t __buflen)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__));

extern int isatty (int __fd) __attribute__ ((__nothrow__ , __leaf__));

extern int ttyslot (void) __attribute__ ((__nothrow__ , __leaf__));

extern int link (const char *__from, const char *__to)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__));

extern int linkat (int __fromfd, const char *__from, int __tofd,
const char *__to, int __flags)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__));

extern int symlink (const char *__from, const char *__to)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__));

extern ssize_t readlink (const char *__restrict __path,

    char *__restrict __buf, size_t __len)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__));

extern int symlinkat (const char *__from, int __tofd,

        const char *__to) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__));

extern ssize_t readlinkat (int __fd, const char *__restrict __path,

      char *__restrict __buf, size_t __len)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__));

extern int unlink (const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int unlinkat (int __fd, const char *__name, int __flag)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern int rmdir (const char *__path) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern __pid_t tcgetpgrp (int __fd) __attribute__ ((__nothrow__ , __leaf__));

extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __attribute__ ((__nothrow__ , __leaf__));

extern char *getlogin (void);

extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1)));

extern int setlogin (const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); # 871 "/usr/arm-linux-gnueabi/include/unistd.h" 3
# 1 "/usr/arm-linux-gnueabi/include/getopt.h" 1 3
# 57 "/usr/arm-linux-gnueabi/include/getopt.h" 3
extern char *optarg;
# 71 "/usr/arm-linux-gnueabi/include/getopt.h" 3
extern int optind;

extern int opterr;

extern int optopt;
# 150 "/usr/arm-linux-gnueabi/include/getopt.h" 3
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)

       __attribute__ ((__nothrow__ , __leaf__));

# 872 "/usr/arm-linux-gnueabi/include/unistd.h" 2 3

extern int gethostname (char *__name, size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int sethostname (const char *__name, size_t __len)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern int sethostid (long int __id) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int getdomainname (char *__name, size_t __len)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
extern int setdomainname (const char *__name, size_t __len)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern int vhangup (void) __attribute__ ((__nothrow__ , __leaf__));

extern int revoke (const char *__file) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern int profil (unsigned short int *__sample_buffer, size_t __size,
size_t __offset, unsigned int __scale)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int acct (const char *__name) __attribute__ ((__nothrow__ , __leaf__));

extern char *getusershell (void) __attribute__ ((__nothrow__ , __leaf__)); extern void endusershell (void) __attribute__ ((__nothrow__ , __leaf__)); extern void setusershell (void) __attribute__ ((__nothrow__ , __leaf__));

extern int daemon (int __nochdir, int __noclose) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int chroot (const char *__path) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1)));

extern int fsync (int __fd);
# 969 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern long int gethostid (void);

extern void sync (void) __attribute__ ((__nothrow__ , __leaf__));

extern int getpagesize (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));

extern int getdtablesize (void) __attribute__ ((__nothrow__ , __leaf__)); # 993 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int truncate (const char *__file, __off_t __length)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

# 1016 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int ftruncate (int __fd, __off_t __length) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 1037 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int brk (void *__addr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern void *sbrk (intptr_t __delta) __attribute__ ((__nothrow__ , __leaf__));
# 1058 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern long int syscall (long int __sysno, ...) __attribute__ ((__nothrow__ , __leaf__)); # 1081 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int lockf (int __fd, int __cmd, __off_t __len) __attribute__ ((__warn_unused_result__)); # 1112 "/usr/arm-linux-gnueabi/include/unistd.h" 3
extern int fdatasync (int __fildes);
# 1148 "/usr/arm-linux-gnueabi/include/unistd.h" 3
# 1 "/usr/arm-linux-gnueabi/include/bits/unistd.h" 1 3
# 23 "/usr/arm-linux-gnueabi/include/bits/unistd.h" 3
extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes,

      size_t __buflen) __attribute__ ((__warn_unused_result__));
extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read")
                               __attribute__ ((__warn_unused_result__));

extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk")

__attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t read (int __fd, void *__buf, size_t __nbytes)
{
if (__builtin_object_size (__buf, 0) != (size_t) -1)

    {
      if (!__builtin_constant_p (__nbytes))

return __read_chk (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0));

      if (__nbytes > __builtin_object_size (__buf, 0))
 return __read_chk_warn (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0));
    }

return __read_alias (__fd, __buf, __nbytes);
}
# 123 "/usr/arm-linux-gnueabi/include/bits/unistd.h" 3 extern ssize_t __readlink_chk (const char *__restrict __path,

          char *__restrict __buf, size_t __len,
          size_t __buflen)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__));

extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) __asm__ ("" "readlink") __attribute__ ((__nothrow__ , __leaf__))

     __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__));

extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) __asm__ ("" "__readlink_chk") __attribute__ ((__nothrow__ , __leaf__))

     __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer")))
                                         ;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t __attribute__ ((__nothrow__ , __leaf__)) readlink (const char *__restrict __path, char *__restrict __buf, size_t __len)

{
if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__len))

return __readlink_chk (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1));

      if ( __len > __builtin_object_size (__buf, 2 > 1))
 return __readlink_chk_warn (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1));
    }

return __readlink_alias (__path, __buf, __len);
}

extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path,

     char *__restrict __buf, size_t __len,
     size_t __buflen)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__));

extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) __asm__ ("" "readlinkat") __attribute__ ((__nothrow__ , __leaf__))

     __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__));

extern ssize_t __readlinkat_chk_warn (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) __asm__ ("" "__readlinkat_chk") __attribute__ ((__nothrow__ , __leaf__))

     __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer")))

                ;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t __attribute__ ((__nothrow__ , __leaf__)) readlinkat (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len)

{
if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__len))

return __readlinkat_chk (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1));

      if (__len > __builtin_object_size (__buf, 2 > 1))
 return __readlinkat_chk_warn (__fd, __path, __buf, __len,
          __builtin_object_size (__buf, 2 > 1));
    }

return __readlinkat_alias (__fd, __path, __buf, __len);
}

extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
extern char *__getcwd_alias (char *__buf, size_t __size) __asm__ ("" "getcwd") __attribute__ ((__nothrow__ , __leaf__))
                                              __attribute__ ((__warn_unused_result__));

extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) __asm__ ("" "__getcwd_chk") __attribute__ ((__nothrow__ , __leaf__))

__attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * __attribute__ ((__nothrow__ , __leaf__)) getcwd (char *__buf, size_t __size)
{
if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__size))

return __getcwd_chk (__buf, __size, __builtin_object_size (__buf, 2 > 1));

      if (__size > __builtin_object_size (__buf, 2 > 1))
 return __getcwd_chk_warn (__buf, __size, __builtin_object_size (__buf, 2 > 1));
    }

return __getcwd_alias (__buf, __size);
}

extern char *__getwd_chk (char *__buf, size_t buflen)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
extern char *__getwd_warn (char *__buf) __asm__ ("" "getwd") __attribute__ ((__nothrow__ , __leaf__))
     __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size")))
                                         ;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * __attribute__ ((__nothrow__ , __leaf__)) getwd (char *__buf)
{
if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)

    return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1));

return __getwd_warn (__buf);
}

extern size_t __confstr_chk (int __name, char *__buf, size_t __len,

        size_t __buflen) __attribute__ ((__nothrow__ , __leaf__));
extern size_t __confstr_alias (int __name, char *__buf, size_t __len) __asm__ ("" "confstr") __attribute__ ((__nothrow__ , __leaf__))
                             ;

extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) __asm__ ("" "__confstr_chk") __attribute__ ((__nothrow__ , __leaf__))

__attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__nothrow__ , __leaf__)) confstr (int __name, char *__buf, size_t __len)
{
if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__len))

return __confstr_chk (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1));

      if (__builtin_object_size (__buf, 2 > 1) < __len)
 return __confstr_chk_warn (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1));
    }

return __confstr_alias (__name, __buf, __len);
}

extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
extern int __getgroups_alias (int __size, __gid_t __list[]) __asm__ ("" "getgroups") __attribute__ ((__nothrow__ , __leaf__))
                 __attribute__ ((__warn_unused_result__));

extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) __asm__ ("" "__getgroups_chk") __attribute__ ((__nothrow__ , __leaf__))

__attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) getgroups (int __size, __gid_t __list[])
{
if (__builtin_object_size (__list, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__size) || __size < 0)

return __getgroups_chk (__size, __list, __builtin_object_size (__list, 2 > 1));

      if (__size * sizeof (__gid_t) > __builtin_object_size (__list, 2 > 1))
 return __getgroups_chk_warn (__size, __list, __builtin_object_size (__list, 2 > 1));
    }

return __getgroups_alias (__size, __list);
}

extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen,

       size_t __nreal) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) __asm__ ("" "ttyname_r") __attribute__ ((__nothrow__ , __leaf__))

     __attribute__ ((__nonnull__ (2)));

extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__ttyname_r_chk") __attribute__ ((__nothrow__ , __leaf__))

__attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) ttyname_r (int __fd, char *__buf, size_t __buflen)
{
if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__buflen))

return __ttyname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1));

      if (__buflen > __builtin_object_size (__buf, 2 > 1))
 return __ttyname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1));
    }

return __ttyname_r_alias (__fd, __buf, __buflen);
}

extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal)

     __attribute__ ((__nonnull__ (1)));
extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r")
                     __attribute__ ((__nonnull__ (1)));

extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk")

__attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int getlogin_r (char *__buf, size_t __buflen)
{
if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__buflen))

return __getlogin_r_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1));

      if (__buflen > __builtin_object_size (__buf, 2 > 1))
 return __getlogin_r_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1));
    }

return __getlogin_r_alias (__buf, __buflen);
}

extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
extern int __gethostname_alias (char *__buf, size_t __buflen) __asm__ ("" "gethostname") __attribute__ ((__nothrow__ , __leaf__))
                   __attribute__ ((__nonnull__ (1)));

extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__gethostname_chk") __attribute__ ((__nothrow__ , __leaf__))

__attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) gethostname (char *__buf, size_t __buflen)
{
if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__buflen))

return __gethostname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1));

      if (__buflen > __builtin_object_size (__buf, 2 > 1))
 return __gethostname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1));
    }

return __gethostname_alias (__buf, __buflen);
}

extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern int __getdomainname_alias (char *__buf, size_t __buflen) __asm__ ("" "getdomainname") __attribute__ ((__nothrow__ , __leaf__))

                     __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getdomainname_chk") __attribute__ ((__nothrow__ , __leaf__))

     __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer")))

                    ;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) getdomainname (char *__buf, size_t __buflen)
{
if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__buflen))

return __getdomainname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1));

      if (__buflen > __builtin_object_size (__buf, 2 > 1))
 return __getdomainname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1));
    }

return __getdomainname_alias (__buf, __buflen);
}
# 1149 "/usr/arm-linux-gnueabi/include/unistd.h" 2 3

# 40 "../../../../include/test.h" 2
# 1 "/usr/arm-linux-gnueabi/include/string.h" 1 3
# 27 "/usr/arm-linux-gnueabi/include/string.h" 3

# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 1 3 4 # 33 "/usr/arm-linux-gnueabi/include/string.h" 2 3
# 44 "/usr/arm-linux-gnueabi/include/string.h" 3

extern void *memcpy (void *__restrict __dest, const void *__restrict __src,

       size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern void *memmove (void *__dest, const void *__src, size_t __n)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern void *memccpy (void *__restrict __dest, const void *__restrict __src,

        int __c, size_t __n)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int memcmp (const void *__s1, const void *__s2, size_t __n)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
# 96 "/usr/arm-linux-gnueabi/include/string.h" 3
extern void *memchr (const void *__s, int __c, size_t __n)
      __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));

# 127 "/usr/arm-linux-gnueabi/include/string.h" 3

extern char *strcpy (char *__restrict __dest, const char *__restrict __src)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern char *strncpy (char *__restrict __dest,
const char *__restrict __src, size_t __n)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern char *strcat (char *__restrict __dest, const char *__restrict __src)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern char *strncat (char *__restrict __dest, const char *__restrict __src,

        size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int strcmp (const char *__s1, const char *__s2)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));

extern int strncmp (const char *__s1, const char *__s2, size_t __n)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));

extern int strcoll (const char *__s1, const char *__s2)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));

extern size_t strxfrm (char *__restrict __dest,
const char *__restrict __src, size_t __n)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

# 1 "/usr/arm-linux-gnueabi/include/xlocale.h" 1 3 # 27 "/usr/arm-linux-gnueabi/include/xlocale.h" 3 typedef struct __locale_struct
{

  struct __locale_data *__locales[13];

const unsigned short int *__ctype_b;
const int *__ctype_tolower;
const int *__ctype_toupper;

const char *__names[13];
} *__locale_t;

typedef __locale_t locale_t;
# 164 "/usr/arm-linux-gnueabi/include/string.h" 2 3

extern int strcoll_l (const char *__s1, const char *__s2, __locale_t __l)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3)));

extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,

    __locale_t __l) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4)));

extern char *strdup (const char *__s)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));

extern char *strndup (const char *__string, size_t __n)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));

# 210 "/usr/arm-linux-gnueabi/include/string.h" 3

# 235 "/usr/arm-linux-gnueabi/include/string.h" 3
extern char *strchr (const char *__s, int __c)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
# 262 "/usr/arm-linux-gnueabi/include/string.h" 3
extern char *strrchr (const char *__s, int __c)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));

# 281 "/usr/arm-linux-gnueabi/include/string.h" 3

extern size_t strcspn (const char *__s, const char *__reject)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));

extern size_t strspn (const char *__s, const char *__accept)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
# 314 "/usr/arm-linux-gnueabi/include/string.h" 3
extern char *strpbrk (const char *__s, const char *__accept)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
# 341 "/usr/arm-linux-gnueabi/include/string.h" 3
extern char *strstr (const char *__haystack, const char *__needle)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));

extern char *strtok (char *__restrict __s, const char *__restrict __delim)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern char *__strtok_r (char *__restrict __s,

    const char *__restrict __delim,
    char **__restrict __save_ptr)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3)));

extern char *strtok_r (char *__restrict __s, const char *__restrict __delim,

         char **__restrict __save_ptr)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3)));

# 396 "/usr/arm-linux-gnueabi/include/string.h" 3

extern size_t strlen (const char *__s)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));

extern size_t strnlen (const char *__string, size_t __maxlen)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));

extern char *strerror (int __errnum) __attribute__ ((__nothrow__ , __leaf__));

# 426 "/usr/arm-linux-gnueabi/include/string.h" 3
extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__ , __leaf__))

                        __attribute__ ((__nonnull__ (2)));

# 444 "/usr/arm-linux-gnueabi/include/string.h" 3
extern char *strerror_l (int __errnum, __locale_t __l) __attribute__ ((__nothrow__ , __leaf__));

extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern void bcopy (const void *__src, void *__dest, size_t __n)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int bcmp (const void *__s1, const void *__s2, size_t __n)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
# 488 "/usr/arm-linux-gnueabi/include/string.h" 3
extern char *index (const char *__s, int __c)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
# 516 "/usr/arm-linux-gnueabi/include/string.h" 3
extern char *rindex (const char *__s, int __c)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));

extern int ffs (int __i) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); # 533 "/usr/arm-linux-gnueabi/include/string.h" 3
extern int strcasecmp (const char *__s1, const char *__s2)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));

extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));

# 556 "/usr/arm-linux-gnueabi/include/string.h" 3
extern char *strsep (char **__restrict __stringp,
const char *__restrict __delim)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern char *strsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__));

extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
extern char *stpcpy (char *__restrict __dest, const char *__restrict __src)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern char *__stpncpy (char *__restrict __dest,
const char *__restrict __src, size_t __n)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern char *stpncpy (char *__restrict __dest,
const char *__restrict __src, size_t __n)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
# 631 "/usr/arm-linux-gnueabi/include/string.h" 3
# 1 "/usr/arm-linux-gnueabi/include/bits/string.h" 1 3
# 632 "/usr/arm-linux-gnueabi/include/string.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/string2.h" 1 3
# 79 "/usr/arm-linux-gnueabi/include/bits/string2.h" 3
typedef struct { unsigned char __arr[2]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR2; typedef struct { unsigned char __arr[3]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR3; typedef struct { unsigned char __arr[4]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR4; typedef struct { unsigned char __arr[5]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR5; typedef struct { unsigned char __arr[6]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR6; typedef struct { unsigned char __arr[7]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR7; typedef struct { unsigned char __arr[8]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR8; # 393 "/usr/arm-linux-gnueabi/include/bits/string2.h" 3
extern void *__rawmemchr (const void *__s, int __c);
# 945 "/usr/arm-linux-gnueabi/include/bits/string2.h" 3
extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c1 (const char *__s, int __reject); extern __inline __attribute__ ((__gnu_inline__)) size_t
__strcspn_c1 (const char *__s, int __reject)
{
size_t __result = 0;
while (__s[__result] != '\0' && __s[__result] != __reject)

    ++__result;

return __result;
}

extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c2 (const char *__s, int __reject1,

         int __reject2);

extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c2 (const char *__s, int __reject1, int __reject2) {
size_t __result = 0;
while (__s[__result] != '\0' && __s[__result] != __reject1 && __s[__result] != __reject2)

    ++__result;

return __result;
}

extern __inline __attribute__ ((__gnu_inline__)) size_t __strcspn_c3 (const char *__s, int __reject1,

         int __reject2, int __reject3);
extern __inline __attribute__ ((__gnu_inline__)) size_t
__strcspn_c3 (const char *__s, int __reject1, int __reject2,
       int __reject3)

{
size_t __result = 0;
while (__s[__result] != '\0' && __s[__result] != __reject1 && __s[__result] != __reject2 && __s[__result] != __reject3)

    ++__result;

return __result;
}
# 1021 "/usr/arm-linux-gnueabi/include/bits/string2.h" 3
extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c1 (const char *__s, int __accept); extern __inline __attribute__ ((__gnu_inline__)) size_t
__strspn_c1 (const char *__s, int __accept)
{
size_t __result = 0;

while (__s[__result] == __accept)

    ++__result;

return __result;
}

extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c2 (const char *__s, int __accept1,

        int __accept2);

extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c2 (const char *__s, int __accept1, int __accept2) {
size_t __result = 0;

while (__s[__result] == __accept1 || __s[__result] == __accept2)

    ++__result;

return __result;
}

extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c3 (const char *__s, int __accept1,

        int __accept2, int __accept3);

extern __inline __attribute__ ((__gnu_inline__)) size_t __strspn_c3 (const char *__s, int __accept1, int __accept2, int __accept3) {
size_t __result = 0;

while (__s[__result] == __accept1 || __s[__result] == __accept2 || __s[__result] == __accept3)

    ++__result;

return __result;
}
# 1097 "/usr/arm-linux-gnueabi/include/bits/string2.h" 3
extern __inline __attribute__ ((__gnu_inline__)) char *__strpbrk_c2 (const char *__s, int __accept1,

        int __accept2);

extern __inline __attribute__ ((__gnu_inline__)) char * __strpbrk_c2 (const char *__s, int __accept1, int __accept2) {

while (*__s != '\0' && *__s != __accept1 && *__s != __accept2)

    ++__s;

return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
}

extern __inline __attribute__ ((__gnu_inline__)) char *__strpbrk_c3 (const char *__s, int __accept1,

        int __accept2, int __accept3);

extern __inline __attribute__ ((__gnu_inline__)) char * __strpbrk_c3 (const char *__s, int __accept1, int __accept2, int __accept3) {

while (*__s != '\0' && *__s != __accept1 && *__s != __accept2 && *__s != __accept3)

    ++__s;

return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
}
# 1147 "/usr/arm-linux-gnueabi/include/bits/string2.h" 3
extern __inline __attribute__ ((__gnu_inline__)) char *__strtok_r_1c (char *__s, char __sep, char **__nextp); extern __inline __attribute__ ((__gnu_inline__)) char *
__strtok_r_1c (char *__s, char __sep, char **__nextp)
{
char *__result;
if (__s == ((void *)0))

    __s = *__nextp;
  while (*__s == __sep)
    ++__s;
  __result = ((void *)0);
  if (*__s != '\0')
    {
      __result = __s++;
      while (*__s != '\0')
 if (*__s++ == __sep)
   {
     __s[-1] = '\0';
     break;
   }
    }

*__nextp = __s;
return __result;
}
# 1179 "/usr/arm-linux-gnueabi/include/bits/string2.h" 3
extern char *__strsep_g (char **__stringp, const char *__delim);
# 1197 "/usr/arm-linux-gnueabi/include/bits/string2.h" 3
extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_1c (char **__s, char __reject);
extern __inline __attribute__ ((__gnu_inline__)) char *
__strsep_1c (char **__s, char __reject)
{
char *__retval = *__s;
if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0))

    *(*__s)++ = '\0';

return __retval;
}

extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_2c (char **__s, char __reject1, char __reject2); extern __inline __attribute__ ((__gnu_inline__)) char *
__strsep_2c (char **__s, char __reject1, char __reject2)
{
char *__retval = *__s;
if (__retval != ((void *)0))

    {
      char *__cp = __retval;
      while (1)
 {
   if (*__cp == '\0')
     {
       __cp = ((void *)0);
   break;
     }
   if (*__cp == __reject1 || *__cp == __reject2)
     {
       *__cp++ = '\0';
       break;
     }
   ++__cp;
 }
      *__s = __cp;
    }

return __retval;
}

extern __inline __attribute__ ((__gnu_inline__)) char *__strsep_3c (char **__s, char __reject1, char __reject2,

       char __reject3);

extern __inline __attribute__ ((__gnu_inline__)) char * __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3) {
char *__retval = *__s;
if (__retval != ((void *)0))

    {
      char *__cp = __retval;
      while (1)
 {
   if (*__cp == '\0')
     {
       __cp = ((void *)0);
   break;
     }
   if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3)
     {
       *__cp++ = '\0';
       break;
     }
   ++__cp;
 }
      *__s = __cp;
    }

return __retval;
}
# 1273 "/usr/arm-linux-gnueabi/include/bits/string2.h" 3 # 1 "/usr/arm-linux-gnueabi/include/stdlib.h" 1 3
# 32 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 1 3 4 # 33 "/usr/arm-linux-gnueabi/include/stdlib.h" 2 3

# 464 "/usr/arm-linux-gnueabi/include/stdlib.h" 3

extern void *malloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));

extern void *calloc (size_t __nmemb, size_t __size)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));

# 967 "/usr/arm-linux-gnueabi/include/stdlib.h" 3

# 1274 "/usr/arm-linux-gnueabi/include/bits/string2.h" 2 3

extern char *__strdup (const char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)); # 1297 "/usr/arm-linux-gnueabi/include/bits/string2.h" 3
extern char *__strndup (const char *__string, size_t __n)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__));

# 635 "/usr/arm-linux-gnueabi/include/string.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/string3.h" 1 3
# 49 "/usr/arm-linux-gnueabi/include/bits/string3.h" 3
extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * __attribute__ ((__nothrow__ , __leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len)

{
return __builtin___memcpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 0));
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * __attribute__ ((__nothrow__ , __leaf__)) memmove (void *__dest, const void *__src, size_t __len)
{
return __builtin___memmove_chk (__dest, __src, __len, __builtin_object_size (__dest, 0));
}
# 77 "/usr/arm-linux-gnueabi/include/bits/string3.h" 3
extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * __attribute__ ((__nothrow__ , __leaf__)) memset (void *__dest, int __ch, size_t __len)
{
# 90 "/usr/arm-linux-gnueabi/include/bits/string3.h" 3
return __builtin___memset_chk (__dest, __ch, __len, __builtin_object_size (__dest, 0));
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void __attribute__ ((__nothrow__ , __leaf__)) bcopy (const void *__src, void *__dest, size_t __len)
{
(void) __builtin___memmove_chk (__dest, __src, __len, __builtin_object_size (__dest, 0));
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void __attribute__ ((__nothrow__ , __leaf__)) bzero (void *__dest, size_t __len)
{
(void) __builtin___memset_chk (__dest, '\0', __len, __builtin_object_size (__dest, 0));
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__nothrow__ , __leaf__)) strcpy (char *__restrict __dest, const char *__restrict __src) {
return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1));
}
# 122 "/usr/arm-linux-gnueabi/include/bits/string3.h" 3
extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__nothrow__ , __leaf__)) strncpy (char *__restrict __dest, const char *__restrict __src, size_t __len)

{
return __builtin___strncpy_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1));
}

extern char *__stpncpy_chk (char *__dest, const char *__src, size_t __n,

       size_t __destlen) __attribute__ ((__nothrow__ , __leaf__));
extern char *__stpncpy_alias (char *__dest, const char *__src, size_t __n) __asm__ ("" "stpncpy") __attribute__ ((__nothrow__ , __leaf__))
                                 ;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__nothrow__ , __leaf__)) stpncpy (char *__dest, const char *__src, size_t __n)
{
if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1

      && (!__builtin_constant_p (__n) || __n <= __builtin_object_size (__dest, 2 > 1)))
    return __stpncpy_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1));

return __stpncpy_alias (__dest, __src, __n);
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__nothrow__ , __leaf__)) strcat (char *__restrict __dest, const char *__restrict __src) {
return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1));
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__nothrow__ , __leaf__)) strncat (char *__restrict __dest, const char *__restrict __src, size_t __len)

{
return __builtin___strncat_chk (__dest, __src, __len, __builtin_object_size (__dest, 2 > 1));
}
# 640 "/usr/arm-linux-gnueabi/include/string.h" 2 3

# 41 "../../../../include/test.h" 2
# 1 "/usr/arm-linux-gnueabi/include/stdlib.h" 1 3
# 32 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 1 3 4 # 328 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 3 4 typedef unsigned int wchar_t;
# 33 "/usr/arm-linux-gnueabi/include/stdlib.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/waitflags.h" 1 3 # 50 "/usr/arm-linux-gnueabi/include/bits/waitflags.h" 3 typedef enum
{
P_ALL,
P_PID,
P_PGID
} idtype_t;
# 42 "/usr/arm-linux-gnueabi/include/stdlib.h" 2 3 # 1 "/usr/arm-linux-gnueabi/include/bits/waitstatus.h" 1 3 # 66 "/usr/arm-linux-gnueabi/include/bits/waitstatus.h" 3 union wait

  {
    int w_status;
    struct
      {

unsigned int __w_termsig:7;
unsigned int __w_coredump:1;
unsigned int __w_retcode:8;
unsigned int:16;

      } __wait_terminated;
    struct
      {

unsigned int __w_stopval:8;
unsigned int __w_stopsig:8;
unsigned int:16;

      } __wait_stopped;

};
# 43 "/usr/arm-linux-gnueabi/include/stdlib.h" 2 3 # 67 "/usr/arm-linux-gnueabi/include/stdlib.h" 3 typedef union

  {
    union wait *__uptr;
    int *__iptr;

} __WAIT_STATUS __attribute__ ((__transparent_union__));
# 95 "/usr/arm-linux-gnueabi/include/stdlib.h" 3

typedef struct

  {
    int quot;
    int rem;

} div_t;

typedef struct

  {
    long int quot;
    long int rem;

} ldiv_t;

__extension__ typedef struct

  {
    long long int quot;
    long long int rem;

} lldiv_t;

# 139 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern double atof (const char *__nptr)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern int atoi (const char *__nptr)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern long int atol (const char *__nptr)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

__extension__ extern long long int atoll (const char *__nptr)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern double strtod (const char *__restrict __nptr,

        char **__restrict __endptr)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern float strtof (const char *__restrict __nptr,

       char **__restrict __endptr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern long double strtold (const char *__restrict __nptr,

       char **__restrict __endptr)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern long int strtol (const char *__restrict __nptr,
char **__restrict __endptr, int __base)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern unsigned long int strtoul (const char *__restrict __nptr,

      char **__restrict __endptr, int __base)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

__extension__
extern long long int strtoq (const char *__restrict __nptr,

        char **__restrict __endptr, int __base)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

__extension__
extern unsigned long long int strtouq (const char *__restrict __nptr,

           char **__restrict __endptr, int __base)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

__extension__
extern long long int strtoll (const char *__restrict __nptr,

         char **__restrict __endptr, int __base)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

__extension__
extern unsigned long long int strtoull (const char *__restrict __nptr,

     char **__restrict __endptr, int __base)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

# 276 "/usr/arm-linux-gnueabi/include/stdlib.h" 3

extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__nothrow__ , __leaf__)) atoi (const char *__nptr) {
return (int) strtol (__nptr, (char **) ((void *)0), 10);
}
extern __inline __attribute__ ((__gnu_inline__)) long int __attribute__ ((__nothrow__ , __leaf__)) atol (const char *__nptr) {
return strtol (__nptr, (char **) ((void *)0), 10);
}

__extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int __attribute__ ((__nothrow__ , __leaf__)) atoll (const char *__nptr) {
return strtoll (__nptr, (char **) ((void *)0), 10);
}

# 305 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
extern char *l64a (long int __n) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern long int a64l (const char *__s)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

# 1 "/usr/arm-linux-gnueabi/include/sys/types.h" 1 3 # 27 "/usr/arm-linux-gnueabi/include/sys/types.h" 3

typedef __u_char u_char;
typedef __u_short u_short;
typedef __u_int u_int;
typedef __u_long u_long;
typedef __quad_t quad_t;
typedef __u_quad_t u_quad_t;
typedef __fsid_t fsid_t;

typedef __loff_t loff_t;

typedef __ino_t ino_t;
# 60 "/usr/arm-linux-gnueabi/include/sys/types.h" 3 typedef __dev_t dev_t;
# 70 "/usr/arm-linux-gnueabi/include/sys/types.h" 3 typedef __mode_t mode_t;

typedef __nlink_t nlink_t;
# 104 "/usr/arm-linux-gnueabi/include/sys/types.h" 3 typedef __id_t id_t;
# 115 "/usr/arm-linux-gnueabi/include/sys/types.h" 3 typedef __daddr_t daddr_t;
typedef __caddr_t caddr_t;

typedef __key_t key_t;
# 132 "/usr/arm-linux-gnueabi/include/sys/types.h" 3 # 1 "/usr/arm-linux-gnueabi/include/time.h" 1 3 # 57 "/usr/arm-linux-gnueabi/include/time.h" 3

typedef __clock_t clock_t;

# 73 "/usr/arm-linux-gnueabi/include/time.h" 3

typedef __time_t time_t;

# 91 "/usr/arm-linux-gnueabi/include/time.h" 3
typedef __clockid_t clockid_t;
# 103 "/usr/arm-linux-gnueabi/include/time.h" 3
typedef __timer_t timer_t;
# 133 "/usr/arm-linux-gnueabi/include/sys/types.h" 2 3
# 146 "/usr/arm-linux-gnueabi/include/sys/types.h" 3
# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 1 3 4 # 147 "/usr/arm-linux-gnueabi/include/sys/types.h" 2 3

typedef unsigned long int ulong;
typedef unsigned short int ushort;
typedef unsigned int uint;
# 194 "/usr/arm-linux-gnueabi/include/sys/types.h" 3 typedef int int8_t __attribute__ ((__mode__ (__QI__))); typedef int int16_t __attribute__ ((__mode__ (__HI__))); typedef int int32_t __attribute__ ((__mode__ (__SI__))); typedef int int64_t __attribute__ ((__mode__ (__DI__)));

typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));

typedef int register_t __attribute__ ((__mode__ (__word__))); # 219 "/usr/arm-linux-gnueabi/include/sys/types.h" 3 # 1 "/usr/arm-linux-gnueabi/include/sys/select.h" 1 3 # 30 "/usr/arm-linux-gnueabi/include/sys/select.h" 3 # 1 "/usr/arm-linux-gnueabi/include/bits/select.h" 1 3 # 31 "/usr/arm-linux-gnueabi/include/sys/select.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/sigset.h" 1 3 # 34 "/usr/arm-linux-gnueabi/include/sys/select.h" 2 3 # 43 "/usr/arm-linux-gnueabi/include/sys/select.h" 3 # 1 "/usr/arm-linux-gnueabi/include/time.h" 1 3 # 44 "/usr/arm-linux-gnueabi/include/sys/select.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/time.h" 1 3 # 30 "/usr/arm-linux-gnueabi/include/bits/time.h" 3 struct timeval

  {
    __time_t tv_sec;
    __suseconds_t tv_usec;

};
# 46 "/usr/arm-linux-gnueabi/include/sys/select.h" 2 3

typedef __suseconds_t suseconds_t;

typedef long int __fd_mask;
# 64 "/usr/arm-linux-gnueabi/include/sys/select.h" 3 typedef struct
{

    __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))];
  } fd_set;

typedef __fd_mask fd_mask;
# 96 "/usr/arm-linux-gnueabi/include/sys/select.h" 3

# 106 "/usr/arm-linux-gnueabi/include/sys/select.h" 3 extern int select (int __nfds, fd_set *__restrict __readfds,
fd_set *__restrict __writefds,
fd_set *__restrict __exceptfds,
struct timeval *__restrict __timeout);
# 118 "/usr/arm-linux-gnueabi/include/sys/select.h" 3 extern int pselect (int __nfds, fd_set *__restrict __readfds,
fd_set *__restrict __writefds,
fd_set *__restrict __exceptfds,
const struct timespec *__restrict __timeout, const __sigset_t *__restrict __sigmask);

# 1 "/usr/arm-linux-gnueabi/include/bits/select2.h" 1 3 # 24 "/usr/arm-linux-gnueabi/include/bits/select2.h" 3 extern long int __fdelt_chk (long int __d);
extern long int __fdelt_warn (long int __d)
__attribute__((__warning__ ("bit outside of fd_set selected")));
# 129 "/usr/arm-linux-gnueabi/include/sys/select.h" 2 3

# 220 "/usr/arm-linux-gnueabi/include/sys/types.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/sys/sysmacros.h" 1 3 # 24 "/usr/arm-linux-gnueabi/include/sys/sysmacros.h" 3

__extension__
extern unsigned int gnu_dev_major (unsigned long long int __dev)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
__extension__
extern unsigned int gnu_dev_minor (unsigned long long int __dev)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));

__extension__
extern unsigned long long int gnu_dev_makedev (unsigned int __major,
unsigned int __minor)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));

__extension__ extern __inline __attribute__ ((__gnu_inline__)) __attribute__ ((__const__)) unsigned int __attribute__ ((__nothrow__ , __leaf__)) gnu_dev_major (unsigned long long int __dev) {
return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
}

__extension__ extern __inline __attribute__ ((__gnu_inline__)) __attribute__ ((__const__)) unsigned int __attribute__ ((__nothrow__ , __leaf__)) gnu_dev_minor (unsigned long long int __dev) {
return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
}

__extension__ extern __inline __attribute__ ((__gnu_inline__)) __attribute__ ((__const__)) unsigned long long int __attribute__ ((__nothrow__ , __leaf__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor) {
return ((__minor & 0xff) | ((__major & 0xfff) << 8)
| (((unsigned long long int) (__minor & ~0xff)) << 12)
| (((unsigned long long int) (__major & ~0xfff)) << 32));
}

# 223 "/usr/arm-linux-gnueabi/include/sys/types.h" 2 3

typedef __blksize_t blksize_t;

typedef __blkcnt_t blkcnt_t;

typedef __fsblkcnt_t fsblkcnt_t;

typedef __fsfilcnt_t fsfilcnt_t;
# 273 "/usr/arm-linux-gnueabi/include/sys/types.h" 3

# 315 "/usr/arm-linux-gnueabi/include/stdlib.h" 2 3

extern long int random (void) __attribute__ ((__nothrow__ , __leaf__));

extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__));

extern char *initstate (unsigned int __seed, char *__statebuf,
size_t __statelen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

struct random_data

  {
    int32_t *fptr;
    int32_t *rptr;
    int32_t *state;
    int rand_type;
    int rand_deg;
    int rand_sep;
    int32_t *end_ptr;

};

extern int random_r (struct random_data *__restrict __buf,

       int32_t *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int srandom_r (unsigned int __seed, struct random_data *__buf)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
size_t __statelen,
struct random_data *__restrict __buf)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4)));

extern int setstate_r (char *__restrict __statebuf,
struct random_data *__restrict __buf)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int rand (void) __attribute__ ((__nothrow__ , __leaf__));

extern void srand (unsigned int __seed) __attribute__ ((__nothrow__ , __leaf__));

extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__ , __leaf__));

extern double drand48 (void) __attribute__ ((__nothrow__ , __leaf__));
extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern long int lrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); extern long int nrand48 (unsigned short int __xsubi[3])

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern long int mrand48 (void) __attribute__ ((__nothrow__ , __leaf__)); extern long int jrand48 (unsigned short int __xsubi[3])

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern void srand48 (long int __seedval) __attribute__ ((__nothrow__ , __leaf__)); extern unsigned short int *seed48 (unsigned short int __seed16v[3])

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

struct drand48_data

  {
    unsigned short int __x[3];
    unsigned short int __old_x[3];
    unsigned short int __c;
    unsigned short int __init;
    __extension__ unsigned long long int __a;
  };

extern int drand48_r (struct drand48_data *__restrict __buffer,

        double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int erand48_r (unsigned short int __xsubi[3],
struct drand48_data *__restrict __buffer,
double *__restrict __result) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int lrand48_r (struct drand48_data *__restrict __buffer,
long int *__restrict __result)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
extern int nrand48_r (unsigned short int __xsubi[3],
struct drand48_data *__restrict __buffer,
long int *__restrict __result)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int mrand48_r (struct drand48_data *__restrict __buffer,
long int *__restrict __result)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
extern int jrand48_r (unsigned short int __xsubi[3],
struct drand48_data *__restrict __buffer,
long int *__restrict __result)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int srand48_r (long int __seedval, struct drand48_data *__buffer)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern int seed48_r (unsigned short int __seed16v[3],

       struct drand48_data *__buffer) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int lcong48_r (unsigned short int __param[7],
struct drand48_data *__buffer)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
# 474 "/usr/arm-linux-gnueabi/include/stdlib.h" 3

extern void *realloc (void *__ptr, size_t __size)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));

extern void cfree (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));

# 1 "/usr/arm-linux-gnueabi/include/alloca.h" 1 3
# 24 "/usr/arm-linux-gnueabi/include/alloca.h" 3
# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 1 3 4 # 25 "/usr/arm-linux-gnueabi/include/alloca.h" 2 3

extern void *alloca (size_t __size) __attribute__ ((__nothrow__ , __leaf__));

# 493 "/usr/arm-linux-gnueabi/include/stdlib.h" 2 3

extern void *valloc (size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));

extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern void *aligned_alloc (size_t __alignment, size_t __size)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__));

extern void abort (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));

extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int at_quick_exit (void (*__func) (void)) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern void exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));

extern void quick_exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));

extern void _Exit (int __status) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__));

extern char *getenv (const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

# 578 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
extern int putenv (char *__string) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int setenv (const char *__name, const char *__value, int __replace)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern int unsetenv (const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int clearenv (void) __attribute__ ((__nothrow__ , __leaf__));
# 606 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
extern char *mktemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
# 619 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));
# 641 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 662 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 711 "/usr/arm-linux-gnueabi/include/stdlib.h" 3

extern int system (const char *__command) __attribute__ ((__warn_unused_result__));

# 733 "/usr/arm-linux-gnueabi/include/stdlib.h" 3 extern char *realpath (const char *__restrict __name,

         char *__restrict __resolved) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

typedef int (*__compar_fn_t) (const void *, const void *); # 751 "/usr/arm-linux-gnueabi/include/stdlib.h" 3

extern void *bsearch (const void *__key, const void *__base,

        size_t __nmemb, size_t __size, __compar_fn_t __compar)
     __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__));

# 1 "/usr/arm-linux-gnueabi/include/bits/stdlib-bsearch.h" 1 3
# 19 "/usr/arm-linux-gnueabi/include/bits/stdlib-bsearch.h" 3 extern __inline __attribute__ ((__gnu_inline__)) void *
bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,
__compar_fn_t __compar)
{
size_t __l, __u, __idx;
const void *__p;
int __comparison;

__l = 0;
__u = __nmemb;
while (__l < __u)

    {
      __idx = (__l + __u) / 2;
      __p = (void *) (((const char *) __base) + (__idx * __size));
      __comparison = (*__compar) (__key, __p);
      if (__comparison < 0)
 __u = __idx;
      else if (__comparison > 0)
 __l = __idx + 1;
      else
 return (void *) __p;
    }

return ((void *)0);
}
# 760 "/usr/arm-linux-gnueabi/include/stdlib.h" 2 3

extern void qsort (void *__base, size_t __nmemb, size_t __size,

     __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));

# 774 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
extern int abs (int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); extern long int labs (long int __x) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__));

__extension__ extern long long int llabs (long long int __x)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__));

extern div_t div (int __numer, int __denom)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__));
extern ldiv_t ldiv (long int __numer, long int __denom)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__));

__extension__ extern lldiv_t lldiv (long long int __numer,
long long int __denom)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__));

# 811 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,

     int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__));

extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,

     int *__restrict __sign) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__));

extern char *gcvt (double __value, int __ndigit, char *__buf)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__));

extern char *qecvt (long double __value, int __ndigit,
int *__restrict __decpt, int *__restrict __sign)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__));
extern char *qfcvt (long double __value, int __ndigit,
int *__restrict __decpt, int *__restrict __sign)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__));
extern char *qgcvt (long double __value, int __ndigit, char *__buf)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__));

extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,

     int *__restrict __sign, char *__restrict __buf,
     size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5)));
extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
     int *__restrict __sign, char *__restrict __buf,
     size_t __len) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5)));

extern int qecvt_r (long double __value, int __ndigit,

      int *__restrict __decpt, int *__restrict __sign,
      char *__restrict __buf, size_t __len)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5)));
extern int qfcvt_r (long double __value, int __ndigit,
      int *__restrict __decpt, int *__restrict __sign,
      char *__restrict __buf, size_t __len)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4, 5)));

extern int mblen (const char *__s, size_t __n) __attribute__ ((__nothrow__ , __leaf__));

extern int mbtowc (wchar_t *__restrict __pwc,

     const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__));

extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__ , __leaf__));

extern size_t mbstowcs (wchar_t *__restrict __pwcs,
const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__ , __leaf__));

extern size_t wcstombs (char *__restrict __s,
const wchar_t *__restrict __pwcs, size_t __n)

     __attribute__ ((__nothrow__ , __leaf__));

extern int rpmatch (const char *__response) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); # 898 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
extern int getsubopt (char **__restrict __optionp,

        char *const *__restrict __tokens,
        char **__restrict __valuep)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__));
# 950 "/usr/arm-linux-gnueabi/include/stdlib.h" 3
extern int getloadavg (double __loadavg[], int __nelem)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

# 1 "/usr/arm-linux-gnueabi/include/bits/stdlib-float.h" 1 3 # 24 "/usr/arm-linux-gnueabi/include/bits/stdlib-float.h" 3

extern __inline __attribute__ ((__gnu_inline__)) double __attribute__ ((__nothrow__ , __leaf__)) atof (const char *__nptr) {
return strtod (__nptr, (char **) ((void *)0));
}

# 955 "/usr/arm-linux-gnueabi/include/stdlib.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/stdlib.h" 1 3
# 23 "/usr/arm-linux-gnueabi/include/bits/stdlib.h" 3
extern char *__realpath_chk (const char *__restrict __name,
char *__restrict __resolved,
size_t __resolvedlen) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) __asm__ ("" "realpath") __attribute__ ((__nothrow__ , __leaf__))

                                                 __attribute__ ((__warn_unused_result__));

extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) __asm__ ("" "__realpath_chk") __attribute__ ((__nothrow__ , __leaf__))

                                                __attribute__ ((__warn_unused_result__))
     __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer")))
                                      ;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * __attribute__ ((__nothrow__ , __leaf__)) realpath (const char *__restrict __name, char *__restrict __resolved)
{
if (__builtin_object_size (__resolved, 2 > 1) != (size_t) -1)

    {




      return __realpath_chk (__name, __resolved, __builtin_object_size (__resolved, 2 > 1));
    }

return __realpath_alias (__name, __resolved);
}

extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen,

       size_t __nreal) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) __asm__ ("" "ptsname_r") __attribute__ ((__nothrow__ , __leaf__))

     __attribute__ ((__nonnull__ (2)));

extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__ptsname_r_chk") __attribute__ ((__nothrow__ , __leaf__))

     __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf")))
                   ;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) ptsname_r (int __fd, char *__buf, size_t __buflen)
{
if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__buflen))
 return __ptsname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1));
      if (__buflen > __builtin_object_size (__buf, 2 > 1))
 return __ptsname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1));
    }

return __ptsname_r_alias (__fd, __buf, __buflen);
}

extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));
extern int __wctomb_alias (char *__s, wchar_t __wchar) __asm__ ("" "wctomb") __attribute__ ((__nothrow__ , __leaf__))

              __attribute__ ((__warn_unused_result__));

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int __attribute__ ((__nothrow__ , __leaf__)) wctomb (char *__s, wchar_t __wchar)
{

if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 && 16 > __builtin_object_size (__s, 2 > 1))

    return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1));

return __wctomb_alias (__s, __wchar);
}

extern size_t __mbstowcs_chk (wchar_t *__restrict __dst,
const char *__restrict __src,
size_t __len, size_t __dstlen) __attribute__ ((__nothrow__ , __leaf__));
extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) __asm__ ("" "mbstowcs") __attribute__ ((__nothrow__ , __leaf__))

                                  ;

extern size_t __mbstowcs_chk_warn (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len, size_t __dstlen) __asm__ ("" "__mbstowcs_chk") __attribute__ ((__nothrow__ , __leaf__))

__attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__nothrow__ , __leaf__)) mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len)

{
if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__len))
 return __mbstowcs_chk (__dst, __src, __len,
          __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t));

      if (__len > __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t))
 return __mbstowcs_chk_warn (__dst, __src, __len,
         __builtin_object_size (__dst, 2 > 1) / sizeof (wchar_t));
    }

return __mbstowcs_alias (__dst, __src, __len);
}

extern size_t __wcstombs_chk (char *__restrict __dst,
const wchar_t *__restrict __src,
size_t __len, size_t __dstlen) __attribute__ ((__nothrow__ , __leaf__));
extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) __asm__ ("" "wcstombs") __attribute__ ((__nothrow__ , __leaf__))

                                  ;

extern size_t __wcstombs_chk_warn (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len, size_t __dstlen) __asm__ ("" "__wcstombs_chk") __attribute__ ((__nothrow__ , __leaf__))

     __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len")));

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t __attribute__ ((__nothrow__ , __leaf__)) wcstombs (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len)

{
if (__builtin_object_size (__dst, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__len))
 return __wcstombs_chk (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1));
      if (__len > __builtin_object_size (__dst, 2 > 1))
 return __wcstombs_chk_warn (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1));
    }

return __wcstombs_alias (__dst, __src, __len);
}
# 959 "/usr/arm-linux-gnueabi/include/stdlib.h" 2 3 # 967 "/usr/arm-linux-gnueabi/include/stdlib.h" 3

# 42 "../../../../include/test.h" 2
# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stdint.h" 1 3 4 # 9 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stdint.h" 3 4 # 1 "/usr/arm-linux-gnueabi/include/stdint.h" 1 3 4
# 26 "/usr/arm-linux-gnueabi/include/stdint.h" 3 4
# 1 "/usr/arm-linux-gnueabi/include/bits/wchar.h" 1 3 4 # 27 "/usr/arm-linux-gnueabi/include/stdint.h" 2 3 4
# 1 "/usr/arm-linux-gnueabi/include/bits/wordsize.h" 1 3 4 # 28 "/usr/arm-linux-gnueabi/include/stdint.h" 2 3 4
# 48 "/usr/arm-linux-gnueabi/include/stdint.h" 3 4 typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;

typedef unsigned int uint32_t;

__extension__
typedef unsigned long long int uint64_t;

typedef signed char int_least8_t;
typedef short int int_least16_t;
typedef int int_least32_t;

__extension__
typedef long long int int_least64_t;

typedef unsigned char uint_least8_t;
typedef unsigned short int uint_least16_t;
typedef unsigned int uint_least32_t;

__extension__
typedef unsigned long long int uint_least64_t;

typedef signed char int_fast8_t;

typedef int int_fast16_t;
typedef int int_fast32_t;
__extension__
typedef long long int int_fast64_t;

typedef unsigned char uint_fast8_t;

typedef unsigned int uint_fast16_t;
typedef unsigned int uint_fast32_t;
__extension__
typedef unsigned long long int uint_fast64_t;
# 128 "/usr/arm-linux-gnueabi/include/stdint.h" 3 4 typedef unsigned int uintptr_t;
# 137 "/usr/arm-linux-gnueabi/include/stdint.h" 3 4 __extension__
typedef long long int intmax_t;
__extension__
typedef unsigned long long int uintmax_t;
# 10 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stdint.h" 2 3 4 # 43 "../../../../include/test.h" 2

# 1 "../../../../include/compiler.h" 1
# 45 "../../../../include/test.h" 2

# 1 "../../../../include/usctest.h" 1
# 37 "../../../../include/usctest.h"
# 1 "/usr/arm-linux-gnueabi/include/sys/param.h" 1 3
# 23 "/usr/arm-linux-gnueabi/include/sys/param.h" 3
# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 1 3 4 # 24 "/usr/arm-linux-gnueabi/include/sys/param.h" 2 3

# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed/limits.h" 1 3 4 # 34 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed/limits.h" 3 4 # 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed/syslimits.h" 1 3 4

# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed/limits.h" 1 3 4 # 168 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed/limits.h" 3 4 # 1 "/usr/arm-linux-gnueabi/include/limits.h" 1 3 4
# 143 "/usr/arm-linux-gnueabi/include/limits.h" 3 4
# 1 "/usr/arm-linux-gnueabi/include/bits/posix1_lim.h" 1 3 4 # 160 "/usr/arm-linux-gnueabi/include/bits/posix1_lim.h" 3 4 # 1 "/usr/arm-linux-gnueabi/include/bits/local_lim.h" 1 3 4
# 38 "/usr/arm-linux-gnueabi/include/bits/local_lim.h" 3 4
# 1 "/usr/arm-linux-gnueabi/include/linux/limits.h" 1 3 4
# 39 "/usr/arm-linux-gnueabi/include/bits/local_lim.h" 2 3 4 # 161 "/usr/arm-linux-gnueabi/include/bits/posix1_lim.h" 2 3 4 # 144 "/usr/arm-linux-gnueabi/include/limits.h" 2 3 4

# 1 "/usr/arm-linux-gnueabi/include/bits/posix2_lim.h" 1 3 4
# 148 "/usr/arm-linux-gnueabi/include/limits.h" 2 3 4
# 169 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed/limits.h" 2 3 4 # 8 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed/syslimits.h" 2 3 4 # 35 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include-fixed/limits.h" 2 3 4 # 27 "/usr/arm-linux-gnueabi/include/sys/param.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/param.h" 1 3 # 28 "/usr/arm-linux-gnueabi/include/bits/param.h" 3 # 1 "/usr/arm-linux-gnueabi/include/linux/param.h" 1 3

# 1 "/usr/arm-linux-gnueabi/include/asm/param.h" 1 3 # 1 "/usr/arm-linux-gnueabi/include/asm-generic/param.h" 1 3 # 1 "/usr/arm-linux-gnueabi/include/asm/param.h" 2 3 # 5 "/usr/arm-linux-gnueabi/include/linux/param.h" 2 3 # 29 "/usr/arm-linux-gnueabi/include/bits/param.h" 2 3 # 32 "/usr/arm-linux-gnueabi/include/sys/param.h" 2 3 # 38 "../../../../include/usctest.h" 2
# 54 "../../../../include/usctest.h"

# 54 "../../../../include/usctest.h"
extern int STD_LOOP_COUNT;

extern long TEST_RETURN;
extern int TEST_ERRNO;
# 96 "../../../../include/usctest.h"
int usc_global_setup_hook();
# 105 "../../../../include/usctest.h"
int usc_test_looping(int counter);
# 47 "../../../../include/test.h" 2

# 1 "../../../../include/safe_file_ops.h" 1 # 37 "../../../../include/safe_file_ops.h"
# 1 "/usr/arm-linux-gnueabi/include/sys/stat.h" 1 3 # 36 "/usr/arm-linux-gnueabi/include/sys/stat.h" 3 # 1 "/usr/arm-linux-gnueabi/include/time.h" 1 3 # 37 "/usr/arm-linux-gnueabi/include/sys/stat.h" 2 3 # 102 "/usr/arm-linux-gnueabi/include/sys/stat.h" 3

# 1 "/usr/arm-linux-gnueabi/include/bits/stat.h" 1 3 # 38 "/usr/arm-linux-gnueabi/include/bits/stat.h" 3

# 38 "/usr/arm-linux-gnueabi/include/bits/stat.h" 3 struct stat

  {
    __dev_t st_dev;
    unsigned short int __pad1;

    __ino_t st_ino;



    __mode_t st_mode;
    __nlink_t st_nlink;
    __uid_t st_uid;
    __gid_t st_gid;
    __dev_t st_rdev;
    unsigned short int __pad2;

    __off_t st_size;



    __blksize_t st_blksize;


    __blkcnt_t st_blocks;
# 72 "/usr/arm-linux-gnueabi/include/bits/stat.h" 3
    struct timespec st_atim;
    struct timespec st_mtim;
    struct timespec st_ctim;
# 87 "/usr/arm-linux-gnueabi/include/bits/stat.h" 3
    unsigned long int __glibc_reserved4;
    unsigned long int __glibc_reserved5;

};
# 105 "/usr/arm-linux-gnueabi/include/sys/stat.h" 2 3
# 208 "/usr/arm-linux-gnueabi/include/sys/stat.h" 3
extern int stat (const char *__restrict __file,
struct stat *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int fstat (int __fd, struct stat *__buf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))); # 237 "/usr/arm-linux-gnueabi/include/sys/stat.h" 3
extern int fstatat (int __fd, const char *__restrict __file,
struct stat *__restrict __buf, int __flag)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3)));
# 262 "/usr/arm-linux-gnueabi/include/sys/stat.h" 3
extern int lstat (const char *__restrict __file,

    struct stat *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
# 283 "/usr/arm-linux-gnueabi/include/sys/stat.h" 3
extern int chmod (const char *__file, __mode_t __mode)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int lchmod (const char *__file, __mode_t __mode)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int fchmod (int __fd, __mode_t __mode) __attribute__ ((__nothrow__ , __leaf__));

extern int fchmodat (int __fd, const char *__file, __mode_t __mode,

       int __flag)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__));

extern __mode_t umask (__mode_t __mask) __attribute__ ((__nothrow__ , __leaf__)); # 320 "/usr/arm-linux-gnueabi/include/sys/stat.h" 3
extern int mkdir (const char *__path, __mode_t __mode)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int mkdirat (int __fd, const char *__path, __mode_t __mode)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern int mknod (const char *__path, __mode_t __mode, __dev_t __dev)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int mknodat (int __fd, const char *__path, __mode_t __mode,

      __dev_t __dev) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern int mkfifo (const char *__path, __mode_t __mode)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int mkfifoat (int __fd, const char *__path, __mode_t __mode)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern int utimensat (int __fd, const char *__path,
const struct timespec __times[2],
int __flags)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern int futimens (int __fd, const struct timespec __times[2]) __attribute__ ((__nothrow__ , __leaf__)); # 398 "/usr/arm-linux-gnueabi/include/sys/stat.h" 3
extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3)));
extern int __xstat (int __ver, const char *__filename,
      struct stat *__stat_buf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3)));
extern int __lxstat (int __ver, const char *__filename,
       struct stat *__stat_buf) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3)));

extern int __fxstatat (int __ver, int __fildes, const char *__filename,
struct stat *__stat_buf, int __flag)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 4)));
# 441 "/usr/arm-linux-gnueabi/include/sys/stat.h" 3
extern int __xmknod (int __ver, const char *__path, __mode_t __mode,

       __dev_t *__dev) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 4)));

extern int __xmknodat (int __ver, int __fd, const char *__path,

         __mode_t __mode, __dev_t *__dev)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3, 5)));

extern __inline __attribute__ ((__gnu_inline__)) int
__attribute__ ((__nothrow__ , __leaf__)) stat (const char *__path, struct stat *__statbuf) {
return __xstat (3, __path, __statbuf);
}

extern __inline __attribute__ ((__gnu_inline__)) int
__attribute__ ((__nothrow__ , __leaf__)) lstat (const char *__path, struct stat *__statbuf) {
return __lxstat (3, __path, __statbuf);
}

extern __inline __attribute__ ((__gnu_inline__)) int
__attribute__ ((__nothrow__ , __leaf__)) fstat (int __fd, struct stat *__statbuf) {
return __fxstat (3, __fd, __statbuf);
}

extern __inline __attribute__ ((__gnu_inline__)) int
__attribute__ ((__nothrow__ , __leaf__)) fstatat (int __fd, const char *__filename, struct stat *__statbuf, int __flag)

{
return __fxstatat (3, __fd, __filename, __statbuf, __flag);
}

extern __inline __attribute__ ((__gnu_inline__)) int
__attribute__ ((__nothrow__ , __leaf__)) mknod (const char *__path, __mode_t __mode, __dev_t __dev) {
return __xmknod (1, __path, __mode, &__dev);
}

extern __inline __attribute__ ((__gnu_inline__)) int
__attribute__ ((__nothrow__ , __leaf__)) mknodat (int __fd, const char *__path, __mode_t __mode, __dev_t __dev)

{
return __xmknodat (1, __fd, __path, __mode, &__dev);
}
# 533 "/usr/arm-linux-gnueabi/include/sys/stat.h" 3

# 38 "../../../../include/safe_file_ops.h" 2

# 1 "../../../../include/lapi/utime.h" 1
# 40 "../../../../include/safe_file_ops.h" 2
# 1 "../../../../include/test.h" 1
# 41 "../../../../include/safe_file_ops.h" 2

# 45 "../../../../include/safe_file_ops.h" int file_scanf(const char *file, const int lineno,
const char *path, const char *fmt, ...) __attribute__ ((format (scanf, 4, 5)));

void safe_file_scanf(const char *file, const int lineno,

                     void (*cleanup_fn)(void),
       const char *path, const char *fmt, ...)
       __attribute__ ((format (scanf, 5, 6)));

# 65 "../../../../include/safe_file_ops.h"
int file_printf(const char *file, const int lineno,
const char *path, const char *fmt, ...) __attribute__ ((format (printf, 4, 5)));

void safe_file_printf(const char *file, const int lineno,

                      void (*cleanup_fn)(void),
                      const char *path, const char *fmt, ...)
                      __attribute__ ((format (printf, 5, 6)));
# 85 "../../../../include/safe_file_ops.h"
void safe_cp(const char *file, const int lineno,
             void (*cleanup_fn)(void),
      const char *src, const char *dst);

# 104 "../../../../include/safe_file_ops.h"
void safe_touch(const char *file, const int lineno,
void (*cleanup_fn)(void),
const char *pathname,
mode_t mode, const struct timespec times[2]);
# 49 "../../../../include/test.h" 2
# 1 "../../../../include/tst_checkpoint.h" 1
# 48 "../../../../include/tst_checkpoint.h"
void tst_checkpoint_init(const char *file, const int lineno,

    void (*cleanup_fn)(void));

# 59 "../../../../include/tst_checkpoint.h"
int tst_checkpoint_wait(unsigned int id, unsigned int msec_timeout); # 68 "../../../../include/tst_checkpoint.h"
int tst_checkpoint_wake(unsigned int id, unsigned int nr_wake,

                        unsigned int msec_timeout);

void tst_safe_checkpoint_wait(const char *file, const int lineno,

                              void (*cleanup_fn)(void), unsigned int id);

void tst_safe_checkpoint_wake(const char *file, const int lineno,
void (*cleanup_fn)(void), unsigned int id, unsigned int nr_wake);
# 50 "../../../../include/test.h" 2
# 1 "../../../../include/tst_process_state.h" 1
# 52 "../../../../include/tst_process_state.h"
void tst_process_state_wait(const char *file, const int lineno,

                            void (*cleanup_fn)(void),
                            pid_t pid, const char state);

# 63 "../../../../include/tst_process_state.h" int tst_process_state_wait2(pid_t pid, const char state); # 51 "../../../../include/test.h" 2
# 1 "../../../../include/tst_resource.h" 1
# 44 "../../../../include/tst_resource.h"
const char *tst_dataroot(void);
# 53 "../../../../include/tst_resource.h"
void tst_resource_copy(const char *file, const int lineno,

                       void (*cleanup_fn)(void),
         const char *filename, const char *dest);

# 52 "../../../../include/test.h" 2
# 1 "../../../../include/tst_res_flags.h" 1 # 53 "../../../../include/test.h" 2
# 1 "../../../../include/tst_timer.h" 1
# 34 "../../../../include/tst_timer.h"
# 1 "/usr/arm-linux-gnueabi/include/sys/time.h" 1 3 # 25 "/usr/arm-linux-gnueabi/include/sys/time.h" 3 # 1 "/usr/arm-linux-gnueabi/include/time.h" 1 3 # 26 "/usr/arm-linux-gnueabi/include/sys/time.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/time.h" 1 3 # 28 "/usr/arm-linux-gnueabi/include/sys/time.h" 2 3 # 37 "/usr/arm-linux-gnueabi/include/sys/time.h" 3

# 55 "/usr/arm-linux-gnueabi/include/sys/time.h" 3

# 55 "/usr/arm-linux-gnueabi/include/sys/time.h" 3 struct timezone

  {
    int tz_minuteswest;
    int tz_dsttime;

};

typedef struct timezone *__restrict __timezone_ptr_t; # 71 "/usr/arm-linux-gnueabi/include/sys/time.h" 3 extern int gettimeofday (struct timeval *__restrict __tv,

    __timezone_ptr_t __tz) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int settimeofday (const struct timeval *__tv,
const struct timezone *__tz)
__attribute__ ((__nothrow__ , __leaf__));

extern int adjtime (const struct timeval *__delta,

      struct timeval *__olddelta) __attribute__ ((__nothrow__ , __leaf__));

enum __itimer_which
{

ITIMER_REAL = 0,

ITIMER_VIRTUAL = 1,

ITIMER_PROF = 2

  };

struct itimerval
{

    struct timeval it_interval;

    struct timeval it_value;

};

typedef int __itimer_which_t;

extern int getitimer (__itimer_which_t __which,

        struct itimerval *__value) __attribute__ ((__nothrow__ , __leaf__));

extern int setitimer (__itimer_which_t __which,
const struct itimerval *__restrict __new,
struct itimerval *__restrict __old) __attribute__ ((__nothrow__ , __leaf__));

extern int utimes (const char *__file, const struct timeval __tvp[2])

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int lutimes (const char *__file, const struct timeval __tvp[2])

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int futimes (int __fd, const struct timeval __tvp[2]) __attribute__ ((__nothrow__ , __leaf__)); # 189 "/usr/arm-linux-gnueabi/include/sys/time.h" 3

# 35 "../../../../include/tst_timer.h" 2
# 1 "/usr/arm-linux-gnueabi/include/time.h" 1 3
# 29 "/usr/arm-linux-gnueabi/include/time.h" 3

# 1 "/usr/lib/gcc-cross/arm-linux-gnueabi/5/include/stddef.h" 1 3 4 # 38 "/usr/arm-linux-gnueabi/include/time.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/time.h" 1 3 # 42 "/usr/arm-linux-gnueabi/include/time.h" 2 3 # 131 "/usr/arm-linux-gnueabi/include/time.h" 3

struct tm
{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;

long int tm_gmtoff;
const char *tm_zone;

};

struct itimerspec

  {
    struct timespec it_interval;
    struct timespec it_value;

};

struct sigevent;
# 186 "/usr/arm-linux-gnueabi/include/time.h" 3

extern clock_t clock (void) __attribute__ ((__nothrow__ , __leaf__));

extern time_t time (time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));

extern double difftime (time_t __time1, time_t __time0)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));

extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));

extern size_t strftime (char *__restrict __s, size_t __maxsize,
const char *__restrict __format,
const struct tm *__restrict __tp) __attribute__ ((__nothrow__ , __leaf__));

# 223 "/usr/arm-linux-gnueabi/include/time.h" 3
extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
const char *__restrict __format,
const struct tm *__restrict __tp,
__locale_t __loc) __attribute__ ((__nothrow__ , __leaf__));
# 236 "/usr/arm-linux-gnueabi/include/time.h" 3

extern struct tm *gmtime (const time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));

extern struct tm *localtime (const time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));

extern struct tm *gmtime_r (const time_t *__restrict __timer,

       struct tm *__restrict __tp) __attribute__ ((__nothrow__ , __leaf__));

extern struct tm *localtime_r (const time_t *__restrict __timer,

          struct tm *__restrict __tp) __attribute__ ((__nothrow__ , __leaf__));

extern char *asctime (const struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));

extern char *ctime (const time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));

extern char *asctime_r (const struct tm *__restrict __tp,
char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__));

extern char *ctime_r (const time_t *__restrict __timer,

        char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__));

extern char *__tzname[2];
extern int __daylight;
extern long int __timezone;

extern char *tzname[2];

extern void tzset (void) __attribute__ ((__nothrow__ , __leaf__));

extern int daylight;
extern long int timezone;

extern int stime (const time_t *__when) __attribute__ ((__nothrow__ , __leaf__)); # 319 "/usr/arm-linux-gnueabi/include/time.h" 3
extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));

extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));

extern int dysize (int __year) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); # 334 "/usr/arm-linux-gnueabi/include/time.h" 3
extern int nanosleep (const struct timespec *__requested_time,

        struct timespec *__remaining);

extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__ , __leaf__));

extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__ , __leaf__));

extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp)

     __attribute__ ((__nothrow__ , __leaf__));

extern int clock_nanosleep (clockid_t __clock_id, int __flags,
const struct timespec *__req,
struct timespec *__rem);

extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__ , __leaf__));

extern int timer_create (clockid_t __clock_id,
struct sigevent *__restrict __evp,
timer_t *__restrict __timerid) __attribute__ ((__nothrow__ , __leaf__));

extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__ , __leaf__));

extern int timer_settime (timer_t __timerid, int __flags,
const struct itimerspec *__restrict __value,
struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__ , __leaf__));

extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)

     __attribute__ ((__nothrow__ , __leaf__));

extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__ , __leaf__));

extern int timespec_get (struct timespec *__ts, int __base)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

# 430 "/usr/arm-linux-gnueabi/include/time.h" 3

# 36 "../../../../include/tst_timer.h" 2

# 40 "../../../../include/tst_timer.h"
static inline long long tst_timespec_to_us(struct timespec t) {
return t.tv_sec * 1000000 + (t.tv_nsec + 500) / 1000;
}

static inline long long tst_timespec_to_ms(struct timespec t) {
return t.tv_sec * 1000 + (t.tv_nsec + 500000) / 1000000;
}

static inline struct timeval tst_ms_to_timeval(long long ms) {
struct timeval ret;

ret.tv_sec = ms / 1000;
ret.tv_usec = (ms % 1000) * 1000;

return ret;
}

static inline struct timeval tst_us_to_timeval(long long us) {
struct timeval ret;

ret.tv_sec = us / 1000000;
ret.tv_usec = us % 1000000;

return ret;
}

static inline int tst_timespec_lt(struct timespec t1, struct timespec t2) {
if (t1.tv_sec == t2.tv_sec)
return t1.tv_nsec < t2.tv_nsec;

return t1.tv_sec < t2.tv_sec;
}

static inline struct timespec tst_timespec_add_us(struct timespec t,
long long us)
{
t.tv_sec += us / 1000000;
t.tv_nsec += (us % 1000000) * 1000;

if (t.tv_nsec >= 1000000000) {
t.tv_sec++;
t.tv_nsec -= 1000000000;
}

return t;
}

static inline struct timespec tst_timespec_diff(struct timespec t1,
struct timespec t2)
{
struct timespec res;

res.tv_sec = t1.tv_sec - t2.tv_sec;

if (t1.tv_nsec < t2.tv_nsec) {
res.tv_sec--;
res.tv_nsec = 1000000000 - (t2.tv_nsec - t1.tv_nsec);
} else {
res.tv_nsec = t1.tv_nsec - t2.tv_nsec;
}

return res;
}

static inline long long tst_timespec_diff_us(struct timespec t1,
struct timespec t2)
{
return tst_timespec_to_us(tst_timespec_diff(t1, t2));
}

static inline long long tst_timespec_diff_ms(struct timespec t1,
struct timespec t2)
{
return tst_timespec_to_ms(tst_timespec_diff(t1, t2));
}

static inline struct timespec tst_timespec_abs_diff(struct timespec t1,
struct timespec t2)
{
if (tst_timespec_lt(t1, t2))
return tst_timespec_diff(t2, t1);
else
return tst_timespec_diff(t1, t2);
}

static inline long long tst_timespec_abs_diff_us(struct timespec t1,
struct timespec t2)

{
       return tst_timespec_to_us(tst_timespec_abs_diff(t1, t2));
}

static inline long long tst_timespec_abs_diff_ms(struct timespec t1,
struct timespec t2)

{
       return tst_timespec_to_ms(tst_timespec_abs_diff(t1, t2));
}

# 171 "../../../../include/tst_timer.h"
void tst_timer_check(clockid_t clk_id);

void tst_timer_start(clockid_t clk_id);

void tst_timer_stop(void);

struct timespec tst_timer_elapsed(void);

static inline long long tst_timer_elapsed_ms(void) {
return tst_timespec_to_ms(tst_timer_elapsed());
}

static inline long long tst_timer_elapsed_us(void) {
return tst_timespec_to_us(tst_timer_elapsed());
}
# 54 "../../../../include/test.h" 2
# 120 "../../../../include/test.h"
extern int Forker_pids[];
extern int Forker_npids;

typedef struct {
char *option;
int *flag;
char **arg;
} option_t;

void tst_parse_opts(int argc, char *argv[], const option_t *user_optarg,

                    void (*user_help)(void));

const char *strttype(int ttype);
void tst_res_(const char *file, const int lineno, int ttype,
const char *fname, const char *arg_fmt, ...) __attribute__ ((format (printf, 5, 6)));

void tst_resm_(const char *file, const int lineno, int ttype,
const char *arg_fmt, ...)
__attribute__ ((format (printf, 4, 5)));

void tst_resm_hexd_(const char *file, const int lineno, int ttype,
const void *buf, size_t size, const char *arg_fmt, ...) __attribute__ ((format (printf, 6, 7)));

void tst_brk_(const char *file, const int lineno, int ttype,
const char *fname, void (*func)(void), const char *arg_fmt, ...) __attribute__ ((format (printf, 6, 7)));

void tst_brkm_(const char *file, const int lineno, int ttype,
void (*func)(void), const char *arg_fmt, ...) __attribute__ ((format (printf, 5, 6))) __attribute__((noreturn));

void tst_require_root(void);
int tst_environ(void);
void tst_exit(void) __attribute__((noreturn));
void tst_flush(void);

pid_t tst_fork(void);
# 195 "../../../../include/test.h"
void tst_record_childstatus(void (*cleanup)(void), pid_t child);

extern int tst_count;

void tst_sig(int fork_flag, void (*handler)(), void (*cleanup)()); # 215 "../../../../include/test.h"
void tst_tmpdir(void);

void tst_rmdir(void);

char *tst_get_tmpdir(void);

int tst_tmpdir_created(void);

char *get_high_address(void);

void tst_getkver(int *k1, int *k2, int *k3);
int tst_kvercmp(int r1, int r2, int r3);

struct tst_kern_exv {
char *dist_name;
char *extra_ver;
};

int tst_kvercmp2(int r1, int r2, int r3, struct tst_kern_exv *vers);

enum {
TST_BYTES = 1,
TST_KB = 1024,
TST_MB = 1048576,
TST_GB = 1073741824,
};

int tst_fs_has_free(void (*cleanup)(void), const char *path,

      unsigned int size, unsigned int mult);

int tst_is_virt(int virt_type);

void maybe_run_child(void (*child)(), const char *fmt, ...); int self_exec(const char *argv0, const char *fmt, ...);

int ltp_clone(unsigned long flags, int (*fn)(void *arg), void *arg,
size_t stack_size, void *stack);
int ltp_clone7(unsigned long flags, int (*fn)(void *arg), void *arg,
size_t stack_size, void *stack, ...);
int ltp_clone_malloc(unsigned long clone_flags, int (*fn)(void *arg),
void *arg, size_t stacksize);
int ltp_clone_quick(unsigned long clone_flags, int (*fn)(void *arg),
void *arg);

int tst_get_path(const char *prog_name, char *buf, size_t buf_len);

long tst_ncpus(void);
long tst_ncpus_conf(void);
long tst_ncpus_max(void);
# 304 "../../../../include/test.h"
int tst_run_cmd_fds(void (cleanup_fn)(void),
const char *const argv[],
int stdout_fd,
int stderr_fd,
int pass_exit_val);
# 319 "../../../../include/test.h"
int tst_run_cmd(void (cleanup_fn)(void),
const char *const argv[],
const char *stdout_path,
const char *stderr_path,
int pass_exit_val);

int tst_system(const char *command);

void tst_mkfs(void (cleanup_fn)(void), const char *dev,

       const char *fs_type, const char *const fs_opts[]);

# 347 "../../../../include/test.h"
const char *tst_dev_fs_type(void);
# 364 "../../../../include/test.h"
const char *tst_acquire_device(void (cleanup_fn)(void));

void tst_release_device(void (cleanup_fn)(void), const char *dev);

int tst_umount(const char *path);
# 386 "../../../../include/test.h"
int tst_fill_file(const char *path, char pattern, size_t bs, size_t bcount);

unsigned short tst_get_unused_port(void (cleanup_fn)(void),
unsigned short family, int type);

const char *tst_strsig(int sig);
const char *tst_strerrno(int err);
# 411 "../../../../include/test.h"
int tst_path_has_mnt_flags(void (cleanup_fn)(void),
const char *path, const char *flags[]);
# 432 "../../../../include/test.h"
int tst_fs_fill_hardlinks(void (*cleanup) (void), const char *dir); # 453 "../../../../include/test.h"
int tst_fs_fill_subdirs(void (*cleanup) (void), const char *dir);

pid_t tst_get_unused_pid(void (*cleanup_fn) (void));

int tst_get_free_pids(void (*cleanup_fn) (void));
# 6 "set_thread_area.h" 2
# 1 "/home/yury/work/ltp/testcases/kernel/include/linux_syscall_numbers.h" 1 # 16 "/home/yury/work/ltp/testcases/kernel/include/linux_syscall_numbers.h" # 1 "/usr/arm-linux-gnueabi/include/errno.h" 1 3
# 17 "/home/yury/work/ltp/testcases/kernel/include/linux_syscall_numbers.h" 2 # 1 "/usr/arm-linux-gnueabi/include/sys/syscall.h" 1 3
# 24 "/usr/arm-linux-gnueabi/include/sys/syscall.h" 3
# 1 "/usr/arm-linux-gnueabi/include/asm/unistd.h" 1 3
# 25 "/usr/arm-linux-gnueabi/include/sys/syscall.h" 2 3

# 1 "/usr/arm-linux-gnueabi/include/bits/syscall.h" 1 3
# 32 "/usr/arm-linux-gnueabi/include/sys/syscall.h" 2 3
# 18 "/home/yury/work/ltp/testcases/kernel/include/linux_syscall_numbers.h" 2 # 1 "../../../../include/cleanup.c" 1
# 38 "../../../../include/cleanup.c"
static void dummy_cleanup(void) __attribute__ ((unused));

static void dummy_cleanup(void)
{
}
# 19 "/home/yury/work/ltp/testcases/kernel/include/linux_syscall_numbers.h" 2 # 7 "set_thread_area.h" 2
# 1 "../../../../include/config.h" 1
# 8 "set_thread_area.h" 2

# 1 "/usr/arm-linux-gnueabi/include/linux/unistd.h" 1 3 # 11 "set_thread_area.h" 2
# 1 "/usr/include/asm/ldt.h" 1 3 4
# 20 "/usr/include/asm/ldt.h" 3 4

# 20 "/usr/include/asm/ldt.h" 3 4
struct user_desc {
unsigned int entry_number;
unsigned int base_addr;
unsigned int limit;
unsigned int seg_32bit:1;
unsigned int contents:2;
unsigned int read_exec_only:1;
unsigned int limit_in_pages:1;
unsigned int seg_not_present:1;
unsigned int useable:1;
# 40 "/usr/include/asm/ldt.h" 3 4
};
# 12 "set_thread_area.h" 2

# 14 "set_thread_area.h"
typedef struct user_desc thread_area_s;
# 23 "set_thread_area01.c" 2

char *TCID = "set_thread_area_01";
int TST_TOTAL = 6;

static void cleanup(void)
{
}

static void setup(void)
{
usc_global_setup_hook();;
}

struct test {
int syscall;
thread_area_s *u_info;
int exp_ret;
int exp_errno;
};

static struct user_desc u_info1 = {.entry_number = -1 }; static struct user_desc u_info2 = {.entry_number = -2 };

static struct test tests[] = {
{-1, &u_info1, 0, 0},
{-1, &u_info1, 0, 0},
{-1, &u_info2, -1,
# 58 "set_thread_area01.c" 3

                                     22
# 58 "set_thread_area01.c"
                                           },
 {-1, &u_info2, -1, 
# 59 "set_thread_area01.c" 3
                                     22
# 59 "set_thread_area01.c"
                                           },
 {-1, (void *)-9, -1, 
# 60 "set_thread_area01.c" 3
                                       14
# 60 "set_thread_area01.c"
                                             },
 {-1, (void *)-9, -1, 
# 61 "set_thread_area01.c" 3
                                       14
# 61 "set_thread_area01.c"
                                             },
};

static const char *get_name(int syscall)
{
switch (syscall) {
case -1:
return "set_thread_area()";
break;
case -1:
return "get_thread_area()";
break;
default:
return "invalid syscall";
}
}

int main(int argc, char *argv[])
{
int lc, i;

tst_parse_opts(argc, argv,
# 82 "set_thread_area01.c" 3 4

                           ((void *)0)
# 82 "set_thread_area01.c"
                               , 
# 82 "set_thread_area01.c" 3 4
                                 ((void *)0)
# 82 "set_thread_area01.c"
                                     );

setup();

for (lc = 0; usc_test_looping(lc); lc++) {
for (i = 0; i < sizeof(tests) / sizeof(struct test); i++) {
do {
# 88 "set_thread_area01.c" 3
(*__errno_location ())
# 88 "set_thread_area01.c"
= 0; TEST_RETURN = ({ int __ret; if (tests[i].syscall == -1) {
# 88 "set_thread_area01.c" 3
(*__errno_location ())
# 88 "set_thread_area01.c"
=
# 88 "set_thread_area01.c" 3
38
# 88 "set_thread_area01.c"
; __ret = -1; } else { __ret = syscall(tests[i].syscall, tests[i].u_info); } if (__ret == -1 &&
# 88 "set_thread_area01.c" 3
(*__errno_location ())
# 88 "set_thread_area01.c"
==
# 88 "set_thread_area01.c" 3
38
# 88 "set_thread_area01.c"
) { tst_brkm_("set_thread_area01.c", 88, (32), (dummy_cleanup), ("syscall " "tests[i].syscall" " not supported on your arch"));
# 88 "set_thread_area01.c" 3
(*__errno_location ())
# 88 "set_thread_area01.c"
=
# 88 "set_thread_area01.c" 3
38
# 88 "set_thread_area01.c"
; } __ret; }); TEST_ERRNO =
# 88 "set_thread_area01.c" 3
(*__errno_location ())
# 88 "set_thread_area01.c"
; } while (0);

   if (TEST_RETURN != tests[i].exp_ret) {
    tst_resm_(
                                   "set_thread_area01.c"
# 91 "set_thread_area01.c"
    ,

                                   93
# 91 "set_thread_area01.c"
    , (1), ("%s returned %li expected %i"), get_name(tests[i].syscall), TEST_RETURN, tests[i].exp_ret)

                                    ;
    continue;

}

   if (TEST_ERRNO != tests[i].exp_errno) {
    tst_resm_(
                                  "set_thread_area01.c"
# 98 "set_thread_area01.c"
    ,




                                  103
# 98 "set_thread_area01.c"
    , (1), ("%s failed with %i (%s) expected %i (%s)"), get_name(tests[i].syscall), TEST_ERRNO, strerror(TEST_ERRNO), tests[i].exp_errno, strerror(tests[i].exp_errno))




                                   ;
    continue;

}

tst_resm_(

                                     "set_thread_area01.c"

# 107 "set_thread_area01.c"
,

                                     109

# 107 "set_thread_area01.c"
, (0), ("%s returned %li errno %i (%s)"), get_name(tests[i].syscall), TEST_RETURN, TEST_ERRNO, strerror(TEST_ERRNO))

                                      ;

}
}

cleanup();
tst_exit();
}
-------------- next part --------------
# 1 "set_thread_area01.c"
# 1 "/home/yury/work/ltp/testcases/kernel/syscalls/set_thread_area//" # 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "set_thread_area01.c"
# 22 "set_thread_area01.c"
# 1 "set_thread_area.h" 1
# 1 "/usr/include/stdio.h" 1 3 4
# 27 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/features.h" 1 3 4
# 364 "/usr/include/features.h" 3 4
# 1 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 1 3 4
# 402 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 3 4
# 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 403 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 2 3 4
# 365 "/usr/include/features.h" 2 3 4
# 388 "/usr/include/features.h" 3 4
# 1 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 1 3 4
# 10 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 3 4
# 1 "/usr/include/x86_64-linux-gnu/gnu/stubs-64.h" 1 3 4
# 11 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 2 3 4
# 389 "/usr/include/features.h" 2 3 4
# 28 "/usr/include/stdio.h" 2 3 4

# 1 "/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h" 1 3 4 # 216 "/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h" 3 4

# 216 "/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h" 3 4 typedef long unsigned int size_t;
# 34 "/usr/include/stdio.h" 2 3 4

# 1 "/usr/include/x86_64-linux-gnu/bits/types.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 28 "/usr/include/x86_64-linux-gnu/bits/types.h" 2 3 4

typedef unsigned char __u_char;
typedef unsigned short int __u_short;
typedef unsigned int __u_int;
typedef unsigned long int __u_long;

typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef signed short int __int16_t;
typedef unsigned short int __uint16_t;
typedef signed int __int32_t;
typedef unsigned int __uint32_t;

typedef signed long int __int64_t;
typedef unsigned long int __uint64_t;

typedef long int __quad_t;
typedef unsigned long int __u_quad_t;
# 121 "/usr/include/x86_64-linux-gnu/bits/types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/typesizes.h" 1 3 4 # 122 "/usr/include/x86_64-linux-gnu/bits/types.h" 2 3 4

typedef unsigned long int __dev_t;
typedef unsigned int __uid_t;
typedef unsigned int __gid_t;
typedef unsigned long int __ino_t;
typedef unsigned long int __ino64_t;
typedef unsigned int __mode_t;
typedef unsigned long int __nlink_t;
typedef long int __off_t;
typedef long int __off64_t;
typedef int __pid_t;
typedef struct { int __val[2]; } __fsid_t;
typedef long int __clock_t;
typedef unsigned long int __rlim_t;
typedef unsigned long int __rlim64_t;
typedef unsigned int __id_t;
typedef long int __time_t;
typedef unsigned int __useconds_t;
typedef long int __suseconds_t;

typedef int __daddr_t;
typedef int __key_t;

typedef int __clockid_t;

typedef void * __timer_t;

typedef long int __blksize_t;

typedef long int __blkcnt_t;
typedef long int __blkcnt64_t;

typedef unsigned long int __fsblkcnt_t;
typedef unsigned long int __fsblkcnt64_t;

typedef unsigned long int __fsfilcnt_t;
typedef unsigned long int __fsfilcnt64_t;

typedef long int __fsword_t;

typedef long int __ssize_t;

typedef long int __syscall_slong_t;

typedef unsigned long int __syscall_ulong_t;

typedef __off64_t __loff_t;
typedef __quad_t *__qaddr_t;
typedef char *__caddr_t;

typedef long int __intptr_t;

typedef unsigned int __socklen_t;
# 36 "/usr/include/stdio.h" 2 3 4
# 44 "/usr/include/stdio.h" 3 4
struct _IO_FILE;

typedef struct _IO_FILE FILE;

# 64 "/usr/include/stdio.h" 3 4
typedef struct _IO_FILE __FILE;
# 74 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/libio.h" 1 3 4
# 31 "/usr/include/libio.h" 3 4
# 1 "/usr/include/_G_config.h" 1 3 4
# 15 "/usr/include/_G_config.h" 3 4
# 1 "/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h" 1 3 4 # 16 "/usr/include/_G_config.h" 2 3 4

# 1 "/usr/include/wchar.h" 1 3 4
# 82 "/usr/include/wchar.h" 3 4
typedef struct
{
int __count;
union
{

    unsigned int __wch;



    char __wchb[4];

} __value;
} __mbstate_t;
# 21 "/usr/include/_G_config.h" 2 3 4
typedef struct
{
__off_t __pos;
__mbstate_t __state;
} _G_fpos_t;
typedef struct
{
__off64_t __pos;
__mbstate_t __state;
} _G_fpos64_t;
# 32 "/usr/include/libio.h" 2 3 4
# 49 "/usr/include/libio.h" 3 4
# 1 "/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h" 1 3 4 # 40 "/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h" 3 4 typedef __builtin_va_list __gnuc_va_list;
# 50 "/usr/include/libio.h" 2 3 4
# 144 "/usr/include/libio.h" 3 4
struct _IO_jump_t; struct _IO_FILE;
# 154 "/usr/include/libio.h" 3 4
typedef void _IO_lock_t;

struct _IO_marker {
struct _IO_marker *_next;
struct _IO_FILE *_sbuf;

int _pos;
# 177 "/usr/include/libio.h" 3 4
};

enum __codecvt_result
{
__codecvt_ok,
__codecvt_partial,
__codecvt_error,
__codecvt_noconv
};
# 245 "/usr/include/libio.h" 3 4
struct _IO_FILE {
int _flags;

char* _IO_read_ptr;
char* _IO_read_end;
char* _IO_read_base;
char* _IO_write_base;
char* _IO_write_ptr;
char* _IO_write_end;
char* _IO_buf_base;
char* _IO_buf_end;

char *_IO_save_base;
char *_IO_backup_base;
char *_IO_save_end;

struct _IO_marker *_markers;

struct _IO_FILE *_chain;

int _fileno;

int _flags2;

__off_t _old_offset;

  unsigned short _cur_column;
  signed char _vtable_offset;
  char _shortbuf[1];

_IO_lock_t *_lock;
# 293 "/usr/include/libio.h" 3 4
__off64_t _offset;
# 302 "/usr/include/libio.h" 3 4
void *__pad1;
void *__pad2;
void *__pad3;
void *__pad4;
size_t __pad5;

int _mode;

  char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];

};

typedef struct _IO_FILE _IO_FILE;

struct _IO_FILE_plus;

extern struct _IO_FILE_plus _IO_2_1_stdin_;
extern struct _IO_FILE_plus _IO_2_1_stdout_;
extern struct _IO_FILE_plus _IO_2_1_stderr_;
# 338 "/usr/include/libio.h" 3 4
typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);

typedef __ssize_t __io_write_fn (void *__cookie, const char *__buf,

     size_t __n);

typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);

typedef int __io_close_fn (void *__cookie);
# 390 "/usr/include/libio.h" 3 4
extern int __underflow (_IO_FILE *);
extern int __uflow (_IO_FILE *);
extern int __overflow (_IO_FILE *, int);
# 434 "/usr/include/libio.h" 3 4
extern int _IO_getc (_IO_FILE *__fp);
extern int _IO_putc (int __c, _IO_FILE *__fp);
extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__)); extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__));

extern int _IO_peekc_locked (_IO_FILE *__fp);

extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); # 464 "/usr/include/libio.h" 3 4
extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
__gnuc_va_list, int *__restrict);
extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,

    __gnuc_va_list);

extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t); extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);

extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int); extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);

extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__)); # 75 "/usr/include/stdio.h" 2 3 4

typedef __gnuc_va_list va_list;
# 90 "/usr/include/stdio.h" 3 4
typedef __off_t off_t;
# 102 "/usr/include/stdio.h" 3 4
typedef __ssize_t ssize_t;

typedef _G_fpos_t fpos_t;

# 164 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/x86_64-linux-gnu/bits/stdio_lim.h" 1 3 4 # 165 "/usr/include/stdio.h" 2 3 4

extern struct _IO_FILE *stdin;
extern struct _IO_FILE *stdout;
extern struct _IO_FILE *stderr;

extern int remove (const char *__filename) __attribute__ ((__nothrow__ , __leaf__));

extern int rename (const char *__old, const char *__new) __attribute__ ((__nothrow__ , __leaf__));

extern int renameat (int __oldfd, const char *__old, int __newfd,

       const char *__new) __attribute__ ((__nothrow__ , __leaf__));

extern FILE *tmpfile (void) __attribute__ ((__warn_unused_result__));
# 209 "/usr/include/stdio.h" 3 4
extern char *tmpnam (char *__s) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 227 "/usr/include/stdio.h" 3 4
extern char *tempnam (const char *__dir, const char *__pfx)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));

extern int fclose (FILE *__stream);

extern int fflush (FILE *__stream);

# 252 "/usr/include/stdio.h" 3 4
extern int fflush_unlocked (FILE *__stream);
# 266 "/usr/include/stdio.h" 3 4

extern FILE *fopen (const char *__restrict __filename,

      const char *__restrict __modes) __attribute__ ((__warn_unused_result__));

extern FILE *freopen (const char *__restrict __filename,
const char *__restrict __modes,
FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
# 295 "/usr/include/stdio.h" 3 4

# 306 "/usr/include/stdio.h" 3 4
extern FILE *fdopen (int __fd, const char *__modes) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 319 "/usr/include/stdio.h" 3 4
extern FILE *fmemopen (void *__s, size_t __len, const char *__modes)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__));

extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,

      int __modes, size_t __n) __attribute__ ((__nothrow__ , __leaf__));

extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,

         size_t __size) __attribute__ ((__nothrow__ , __leaf__));

extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));

extern int fprintf (FILE *__restrict __stream,

      const char *__restrict __format, ...);

extern int printf (const char *__restrict __format, ...);

extern int sprintf (char *__restrict __s,

      const char *__restrict __format, ...) __attribute__ ((__nothrow__));

extern int vfprintf (FILE *__restrict __s, const char *__restrict __format,

       __gnuc_va_list __arg);

extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg);

extern int vsprintf (char *__restrict __s, const char *__restrict __format,

       __gnuc_va_list __arg) __attribute__ ((__nothrow__));

extern int snprintf (char *__restrict __s, size_t __maxlen,

       const char *__restrict __format, ...)
     __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));

extern int vsnprintf (char *__restrict __s, size_t __maxlen,
const char *__restrict __format, __gnuc_va_list __arg)
__attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));

# 412 "/usr/include/stdio.h" 3 4
extern int vdprintf (int __fd, const char *__restrict __fmt,

       __gnuc_va_list __arg)
     __attribute__ ((__format__ (__printf__, 2, 0)));
extern int dprintf (int __fd, const char *__restrict __fmt, ...)
     __attribute__ ((__format__ (__printf__, 2, 3)));

extern int fscanf (FILE *__restrict __stream,

     const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__));

extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__));

extern int sscanf (const char *__restrict __s,

     const char *__restrict __format, ...) __attribute__ ((__nothrow__ , __leaf__));

# 443 "/usr/include/stdio.h" 3 4
extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf")

                          __attribute__ ((__warn_unused_result__));
extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf")
                         __attribute__ ((__warn_unused_result__));

extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__ , __leaf__))

                      ;

# 463 "/usr/include/stdio.h" 3 4

extern int vfscanf (FILE *__restrict __s, const char *__restrict __format,

      __gnuc_va_list __arg)
     __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__));

extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg)

     __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__));

extern int vsscanf (const char *__restrict __s,
const char *__restrict __format, __gnuc_va_list __arg)
__attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
# 494 "/usr/include/stdio.h" 3 4
extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf")

     __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__));

extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf")

     __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__));

extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__ , __leaf__))

     __attribute__ ((__format__ (__scanf__, 2, 0)));

# 522 "/usr/include/stdio.h" 3 4

extern int fgetc (FILE *__stream);
extern int getc (FILE *__stream);

extern int getchar (void);

# 550 "/usr/include/stdio.h" 3 4
extern int getc_unlocked (FILE *__stream);
extern int getchar_unlocked (void);
# 561 "/usr/include/stdio.h" 3 4
extern int fgetc_unlocked (FILE *__stream);

extern int fputc (int __c, FILE *__stream);
extern int putc (int __c, FILE *__stream);

extern int putchar (int __c);

# 594 "/usr/include/stdio.h" 3 4
extern int fputc_unlocked (int __c, FILE *__stream);

extern int putc_unlocked (int __c, FILE *__stream); extern int putchar_unlocked (int __c);

extern int getw (FILE *__stream);

extern int putw (int __w, FILE *__stream);

extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)

     __attribute__ ((__warn_unused_result__));

# 640 "/usr/include/stdio.h" 3 4

# 665 "/usr/include/stdio.h" 3 4
extern __ssize_t __getdelim (char **__restrict __lineptr,
size_t *__restrict __n, int __delimiter,
FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
extern __ssize_t getdelim (char **__restrict __lineptr,
size_t *__restrict __n, int __delimiter,
FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));

extern __ssize_t getline (char **__restrict __lineptr,

       size_t *__restrict __n,
       FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));

extern int fputs (const char *__restrict __s, FILE *__restrict __stream);

extern int puts (const char *__s);

extern int ungetc (int __c, FILE *__stream);

extern size_t fread (void *__restrict __ptr, size_t __size,

       size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));

extern size_t fwrite (const void *__restrict __ptr, size_t __size,

        size_t __n, FILE *__restrict __s);

# 737 "/usr/include/stdio.h" 3 4
extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,

         size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));
extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size,
          size_t __n, FILE *__restrict __stream);

extern int fseek (FILE *__stream, long int __off, int __whence);

extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__));

extern void rewind (FILE *__stream);

# 773 "/usr/include/stdio.h" 3 4
extern int fseeko (FILE *__stream, __off_t __off, int __whence);

extern __off_t ftello (FILE *__stream) __attribute__ ((__warn_unused_result__)); # 792 "/usr/include/stdio.h" 3 4

extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);

extern int fsetpos (FILE *__stream, const fpos_t *__pos); # 815 "/usr/include/stdio.h" 3 4

# 824 "/usr/include/stdio.h" 3 4

extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));

extern int feof (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int ferror (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern void perror (const char *__s);

# 1 "/usr/include/x86_64-linux-gnu/bits/sys_errlist.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/sys_errlist.h" 3 4 extern int sys_nerr;
extern const char *const sys_errlist[];
# 854 "/usr/include/stdio.h" 2 3 4

extern int fileno (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 872 "/usr/include/stdio.h" 3 4
extern FILE *popen (const char *__command, const char *__modes) __attribute__ ((__warn_unused_result__));

extern int pclose (FILE *__stream);

extern char *ctermid (char *__s) __attribute__ ((__nothrow__ , __leaf__)); # 912 "/usr/include/stdio.h" 3 4
extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));

extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)); # 933 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/x86_64-linux-gnu/bits/stdio.h" 1 3 4
# 43 "/usr/include/x86_64-linux-gnu/bits/stdio.h" 3 4
extern __inline __attribute__ ((__gnu_inline__)) int
getchar (void)
{
return _IO_getc (stdin);
}

extern __inline __attribute__ ((__gnu_inline__)) int
fgetc_unlocked (FILE *__fp)
{
return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
}

extern __inline __attribute__ ((__gnu_inline__)) int
getc_unlocked (FILE *__fp)
{
return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
}

extern __inline __attribute__ ((__gnu_inline__)) int
getchar_unlocked (void)
{
return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
}

extern __inline __attribute__ ((__gnu_inline__)) int putchar (int __c)
{
return _IO_putc (__c, stdout);
}

extern __inline __attribute__ ((__gnu_inline__)) int
fputc_unlocked (int __c, FILE *__stream)
{
return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
}

extern __inline __attribute__ ((__gnu_inline__)) int
putc_unlocked (int __c, FILE *__stream)
{
return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
}

extern __inline __attribute__ ((__gnu_inline__)) int
putchar_unlocked (int __c)
{
return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
}
# 124 "/usr/include/x86_64-linux-gnu/bits/stdio.h" 3 4
extern __inline __attribute__ ((__gnu_inline__)) int
__attribute__ ((__nothrow__ , __leaf__)) feof_unlocked (FILE *__stream)
{
return (((__stream)->_flags & 0x10) != 0);
}

extern __inline __attribute__ ((__gnu_inline__)) int __attribute__ ((__nothrow__ , __leaf__)) ferror_unlocked (FILE *__stream) {
return (((__stream)->_flags & 0x20) != 0);
}
# 934 "/usr/include/stdio.h" 2 3 4

# 1 "/usr/include/x86_64-linux-gnu/bits/stdio2.h" 1 3 4
# 23 "/usr/include/x86_64-linux-gnu/bits/stdio2.h" 3 4
extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen,

     const char *__restrict __format, ...) __attribute__ ((__nothrow__ , __leaf__));

extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen,
const char *__restrict __format,
__gnuc_va_list __ap) __attribute__ ((__nothrow__ , __leaf__));

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) {
return __builtin___sprintf_chk (__s, 2 - 1,

      __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ());
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) vsprintf (char *__restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap)

{
return __builtin___vsprintf_chk (__s, 2 - 1,

       __builtin_object_size (__s, 2 > 1), __fmt, __ap);
}

extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag,
size_t __slen, const char *__restrict __format,
...) __attribute__ ((__nothrow__ , __leaf__));
extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag,
size_t __slen, const char *__restrict __format, __gnuc_va_list __ap) __attribute__ ((__nothrow__ , __leaf__));

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...)

{
return __builtin___snprintf_chk (__s, __n, 2 - 1,

       __builtin_object_size (__s, 2 > 1), __fmt, __builtin_va_arg_pack ());
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int __attribute__ ((__nothrow__ , __leaf__)) vsnprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap)

{
return __builtin___vsnprintf_chk (__s, __n, 2 - 1,

        __builtin_object_size (__s, 2 > 1), __fmt, __ap);
}

extern int __fprintf_chk (FILE *__restrict __stream, int __flag,

     const char *__restrict __format, ...);
extern int __printf_chk (int __flag, const char *__restrict __format, ...);
extern int __vfprintf_chk (FILE *__restrict __stream, int __flag,
      const char *__restrict __format, __gnuc_va_list __ap);
extern int __vprintf_chk (int __flag, const char *__restrict __format,
     __gnuc_va_list __ap);

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
{
return __fprintf_chk (__stream, 2 - 1, __fmt,
__builtin_va_arg_pack ());
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int printf (const char *__restrict __fmt, ...)
{
return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ());
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vprintf (const char *__restrict __fmt, __gnuc_va_list __ap)
{

  return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap);

}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vfprintf (FILE *__restrict __stream,
const char *__restrict __fmt, __gnuc_va_list __ap)
{
return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap);
}

extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt,

     ...) __attribute__ ((__format__ (__printf__, 3, 4)));
extern int __vdprintf_chk (int __fd, int __flag,
      const char *__restrict __fmt, __gnuc_va_list __arg)
     __attribute__ ((__format__ (__printf__, 3, 0)));

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int dprintf (int __fd, const char *__restrict __fmt, ...)
{
return __dprintf_chk (__fd, 2 - 1, __fmt,
__builtin_va_arg_pack ());
}

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap)
{
return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap);
}
# 241 "/usr/include/x86_64-linux-gnu/bits/stdio2.h" 3 4
extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n,

     FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));

extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets")

                                        __attribute__ ((__warn_unused_result__));

extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk")

__attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
{
if (__builtin_object_size (__s, 2 > 1) != (size_t) -1)

    {
      if (!__builtin_constant_p (__n) || __n <= 0)

return __fgets_chk (__s, __builtin_object_size (__s, 2 > 1), __n, __stream);

      if ((size_t) __n > __builtin_object_size (__s, 2 > 1))
 return __fgets_chk_warn (__s, __builtin_object_size (__s, 2 > 1), __n, __stream);
    }

return __fgets_alias (__s, __n, __stream);
}

extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen,

      size_t __size, size_t __n,
      FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));

extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread")

            __attribute__ ((__warn_unused_result__));

extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk")

__attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t fread (void *__restrict __ptr, size_t __size, size_t __n,
FILE *__restrict __stream)
{
if (__builtin_object_size (__ptr, 0) != (size_t) -1)

    {
      if (!__builtin_constant_p (__size)
   || !__builtin_constant_p (__n)
   || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2)))

return __fread_chk (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream);

      if (__size * __n > __builtin_object_size (__ptr, 0))
 return __fread_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n, __stream);
    }

return __fread_alias (__ptr, __size, __n, __stream);
}
# 327 "/usr/include/x86_64-linux-gnu/bits/stdio2.h" 3 4
extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen,

        size_t __size, size_t __n,
        FILE *__restrict __stream) __attribute__ ((__warn_unused_result__));

extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked")

                     __attribute__ ((__warn_unused_result__));

extern size_t __fread_unlocked_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_unlocked_chk")

__attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer")))
;

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n,
FILE *__restrict __stream)
{
if (__builtin_object_size (__ptr, 0) != (size_t) -1)

    {
      if (!__builtin_constant_p (__size)
   || !__builtin_constant_p (__n)
   || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2)))
 return __fread_unlocked_chk (__ptr, __builtin_object_size (__ptr, 0), __size, __n,
         __stream);

      if (__size * __n > __builtin_object_size (__ptr, 0))
 return __fread_unlocked_chk_warn (__ptr, __builtin_object_size (__ptr, 0), __size, __n,
       __stream);
    }

if (__builtin_constant_p (__size)

      && __builtin_constant_p (__n)
      && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2))
      && __size * __n <= 8)
    {
      size_t __cnt = __size * __n;
      char *__cptr = (char *) __ptr;
      if (__cnt == 0)

return 0;

      for (; __cnt > 0; --__cnt)
 {
   int __c = (__builtin_expect (((__stream)->_IO_read_ptr >= (__stream)->_IO_read_end), 0) ? __uflow (__stream) : *(unsigned char *) (__stream)->_IO_read_ptr++);
   if (__c == (-1))
     break;
   *__cptr++ = __c;
 }
      return (__cptr - (char *) __ptr) / __size;
    }

return __fread_unlocked_alias (__ptr, __size, __n, __stream);
}
# 937 "/usr/include/stdio.h" 2 3 4

# 2 "set_thread_area.h" 2
# 1 "/usr/include/errno.h" 1 3 4
# 31 "/usr/include/errno.h" 3 4

# 1 "/usr/include/x86_64-linux-gnu/bits/errno.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/errno.h" 3 4 # 1 "/usr/include/linux/errno.h" 1 3 4
# 1 "/usr/include/asm/errno.h" 1 3 4
# 1 "/usr/include/asm-generic/errno.h" 1 3 4

# 1 "/usr/include/asm-generic/errno-base.h" 1 3 4
# 5 "/usr/include/asm-generic/errno.h" 2 3 4
# 1 "/usr/include/asm/errno.h" 2 3 4
# 1 "/usr/include/linux/errno.h" 2 3 4
# 25 "/usr/include/x86_64-linux-gnu/bits/errno.h" 2 3 4
# 50 "/usr/include/x86_64-linux-gnu/bits/errno.h" 3 4
extern int *__errno_location (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); # 36 "/usr/include/errno.h" 2 3 4
# 58 "/usr/include/errno.h" 3 4

# 3 "set_thread_area.h" 2

# 1 "../../../../include/test.h" 1
# 38 "../../../../include/test.h"
# 1 "/usr/include/signal.h" 1 3 4
# 30 "/usr/include/signal.h" 3 4

# 1 "/usr/include/x86_64-linux-gnu/bits/sigset.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/sigset.h" 3 4 typedef int __sig_atomic_t;

typedef struct

  {
    unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];

} __sigset_t;
# 102 "/usr/include/x86_64-linux-gnu/bits/sigset.h" 3 4
extern int __sigismember (const __sigset_t *, int);
extern int __sigaddset (__sigset_t *, int);
extern int __sigdelset (__sigset_t *, int);
# 116 "/usr/include/x86_64-linux-gnu/bits/sigset.h" 3 4
extern __inline __attribute__ ((__gnu_inline__)) int __sigismember (const __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return (__set->__val[__word] & __mask) ? 1 : 0; } extern __inline __attribute__ ((__gnu_inline__)) int __sigaddset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] |= __mask), 0); } extern __inline __attribute__ ((__gnu_inline__)) int __sigdelset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] &= ~__mask), 0); } # 33 "/usr/include/signal.h" 2 3 4

typedef __sig_atomic_t sig_atomic_t;

typedef __sigset_t sigset_t;

# 1 "/usr/include/x86_64-linux-gnu/bits/signum.h" 1 3 4 # 58 "/usr/include/signal.h" 2 3 4

typedef __pid_t pid_t;

typedef __uid_t uid_t;

# 1 "/usr/include/time.h" 1 3 4
# 120 "/usr/include/time.h" 3 4
struct timespec

  {
    __time_t tv_sec;
    __syscall_slong_t tv_nsec;

};
# 76 "/usr/include/signal.h" 2 3 4

# 1 "/usr/include/x86_64-linux-gnu/bits/siginfo.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/siginfo.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/siginfo.h" 2 3 4

typedef union sigval

  {
    int sival_int;
    void *sival_ptr;

} sigval_t;
# 58 "/usr/include/x86_64-linux-gnu/bits/siginfo.h" 3 4 typedef __clock_t __sigchld_clock_t;

typedef struct

  {
    int si_signo;
    int si_errno;

    int si_code;

    union
      {

int _pad[((128 / sizeof (int)) - 4)];

struct

   {
     __pid_t si_pid;
     __uid_t si_uid;

} _kill;

struct

   {
     int si_tid;
     int si_overrun;
     sigval_t si_sigval;

} _timer;

struct

   {
     __pid_t si_pid;
     __uid_t si_uid;
     sigval_t si_sigval;

} _rt;

struct

   {
     __pid_t si_pid;
     __uid_t si_uid;
     int si_status;
     __sigchld_clock_t si_utime;
     __sigchld_clock_t si_stime;

} _sigchld;

struct

   {
     void *si_addr;
     short int si_addr_lsb;

} _sigfault;

struct

   {
     long int si_band;
     int si_fd;

} _sigpoll;

struct

   {
     void *_call_addr;
     int _syscall;
     unsigned int _arch;
   } _sigsys;
      } _sifields;

} siginfo_t ;
# 153 "/usr/include/x86_64-linux-gnu/bits/siginfo.h" 3 4 enum
{
SI_ASYNCNL = -60,

SI_TKILL = -6,

SI_SIGIO,

SI_ASYNCIO,

SI_MESGQ,

SI_TIMER,

SI_QUEUE,

SI_USER,

SI_KERNEL = 0x80

};

enum
{
ILL_ILLOPC = 1,

ILL_ILLOPN,

ILL_ILLADR,

ILL_ILLTRP,

ILL_PRVOPC,

ILL_PRVREG,

ILL_COPROC,

ILL_BADSTK

};

enum
{
FPE_INTDIV = 1,

FPE_INTOVF,

FPE_FLTDIV,

FPE_FLTOVF,

FPE_FLTUND,

FPE_FLTRES,

FPE_FLTINV,

FPE_FLTSUB

};

enum
{
SEGV_MAPERR = 1,

SEGV_ACCERR

};

enum
{
BUS_ADRALN = 1,

BUS_ADRERR,

BUS_OBJERR,

BUS_MCEERR_AR,

BUS_MCEERR_AO

};
# 257 "/usr/include/x86_64-linux-gnu/bits/siginfo.h" 3 4 enum
{
CLD_EXITED = 1,

CLD_KILLED,

CLD_DUMPED,

CLD_TRAPPED,

CLD_STOPPED,

CLD_CONTINUED

};

enum
{
POLL_IN = 1,

POLL_OUT,

POLL_MSG,

POLL_ERR,

POLL_PRI,

POLL_HUP

};
# 309 "/usr/include/x86_64-linux-gnu/bits/siginfo.h" 3 4 typedef union pthread_attr_t pthread_attr_t;

typedef struct sigevent

  {
    sigval_t sigev_value;
    int sigev_signo;
    int sigev_notify;

    union
      {

int _pad[((64 / sizeof (int)) - 4)];

__pid_t _tid;

struct

   {
     void (*_function) (sigval_t);
     pthread_attr_t *_attribute;
   } _sigev_thread;
      } _sigev_un;

} sigevent_t;

enum
{
SIGEV_SIGNAL = 0,

SIGEV_NONE,

SIGEV_THREAD,

SIGEV_THREAD_ID = 4

};
# 81 "/usr/include/signal.h" 2 3 4

typedef void (*__sighandler_t) (int);

extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler)

     __attribute__ ((__nothrow__ , __leaf__));

# 100 "/usr/include/signal.h" 3 4

extern __sighandler_t signal (int __sig, __sighandler_t __handler)

     __attribute__ ((__nothrow__ , __leaf__));

# 114 "/usr/include/signal.h" 3 4

# 127 "/usr/include/signal.h" 3 4
extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__ , __leaf__));

extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__ , __leaf__));

extern int raise (int __sig) __attribute__ ((__nothrow__ , __leaf__));

extern __sighandler_t ssignal (int __sig, __sighandler_t __handler)

     __attribute__ ((__nothrow__ , __leaf__));

extern int gsignal (int __sig) __attribute__ ((__nothrow__ , __leaf__));

extern void psignal (int __sig, const char *__s);

extern void psiginfo (const siginfo_t *__pinfo, const char *__s);
# 189 "/usr/include/signal.h" 3 4
extern int sigblock (int __mask) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));

extern int sigsetmask (int __mask) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));

extern int siggetmask (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__)); # 209 "/usr/include/signal.h" 3 4
typedef __sighandler_t sig_t;

extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int sigismember (const sigset_t *__set, int __signo)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

# 245 "/usr/include/signal.h" 3 4
# 1 "/usr/include/x86_64-linux-gnu/bits/sigaction.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/sigaction.h" 3 4 struct sigaction
{

    union
      {

__sighandler_t sa_handler;

 void (*sa_sigaction) (int, siginfo_t *, void *);
      }
    __sigaction_handler;







    __sigset_t sa_mask;


    int sa_flags;


    void (*sa_restorer) (void);

};
# 246 "/usr/include/signal.h" 2 3 4

extern int sigprocmask (int __how, const sigset_t *__restrict __set,
sigset_t *__restrict __oset) __attribute__ ((__nothrow__ , __leaf__));

extern int sigsuspend (const sigset_t *__set) __attribute__ ((__nonnull__ (1)));

extern int sigaction (int __sig, const struct sigaction *__restrict __act,

        struct sigaction *__restrict __oact) __attribute__ ((__nothrow__ , __leaf__));

extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern int sigwait (const sigset_t *__restrict __set, int *__restrict __sig)

     __attribute__ ((__nonnull__ (1, 2)));

extern int sigwaitinfo (const sigset_t *__restrict __set,
siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1)));

extern int sigtimedwait (const sigset_t *__restrict __set,
siginfo_t *__restrict __info,
const struct timespec *__restrict __timeout)
__attribute__ ((__nonnull__ (1)));

extern int sigqueue (__pid_t __pid, int __sig, const union sigval __val)

     __attribute__ ((__nothrow__ , __leaf__));

# 303 "/usr/include/signal.h" 3 4
extern const char *const _sys_siglist[65];
extern const char *const sys_siglist[65];

# 1 "/usr/include/x86_64-linux-gnu/bits/sigcontext.h" 1 3 4 # 29 "/usr/include/x86_64-linux-gnu/bits/sigcontext.h" 3 4 struct _fpx_sw_bytes
{
__uint32_t magic1;
__uint32_t extended_size;
__uint64_t xstate_bv;
__uint32_t xstate_size;
__uint32_t padding[7];
};

struct _fpreg
{
unsigned short significand[4];
unsigned short exponent;
};

struct _fpxreg
{
unsigned short significand[4];
unsigned short exponent;
unsigned short padding[3];
};

struct _xmmreg
{
__uint32_t element[4];
};
# 121 "/usr/include/x86_64-linux-gnu/bits/sigcontext.h" 3 4 struct _fpstate
{

__uint16_t cwd;
__uint16_t swd;
__uint16_t ftw;
__uint16_t fop;
__uint64_t rip;
__uint64_t rdp;
__uint32_t mxcsr;
__uint32_t mxcr_mask;
struct _fpxreg _st[8];
struct _xmmreg _xmm[16];
__uint32_t padding[24];
};

struct sigcontext
{
__uint64_t r8;
__uint64_t r9;
__uint64_t r10;
__uint64_t r11;
__uint64_t r12;
__uint64_t r13;
__uint64_t r14;
__uint64_t r15;
__uint64_t rdi;
__uint64_t rsi;
__uint64_t rbp;
__uint64_t rbx;
__uint64_t rdx;
__uint64_t rax;
__uint64_t rcx;
__uint64_t rsp;
__uint64_t rip;
__uint64_t eflags;
unsigned short cs;
unsigned short gs;
unsigned short fs;
unsigned short __pad0;
__uint64_t err;
__uint64_t trapno;
__uint64_t oldmask;
__uint64_t cr2;
__extension__ union

    {
      struct _fpstate * fpstate;
      __uint64_t __fpstate_word;
    };

__uint64_t __reserved1 [8];
};

struct _xsave_hdr
{
__uint64_t xstate_bv;
__uint64_t reserved1[2];
__uint64_t reserved2[5];
};

struct _ymmh_state
{
__uint32_t ymmh_space[64];
};

struct _xstate
{
struct _fpstate fpstate;
struct _xsave_hdr xstate_hdr;
struct _ymmh_state ymmh;
};
# 309 "/usr/include/signal.h" 2 3 4

extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__ , __leaf__));

# 1 "/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h" 1 3 4 # 319 "/usr/include/signal.h" 2 3 4

extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__ , __leaf__));

# 1 "/usr/include/x86_64-linux-gnu/bits/sigstack.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/sigstack.h" 3 4 struct sigstack

  {
    void *ss_sp;
    int ss_onstack;

};

enum
{
SS_ONSTACK = 1,

SS_DISABLE

};
# 49 "/usr/include/x86_64-linux-gnu/bits/sigstack.h" 3 4 typedef struct sigaltstack

  {
    void *ss_sp;
    int ss_flags;
    size_t ss_size;

} stack_t;
# 326 "/usr/include/signal.h" 2 3 4

# 1 "/usr/include/x86_64-linux-gnu/sys/ucontext.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/sys/ucontext.h" 3 4 # 1 "/usr/include/signal.h" 1 3 4
# 23 "/usr/include/x86_64-linux-gnu/sys/ucontext.h" 2 3 4 # 31 "/usr/include/x86_64-linux-gnu/sys/ucontext.h" 3 4 __extension__ typedef long long int greg_t;

typedef greg_t gregset_t[23];
# 92 "/usr/include/x86_64-linux-gnu/sys/ucontext.h" 3 4 struct _libc_fpxreg
{
unsigned short int significand[4];
unsigned short int exponent;
unsigned short int padding[3];
};

struct _libc_xmmreg
{
__uint32_t element[4];
};

struct _libc_fpstate
{

__uint16_t cwd;
__uint16_t swd;
__uint16_t ftw;
__uint16_t fop;
__uint64_t rip;
__uint64_t rdp;
__uint32_t mxcsr;
__uint32_t mxcr_mask;
struct _libc_fpxreg _st[8];
struct _libc_xmmreg _xmm[16];
__uint32_t padding[24];
};

typedef struct _libc_fpstate *fpregset_t;

typedef struct

  {
    gregset_t gregs;

    fpregset_t fpregs;
    __extension__ unsigned long long __reserved1 [8];
} mcontext_t;

typedef struct ucontext

  {
    unsigned long int uc_flags;
    struct ucontext *uc_link;
    stack_t uc_stack;
    mcontext_t uc_mcontext;
    __sigset_t uc_sigmask;
    struct _libc_fpstate __fpregs_mem;

} ucontext_t;
# 329 "/usr/include/signal.h" 2 3 4

extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__deprecated__));

extern int sigaltstack (const struct sigaltstack *__restrict __ss,
struct sigaltstack *__restrict __oss) __attribute__ ((__nothrow__ , __leaf__));
# 363 "/usr/include/signal.h" 3 4
# 1 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 1 3 4
# 21 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 3 4
# 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4
# 22 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 2 3 4
# 60 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 3 4
typedef unsigned long int pthread_t;

union pthread_attr_t
{
char __size[56];
long int __align;
};

typedef struct __pthread_internal_list
{
struct __pthread_internal_list *__prev;
struct __pthread_internal_list *__next;
} __pthread_list_t;
# 90 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 3 4 typedef union
{
struct __pthread_mutex_s

  {
    int __lock;
    unsigned int __count;
    int __owner;

    unsigned int __nusers;



    int __kind;

    short __spins;
    short __elision;
    __pthread_list_t __list;

# 125 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 3 4
} __data;
char __size[40];
long int __align;
} pthread_mutex_t;

typedef union
{
char __size[4];
int __align;
} pthread_mutexattr_t;

typedef union
{
struct

  {
    int __lock;
    unsigned int __futex;
    __extension__ unsigned long long int __total_seq;
    __extension__ unsigned long long int __wakeup_seq;
    __extension__ unsigned long long int __woken_seq;
    void *__mutex;
    unsigned int __nwaiters;
    unsigned int __broadcast_seq;

} __data;
char __size[48];
__extension__ long long int __align;
} pthread_cond_t;

typedef union
{
char __size[4];
int __align;
} pthread_condattr_t;

typedef unsigned int pthread_key_t;

typedef int pthread_once_t;

typedef union
{

  struct
  {
    int __lock;
    unsigned int __nr_readers;
    unsigned int __readers_wakeup;
    unsigned int __writer_wakeup;
    unsigned int __nr_readers_queued;
    unsigned int __nr_writers_queued;
    int __writer;
    int __shared;
    signed char __rwelision;
    unsigned char __pad1[7];


    unsigned long int __pad2;


    unsigned int __flags;

} __data;
# 220 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 3 4
char __size[56];
long int __align;
} pthread_rwlock_t;

typedef union
{
char __size[8];
long int __align;
} pthread_rwlockattr_t;

typedef volatile int pthread_spinlock_t;

typedef union
{
char __size[32];
long int __align;
} pthread_barrier_t;

typedef union
{
char __size[4];
int __align;
} pthread_barrierattr_t;
# 364 "/usr/include/signal.h" 2 3 4
# 1 "/usr/include/x86_64-linux-gnu/bits/sigthread.h" 1 3 4
# 30 "/usr/include/x86_64-linux-gnu/bits/sigthread.h" 3 4
extern int pthread_sigmask (int __how,
const __sigset_t *__restrict __newmask,
__sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__ , __leaf__));

extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__ , __leaf__)); # 365 "/usr/include/signal.h" 2 3 4

extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__ , __leaf__));

extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__ , __leaf__));

# 39 "../../../../include/test.h" 2
# 1 "/usr/include/unistd.h" 1 3 4
# 27 "/usr/include/unistd.h" 3 4

# 202 "/usr/include/unistd.h" 3 4
# 1 "/usr/include/x86_64-linux-gnu/bits/posix_opt.h" 1 3 4 # 203 "/usr/include/unistd.h" 2 3 4

# 1 "/usr/include/x86_64-linux-gnu/bits/environments.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/environments.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/environments.h" 2 3 4 # 207 "/usr/include/unistd.h" 2 3 4
# 226 "/usr/include/unistd.h" 3 4
# 1 "/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h" 1 3 4 # 227 "/usr/include/unistd.h" 2 3 4

typedef __gid_t gid_t;
# 255 "/usr/include/unistd.h" 3 4
typedef __useconds_t useconds_t;
# 267 "/usr/include/unistd.h" 3 4
typedef __intptr_t intptr_t;

typedef __socklen_t socklen_t;
# 287 "/usr/include/unistd.h" 3 4
extern int access (const char *__name, int __type) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))); # 304 "/usr/include/unistd.h" 3 4
extern int faccessat (int __fd, const char *__file, int __type, int __flag)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__));

# 334 "/usr/include/unistd.h" 3 4
extern __off_t lseek (int __fd, __off_t __offset, int __whence) __attribute__ ((__nothrow__ , __leaf__)); # 353 "/usr/include/unistd.h" 3 4
extern int close (int __fd);

extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__));

extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)); # 376 "/usr/include/unistd.h" 3 4
extern ssize_t pread (int __fd, void *__buf, size_t __nbytes,

        __off_t __offset) __attribute__ ((__warn_unused_result__));

extern ssize_t pwrite (int __fd, const void *__buf, size_t __n,

         __off_t __offset) __attribute__ ((__warn_unused_result__));

# 417 "/usr/include/unistd.h" 3 4
extern int pipe (int __pipedes[2]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 432 "/usr/include/unistd.h" 3 4
extern unsigned int alarm (unsigned int __seconds) __attribute__ ((__nothrow__ , __leaf__));
# 444 "/usr/include/unistd.h" 3 4
extern unsigned int sleep (unsigned int __seconds);

extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval)

     __attribute__ ((__nothrow__ , __leaf__));

extern int usleep (__useconds_t __useconds);
# 469 "/usr/include/unistd.h" 3 4
extern int pause (void);

extern int chown (const char *__file, __uid_t __owner, __gid_t __group)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int lchown (const char *__file, __uid_t __owner, __gid_t __group)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern int fchownat (int __fd, const char *__file, __uid_t __owner,

       __gid_t __group, int __flag)
     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__));

extern int chdir (const char *__path) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__));

extern int fchdir (int __fd) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 511 "/usr/include/unistd.h" 3 4
extern char *getcwd (char *__buf, size_t __size) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 525 "/usr/include/unistd.h" 3 4
extern char *getwd (char *__buf)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__));

extern int dup (int __fd) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__ , __leaf__)); # 543 "/usr/include/unistd.h" 3 4
extern char **__environ;

extern int execve (const char *__path, char *const __argv[],

     char *const __envp[]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int fexecve (int __fd, char *const __argv[], char *const __envp[])

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));

extern int execv (const char *__path, char *const __argv[])

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int execle (const char *__path, const char *__arg, ...)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int execl (const char *__path, const char *__arg, ...)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int execvp (const char *__file, char *const __argv[])

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

extern int execlp (const char *__file, const char *__arg, ...)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));

# 598 "/usr/include/unistd.h" 3 4
extern int nice (int __inc) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern void _exit (int __status) __attribute__ ((__noreturn__));

# 1 "/usr/include/x86_64-linux-gnu/bits/confname.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/confname.h" 3 4 enum

  {
    _PC_LINK_MAX,

    _PC_MAX_CANON,

    _PC_MAX_INPUT,

    _PC_NAME_MAX,

    _PC_PATH_MAX,

    _PC_PIPE_BUF,

    _PC_CHOWN_RESTRICTED,

    _PC_NO_TRUNC,

    _PC_VDISABLE,

    _PC_SYNC_IO,

    _PC_ASYNC_IO,

    _PC_PRIO_IO,

    _PC_SOCK_MAXBUF,

    _PC_FILESIZEBITS,

    _PC_REC_INCR_XFER_SIZE,

    _PC_REC_MAX_XFER_SIZE,

    _PC_REC_MIN_XFER_SIZE,

    _PC_REC_XFER_ALIGN,

    _PC_ALLOC_SIZE_MIN,

    _PC_SYMLINK_MAX,

    _PC_2_SYMLINKS
  };

enum

  {
    _SC_ARG_MAX,

    _SC_CHILD_MAX,

    _SC_CLK_TCK,

    _SC_NGROUPS_MAX,

    _SC_OPEN_MAX,

    _SC_STREAM_MAX,

    _SC_TZNAME_MAX,

    _SC_JOB_CONTROL,

    _SC_SAVED_IDS,

    _SC_REALTIME_SIGNALS,

    _SC_PRIORITY_SCHEDULING,

    _SC_TIMERS,

    _SC_ASYNCHRONOUS_IO,

    _SC_PRIORITIZED_IO,

    _SC_SYNCHRONIZED_IO,

    _SC_FSYNC,

    _SC_MAPPED_FILES,

    _SC_MEMLOCK,

    _SC_MEMLOCK_RANGE,

    _SC_MEMORY_PROTECTION,

    _SC_MESSAGE_PASSING,

    _SC_SEMAPHORES,

    _SC_SHARED_MEMORY_OBJECTS,

    _SC_AIO_LISTIO_MAX,

    _SC_AIO_MAX,

    _SC_AIO_PRIO_DELTA_MAX,

    _SC_DELAYTIMER_MAX,

    _SC_MQ_OPEN_MAX,

    _SC_MQ_PRIO_MAX,

    _SC_VERSION,

    _SC_PAGESIZE,


    _SC_RTSIG_MAX,

    _SC_SEM_NSEMS_MAX,

    _SC_SEM_VALUE_MAX,

    _SC_SIGQUEUE_MAX,

    _SC_TIMER_MAX,




    _SC_BC_BASE_MAX,

    _SC_BC_DIM_MAX,

    _SC_BC_SCALE_MAX,

    _SC_BC_STRING_MAX,

    _SC_COLL_WEIGHTS_MAX,

    _SC_EQUIV_CLASS_MAX,

    _SC_EXPR_NEST_MAX,

    _SC_LINE_MAX,

    _SC_RE_DUP_MAX,

    _SC_CHARCLASS_NAME_MAX,


    _SC_2_VERSION,

    _SC_2_C_BIND,

    _SC_2_C_DEV,

    _SC_2_FORT_DEV,

    _SC_2_FORT_RUN,

    _SC_2_SW_DEV,

    _SC_2_LOCALEDEF,


    _SC_PII,

    _SC_PII_XTI,

    _SC_PII_SOCKET,

    _SC_PII_INTERNET,

    _SC_PII_OSI,

    _SC_POLL,

    _SC_SELECT,

    _SC_UIO_MAXIOV,

    _SC_IOV_MAX = _SC_UIO_MAXIOV,

    _SC_PII_INTERNET_STREAM,

    _SC_PII_INTERNET_DGRAM,

    _SC_PII_OSI_COTS,

    _SC_PII_OSI_CLTS,

    _SC_PII_OSI_M,

    _SC_T_IOV_MAX,



    _SC_THREADS,

    _SC_THREAD_SAFE_FUNCTIONS,

    _SC_GETGR_R_SIZE_MAX,

    _SC_GETPW_R_SIZE_MAX,

    _SC_LOGIN_NAME_MAX,

    _SC_TTY_NAME_MAX,

    _SC_THREAD_DESTRUCTOR_ITERATIONS,

    _SC_THREAD_KEYS_MAX,

    _SC_THREAD_STACK_MIN,

    _SC_THREAD_THREADS_MAX,

    _SC_THREAD_ATTR_STACKADDR,

    _SC_THREAD_ATTR_STACKSIZE,

    _SC_THREAD_PRIORITY_SCHEDULING,

    _SC_THREAD_PRIO_INHERIT,

    _SC_THREAD_PRIO_PROTECT,

    _SC_THREAD_PROCESS_SHARED,


    _SC_NPROCESSORS_CONF,

    _SC_NPROCESSORS_ONLN,

    _SC_PHYS_PAGES,

    _SC_AVPHYS_PAGES,

    _SC_ATEXIT_MAX,

    _SC_PASS_MAX,


    _SC_XOPEN_VERSION,

    _SC_XOPEN_XCU_VERSION,

    _SC_XOPEN_UNIX,

    _SC_XOPEN_CRYPT,

    _SC_XOPEN_ENH_I18N,

    _SC_XOPEN_SHM,


    _SC_2_CHAR_TERM,

    _SC_2_C_VERSION,

    _SC_2_UPE,


    _SC_XOPEN_XPG2,

    _SC_XOPEN_XPG3,

    _SC_XOPEN_XPG4,


    _SC_CHAR_BIT,

    _SC_CHAR_MAX,

    _SC_CHAR_MIN,

    _SC_INT_MAX,

    _SC_INT_MIN,

    _SC_LONG_BIT,

    _SC_WORD_BIT,

    _SC_MB_LEN_MAX,

    _SC_NZERO,

    _SC_SSIZE_MAX,

    _SC_SCHAR_MAX,

    _SC_SCHAR_MIN,

    _SC_SHRT_MAX,

    _SC_SHRT_MIN,

    _SC_UCHAR_MAX,

    _SC_UINT_MAX,

    _SC_ULONG_MAX,

    _SC_USHRT_MAX,


    _SC_NL_ARGMAX,

    _SC_NL_LANGMAX,

    _SC_NL_MSGMAX,

    _SC_NL_NMAX,

    _SC_NL_SETMAX,

    _SC_NL_TEXTMAX,


    _SC_XBS5_ILP32_OFF32,

    _SC_XBS5_ILP32_OFFBIG,

    _SC_XBS5_LP64_OFF64,

    _SC_XBS5_LPBIG_OFFBIG,


    _SC_XOPEN_LEGACY,

    _SC_XOPEN_REALTIME,

    _SC_XOPEN_REALTIME_THREADS,


    _SC_ADVISORY_INFO,

    _SC_BARRIERS,

    _SC_BASE,

    _SC_C_LANG_SUPPORT,

    _SC_C_LANG_SUPPORT_R,

    _SC_CLOCK_SELECTION,

    _SC_CPUTIME,

    _SC_THREAD_CPUTIME,

    _SC_DEVICE_IO,

    _SC_DEVICE_SPECIFIC,

    _SC_DEVICE_SPECIFIC_R,

    _SC_FD_MGMT,

    _SC_FIFO,

    _SC_PIPE,

    _SC_FILE_ATTRIBUTES,

    _SC_FILE_LOCKING,

    _SC_FILE_SYSTEM,

    _SC_MONOTONIC_CLOCK,

    _SC_MULTI_PROCESS,

    _SC_SINGLE_PROCESS,

    _SC_NETWORKING,

    _SC_READER_WRITER_LOCKS,

    _SC_SPIN_LOCKS,

    _SC_REGEXP,

    _SC_REGEX_VERSION,

    _SC_SHELL,

    _SC_SIGNALS,

    _SC_SPAWN,

    _SC_SPORADIC_SERVER,

    _SC_THREAD_SPORADIC_SERVER,

    _SC_SYSTEM_DATABASE,

    _SC_SYSTEM_DATABASE_R,

    _SC_TIMEOUTS,

    _SC_TYPED_MEMORY_OBJECTS,

    _SC_USER_GROUPS,

    _SC_USER_GROUPS_R,

    _SC_2_PBS,

    _SC_2_PBS_ACCOUNTING,

    _SC_2_PBS_LOCATE,

    _SC_2_PBS_MESSAGE,

    _SC_2_PBS_TRACK,

    _SC_SYMLOOP_MAX,

    _SC_STREAMS,

    _SC_2_PBS_CHECKPOINT,


    _SC_V6_ILP32_OFF32,

    _SC_V6_ILP32_OFFBIG,

    _SC_V6_LP64_OFF64,

    _SC_V6_LPBIG_OFFBIG,


    _SC_HOST_NAME_MAX,

    _SC_TRACE,

    _SC_TRACE_EVENT_FILTER,

    _SC_TRACE_INHERIT,

    _SC_TRACE_LOG,


    _SC_LEVEL1_ICACHE_SIZE,

    _SC_LEVEL1_ICACHE_ASSOC,

    _SC_LEVEL1_ICACHE_LINESIZE,

    _SC_LEVEL1_DCACHE_SIZE,

    _SC_LEVEL1_DCACHE_ASSOC,

    _SC_LEVEL1_DCACHE_LINESIZE,

    _SC_LEVEL2_CACHE_SIZE,

    _SC_LEVEL2_CACHE_ASSOC,

    _SC_LEVEL2_CACHE_LINESIZE,

    _SC_LEVEL3_CACHE_SIZE,

    _SC_LEVEL3_CACHE_ASSOC,

    _SC_LEVEL3_CACHE_LINESIZE,

    _SC_LEVEL4_CACHE_SIZE,

    _SC_LEVEL4_CACHE_ASSOC,

    _SC_LEVEL4_CACHE_LINESIZE,



    _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,

    _SC_RAW_SOCKETS,


    _SC_V7_ILP32_OFF32,

    _SC_V7_ILP32_OFFBIG,

    _SC_V7_LP64_OFF64,

    _SC_V7_LPBIG_OFFBIG,


    _SC_SS_REPL_MAX,


    _SC_TRACE_EVENT_NAME_MAX,

    _SC_TRACE_NAME_MAX,

    _SC_TRACE_SYS_MAX,

    _SC_TRACE_USER_EVENT_MAX,


    _SC_XOPEN_STREAMS,


    _SC_THREAD_ROBUST_PRIO_INHERIT,

    _SC_THREAD_ROBUST_PRIO_PROTECT
  };

enum

  {
    _CS_PATH,


    _CS_V6_WIDTH_RESTRICTED_ENVS,



    _CS_GNU_LIBC_VERSION,

    _CS_GNU_LIBPTHREAD_VERSION,


    _CS_V5_WIDTH_RESTRICTED_ENVS,



    _CS_V7_WIDTH_RESTRICTED_ENVS,



    _CS_LFS_CFLAGS = 1000,

    _CS_LFS_LDFLAGS,

    _CS_LFS_LIBS,

    _CS_LFS_LINTFLAGS,

    _CS_LFS64_CFLAGS,

    _CS_LFS64_LDFLAGS,

    _CS_LFS64_LIBS,

    _CS_LFS64_LINTFLAGS,


    _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,

    _CS_XBS5_ILP32_OFF32_LDFLAGS,

    _CS_XBS5_ILP32_OFF32_LIBS,

    _CS_XBS5_ILP32_OFF32_LINTFLAGS,

    _CS_XBS5_ILP32_OFFBIG_CFLAGS,

    _CS_XBS5_ILP32_OFFBIG_LDFLAGS,

    _CS_XBS5_ILP32_OFFBIG_LIBS,

    _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,

    _CS_XBS5_LP64_OFF64_CFLAGS,

    _CS_XBS5_LP64_OFF64_LDFLAGS,

    _CS_XBS5_LP64_OFF64_LIBS,

    _CS_XBS5_LP64_OFF64_LINTFLAGS,

    _CS_XBS5_LPBIG_OFFBIG_CFLAGS,

    _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,

    _CS_XBS5_LPBIG_OFFBIG_LIBS,

    _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS,


    _CS_POSIX_V6_ILP32_OFF32_CFLAGS,

    _CS_POSIX_V6_ILP32_OFF32_LDFLAGS,

    _CS_POSIX_V6_ILP32_OFF32_LIBS,

    _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS,

    _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS,

    _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS,

    _CS_POSIX_V6_ILP32_OFFBIG_LIBS,

    _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS,

    _CS_POSIX_V6_LP64_OFF64_CFLAGS,

    _CS_POSIX_V6_LP64_OFF64_LDFLAGS,

    _CS_POSIX_V6_LP64_OFF64_LIBS,

    _CS_POSIX_V6_LP64_OFF64_LINTFLAGS,

    _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,

    _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS,

    _CS_POSIX_V6_LPBIG_OFFBIG_LIBS,

    _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS,


    _CS_POSIX_V7_ILP32_OFF32_CFLAGS,

    _CS_POSIX_V7_ILP32_OFF32_LDFLAGS,

    _CS_POSIX_V7_ILP32_OFF32_LIBS,

    _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS,

    _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS,

    _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS,

    _CS_POSIX_V7_ILP32_OFFBIG_LIBS,

    _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS,

    _CS_POSIX_V7_LP64_OFF64_CFLAGS,

    _CS_POSIX_V7_LP64_OFF64_LDFLAGS,

    _CS_POSIX_V7_LP64_OFF64_LIBS,

    _CS_POSIX_V7_LP64_OFF64_LINTFLAGS,

    _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS,

    _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS,

    _CS_POSIX_V7_LPBIG_OFFBIG_LIBS,

    _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS,


    _CS_V6_ENV,

    _CS_V7_ENV

};
# 610 "/usr/include/unistd.h" 2 3 4

extern long int pathconf (const char *__path, int __name)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));

extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__ , __leaf__));

extern long int sysconf (int __name) __attribute__ ((__nothrow__ , __leaf__));

extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t getpid (void) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t getppid (void) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t getpgrp (void) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t getpgid (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__));

extern int setpgid (__pid_t __pid, __pid_t __pgid) __attribute__ ((__nothrow__ , __leaf__)); # 660 "/usr/include/unistd.h" 3 4
extern int setpgrp (void) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t setsid (void) __attribute__ ((__nothrow__ , __leaf__));

extern __pid_t getsid (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__));

extern __uid_t getuid (void) __attribute__ ((__nothrow__ , __leaf__));

extern __uid_t geteuid (void) __attribute__ ((__nothrow__ , __leaf__));

extern __gid_t getgid (void) __attribute__ ((__nothrow__ , __leaf__));

extern __gid_t getegid (void) __attribute__ ((__nothrow__ , __leaf__));

extern int getgroups (int __size, __gid_t __list[]) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 700 "/usr/include/unistd.h" 3 4
extern int setuid (__uid_t __uid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__));

extern int setegid (__gid_t __gid) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__warn_unused_result__)); # 756 "/usr/include/unistd.h" 3 4
extern __pid_t fork (void) __attribute__ ((__nothrow__));

extern __pid_t vfork (void) __attribute__ ((__nothrow__ , __leaf__));

extern char *ttyname (int __fd) __attribute__ ((__nothrow__ , __leaf__));

extern int ttyname_r (int __fd, char *__buf, size_t __buflen)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__));

extern int isatty (int __fd) __attribute__ ((__nothrow__ , __leaf__));

extern int ttyslot (void) __attribute__ ((__nothrow__ , __leaf__));

extern int link (const char *__from, const char *__to)

     __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__));

2,131 lines not shown · raw message

Part of this message is not shown here. View the raw message.

#3 lore raw

----- Original Message -----

Quoted 48 lines

From: "Yury Norov" <[email protected]>
To: "Jan Stancek" <[email protected]>
Cc: [email protected], "David Howells" <[email protected]>
Sent: Friday, 4 December, 2015 2:02:41 PM
Subject: Re: [LTP] {get|set}_thread_area issue on ARM

Quoted 41 lines · Jan Stancek

----- Original Message -----

Quoted 19 lines

From: "Yury Norov" <[email protected]>
To: [email protected]
Cc: "David Howells" <[email protected]>
Sent: Friday, 4 December, 2015 4:47:11 AM
Subject: [LTP] {get|set}_thread_area issue on ARM

Hi all,

I just tried build ltp for arm, and one (maybe, first of) test failed build. Namely, set_thread_area01.c

The reason is that __NR_set_thread_area and __NR_get_thread_area are not declared. They should come from /usr/arm-linux-gnueabi/include/asm/unistd.h
But there's only:
[...]

#define __NR_remap_file_pages           (__NR_SYSCALL_BASE+253)
                                         /* for set_thread_area */
                                         /* for get_thread_area */
Quoted 6 lines

#define __NR_set_tid_address (__NR_SYSCALL_BASE+256)
[...]

In kernel, there are stubs for corresponding syscall numbers. So it looks like this pair is deprecated and unsupported. I can build ltp for aarch64 and x84_64 just fine.

Looking at history, it appears it was never supported.

Quoted 2 lines

Could someone explain me what am I doing wrong?

Can you try to add:
#include "linux_syscall_numbers.h"
to testcases/kernel/syscalls/set_thread_area/set_thread_area01.c and see if it compiles. And when you run it, it should end with TCONF.

Quoted 8 lines
Quoted 2 lines

Regards,
Jan

Hi Jan,

It doesn't help much. The problem is not in that ltp doesn't know symbols, but because they are identical - both are -1.
(__LTP__NR_INVALID_SYSCALL)

Hi,

That was expected.

Quoted 18 lines

And gcc treats is as an error:
arm-linux-gnueabi-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall

(quoted diff) +0 -4
-W -g -O2 -Wold-style-definition
-I/home/yury/work/ltp/testcases/kernel/include -I../../../../include
-I../../../../include -Wl,--rpath=/root/lib32
-Wl,--dynamic-linker=/root/lib32/ld-2.21.so  -L../../../../lib

set_thread_area01.c -lltp -o set_thread_area01
set_thread_area01.c: In function ?get_name?:
set_thread_area01.c:70:2: error: duplicate case value
case __NR_get_thread_area:
^
set_thread_area01.c:67:2: error: previously used here
case __NR_set_thread_area:
^
set_thread_area01.c: In function ?main?:
set_thread_area01.c:87:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

Quoted 3 lines
   for (i = 0; i < sizeof(tests) / sizeof(struct test); i++) {
                 ^

<builtin>: recipe for target 'set_thread_area01' failed

This wasn't - I didn't realize they are used in switch.

I suggest to remove the get_name() function and store names in struct test (with some macro to stringify those syscall __NR_#).

Would you care to send a patch?

Quoted 3 lines

BTW, I forgot to mention, if I "uncomment" that definitions in system headers, everything becomes fine.

I assume you still get TCONF when you run it, because kernel should return ENOSYS for both.

Regards,
Jan

Quoted 8 lines

Preprocessed sources for arm and x86_64 are attached.

BR,
Yury.

author
#4 lore raw
Quoted 88 lines · Jan Stancek

----- Original Message -----

Quoted 48 lines

From: "Yury Norov" <[email protected]>
To: "Jan Stancek" <[email protected]>
Cc: [email protected], "David Howells" <[email protected]>
Sent: Friday, 4 December, 2015 2:02:41 PM
Subject: Re: [LTP] {get|set}_thread_area issue on ARM

Quoted 41 lines · Jan Stancek

----- Original Message -----

Quoted 19 lines

From: "Yury Norov" <[email protected]>
To: [email protected]
Cc: "David Howells" <[email protected]>
Sent: Friday, 4 December, 2015 4:47:11 AM
Subject: [LTP] {get|set}_thread_area issue on ARM

Hi all,

I just tried build ltp for arm, and one (maybe, first of) test failed build. Namely, set_thread_area01.c

The reason is that __NR_set_thread_area and __NR_get_thread_area are not declared. They should come from /usr/arm-linux-gnueabi/include/asm/unistd.h
But there's only:
[...]

#define __NR_remap_file_pages           (__NR_SYSCALL_BASE+253)
                                         /* for set_thread_area */
                                         /* for get_thread_area */
Quoted 6 lines

#define __NR_set_tid_address (__NR_SYSCALL_BASE+256)
[...]

In kernel, there are stubs for corresponding syscall numbers. So it looks like this pair is deprecated and unsupported. I can build ltp for aarch64 and x84_64 just fine.

Looking at history, it appears it was never supported.

Quoted 2 lines

Could someone explain me what am I doing wrong?

Can you try to add:
#include "linux_syscall_numbers.h"
to testcases/kernel/syscalls/set_thread_area/set_thread_area01.c and see if it compiles. And when you run it, it should end with TCONF.

Quoted 8 lines
Quoted 2 lines

Regards,
Jan

Hi Jan,

It doesn't help much. The problem is not in that ltp doesn't know symbols, but because they are identical - both are -1.
(__LTP__NR_INVALID_SYSCALL)

Hi,

That was expected.

Quoted 18 lines

And gcc treats is as an error:
arm-linux-gnueabi-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall

(quoted diff) +0 -4
-W -g -O2 -Wold-style-definition
-I/home/yury/work/ltp/testcases/kernel/include -I../../../../include
-I../../../../include -Wl,--rpath=/root/lib32
-Wl,--dynamic-linker=/root/lib32/ld-2.21.so  -L../../../../lib

set_thread_area01.c -lltp -o set_thread_area01
set_thread_area01.c: In function ?get_name?:
set_thread_area01.c:70:2: error: duplicate case value
case __NR_get_thread_area:
^
set_thread_area01.c:67:2: error: previously used here
case __NR_set_thread_area:
^
set_thread_area01.c: In function ?main?:
set_thread_area01.c:87:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

Quoted 3 lines
   for (i = 0; i < sizeof(tests) / sizeof(struct test); i++) {
                 ^

<builtin>: recipe for target 'set_thread_area01' failed

This wasn't - I didn't realize they are used in switch.

Quoted 5 lines

I suggest to remove the get_name() function and store names in struct test (with some macro to stringify those syscall __NR_#).

Would you care to send a patch?

This weekend, I think.

Quoted 18 lines
Quoted 3 lines

BTW, I forgot to mention, if I "uncomment" that definitions in system headers, everything becomes fine.

I assume you still get TCONF when you run it, because kernel should return ENOSYS for both.

Regards,
Jan

Quoted 8 lines

Preprocessed sources for arm and x86_64 are attached.

BR,
Yury.

#5 lore raw
In reply to Yury Norov

Hi!

Quoted 11 lines

I just tried build ltp for arm, and one (maybe, first of) test failed build. Namely, set_thread_area01.c

The reason is that __NR_set_thread_area and __NR_get_thread_area are not declared. They should come from /usr/arm-linux-gnueabi/include/asm/unistd.h
But there's only:
[...]

#define __NR_remap_file_pages           (__NR_SYSCALL_BASE+253)
                                         /* for set_thread_area */
                                         /* for get_thread_area */
Quoted 8 lines

#define __NR_set_tid_address (__NR_SYSCALL_BASE+256)
[...]

In kernel, there are stubs for corresponding syscall numbers. So it looks like this pair is deprecated and unsupported. I can build ltp for aarch64 and x84_64 just fine.

Could someone explain me what am I doing wrong?

LTP contains stub syscall definitions for cases when certain syscall is not supported by given arch. What is the exact error that causes the build failure? I had a look at the test source code and the only thing that could be an issue is that there would be duplicate case in switch() statement since on aarch64 both __NR_set_thread_area and __NR_get_thread_area would be defined to -1 (which means not implemented in LTP).

Signature · 2 lines
Cyril Hrubis
[email protected]
#6 lore raw

Hi!

Quoted 7 lines

LTP contains stub syscall definitions for cases when certain syscall is not supported by given arch. What is the exact error that causes the build failure? I had a look at the test source code and the only thing that could be an issue is that there would be duplicate case in switch() statement since on aarch64 both __NR_set_thread_area and __NR_get_thread_area would be defined to -1 (which means not implemented in LTP).

And you allready fixed this problems, thanks :).

Signature · 2 lines
Cyril Hrubis
[email protected]