// /usr/lib/gcc/x86_64-linux-gnu/4.6.1/cc1 -quiet -I . -I . -I ../../include -I ../../include -imultilib . -imultiarch x86_64-linux-gnu -D __WINESRC__ -D _MT -D _REENTRANT -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=0 file.c -quiet -dumpbase file.c -mtune=generic -march=x86-64 -auxbase-strip file.o -g -O2 -Wall -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -fPIC -fno-strict-aliasing -fstack-protector -o - -frandom-seed=0 # 1 "file.c" # 1 "/home/susan/wine/dlls/msvcrt//" # 1 "" # 1 "" # 1 "file.c" # 29 "file.c" # 1 "../../include/config.h" 1 # 30 "file.c" 2 # 1 "../../include/wine/port.h" 1 # 33 "../../include/wine/port.h" # 1 "/usr/include/fcntl.h" 1 3 4 # 27 "/usr/include/fcntl.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 323 "/usr/include/features.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/predefs.h" 1 3 4 # 324 "/usr/include/features.h" 2 3 4 # 356 "/usr/include/features.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 1 3 4 # 353 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 354 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 2 3 4 # 357 "/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 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 5 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/gnu/stubs-64.h" 1 3 4 # 10 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 2 3 4 # 389 "/usr/include/features.h" 2 3 4 # 28 "/usr/include/fcntl.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/fcntl.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/fcntl.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/types.h" 1 3 4 # 28 "/usr/include/x86_64-linux-gnu/sys/types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types.h" 1 3 4 # 28 "/usr/include/x86_64-linux-gnu/bits/types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 29 "/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; # 131 "/usr/include/x86_64-linux-gnu/bits/types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/typesizes.h" 1 3 4 # 132 "/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 long int __swblk_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 __ssize_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; # 31 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 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; typedef __ino64_t ino64_t; typedef __dev_t dev_t; typedef __gid_t gid_t; typedef __mode_t mode_t; typedef __nlink_t nlink_t; typedef __uid_t uid_t; typedef __off_t off_t; typedef __off64_t off64_t; typedef __pid_t pid_t; typedef __id_t id_t; typedef __ssize_t ssize_t; typedef __daddr_t daddr_t; typedef __caddr_t caddr_t; typedef __key_t key_t; # 133 "/usr/include/x86_64-linux-gnu/sys/types.h" 3 4 # 1 "/usr/include/time.h" 1 3 4 # 58 "/usr/include/time.h" 3 4 typedef __clock_t clock_t; # 74 "/usr/include/time.h" 3 4 typedef __time_t time_t; # 92 "/usr/include/time.h" 3 4 typedef __clockid_t clockid_t; # 104 "/usr/include/time.h" 3 4 typedef __timer_t timer_t; # 134 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 typedef __useconds_t useconds_t; typedef __suseconds_t suseconds_t; # 1 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stddef.h" 1 3 4 # 212 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stddef.h" 3 4 typedef long unsigned int size_t; # 148 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 typedef unsigned long int ulong; typedef unsigned short int ushort; typedef unsigned int uint; # 195 "/usr/include/x86_64-linux-gnu/sys/types.h" 3 4 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__))); # 217 "/usr/include/x86_64-linux-gnu/sys/types.h" 3 4 # 1 "/usr/include/endian.h" 1 3 4 # 37 "/usr/include/endian.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/endian.h" 1 3 4 # 38 "/usr/include/endian.h" 2 3 4 # 61 "/usr/include/endian.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 1 3 4 # 28 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 29 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 2 3 4 # 62 "/usr/include/endian.h" 2 3 4 # 218 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/select.h" 1 3 4 # 31 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/select.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/select.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/select.h" 2 3 4 # 32 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/sigset.h" 1 3 4 # 24 "/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; # 35 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 typedef __sigset_t sigset_t; # 1 "/usr/include/time.h" 1 3 4 # 120 "/usr/include/time.h" 3 4 struct timespec { __time_t tv_sec; long int tv_nsec; }; # 45 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/time.h" 1 3 4 # 75 "/usr/include/x86_64-linux-gnu/bits/time.h" 3 4 struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; # 47 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 # 55 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 typedef long int __fd_mask; # 67 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 typedef struct { __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; } fd_set; typedef __fd_mask fd_mask; # 99 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 # 109 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); # 121 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 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); # 221 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/sysmacros.h" 1 3 4 # 30 "/usr/include/x86_64-linux-gnu/sys/sysmacros.h" 3 4 __extension__ extern unsigned int gnu_dev_major (unsigned long long int __dev) __attribute__ ((__nothrow__)); __extension__ extern unsigned int gnu_dev_minor (unsigned long long int __dev) __attribute__ ((__nothrow__)); __extension__ extern unsigned long long int gnu_dev_makedev (unsigned int __major, unsigned int __minor) __attribute__ ((__nothrow__)); __extension__ extern __inline unsigned int __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev) { return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); } __extension__ extern __inline unsigned int __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev) { return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); } __extension__ extern __inline unsigned long long int __attribute__ ((__nothrow__)) 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)); } # 224 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 typedef __blksize_t blksize_t; typedef __blkcnt_t blkcnt_t; typedef __fsblkcnt_t fsblkcnt_t; typedef __fsfilcnt_t fsfilcnt_t; # 263 "/usr/include/x86_64-linux-gnu/sys/types.h" 3 4 typedef __blkcnt64_t blkcnt64_t; typedef __fsblkcnt64_t fsblkcnt64_t; typedef __fsfilcnt64_t fsfilcnt64_t; # 1 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 2 3 4 # 50 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 3 4 typedef unsigned long int pthread_t; typedef union { char __size[56]; long int __align; } pthread_attr_t; typedef struct __pthread_internal_list { struct __pthread_internal_list *__prev; struct __pthread_internal_list *__next; } __pthread_list_t; # 76 "/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; int __spins; __pthread_list_t __list; # 101 "/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; unsigned long int __pad1; unsigned long int __pad2; unsigned int __flags; } __data; # 187 "/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; # 272 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/fcntl.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/fcntl.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/uio.h" 1 3 4 # 44 "/usr/include/x86_64-linux-gnu/bits/uio.h" 3 4 struct iovec { void *iov_base; size_t iov_len; }; # 29 "/usr/include/x86_64-linux-gnu/bits/fcntl.h" 2 3 4 # 167 "/usr/include/x86_64-linux-gnu/bits/fcntl.h" 3 4 struct flock { short int l_type; short int l_whence; __off_t l_start; __off_t l_len; __pid_t l_pid; }; struct flock64 { short int l_type; short int l_whence; __off64_t l_start; __off64_t l_len; __pid_t l_pid; }; enum __pid_type { F_OWNER_TID = 0, F_OWNER_PID, F_OWNER_PGRP, F_OWNER_GID = F_OWNER_PGRP }; struct f_owner_ex { enum __pid_type type; __pid_t pid; }; # 267 "/usr/include/x86_64-linux-gnu/bits/fcntl.h" 3 4 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) __attribute__ ((__nothrow__)); extern int sync_file_range (int __fd, __off64_t __offset, __off64_t __count, unsigned int __flags); extern ssize_t vmsplice (int __fdout, const struct iovec *__iov, size_t __count, unsigned int __flags); extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout, __off64_t *__offout, size_t __len, unsigned int __flags); extern ssize_t tee (int __fdin, int __fdout, size_t __len, unsigned int __flags); extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len); # 307 "/usr/include/x86_64-linux-gnu/bits/fcntl.h" 3 4 extern int fallocate64 (int __fd, int __mode, __off64_t __offset, __off64_t __len); # 35 "/usr/include/fcntl.h" 2 3 4 # 1 "/usr/include/time.h" 1 3 4 # 41 "/usr/include/fcntl.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stat.h" 1 3 4 # 46 "/usr/include/x86_64-linux-gnu/bits/stat.h" 3 4 struct stat { __dev_t st_dev; __ino_t st_ino; __nlink_t st_nlink; __mode_t st_mode; __uid_t st_uid; __gid_t st_gid; int __pad0; __dev_t st_rdev; __off_t st_size; __blksize_t st_blksize; __blkcnt_t st_blocks; # 91 "/usr/include/x86_64-linux-gnu/bits/stat.h" 3 4 struct timespec st_atim; struct timespec st_mtim; struct timespec st_ctim; # 106 "/usr/include/x86_64-linux-gnu/bits/stat.h" 3 4 long int __unused[3]; # 115 "/usr/include/x86_64-linux-gnu/bits/stat.h" 3 4 }; struct stat64 { __dev_t st_dev; __ino64_t st_ino; __nlink_t st_nlink; __mode_t st_mode; __uid_t st_uid; __gid_t st_gid; int __pad0; __dev_t st_rdev; __off_t st_size; __blksize_t st_blksize; __blkcnt64_t st_blocks; struct timespec st_atim; struct timespec st_mtim; struct timespec st_ctim; # 167 "/usr/include/x86_64-linux-gnu/bits/stat.h" 3 4 long int __unused[3]; }; # 42 "/usr/include/fcntl.h" 2 3 4 # 110 "/usr/include/fcntl.h" 3 4 extern int fcntl (int __fd, int __cmd, ...); # 119 "/usr/include/fcntl.h" 3 4 extern int open (__const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1))); # 129 "/usr/include/fcntl.h" 3 4 extern int open64 (__const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1))); # 143 "/usr/include/fcntl.h" 3 4 extern int openat (int __fd, __const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (2))); # 154 "/usr/include/fcntl.h" 3 4 extern int openat64 (int __fd, __const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (2))); # 165 "/usr/include/fcntl.h" 3 4 extern int creat (__const char *__file, __mode_t __mode) __attribute__ ((__nonnull__ (1))); # 175 "/usr/include/fcntl.h" 3 4 extern int creat64 (__const char *__file, __mode_t __mode) __attribute__ ((__nonnull__ (1))); # 194 "/usr/include/fcntl.h" 3 4 extern int lockf (int __fd, int __cmd, __off_t __len); # 203 "/usr/include/fcntl.h" 3 4 extern int lockf64 (int __fd, int __cmd, __off64_t __len); extern int posix_fadvise (int __fd, __off_t __offset, __off_t __len, int __advise) __attribute__ ((__nothrow__)); # 223 "/usr/include/fcntl.h" 3 4 extern int posix_fadvise64 (int __fd, __off64_t __offset, __off64_t __len, int __advise) __attribute__ ((__nothrow__)); # 233 "/usr/include/fcntl.h" 3 4 extern int posix_fallocate (int __fd, __off_t __offset, __off_t __len); # 244 "/usr/include/fcntl.h" 3 4 extern int posix_fallocate64 (int __fd, __off64_t __offset, __off64_t __len); # 255 "/usr/include/fcntl.h" 3 4 # 34 "../../include/wine/port.h" 2 # 1 "/usr/include/math.h" 1 3 4 # 30 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/huge_val.h" 1 3 4 # 35 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/huge_valf.h" 1 3 4 # 37 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/huge_vall.h" 1 3 4 # 38 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/inf.h" 1 3 4 # 41 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/nan.h" 1 3 4 # 44 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathdef.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/mathdef.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/mathdef.h" 2 3 4 typedef float float_t; typedef double double_t; # 48 "/usr/include/math.h" 2 3 4 # 71 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern double acos (double __x) __attribute__ ((__nothrow__)); extern double __acos (double __x) __attribute__ ((__nothrow__)); extern double asin (double __x) __attribute__ ((__nothrow__)); extern double __asin (double __x) __attribute__ ((__nothrow__)); extern double atan (double __x) __attribute__ ((__nothrow__)); extern double __atan (double __x) __attribute__ ((__nothrow__)); extern double atan2 (double __y, double __x) __attribute__ ((__nothrow__)); extern double __atan2 (double __y, double __x) __attribute__ ((__nothrow__)); extern double cos (double __x) __attribute__ ((__nothrow__)); extern double __cos (double __x) __attribute__ ((__nothrow__)); extern double sin (double __x) __attribute__ ((__nothrow__)); extern double __sin (double __x) __attribute__ ((__nothrow__)); extern double tan (double __x) __attribute__ ((__nothrow__)); extern double __tan (double __x) __attribute__ ((__nothrow__)); extern double cosh (double __x) __attribute__ ((__nothrow__)); extern double __cosh (double __x) __attribute__ ((__nothrow__)); extern double sinh (double __x) __attribute__ ((__nothrow__)); extern double __sinh (double __x) __attribute__ ((__nothrow__)); extern double tanh (double __x) __attribute__ ((__nothrow__)); extern double __tanh (double __x) __attribute__ ((__nothrow__)); extern void sincos (double __x, double *__sinx, double *__cosx) __attribute__ ((__nothrow__)); extern void __sincos (double __x, double *__sinx, double *__cosx) __attribute__ ((__nothrow__)) ; extern double acosh (double __x) __attribute__ ((__nothrow__)); extern double __acosh (double __x) __attribute__ ((__nothrow__)); extern double asinh (double __x) __attribute__ ((__nothrow__)); extern double __asinh (double __x) __attribute__ ((__nothrow__)); extern double atanh (double __x) __attribute__ ((__nothrow__)); extern double __atanh (double __x) __attribute__ ((__nothrow__)); extern double exp (double __x) __attribute__ ((__nothrow__)); extern double __exp (double __x) __attribute__ ((__nothrow__)); extern double frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); extern double __frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); extern double ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); extern double __ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); extern double log (double __x) __attribute__ ((__nothrow__)); extern double __log (double __x) __attribute__ ((__nothrow__)); extern double log10 (double __x) __attribute__ ((__nothrow__)); extern double __log10 (double __x) __attribute__ ((__nothrow__)); extern double modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); extern double __modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); extern double exp10 (double __x) __attribute__ ((__nothrow__)); extern double __exp10 (double __x) __attribute__ ((__nothrow__)); extern double pow10 (double __x) __attribute__ ((__nothrow__)); extern double __pow10 (double __x) __attribute__ ((__nothrow__)); extern double expm1 (double __x) __attribute__ ((__nothrow__)); extern double __expm1 (double __x) __attribute__ ((__nothrow__)); extern double log1p (double __x) __attribute__ ((__nothrow__)); extern double __log1p (double __x) __attribute__ ((__nothrow__)); extern double logb (double __x) __attribute__ ((__nothrow__)); extern double __logb (double __x) __attribute__ ((__nothrow__)); extern double exp2 (double __x) __attribute__ ((__nothrow__)); extern double __exp2 (double __x) __attribute__ ((__nothrow__)); extern double log2 (double __x) __attribute__ ((__nothrow__)); extern double __log2 (double __x) __attribute__ ((__nothrow__)); extern double pow (double __x, double __y) __attribute__ ((__nothrow__)); extern double __pow (double __x, double __y) __attribute__ ((__nothrow__)); extern double sqrt (double __x) __attribute__ ((__nothrow__)); extern double __sqrt (double __x) __attribute__ ((__nothrow__)); extern double hypot (double __x, double __y) __attribute__ ((__nothrow__)); extern double __hypot (double __x, double __y) __attribute__ ((__nothrow__)); extern double cbrt (double __x) __attribute__ ((__nothrow__)); extern double __cbrt (double __x) __attribute__ ((__nothrow__)); extern double ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double fmod (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmod (double __x, double __y) __attribute__ ((__nothrow__)); extern int __isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int __finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double drem (double __x, double __y) __attribute__ ((__nothrow__)); extern double __drem (double __x, double __y) __attribute__ ((__nothrow__)); extern double significand (double __x) __attribute__ ((__nothrow__)); extern double __significand (double __x) __attribute__ ((__nothrow__)); extern double copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int __isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double j0 (double) __attribute__ ((__nothrow__)); extern double __j0 (double) __attribute__ ((__nothrow__)); extern double j1 (double) __attribute__ ((__nothrow__)); extern double __j1 (double) __attribute__ ((__nothrow__)); extern double jn (int, double) __attribute__ ((__nothrow__)); extern double __jn (int, double) __attribute__ ((__nothrow__)); extern double y0 (double) __attribute__ ((__nothrow__)); extern double __y0 (double) __attribute__ ((__nothrow__)); extern double y1 (double) __attribute__ ((__nothrow__)); extern double __y1 (double) __attribute__ ((__nothrow__)); extern double yn (int, double) __attribute__ ((__nothrow__)); extern double __yn (int, double) __attribute__ ((__nothrow__)); extern double erf (double) __attribute__ ((__nothrow__)); extern double __erf (double) __attribute__ ((__nothrow__)); extern double erfc (double) __attribute__ ((__nothrow__)); extern double __erfc (double) __attribute__ ((__nothrow__)); extern double lgamma (double) __attribute__ ((__nothrow__)); extern double __lgamma (double) __attribute__ ((__nothrow__)); extern double tgamma (double) __attribute__ ((__nothrow__)); extern double __tgamma (double) __attribute__ ((__nothrow__)); extern double gamma (double) __attribute__ ((__nothrow__)); extern double __gamma (double) __attribute__ ((__nothrow__)); extern double lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); extern double __lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); extern double rint (double __x) __attribute__ ((__nothrow__)); extern double __rint (double __x) __attribute__ ((__nothrow__)); extern double nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double nexttoward (double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double remainder (double __x, double __y) __attribute__ ((__nothrow__)); extern double __remainder (double __x, double __y) __attribute__ ((__nothrow__)); extern double scalbn (double __x, int __n) __attribute__ ((__nothrow__)); extern double __scalbn (double __x, int __n) __attribute__ ((__nothrow__)); extern int ilogb (double __x) __attribute__ ((__nothrow__)); extern int __ilogb (double __x) __attribute__ ((__nothrow__)); extern double scalbln (double __x, long int __n) __attribute__ ((__nothrow__)); extern double __scalbln (double __x, long int __n) __attribute__ ((__nothrow__)); extern double nearbyint (double __x) __attribute__ ((__nothrow__)); extern double __nearbyint (double __x) __attribute__ ((__nothrow__)); extern double round (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __round (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double trunc (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __trunc (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double remquo (double __x, double __y, int *__quo) __attribute__ ((__nothrow__)); extern double __remquo (double __x, double __y, int *__quo) __attribute__ ((__nothrow__)); extern long int lrint (double __x) __attribute__ ((__nothrow__)); extern long int __lrint (double __x) __attribute__ ((__nothrow__)); extern long long int llrint (double __x) __attribute__ ((__nothrow__)); extern long long int __llrint (double __x) __attribute__ ((__nothrow__)); extern long int lround (double __x) __attribute__ ((__nothrow__)); extern long int __lround (double __x) __attribute__ ((__nothrow__)); extern long long int llround (double __x) __attribute__ ((__nothrow__)); extern long long int __llround (double __x) __attribute__ ((__nothrow__)); extern double fdim (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fdim (double __x, double __y) __attribute__ ((__nothrow__)); extern double fmax (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmax (double __x, double __y) __attribute__ ((__nothrow__)); extern double fmin (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmin (double __x, double __y) __attribute__ ((__nothrow__)); extern int __fpclassify (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int __signbit (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double fma (double __x, double __y, double __z) __attribute__ ((__nothrow__)); extern double __fma (double __x, double __y, double __z) __attribute__ ((__nothrow__)); extern double scalb (double __x, double __n) __attribute__ ((__nothrow__)); extern double __scalb (double __x, double __n) __attribute__ ((__nothrow__)); # 72 "/usr/include/math.h" 2 3 4 # 94 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern float acosf (float __x) __attribute__ ((__nothrow__)); extern float __acosf (float __x) __attribute__ ((__nothrow__)); extern float asinf (float __x) __attribute__ ((__nothrow__)); extern float __asinf (float __x) __attribute__ ((__nothrow__)); extern float atanf (float __x) __attribute__ ((__nothrow__)); extern float __atanf (float __x) __attribute__ ((__nothrow__)); extern float atan2f (float __y, float __x) __attribute__ ((__nothrow__)); extern float __atan2f (float __y, float __x) __attribute__ ((__nothrow__)); extern float cosf (float __x) __attribute__ ((__nothrow__)); extern float __cosf (float __x) __attribute__ ((__nothrow__)); extern float sinf (float __x) __attribute__ ((__nothrow__)); extern float __sinf (float __x) __attribute__ ((__nothrow__)); extern float tanf (float __x) __attribute__ ((__nothrow__)); extern float __tanf (float __x) __attribute__ ((__nothrow__)); extern float coshf (float __x) __attribute__ ((__nothrow__)); extern float __coshf (float __x) __attribute__ ((__nothrow__)); extern float sinhf (float __x) __attribute__ ((__nothrow__)); extern float __sinhf (float __x) __attribute__ ((__nothrow__)); extern float tanhf (float __x) __attribute__ ((__nothrow__)); extern float __tanhf (float __x) __attribute__ ((__nothrow__)); extern void sincosf # 82 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 (float __x, float *__sinx, float *__cosx) __attribute__ ((__nothrow__)); extern void __sincosf # 82 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 (float __x, float *__sinx, float *__cosx) __attribute__ ((__nothrow__)) ; extern float acoshf (float __x) __attribute__ ((__nothrow__)); extern float __acoshf (float __x) __attribute__ ((__nothrow__)); extern float asinhf (float __x) __attribute__ ((__nothrow__)); extern float __asinhf (float __x) __attribute__ ((__nothrow__)); extern float atanhf (float __x) __attribute__ ((__nothrow__)); extern float __atanhf (float __x) __attribute__ ((__nothrow__)); extern float expf (float __x) __attribute__ ((__nothrow__)); extern float __expf (float __x) __attribute__ ((__nothrow__)); extern float frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); extern float __frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); extern float ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); extern float __ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); extern float logf (float __x) __attribute__ ((__nothrow__)); extern float __logf (float __x) __attribute__ ((__nothrow__)); extern float log10f (float __x) __attribute__ ((__nothrow__)); extern float __log10f (float __x) __attribute__ ((__nothrow__)); extern float modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); extern float __modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); extern float exp10f (float __x) __attribute__ ((__nothrow__)); extern float __exp10f (float __x) __attribute__ ((__nothrow__)); extern float pow10f (float __x) __attribute__ ((__nothrow__)); extern float __pow10f (float __x) __attribute__ ((__nothrow__)); extern float expm1f (float __x) __attribute__ ((__nothrow__)); extern float __expm1f (float __x) __attribute__ ((__nothrow__)); extern float log1pf (float __x) __attribute__ ((__nothrow__)); extern float __log1pf (float __x) __attribute__ ((__nothrow__)); extern float logbf (float __x) __attribute__ ((__nothrow__)); extern float __logbf (float __x) __attribute__ ((__nothrow__)); extern float exp2f (float __x) __attribute__ ((__nothrow__)); extern float __exp2f (float __x) __attribute__ ((__nothrow__)); extern float log2f (float __x) __attribute__ ((__nothrow__)); extern float __log2f (float __x) __attribute__ ((__nothrow__)); extern float powf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __powf (float __x, float __y) __attribute__ ((__nothrow__)); extern float sqrtf (float __x) __attribute__ ((__nothrow__)); extern float __sqrtf (float __x) __attribute__ ((__nothrow__)); extern float hypotf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __hypotf (float __x, float __y) __attribute__ ((__nothrow__)); extern float cbrtf (float __x) __attribute__ ((__nothrow__)); extern float __cbrtf (float __x) __attribute__ ((__nothrow__)); extern float ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float fmodf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmodf (float __x, float __y) __attribute__ ((__nothrow__)); extern int __isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int __finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float dremf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __dremf (float __x, float __y) __attribute__ ((__nothrow__)); extern float significandf (float __x) __attribute__ ((__nothrow__)); extern float __significandf (float __x) __attribute__ ((__nothrow__)); extern float copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float nanf (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nanf (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int __isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float j0f (float) __attribute__ ((__nothrow__)); extern float __j0f (float) __attribute__ ((__nothrow__)); extern float j1f (float) __attribute__ ((__nothrow__)); extern float __j1f (float) __attribute__ ((__nothrow__)); extern float jnf (int, float) __attribute__ ((__nothrow__)); extern float __jnf (int, float) __attribute__ ((__nothrow__)); extern float y0f (float) __attribute__ ((__nothrow__)); extern float __y0f (float) __attribute__ ((__nothrow__)); extern float y1f (float) __attribute__ ((__nothrow__)); extern float __y1f (float) __attribute__ ((__nothrow__)); extern float ynf (int, float) __attribute__ ((__nothrow__)); extern float __ynf (int, float) __attribute__ ((__nothrow__)); extern float erff (float) __attribute__ ((__nothrow__)); extern float __erff (float) __attribute__ ((__nothrow__)); extern float erfcf (float) __attribute__ ((__nothrow__)); extern float __erfcf (float) __attribute__ ((__nothrow__)); extern float lgammaf (float) __attribute__ ((__nothrow__)); extern float __lgammaf (float) __attribute__ ((__nothrow__)); extern float tgammaf (float) __attribute__ ((__nothrow__)); extern float __tgammaf (float) __attribute__ ((__nothrow__)); extern float gammaf (float) __attribute__ ((__nothrow__)); extern float __gammaf (float) __attribute__ ((__nothrow__)); extern float lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); extern float __lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); extern float rintf (float __x) __attribute__ ((__nothrow__)); extern float __rintf (float __x) __attribute__ ((__nothrow__)); extern float nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float nexttowardf (float __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float remainderf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __remainderf (float __x, float __y) __attribute__ ((__nothrow__)); extern float scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); extern float __scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); extern int ilogbf (float __x) __attribute__ ((__nothrow__)); extern int __ilogbf (float __x) __attribute__ ((__nothrow__)); extern float scalblnf (float __x, long int __n) __attribute__ ((__nothrow__)); extern float __scalblnf (float __x, long int __n) __attribute__ ((__nothrow__)); extern float nearbyintf (float __x) __attribute__ ((__nothrow__)); extern float __nearbyintf (float __x) __attribute__ ((__nothrow__)); extern float roundf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __roundf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float truncf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __truncf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float remquof (float __x, float __y, int *__quo) __attribute__ ((__nothrow__)); extern float __remquof (float __x, float __y, int *__quo) __attribute__ ((__nothrow__)); extern long int lrintf (float __x) __attribute__ ((__nothrow__)); extern long int __lrintf (float __x) __attribute__ ((__nothrow__)); extern long long int llrintf (float __x) __attribute__ ((__nothrow__)); extern long long int __llrintf (float __x) __attribute__ ((__nothrow__)); extern long int lroundf (float __x) __attribute__ ((__nothrow__)); extern long int __lroundf (float __x) __attribute__ ((__nothrow__)); extern long long int llroundf (float __x) __attribute__ ((__nothrow__)); extern long long int __llroundf (float __x) __attribute__ ((__nothrow__)); extern float fdimf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fdimf (float __x, float __y) __attribute__ ((__nothrow__)); extern float fmaxf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmaxf (float __x, float __y) __attribute__ ((__nothrow__)); extern float fminf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fminf (float __x, float __y) __attribute__ ((__nothrow__)); extern int __fpclassifyf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int __signbitf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float fmaf (float __x, float __y, float __z) __attribute__ ((__nothrow__)); extern float __fmaf (float __x, float __y, float __z) __attribute__ ((__nothrow__)); extern float scalbf (float __x, float __n) __attribute__ ((__nothrow__)); extern float __scalbf (float __x, float __n) __attribute__ ((__nothrow__)); # 95 "/usr/include/math.h" 2 3 4 # 145 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern long double acosl (long double __x) __attribute__ ((__nothrow__)); extern long double __acosl (long double __x) __attribute__ ((__nothrow__)); extern long double asinl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinl (long double __x) __attribute__ ((__nothrow__)); extern long double atanl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanl (long double __x) __attribute__ ((__nothrow__)); extern long double atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); extern long double __atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); extern long double cosl (long double __x) __attribute__ ((__nothrow__)); extern long double __cosl (long double __x) __attribute__ ((__nothrow__)); extern long double sinl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinl (long double __x) __attribute__ ((__nothrow__)); extern long double tanl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanl (long double __x) __attribute__ ((__nothrow__)); extern long double coshl (long double __x) __attribute__ ((__nothrow__)); extern long double __coshl (long double __x) __attribute__ ((__nothrow__)); extern long double sinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinhl (long double __x) __attribute__ ((__nothrow__)); extern long double tanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanhl (long double __x) __attribute__ ((__nothrow__)); extern void sincosl # 82 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 (long double __x, long double *__sinx, long double *__cosx) __attribute__ ((__nothrow__)); extern void __sincosl # 82 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 (long double __x, long double *__sinx, long double *__cosx) __attribute__ ((__nothrow__)) ; extern long double acoshl (long double __x) __attribute__ ((__nothrow__)); extern long double __acoshl (long double __x) __attribute__ ((__nothrow__)); extern long double asinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinhl (long double __x) __attribute__ ((__nothrow__)); extern long double atanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanhl (long double __x) __attribute__ ((__nothrow__)); extern long double expl (long double __x) __attribute__ ((__nothrow__)); extern long double __expl (long double __x) __attribute__ ((__nothrow__)); extern long double frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); extern long double __frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); extern long double ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); extern long double __ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); extern long double logl (long double __x) __attribute__ ((__nothrow__)); extern long double __logl (long double __x) __attribute__ ((__nothrow__)); extern long double log10l (long double __x) __attribute__ ((__nothrow__)); extern long double __log10l (long double __x) __attribute__ ((__nothrow__)); extern long double modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); extern long double __modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); extern long double exp10l (long double __x) __attribute__ ((__nothrow__)); extern long double __exp10l (long double __x) __attribute__ ((__nothrow__)); extern long double pow10l (long double __x) __attribute__ ((__nothrow__)); extern long double __pow10l (long double __x) __attribute__ ((__nothrow__)); extern long double expm1l (long double __x) __attribute__ ((__nothrow__)); extern long double __expm1l (long double __x) __attribute__ ((__nothrow__)); extern long double log1pl (long double __x) __attribute__ ((__nothrow__)); extern long double __log1pl (long double __x) __attribute__ ((__nothrow__)); extern long double logbl (long double __x) __attribute__ ((__nothrow__)); extern long double __logbl (long double __x) __attribute__ ((__nothrow__)); extern long double exp2l (long double __x) __attribute__ ((__nothrow__)); extern long double __exp2l (long double __x) __attribute__ ((__nothrow__)); extern long double log2l (long double __x) __attribute__ ((__nothrow__)); extern long double __log2l (long double __x) __attribute__ ((__nothrow__)); extern long double powl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __powl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double sqrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __sqrtl (long double __x) __attribute__ ((__nothrow__)); extern long double hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double cbrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __cbrtl (long double __x) __attribute__ ((__nothrow__)); extern long double ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern int __isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int __finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double significandl (long double __x) __attribute__ ((__nothrow__)); extern long double __significandl (long double __x) __attribute__ ((__nothrow__)); extern long double copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double nanl (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nanl (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int __isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double j0l (long double) __attribute__ ((__nothrow__)); extern long double __j0l (long double) __attribute__ ((__nothrow__)); extern long double j1l (long double) __attribute__ ((__nothrow__)); extern long double __j1l (long double) __attribute__ ((__nothrow__)); extern long double jnl (int, long double) __attribute__ ((__nothrow__)); extern long double __jnl (int, long double) __attribute__ ((__nothrow__)); extern long double y0l (long double) __attribute__ ((__nothrow__)); extern long double __y0l (long double) __attribute__ ((__nothrow__)); extern long double y1l (long double) __attribute__ ((__nothrow__)); extern long double __y1l (long double) __attribute__ ((__nothrow__)); extern long double ynl (int, long double) __attribute__ ((__nothrow__)); extern long double __ynl (int, long double) __attribute__ ((__nothrow__)); extern long double erfl (long double) __attribute__ ((__nothrow__)); extern long double __erfl (long double) __attribute__ ((__nothrow__)); extern long double erfcl (long double) __attribute__ ((__nothrow__)); extern long double __erfcl (long double) __attribute__ ((__nothrow__)); extern long double lgammal (long double) __attribute__ ((__nothrow__)); extern long double __lgammal (long double) __attribute__ ((__nothrow__)); extern long double tgammal (long double) __attribute__ ((__nothrow__)); extern long double __tgammal (long double) __attribute__ ((__nothrow__)); extern long double gammal (long double) __attribute__ ((__nothrow__)); extern long double __gammal (long double) __attribute__ ((__nothrow__)); extern long double lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); extern long double __lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); extern long double rintl (long double __x) __attribute__ ((__nothrow__)); extern long double __rintl (long double __x) __attribute__ ((__nothrow__)); extern long double nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double nexttowardl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nexttowardl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); extern long double __scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); extern int ilogbl (long double __x) __attribute__ ((__nothrow__)); extern int __ilogbl (long double __x) __attribute__ ((__nothrow__)); extern long double scalblnl (long double __x, long int __n) __attribute__ ((__nothrow__)); extern long double __scalblnl (long double __x, long int __n) __attribute__ ((__nothrow__)); extern long double nearbyintl (long double __x) __attribute__ ((__nothrow__)); extern long double __nearbyintl (long double __x) __attribute__ ((__nothrow__)); extern long double roundl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __roundl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double truncl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __truncl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double remquol (long double __x, long double __y, int *__quo) __attribute__ ((__nothrow__)); extern long double __remquol (long double __x, long double __y, int *__quo) __attribute__ ((__nothrow__)); extern long int lrintl (long double __x) __attribute__ ((__nothrow__)); extern long int __lrintl (long double __x) __attribute__ ((__nothrow__)); extern long long int llrintl (long double __x) __attribute__ ((__nothrow__)); extern long long int __llrintl (long double __x) __attribute__ ((__nothrow__)); extern long int lroundl (long double __x) __attribute__ ((__nothrow__)); extern long int __lroundl (long double __x) __attribute__ ((__nothrow__)); extern long long int llroundl (long double __x) __attribute__ ((__nothrow__)); extern long long int __llroundl (long double __x) __attribute__ ((__nothrow__)); extern long double fdiml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fdiml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double fmaxl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmaxl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double fminl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fminl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern int __fpclassifyl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int __signbitl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double fmal (long double __x, long double __y, long double __z) __attribute__ ((__nothrow__)); extern long double __fmal (long double __x, long double __y, long double __z) __attribute__ ((__nothrow__)); extern long double scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); extern long double __scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); # 146 "/usr/include/math.h" 2 3 4 # 161 "/usr/include/math.h" 3 4 extern int signgam; # 202 "/usr/include/math.h" 3 4 enum { FP_NAN, FP_INFINITE, FP_ZERO, FP_SUBNORMAL, FP_NORMAL }; # 295 "/usr/include/math.h" 3 4 typedef enum { _IEEE_ = -1, _SVID_, _XOPEN_, _POSIX_, _ISOC_ } _LIB_VERSION_TYPE; extern _LIB_VERSION_TYPE _LIB_VERSION; # 320 "/usr/include/math.h" 3 4 struct exception { int type; char *name; double arg1; double arg2; double retval; }; extern int matherr (struct exception *__exc); # 420 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathinline.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/mathinline.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/mathinline.h" 2 3 4 # 37 "/usr/include/x86_64-linux-gnu/bits/mathinline.h" 3 4 extern __inline int __attribute__ ((__nothrow__)) __signbitf (float __x) { int __m; __asm ("pmovmskb %1, %0" : "=r" (__m) : "x" (__x)); return __m & 0x8; } extern __inline int __attribute__ ((__nothrow__)) __signbit (double __x) { int __m; __asm ("pmovmskb %1, %0" : "=r" (__m) : "x" (__x)); return __m & 0x80; } extern __inline int __attribute__ ((__nothrow__)) __signbitl (long double __x) { __extension__ union { long double __l; int __i[3]; } __u = { __l: __x }; return (__u.__i[2] & 0x8000) != 0; } # 421 "/usr/include/math.h" 2 3 4 # 476 "/usr/include/math.h" 3 4 # 35 "../../include/wine/port.h" 2 # 1 "/usr/include/x86_64-linux-gnu/sys/stat.h" 1 3 4 # 39 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 # 1 "/usr/include/time.h" 1 3 4 # 40 "/usr/include/x86_64-linux-gnu/sys/stat.h" 2 3 4 # 105 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stat.h" 1 3 4 # 108 "/usr/include/x86_64-linux-gnu/sys/stat.h" 2 3 4 # 211 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int stat (__const char *__restrict __file, struct stat *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int fstat (int __fd, struct stat *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); # 230 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int stat64 (__const char *__restrict __file, struct stat64 *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int fstat64 (int __fd, struct stat64 *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int fstatat (int __fd, __const char *__restrict __file, struct stat *__restrict __buf, int __flag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); # 255 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int fstatat64 (int __fd, __const char *__restrict __file, struct stat64 *__restrict __buf, int __flag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); extern int lstat (__const char *__restrict __file, struct stat *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); # 278 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int lstat64 (__const char *__restrict __file, struct stat64 *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int chmod (__const char *__file, __mode_t __mode) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int lchmod (__const char *__file, __mode_t __mode) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int fchmod (int __fd, __mode_t __mode) __attribute__ ((__nothrow__)); extern int fchmodat (int __fd, __const char *__file, __mode_t __mode, int __flag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ; extern __mode_t umask (__mode_t __mask) __attribute__ ((__nothrow__)); extern __mode_t getumask (void) __attribute__ ((__nothrow__)); extern int mkdir (__const char *__path, __mode_t __mode) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int mkdirat (int __fd, __const char *__path, __mode_t __mode) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int mknodat (int __fd, __const char *__path, __mode_t __mode, __dev_t __dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int mkfifo (__const char *__path, __mode_t __mode) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int mkfifoat (int __fd, __const char *__path, __mode_t __mode) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int utimensat (int __fd, __const char *__path, __const struct timespec __times[2], int __flags) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int futimens (int __fd, __const struct timespec __times[2]) __attribute__ ((__nothrow__)); # 401 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))); extern int __xstat (int __ver, __const char *__filename, struct stat *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); extern int __lxstat (int __ver, __const char *__filename, struct stat *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); extern int __fxstatat (int __ver, int __fildes, __const char *__filename, struct stat *__stat_buf, int __flag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))); # 434 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int __fxstat64 (int __ver, int __fildes, struct stat64 *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))); extern int __xstat64 (int __ver, __const char *__filename, struct stat64 *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); extern int __lxstat64 (int __ver, __const char *__filename, struct stat64 *__stat_buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); extern int __fxstatat64 (int __ver, int __fildes, __const char *__filename, struct stat64 *__stat_buf, int __flag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))); extern int __xmknod (int __ver, __const char *__path, __mode_t __mode, __dev_t *__dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); extern int __xmknodat (int __ver, int __fd, __const char *__path, __mode_t __mode, __dev_t *__dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 5))); extern __inline int __attribute__ ((__nothrow__)) stat (__const char *__path, struct stat *__statbuf) { return __xstat (1, __path, __statbuf); } extern __inline int __attribute__ ((__nothrow__)) lstat (__const char *__path, struct stat *__statbuf) { return __lxstat (1, __path, __statbuf); } extern __inline int __attribute__ ((__nothrow__)) fstat (int __fd, struct stat *__statbuf) { return __fxstat (1, __fd, __statbuf); } extern __inline int __attribute__ ((__nothrow__)) fstatat (int __fd, __const char *__filename, struct stat *__statbuf, int __flag) { return __fxstatat (1, __fd, __filename, __statbuf, __flag); } extern __inline int __attribute__ ((__nothrow__)) mknod (__const char *__path, __mode_t __mode, __dev_t __dev) { return __xmknod (0, __path, __mode, &__dev); } extern __inline int __attribute__ ((__nothrow__)) mknodat (int __fd, __const char *__path, __mode_t __mode, __dev_t __dev) { return __xmknodat (0, __fd, __path, __mode, &__dev); } extern __inline int __attribute__ ((__nothrow__)) stat64 (__const char *__path, struct stat64 *__statbuf) { return __xstat64 (1, __path, __statbuf); } extern __inline int __attribute__ ((__nothrow__)) lstat64 (__const char *__path, struct stat64 *__statbuf) { return __lxstat64 (1, __path, __statbuf); } extern __inline int __attribute__ ((__nothrow__)) fstat64 (int __fd, struct stat64 *__statbuf) { return __fxstat64 (1, __fd, __statbuf); } extern __inline int __attribute__ ((__nothrow__)) fstatat64 (int __fd, __const char *__filename, struct stat64 *__statbuf, int __flag) { return __fxstatat64 (1, __fd, __filename, __statbuf, __flag); } # 37 "../../include/wine/port.h" 2 # 46 "../../include/wine/port.h" # 1 "/usr/include/string.h" 1 3 4 # 29 "/usr/include/string.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stddef.h" 1 3 4 # 35 "/usr/include/string.h" 2 3 4 extern void *memcpy (void *__restrict __dest, __const void *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memmove (void *__dest, __const void *__src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 95 "/usr/include/string.h" 3 4 extern void *memchr (__const void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 109 "/usr/include/string.h" 3 4 extern void *rawmemchr (__const void *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 120 "/usr/include/string.h" 3 4 extern void *memrchr (__const void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strncpy (char *__restrict __dest, __const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strcat (char *__restrict __dest, __const char *__restrict __src) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strncat (char *__restrict __dest, __const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcmp (__const char *__s1, __const char *__s2) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcoll (__const char *__s1, __const char *__s2) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strxfrm (char *__restrict __dest, __const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); # 1 "/usr/include/xlocale.h" 1 3 4 # 28 "/usr/include/xlocale.h" 3 4 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; # 163 "/usr/include/string.h" 2 3 4 extern int strcoll_l (__const char *__s1, __const char *__s2, __locale_t __l) __attribute__ ((__nothrow__)) __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__)) __attribute__ ((__nonnull__ (2, 4))); extern char *strdup (__const char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); extern char *strndup (__const char *__string, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); # 210 "/usr/include/string.h" 3 4 # 235 "/usr/include/string.h" 3 4 extern char *strchr (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 262 "/usr/include/string.h" 3 4 extern char *strrchr (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 276 "/usr/include/string.h" 3 4 extern char *strchrnul (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern size_t strcspn (__const char *__s, __const char *__reject) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strspn (__const char *__s, __const char *__accept) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 314 "/usr/include/string.h" 3 4 extern char *strpbrk (__const char *__s, __const char *__accept) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 342 "/usr/include/string.h" 3 4 extern char *strstr (__const char *__haystack, __const char *__needle) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strtok (char *__restrict __s, __const char *__restrict __delim) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern char *__strtok_r (char *__restrict __s, __const char *__restrict __delim, char **__restrict __save_ptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, char **__restrict __save_ptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); # 373 "/usr/include/string.h" 3 4 extern char *strcasestr (__const char *__haystack, __const char *__needle) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memmem (__const void *__haystack, size_t __haystacklen, __const void *__needle, size_t __needlelen) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))); extern void *__mempcpy (void *__restrict __dest, __const void *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void *mempcpy (void *__restrict __dest, __const void *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strlen (__const char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern size_t strnlen (__const char *__string, size_t __maxlen) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *strerror (int __errnum) __attribute__ ((__nothrow__)); # 438 "/usr/include/string.h" 3 4 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern char *strerror_l (int __errnum, __locale_t __l) __attribute__ ((__nothrow__)); extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void bcopy (__const void *__src, void *__dest, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 489 "/usr/include/string.h" 3 4 extern char *index (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 517 "/usr/include/string.h" 3 4 extern char *rindex (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int ffsl (long int __l) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); __extension__ extern int ffsll (long long int __ll) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int strcasecmp (__const char *__s1, __const char *__s2) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcasecmp_l (__const char *__s1, __const char *__s2, __locale_t __loc) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); extern int strncasecmp_l (__const char *__s1, __const char *__s2, size_t __n, __locale_t __loc) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); extern char *strsep (char **__restrict __stringp, __const char *__restrict __delim) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strsignal (int __sig) __attribute__ ((__nothrow__)); extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *__stpncpy (char *__restrict __dest, __const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *stpncpy (char *__restrict __dest, __const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int strverscmp (__const char *__s1, __const char *__s2) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strfry (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void *memfrob (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); # 606 "/usr/include/string.h" 3 4 extern char *basename (__const char *__filename) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); # 634 "/usr/include/string.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/string.h" 1 3 4 # 635 "/usr/include/string.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/string2.h" 1 3 4 # 394 "/usr/include/x86_64-linux-gnu/bits/string2.h" 3 4 extern void *__rawmemchr (const void *__s, int __c); # 969 "/usr/include/x86_64-linux-gnu/bits/string2.h" 3 4 extern __inline size_t __strcspn_c1 (__const char *__s, int __reject); extern __inline size_t __strcspn_c1 (__const char *__s, int __reject) { register size_t __result = 0; while (__s[__result] != '\0' && __s[__result] != __reject) ++__result; return __result; } extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1, int __reject2); extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1, int __reject2) { register size_t __result = 0; while (__s[__result] != '\0' && __s[__result] != __reject1 && __s[__result] != __reject2) ++__result; return __result; } extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1, int __reject2, int __reject3); extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1, int __reject2, int __reject3) { register size_t __result = 0; while (__s[__result] != '\0' && __s[__result] != __reject1 && __s[__result] != __reject2 && __s[__result] != __reject3) ++__result; return __result; } # 1045 "/usr/include/x86_64-linux-gnu/bits/string2.h" 3 4 extern __inline size_t __strspn_c1 (__const char *__s, int __accept); extern __inline size_t __strspn_c1 (__const char *__s, int __accept) { register size_t __result = 0; while (__s[__result] == __accept) ++__result; return __result; } extern __inline size_t __strspn_c2 (__const char *__s, int __accept1, int __accept2); extern __inline size_t __strspn_c2 (__const char *__s, int __accept1, int __accept2) { register size_t __result = 0; while (__s[__result] == __accept1 || __s[__result] == __accept2) ++__result; return __result; } extern __inline size_t __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3); extern __inline size_t __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3) { register size_t __result = 0; while (__s[__result] == __accept1 || __s[__result] == __accept2 || __s[__result] == __accept3) ++__result; return __result; } # 1121 "/usr/include/x86_64-linux-gnu/bits/string2.h" 3 4 extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1, int __accept2); extern __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 char *__strpbrk_c3 (__const char *__s, int __accept1, int __accept2, int __accept3); extern __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; } # 1172 "/usr/include/x86_64-linux-gnu/bits/string2.h" 3 4 extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp); extern __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; } # 1204 "/usr/include/x86_64-linux-gnu/bits/string2.h" 3 4 extern char *__strsep_g (char **__stringp, __const char *__delim); # 1222 "/usr/include/x86_64-linux-gnu/bits/string2.h" 3 4 extern __inline char *__strsep_1c (char **__s, char __reject); extern __inline char * __strsep_1c (char **__s, char __reject) { register 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 char *__strsep_2c (char **__s, char __reject1, char __reject2); extern __inline char * __strsep_2c (char **__s, char __reject1, char __reject2) { register char *__retval = *__s; if (__retval != ((void *)0)) { register 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 char *__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3); extern __inline char * __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3) { register char *__retval = *__s; if (__retval != ((void *)0)) { register 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; } # 1298 "/usr/include/x86_64-linux-gnu/bits/string2.h" 3 4 # 1 "/usr/include/stdlib.h" 1 3 4 # 33 "/usr/include/stdlib.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stddef.h" 1 3 4 # 34 "/usr/include/stdlib.h" 2 3 4 # 469 "/usr/include/stdlib.h" 3 4 extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; extern void *calloc (size_t __nmemb, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; # 964 "/usr/include/stdlib.h" 3 4 # 1299 "/usr/include/x86_64-linux-gnu/bits/string2.h" 2 3 4 extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); # 1322 "/usr/include/x86_64-linux-gnu/bits/string2.h" 3 4 extern char *__strndup (__const char *__string, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); # 638 "/usr/include/string.h" 2 3 4 # 646 "/usr/include/string.h" 3 4 # 47 "../../include/wine/port.h" 2 # 1 "/usr/include/unistd.h" 1 3 4 # 28 "/usr/include/unistd.h" 3 4 # 203 "/usr/include/unistd.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/posix_opt.h" 1 3 4 # 204 "/usr/include/unistd.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/environments.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/environments.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/environments.h" 2 3 4 # 208 "/usr/include/unistd.h" 2 3 4 # 227 "/usr/include/unistd.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stddef.h" 1 3 4 # 228 "/usr/include/unistd.h" 2 3 4 # 268 "/usr/include/unistd.h" 3 4 typedef __intptr_t intptr_t; typedef __socklen_t socklen_t; # 288 "/usr/include/unistd.h" 3 4 extern int access (__const char *__name, int __type) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int euidaccess (__const char *__name, int __type) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int eaccess (__const char *__name, int __type) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int faccessat (int __fd, __const char *__file, int __type, int __flag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ; # 331 "/usr/include/unistd.h" 3 4 extern __off_t lseek (int __fd, __off_t __offset, int __whence) __attribute__ ((__nothrow__)); # 342 "/usr/include/unistd.h" 3 4 extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) __attribute__ ((__nothrow__)); extern int close (int __fd); extern ssize_t read (int __fd, void *__buf, size_t __nbytes) ; extern ssize_t write (int __fd, __const void *__buf, size_t __n) ; # 373 "/usr/include/unistd.h" 3 4 extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off_t __offset) ; extern ssize_t pwrite (int __fd, __const void *__buf, size_t __n, __off_t __offset) ; # 401 "/usr/include/unistd.h" 3 4 extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) ; extern ssize_t pwrite64 (int __fd, __const void *__buf, size_t __n, __off64_t __offset) ; extern int pipe (int __pipedes[2]) __attribute__ ((__nothrow__)) ; extern int pipe2 (int __pipedes[2], int __flags) __attribute__ ((__nothrow__)) ; # 429 "/usr/include/unistd.h" 3 4 extern unsigned int alarm (unsigned int __seconds) __attribute__ ((__nothrow__)); # 441 "/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__)); extern int usleep (__useconds_t __useconds); # 466 "/usr/include/unistd.h" 3 4 extern int pause (void); extern int chown (__const char *__file, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__)) ; extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int fchownat (int __fd, __const char *__file, __uid_t __owner, __gid_t __group, int __flag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ; extern int chdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int fchdir (int __fd) __attribute__ ((__nothrow__)) ; # 508 "/usr/include/unistd.h" 3 4 extern char *getcwd (char *__buf, size_t __size) __attribute__ ((__nothrow__)) ; extern char *get_current_dir_name (void) __attribute__ ((__nothrow__)); extern char *getwd (char *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) ; extern int dup (int __fd) __attribute__ ((__nothrow__)) ; extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__)); extern int dup3 (int __fd, int __fd2, int __flags) __attribute__ ((__nothrow__)); extern char **__environ; extern char **environ; extern int execve (__const char *__path, char *__const __argv[], char *__const __envp[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int fexecve (int __fd, char *__const __argv[], char *__const __envp[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int execv (__const char *__path, char *__const __argv[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int execle (__const char *__path, __const char *__arg, ...) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int execl (__const char *__path, __const char *__arg, ...) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int execvp (__const char *__file, char *__const __argv[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int execlp (__const char *__file, __const char *__arg, ...) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int execvpe (__const char *__file, char *__const __argv[], char *__const __envp[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int nice (int __inc) __attribute__ ((__nothrow__)) ; extern void _exit (int __status) __attribute__ ((__noreturn__)); # 1 "/usr/include/x86_64-linux-gnu/bits/confname.h" 1 3 4 # 26 "/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 }; # 607 "/usr/include/unistd.h" 2 3 4 extern long int pathconf (__const char *__path, int __name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__)); extern long int sysconf (int __name) __attribute__ ((__nothrow__)); extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__)); extern __pid_t getpid (void) __attribute__ ((__nothrow__)); extern __pid_t getppid (void) __attribute__ ((__nothrow__)); extern __pid_t getpgrp (void) __attribute__ ((__nothrow__)); # 643 "/usr/include/unistd.h" 3 4 extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__)); extern __pid_t getpgid (__pid_t __pid) __attribute__ ((__nothrow__)); extern int setpgid (__pid_t __pid, __pid_t __pgid) __attribute__ ((__nothrow__)); # 669 "/usr/include/unistd.h" 3 4 extern int setpgrp (void) __attribute__ ((__nothrow__)); # 686 "/usr/include/unistd.h" 3 4 extern __pid_t setsid (void) __attribute__ ((__nothrow__)); extern __pid_t getsid (__pid_t __pid) __attribute__ ((__nothrow__)); extern __uid_t getuid (void) __attribute__ ((__nothrow__)); extern __uid_t geteuid (void) __attribute__ ((__nothrow__)); extern __gid_t getgid (void) __attribute__ ((__nothrow__)); extern __gid_t getegid (void) __attribute__ ((__nothrow__)); extern int getgroups (int __size, __gid_t __list[]) __attribute__ ((__nothrow__)) ; extern int group_member (__gid_t __gid) __attribute__ ((__nothrow__)); extern int setuid (__uid_t __uid) __attribute__ ((__nothrow__)); extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__)); extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__)); extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__)); extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__)); extern int setegid (__gid_t __gid) __attribute__ ((__nothrow__)); extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) __attribute__ ((__nothrow__)); extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) __attribute__ ((__nothrow__)); extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) __attribute__ ((__nothrow__)); extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) __attribute__ ((__nothrow__)); extern __pid_t fork (void) __attribute__ ((__nothrow__)); extern __pid_t vfork (void) __attribute__ ((__nothrow__)); extern char *ttyname (int __fd) __attribute__ ((__nothrow__)); extern int ttyname_r (int __fd, char *__buf, size_t __buflen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ; extern int isatty (int __fd) __attribute__ ((__nothrow__)); extern int ttyslot (void) __attribute__ ((__nothrow__)); extern int link (__const char *__from, __const char *__to) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ; extern int linkat (int __fromfd, __const char *__from, int __tofd, __const char *__to, int __flags) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))) ; extern int symlink (__const char *__from, __const char *__to) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ; extern ssize_t readlink (__const char *__restrict __path, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ; extern int symlinkat (__const char *__from, int __tofd, __const char *__to) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))) ; extern ssize_t readlinkat (int __fd, __const char *__restrict __path, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))) ; extern int unlink (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int unlinkat (int __fd, __const char *__name, int __flag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int rmdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern __pid_t tcgetpgrp (int __fd) __attribute__ ((__nothrow__)); extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __attribute__ ((__nothrow__)); 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__)) __attribute__ ((__nonnull__ (1))); # 890 "/usr/include/unistd.h" 3 4 # 1 "/usr/include/getopt.h" 1 3 4 # 59 "/usr/include/getopt.h" 3 4 extern char *optarg; # 73 "/usr/include/getopt.h" 3 4 extern int optind; extern int opterr; extern int optopt; # 152 "/usr/include/getopt.h" 3 4 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) __attribute__ ((__nothrow__)); # 891 "/usr/include/unistd.h" 2 3 4 extern int gethostname (char *__name, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int sethostname (__const char *__name, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int sethostid (long int __id) __attribute__ ((__nothrow__)) ; extern int getdomainname (char *__name, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int setdomainname (__const char *__name, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int vhangup (void) __attribute__ ((__nothrow__)); extern int revoke (__const char *__file) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int profil (unsigned short int *__sample_buffer, size_t __size, size_t __offset, unsigned int __scale) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int acct (__const char *__name) __attribute__ ((__nothrow__)); extern char *getusershell (void) __attribute__ ((__nothrow__)); extern void endusershell (void) __attribute__ ((__nothrow__)); extern void setusershell (void) __attribute__ ((__nothrow__)); extern int daemon (int __nochdir, int __noclose) __attribute__ ((__nothrow__)) ; extern int chroot (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern char *getpass (__const char *__prompt) __attribute__ ((__nonnull__ (1))); # 976 "/usr/include/unistd.h" 3 4 extern int fsync (int __fd); extern long int gethostid (void); extern void sync (void) __attribute__ ((__nothrow__)); extern int getpagesize (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern int getdtablesize (void) __attribute__ ((__nothrow__)); # 1007 "/usr/include/unistd.h" 3 4 extern int truncate (__const char *__file, __off_t __length) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 1019 "/usr/include/unistd.h" 3 4 extern int truncate64 (__const char *__file, __off64_t __length) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 1029 "/usr/include/unistd.h" 3 4 extern int ftruncate (int __fd, __off_t __length) __attribute__ ((__nothrow__)) ; # 1039 "/usr/include/unistd.h" 3 4 extern int ftruncate64 (int __fd, __off64_t __length) __attribute__ ((__nothrow__)) ; # 1050 "/usr/include/unistd.h" 3 4 extern int brk (void *__addr) __attribute__ ((__nothrow__)) ; extern void *sbrk (intptr_t __delta) __attribute__ ((__nothrow__)); # 1071 "/usr/include/unistd.h" 3 4 extern long int syscall (long int __sysno, ...) __attribute__ ((__nothrow__)); # 1125 "/usr/include/unistd.h" 3 4 extern int fdatasync (int __fildes); extern char *crypt (__const char *__key, __const char *__salt) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void encrypt (char *__libc_block, int __edflag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void swab (__const void *__restrict __from, void *__restrict __to, ssize_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *ctermid (char *__s) __attribute__ ((__nothrow__)); # 1163 "/usr/include/unistd.h" 3 4 # 49 "../../include/wine/port.h" 2 # 109 "../../include/wine/port.h" # 1 "/usr/include/dlfcn.h" 1 3 4 # 25 "/usr/include/dlfcn.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stddef.h" 1 3 4 # 26 "/usr/include/dlfcn.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/dlfcn.h" 1 3 4 # 58 "/usr/include/x86_64-linux-gnu/bits/dlfcn.h" 3 4 extern void _dl_mcount_wrapper_check (void *__selfpc) __attribute__ ((__nothrow__)); # 29 "/usr/include/dlfcn.h" 2 3 4 # 45 "/usr/include/dlfcn.h" 3 4 typedef long int Lmid_t; extern void *dlopen (__const char *__file, int __mode) __attribute__ ((__nothrow__)); extern int dlclose (void *__handle) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void *dlsym (void *__restrict __handle, __const char *__restrict __name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern void *dlmopen (Lmid_t __nsid, __const char *__file, int __mode) __attribute__ ((__nothrow__)); extern void *dlvsym (void *__restrict __handle, __const char *__restrict __name, __const char *__restrict __version) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); extern char *dlerror (void) __attribute__ ((__nothrow__)); typedef struct { __const char *dli_fname; void *dli_fbase; __const char *dli_sname; void *dli_saddr; } Dl_info; extern int dladdr (__const void *__address, Dl_info *__info) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int dladdr1 (__const void *__address, Dl_info *__info, void **__extra_info, int __flags) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); enum { RTLD_DL_SYMENT = 1, RTLD_DL_LINKMAP = 2 }; extern int dlinfo (void *__restrict __handle, int __request, void *__restrict __arg) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))); enum { RTLD_DI_LMID = 1, RTLD_DI_LINKMAP = 2, RTLD_DI_CONFIGADDR = 3, RTLD_DI_SERINFO = 4, RTLD_DI_SERINFOSIZE = 5, RTLD_DI_ORIGIN = 6, RTLD_DI_PROFILENAME = 7, RTLD_DI_PROFILEOUT = 8, RTLD_DI_TLS_MODID = 9, RTLD_DI_TLS_DATA = 10, RTLD_DI_MAX = 10 }; typedef struct { char *dls_name; unsigned int dls_flags; } Dl_serpath; typedef struct { size_t dls_size; unsigned int dls_cnt; Dl_serpath dls_serpath[1]; } Dl_serinfo; # 110 "../../include/wine/port.h" 2 # 333 "../../include/wine/port.h" extern void *memcpy_unaligned( void *dst, const void *src, size_t size ); extern int mkstemps(char *template, int suffix_len); # 347 "../../include/wine/port.h" extern int spawnvp(int mode, const char *cmdname, const char * const argv[]); extern long interlocked_cmpxchg64( long *dest, long xchg, long compare ); static inline int interlocked_cmpxchg( int *dest, int xchg, int compare ) { int ret; __asm__ __volatile__( "lock; cmpxchgl %2,(%1)" : "=a" (ret) : "r" (dest), "r" (xchg), "0" (compare) : "memory" ); return ret; } static inline void *interlocked_cmpxchg_ptr( void **dest, void *xchg, void *compare ) { void *ret; __asm__ __volatile__( "lock; cmpxchgq %2,(%1)" : "=a" (ret) : "r" (dest), "r" (xchg), "0" (compare) : "memory" ); return ret; } static inline int interlocked_xchg( int *dest, int val ) { int ret; __asm__ __volatile__( "lock; xchgl %0,(%1)" : "=r" (ret) : "r" (dest), "0" (val) : "memory" ); return ret; } static inline void *interlocked_xchg_ptr( void **dest, void *val ) { void *ret; __asm__ __volatile__( "lock; xchgq %0,(%1)" : "=r" (ret) :"r" (dest), "0" (val) : "memory" ); return ret; } static inline int interlocked_xchg_add( int *dest, int incr ) { int ret; __asm__ __volatile__( "lock; xaddl %0,(%1)" : "=r" (ret) : "r" (dest), "0" (incr) : "memory" ); return ret; } static inline unsigned char interlocked_cmpxchg128( long *dest, long xchg_high, long xchg_low, long *compare ) { unsigned char ret; __asm__ __volatile__( "lock cmpxchg16b %0; setz %b2" : "=m" (dest[0]), "=m" (dest[1]), "=r" (ret), "=a" (compare[0]), "=d" (compare[1]) : "m" (dest[0]), "m" (dest[1]), "3" (compare[0]), "4" (compare[1]), "c" (xchg_high), "b" (xchg_low) ); return ret; } # 31 "file.c" 2 # 1 "/usr/include/time.h" 1 3 4 # 30 "/usr/include/time.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stddef.h" 1 3 4 # 39 "/usr/include/time.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/time.h" 1 3 4 # 43 "/usr/include/time.h" 2 3 4 # 131 "/usr/include/time.h" 3 4 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; # 180 "/usr/include/time.h" 3 4 extern clock_t clock (void) __attribute__ ((__nothrow__)); extern time_t time (time_t *__timer) __attribute__ ((__nothrow__)); extern double difftime (time_t __time1, time_t __time0) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__)); extern size_t strftime (char *__restrict __s, size_t __maxsize, __const char *__restrict __format, __const struct tm *__restrict __tp) __attribute__ ((__nothrow__)); extern char *strptime (__const char *__restrict __s, __const char *__restrict __fmt, struct tm *__tp) __attribute__ ((__nothrow__)); 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__)); extern char *strptime_l (__const char *__restrict __s, __const char *__restrict __fmt, struct tm *__tp, __locale_t __loc) __attribute__ ((__nothrow__)); extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__)); extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__)); extern struct tm *gmtime_r (__const time_t *__restrict __timer, struct tm *__restrict __tp) __attribute__ ((__nothrow__)); extern struct tm *localtime_r (__const time_t *__restrict __timer, struct tm *__restrict __tp) __attribute__ ((__nothrow__)); extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__)); extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__)); extern char *asctime_r (__const struct tm *__restrict __tp, char *__restrict __buf) __attribute__ ((__nothrow__)); extern char *ctime_r (__const time_t *__restrict __timer, char *__restrict __buf) __attribute__ ((__nothrow__)); extern char *__tzname[2]; extern int __daylight; extern long int __timezone; extern char *tzname[2]; extern void tzset (void) __attribute__ ((__nothrow__)); extern int daylight; extern long int timezone; extern int stime (__const time_t *__when) __attribute__ ((__nothrow__)); # 313 "/usr/include/time.h" 3 4 extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__)); extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__)); extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); # 328 "/usr/include/time.h" 3 4 extern int nanosleep (__const struct timespec *__requested_time, struct timespec *__remaining); extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__)); extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__)); extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp) __attribute__ ((__nothrow__)); 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__)); extern int timer_create (clockid_t __clock_id, struct sigevent *__restrict __evp, timer_t *__restrict __timerid) __attribute__ ((__nothrow__)); extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__)); extern int timer_settime (timer_t __timerid, int __flags, __const struct itimerspec *__restrict __value, struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__)); extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) __attribute__ ((__nothrow__)); extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__)); # 390 "/usr/include/time.h" 3 4 extern int getdate_err; # 399 "/usr/include/time.h" 3 4 extern struct tm *getdate (__const char *__string); # 413 "/usr/include/time.h" 3 4 extern int getdate_r (__const char *__restrict __string, struct tm *__restrict __resbufp); # 33 "file.c" 2 # 1 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stdarg.h" 1 3 4 # 40 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stdarg.h" 3 4 typedef __builtin_va_list __gnuc_va_list; # 102 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stdarg.h" 3 4 typedef __gnuc_va_list va_list; # 34 "file.c" 2 # 1 "/usr/include/stdio.h" 1 3 4 # 30 "/usr/include/stdio.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stddef.h" 1 3 4 # 35 "/usr/include/stdio.h" 2 3 4 # 45 "/usr/include/stdio.h" 3 4 struct _IO_FILE; typedef struct _IO_FILE FILE; # 65 "/usr/include/stdio.h" 3 4 typedef struct _IO_FILE __FILE; # 75 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/libio.h" 1 3 4 # 32 "/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/4.6.1/include/stddef.h" 1 3 4 # 16 "/usr/include/_G_config.h" 2 3 4 # 1 "/usr/include/wchar.h" 1 3 4 # 83 "/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; # 53 "/usr/include/_G_config.h" 3 4 typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); # 33 "/usr/include/libio.h" 2 3 4 # 170 "/usr/include/libio.h" 3 4 struct _IO_jump_t; struct _IO_FILE; # 180 "/usr/include/libio.h" 3 4 typedef void _IO_lock_t; struct _IO_marker { struct _IO_marker *_next; struct _IO_FILE *_sbuf; int _pos; # 203 "/usr/include/libio.h" 3 4 }; enum __codecvt_result { __codecvt_ok, __codecvt_partial, __codecvt_error, __codecvt_noconv }; # 271 "/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; # 319 "/usr/include/libio.h" 3 4 __off64_t _offset; # 328 "/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_; # 364 "/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); typedef __io_read_fn cookie_read_function_t; typedef __io_write_fn cookie_write_function_t; typedef __io_seek_fn cookie_seek_function_t; typedef __io_close_fn cookie_close_function_t; typedef struct { __io_read_fn *read; __io_write_fn *write; __io_seek_fn *seek; __io_close_fn *close; } _IO_cookie_io_functions_t; typedef _IO_cookie_io_functions_t cookie_io_functions_t; struct _IO_cookie_file; extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write, void *__cookie, _IO_cookie_io_functions_t __fns); extern int __underflow (_IO_FILE *); extern int __uflow (_IO_FILE *); extern int __overflow (_IO_FILE *, int); # 460 "/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__)); extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__)); extern int _IO_peekc_locked (_IO_FILE *__fp); extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__)); extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__)); extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__)); # 490 "/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__)); # 76 "/usr/include/stdio.h" 2 3 4 # 109 "/usr/include/stdio.h" 3 4 typedef _G_fpos_t fpos_t; typedef _G_fpos64_t fpos64_t; # 161 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stdio_lim.h" 1 3 4 # 162 "/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__)); extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__)); extern int renameat (int __oldfd, __const char *__old, int __newfd, __const char *__new) __attribute__ ((__nothrow__)); extern FILE *tmpfile (void) ; # 202 "/usr/include/stdio.h" 3 4 extern FILE *tmpfile64 (void) ; extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) ; extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) ; # 224 "/usr/include/stdio.h" 3 4 extern char *tempnam (__const char *__dir, __const char *__pfx) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; extern int fclose (FILE *__stream); extern int fflush (FILE *__stream); # 249 "/usr/include/stdio.h" 3 4 extern int fflush_unlocked (FILE *__stream); # 259 "/usr/include/stdio.h" 3 4 extern int fcloseall (void); extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) ; extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) ; # 292 "/usr/include/stdio.h" 3 4 extern FILE *fopen64 (__const char *__restrict __filename, __const char *__restrict __modes) ; extern FILE *freopen64 (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) ; extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) ; extern FILE *fopencookie (void *__restrict __magic_cookie, __const char *__restrict __modes, _IO_cookie_io_functions_t __io_funcs) __attribute__ ((__nothrow__)) ; extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes) __attribute__ ((__nothrow__)) ; extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__)) ; extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__)); extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, int __modes, size_t __n) __attribute__ ((__nothrow__)); extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, size_t __size) __attribute__ ((__nothrow__)); extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__)); 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))); extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f, __gnuc_va_list __arg) __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0))) ; extern int __asprintf (char **__restrict __ptr, __const char *__restrict __fmt, ...) __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))) ; extern int asprintf (char **__restrict __ptr, __const char *__restrict __fmt, ...) __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))) ; # 414 "/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, ...) ; extern int scanf (__const char *__restrict __format, ...) ; extern int sscanf (__const char *__restrict __s, __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); # 465 "/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))) ; extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__format__ (__scanf__, 1, 0))) ; extern int vsscanf (__const char *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0))); # 524 "/usr/include/stdio.h" 3 4 extern int fgetc (FILE *__stream); extern int getc (FILE *__stream); extern int getchar (void); # 552 "/usr/include/stdio.h" 3 4 extern int getc_unlocked (FILE *__stream); extern int getchar_unlocked (void); # 563 "/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); # 596 "/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) ; extern char *gets (char *__s) ; # 642 "/usr/include/stdio.h" 3 4 extern char *fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) ; # 658 "/usr/include/stdio.h" 3 4 extern __ssize_t __getdelim (char **__restrict __lineptr, size_t *__restrict __n, int __delimiter, FILE *__restrict __stream) ; extern __ssize_t getdelim (char **__restrict __lineptr, size_t *__restrict __n, int __delimiter, FILE *__restrict __stream) ; extern __ssize_t getline (char **__restrict __lineptr, size_t *__restrict __n, FILE *__restrict __stream) ; 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) ; extern size_t fwrite (__const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __s); # 719 "/usr/include/stdio.h" 3 4 extern int fputs_unlocked (__const char *__restrict __s, FILE *__restrict __stream); # 730 "/usr/include/stdio.h" 3 4 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) ; 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) ; extern void rewind (FILE *__stream); # 766 "/usr/include/stdio.h" 3 4 extern int fseeko (FILE *__stream, __off_t __off, int __whence); extern __off_t ftello (FILE *__stream) ; # 785 "/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); # 808 "/usr/include/stdio.h" 3 4 extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); extern __off64_t ftello64 (FILE *__stream) ; extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos); extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__)); extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ; extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ; extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__)); extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; extern void perror (__const char *__s); # 1 "/usr/include/x86_64-linux-gnu/bits/sys_errlist.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/sys_errlist.h" 3 4 extern int sys_nerr; extern __const char *__const sys_errlist[]; extern int _sys_nerr; extern __const char *__const _sys_errlist[]; # 847 "/usr/include/stdio.h" 2 3 4 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ; extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; # 866 "/usr/include/stdio.h" 3 4 extern FILE *popen (__const char *__command, __const char *__modes) ; extern int pclose (FILE *__stream); extern char *ctermid (char *__s) __attribute__ ((__nothrow__)); extern char *cuserid (char *__s); struct obstack; extern int obstack_printf (struct obstack *__restrict __obstack, __const char *__restrict __format, ...) __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 3))); extern int obstack_vprintf (struct obstack *__restrict __obstack, __const char *__restrict __format, __gnuc_va_list __args) __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 2, 0))); extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__)); extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ; extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__)); # 927 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stdio.h" 1 3 4 # 36 "/usr/include/x86_64-linux-gnu/bits/stdio.h" 3 4 extern __inline int vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg) { return vfprintf (stdout, __fmt, __arg); } extern __inline int getchar (void) { return _IO_getc (stdin); } extern __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 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 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 int putchar (int __c) { return _IO_putc (__c, stdout); } extern __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 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 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))); } extern __inline __ssize_t getline (char **__lineptr, size_t *__n, FILE *__stream) { return __getdelim (__lineptr, __n, '\n', __stream); } extern __inline int __attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream) { return (((__stream)->_flags & 0x10) != 0); } extern __inline int __attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream) { return (((__stream)->_flags & 0x20) != 0); } # 928 "/usr/include/stdio.h" 2 3 4 # 936 "/usr/include/stdio.h" 3 4 # 35 "file.c" 2 # 1 "../../include/windef.h" 1 # 205 "../../include/windef.h" typedef void *LPVOID; typedef const void *LPCVOID; typedef int BOOL, *PBOOL, *LPBOOL; typedef unsigned char BYTE, *PBYTE, *LPBYTE; typedef unsigned char UCHAR, *PUCHAR; typedef unsigned short WORD, *PWORD, *LPWORD; typedef unsigned short USHORT, *PUSHORT; typedef int INT, *PINT, *LPINT; typedef unsigned int UINT, *PUINT; typedef float FLOAT, *PFLOAT; typedef char *PSZ; typedef int *LPLONG; typedef unsigned int DWORD, *PDWORD, *LPDWORD; typedef unsigned int ULONG, *PULONG; # 252 "../../include/windef.h" # 1 "../../include/winnt.h" 1 # 24 "../../include/winnt.h" # 1 "../../include/basetsd.h" 1 # 79 "../../include/basetsd.h" typedef signed char INT8, *PINT8; typedef signed short INT16, *PINT16; typedef signed int INT32, *PINT32; typedef unsigned char UINT8, *PUINT8; typedef unsigned short UINT16, *PUINT16; typedef unsigned int UINT32, *PUINT32; typedef signed int LONG32, *PLONG32; typedef unsigned int ULONG32, *PULONG32; typedef unsigned int DWORD32, *PDWORD32; # 96 "../../include/basetsd.h" typedef signed long __attribute__((aligned(8))) INT64, *PINT64; typedef unsigned long __attribute__((aligned(8))) UINT64, *PUINT64; typedef signed long __attribute__((aligned(8))) LONG64, *PLONG64; typedef unsigned long __attribute__((aligned(8))) ULONG64, *PULONG64; typedef unsigned long __attribute__((aligned(8))) DWORD64, *PDWORD64; # 117 "../../include/basetsd.h" typedef signed long INT_PTR, *PINT_PTR; typedef signed long LONG_PTR, *PLONG_PTR; typedef unsigned long UINT_PTR, *PUINT_PTR; typedef unsigned long ULONG_PTR, *PULONG_PTR; typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR; # 143 "../../include/basetsd.h" typedef long SHANDLE_PTR; typedef unsigned long HANDLE_PTR; typedef int HALF_PTR, *PHALF_PTR; typedef unsigned int UHALF_PTR, *PUHALF_PTR; static inline ULONG32 HandleToULong(const void *h) { return (ULONG_PTR)h; } static inline LONG32 HandleToLong(const void *h) { return (LONG_PTR)h; } static inline void *ULongToHandle(ULONG32 ul) { return (void *)(ULONG_PTR)ul; } static inline void *LongToHandle(LONG32 l) { return (void *)(LONG_PTR)l; } static inline ULONG32 PtrToUlong(const void *p) { return (ULONG_PTR)p; } static inline LONG32 PtrToLong(const void *p) { return (LONG_PTR)p; } static inline UINT32 PtrToUint(const void *p) { return (UINT_PTR)p; } static inline INT32 PtrToInt(const void *p) { return (INT_PTR)p; } static inline UINT16 PtrToUshort(const void *p) { return (ULONG_PTR)p; } static inline INT16 PtrToShort(const void *p) { return (LONG_PTR)p; } static inline void *IntToPtr(INT32 i) { return (void *)(INT_PTR)i; } static inline void *UIntToPtr(UINT32 ui) { return (void *)(UINT_PTR)ui; } static inline void *LongToPtr(LONG32 l) { return (void *)(LONG_PTR)l; } static inline void *ULongToPtr(ULONG32 ul) { return (void *)(ULONG_PTR)ul; } # 263 "../../include/basetsd.h" typedef LONG_PTR SSIZE_T, *PSSIZE_T; typedef ULONG_PTR SIZE_T, *PSIZE_T; typedef ULONG_PTR KAFFINITY, *PKAFFINITY; # 25 "../../include/winnt.h" 2 # 1 "../../include/guiddef.h" 1 # 21 "../../include/guiddef.h" typedef struct _GUID { unsigned int Data1; unsigned short Data2; unsigned short Data3; unsigned char Data4[ 8 ]; } GUID; # 87 "../../include/guiddef.h" typedef GUID *LPGUID; typedef const GUID *LPCGUID; typedef GUID IID,*LPIID; typedef GUID CLSID,*LPCLSID; typedef GUID FMTID,*LPFMTID; # 146 "../../include/guiddef.h" extern const IID GUID_NULL; # 26 "../../include/winnt.h" 2 # 1 "/usr/include/ctype.h" 1 3 4 # 30 "/usr/include/ctype.h" 3 4 # 48 "/usr/include/ctype.h" 3 4 enum { _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) }; # 81 "/usr/include/ctype.h" 3 4 extern __const unsigned short int **__ctype_b_loc (void) __attribute__ ((__nothrow__)) __attribute__ ((__const)); extern __const __int32_t **__ctype_tolower_loc (void) __attribute__ ((__nothrow__)) __attribute__ ((__const)); extern __const __int32_t **__ctype_toupper_loc (void) __attribute__ ((__nothrow__)) __attribute__ ((__const)); # 96 "/usr/include/ctype.h" 3 4 extern int isalnum (int) __attribute__ ((__nothrow__)); extern int isalpha (int) __attribute__ ((__nothrow__)); extern int iscntrl (int) __attribute__ ((__nothrow__)); extern int isdigit (int) __attribute__ ((__nothrow__)); extern int islower (int) __attribute__ ((__nothrow__)); extern int isgraph (int) __attribute__ ((__nothrow__)); extern int isprint (int) __attribute__ ((__nothrow__)); extern int ispunct (int) __attribute__ ((__nothrow__)); extern int isspace (int) __attribute__ ((__nothrow__)); extern int isupper (int) __attribute__ ((__nothrow__)); extern int isxdigit (int) __attribute__ ((__nothrow__)); extern int tolower (int __c) __attribute__ ((__nothrow__)); extern int toupper (int __c) __attribute__ ((__nothrow__)); extern int isblank (int) __attribute__ ((__nothrow__)); extern int isctype (int __c, int __mask) __attribute__ ((__nothrow__)); extern int isascii (int __c) __attribute__ ((__nothrow__)); extern int toascii (int __c) __attribute__ ((__nothrow__)); extern int _toupper (int) __attribute__ ((__nothrow__)); extern int _tolower (int) __attribute__ ((__nothrow__)); # 190 "/usr/include/ctype.h" 3 4 extern __inline int __attribute__ ((__nothrow__)) tolower (int __c) { return __c >= -128 && __c < 256 ? (*__ctype_tolower_loc ())[__c] : __c; } extern __inline int __attribute__ ((__nothrow__)) toupper (int __c) { return __c >= -128 && __c < 256 ? (*__ctype_toupper_loc ())[__c] : __c; } # 247 "/usr/include/ctype.h" 3 4 extern int isalnum_l (int, __locale_t) __attribute__ ((__nothrow__)); extern int isalpha_l (int, __locale_t) __attribute__ ((__nothrow__)); extern int iscntrl_l (int, __locale_t) __attribute__ ((__nothrow__)); extern int isdigit_l (int, __locale_t) __attribute__ ((__nothrow__)); extern int islower_l (int, __locale_t) __attribute__ ((__nothrow__)); extern int isgraph_l (int, __locale_t) __attribute__ ((__nothrow__)); extern int isprint_l (int, __locale_t) __attribute__ ((__nothrow__)); extern int ispunct_l (int, __locale_t) __attribute__ ((__nothrow__)); extern int isspace_l (int, __locale_t) __attribute__ ((__nothrow__)); extern int isupper_l (int, __locale_t) __attribute__ ((__nothrow__)); extern int isxdigit_l (int, __locale_t) __attribute__ ((__nothrow__)); extern int isblank_l (int, __locale_t) __attribute__ ((__nothrow__)); extern int __tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__)); extern int tolower_l (int __c, __locale_t __l) __attribute__ ((__nothrow__)); extern int __toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__)); extern int toupper_l (int __c, __locale_t __l) __attribute__ ((__nothrow__)); # 323 "/usr/include/ctype.h" 3 4 # 29 "../../include/winnt.h" 2 # 1 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stddef.h" 1 3 4 # 150 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stddef.h" 3 4 typedef long int ptrdiff_t; # 324 "/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/stddef.h" 3 4 typedef int wchar_t; # 30 "../../include/winnt.h" 2 # 390 "../../include/winnt.h" typedef void *PVOID; typedef void *PVOID64; typedef BYTE BOOLEAN, *PBOOLEAN; typedef char CHAR, *PCHAR; typedef short SHORT, *PSHORT; typedef int LONG, *PLONG; typedef unsigned short WCHAR, *PWCHAR; # 415 "../../include/winnt.h" typedef signed long __attribute__((aligned(8))) LONGLONG, *PLONGLONG; typedef unsigned long __attribute__((aligned(8))) ULONGLONG, *PULONGLONG; # 425 "../../include/winnt.h" typedef ULONGLONG __attribute__((aligned(8))) DWORDLONG, *PDWORDLONG; typedef CHAR *PCH, *LPCH; typedef const CHAR *PCCH, *LPCCH; typedef CHAR *PSTR, *LPSTR, *NPSTR; typedef const CHAR *PCSTR, *LPCSTR; typedef WCHAR *PWCH, *LPWCH; typedef const WCHAR *PCWCH, *LPCWCH; typedef WCHAR *PWSTR, *LPWSTR, *NWPSTR; typedef const WCHAR *PCWSTR, *LPCWSTR; typedef WCHAR *PZZWSTR; typedef const WCHAR *PCZZWSTR; # 470 "../../include/winnt.h" typedef char CCHAR; typedef DWORD LCID, *PLCID; typedef WORD LANGID; typedef DWORD EXECUTION_STATE; typedef LONG HRESULT; typedef void *HANDLE; typedef HANDLE *PHANDLE, *LPHANDLE; typedef BYTE FCHAR; typedef WORD FSHORT; typedef DWORD FLONG; # 606 "../../include/winnt.h" typedef struct _MEMORY_BASIC_INFORMATION { LPVOID BaseAddress; LPVOID AllocationBase; DWORD AllocationProtect; SIZE_T RegionSize; DWORD State; DWORD Protect; DWORD Type; } MEMORY_BASIC_INFORMATION, *PMEMORY_BASIC_INFORMATION; # 674 "../../include/winnt.h" typedef struct _LIST_ENTRY { struct _LIST_ENTRY *Flink; struct _LIST_ENTRY *Blink; } LIST_ENTRY, *PLIST_ENTRY, * PRLIST_ENTRY; typedef struct _SINGLE_LIST_ENTRY { struct _SINGLE_LIST_ENTRY *Next; } SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY; typedef struct __attribute__((aligned(16))) _SLIST_ENTRY *PSLIST_ENTRY; typedef struct __attribute__((aligned(16))) _SLIST_ENTRY { PSLIST_ENTRY Next; } SLIST_ENTRY; typedef union __attribute__((aligned(16))) _SLIST_HEADER { struct { ULONGLONG Alignment; ULONGLONG Region; } ; struct { ULONGLONG Depth:16; ULONGLONG Sequence:9; ULONGLONG NextEntry:39; ULONGLONG HeaderType:1; ULONGLONG Init:1; ULONGLONG Reserved:59; ULONGLONG Region:3; } Header8; struct { ULONGLONG Depth:16; ULONGLONG Sequence:48; ULONGLONG HeaderType:1; ULONGLONG Init:1; ULONGLONG Reserved:2; ULONGLONG NextEntry:60; } Header16; } SLIST_HEADER, *PSLIST_HEADER; # 732 "../../include/winnt.h" __attribute__((visibility ("hidden"))) PSLIST_ENTRY __attribute__((ms_abi)) RtlFirstEntrySList(const SLIST_HEADER*); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlInitializeSListHead(PSLIST_HEADER); __attribute__((visibility ("hidden"))) PSLIST_ENTRY __attribute__((ms_abi)) RtlInterlockedFlushSList(PSLIST_HEADER); __attribute__((visibility ("hidden"))) PSLIST_ENTRY __attribute__((ms_abi)) RtlInterlockedPopEntrySList(PSLIST_HEADER); __attribute__((visibility ("hidden"))) PSLIST_ENTRY __attribute__((ms_abi)) RtlInterlockedPushEntrySList(PSLIST_HEADER, PSLIST_ENTRY); __attribute__((visibility ("hidden"))) WORD __attribute__((ms_abi)) RtlQueryDepthSList(PSLIST_HEADER); # 758 "../../include/winnt.h" typedef enum _HEAP_INFORMATION_CLASS { HeapCompatibilityInformation, } HEAP_INFORMATION_CLASS; # 871 "../../include/winnt.h" typedef struct _LDT_ENTRY { WORD LimitLow; WORD BaseLow; union { struct { BYTE BaseMid; BYTE Flags1; BYTE Flags2; BYTE BaseHi; } Bytes; struct { unsigned BaseMid: 8; unsigned Type : 5; unsigned Dpl : 2; unsigned Pres : 1; unsigned LimitHi : 4; unsigned Sys : 1; unsigned Reserved_0 : 1; unsigned Default_Big : 1; unsigned Granularity : 1; unsigned BaseHi : 8; } Bits; } HighWord; } LDT_ENTRY, *PLDT_ENTRY; # 913 "../../include/winnt.h" typedef struct __attribute__((aligned(16))) _M128A { ULONGLONG Low; LONGLONG High; } M128A, *PM128A; typedef struct _XMM_SAVE_AREA32 { WORD ControlWord; WORD StatusWord; BYTE TagWord; BYTE Reserved1; WORD ErrorOpcode; DWORD ErrorOffset; WORD ErrorSelector; WORD Reserved2; DWORD DataOffset; WORD DataSelector; WORD Reserved3; DWORD MxCsr; DWORD MxCsr_Mask; M128A FloatRegisters[8]; M128A XmmRegisters[16]; BYTE Reserved4[96]; } XMM_SAVE_AREA32, *PXMM_SAVE_AREA32; typedef struct __attribute__((aligned(16))) _CONTEXT { DWORD64 P1Home; DWORD64 P2Home; DWORD64 P3Home; DWORD64 P4Home; DWORD64 P5Home; DWORD64 P6Home; DWORD ContextFlags; DWORD MxCsr; WORD SegCs; WORD SegDs; WORD SegEs; WORD SegFs; WORD SegGs; WORD SegSs; DWORD EFlags; DWORD64 Dr0; DWORD64 Dr1; DWORD64 Dr2; DWORD64 Dr3; DWORD64 Dr6; DWORD64 Dr7; DWORD64 Rax; DWORD64 Rcx; DWORD64 Rdx; DWORD64 Rbx; DWORD64 Rsp; DWORD64 Rbp; DWORD64 Rsi; DWORD64 Rdi; DWORD64 R8; DWORD64 R9; DWORD64 R10; DWORD64 R11; DWORD64 R12; DWORD64 R13; DWORD64 R14; DWORD64 R15; DWORD64 Rip; union { XMM_SAVE_AREA32 FltSave; struct { M128A Header[2]; M128A Legacy[8]; M128A Xmm0; M128A Xmm1; M128A Xmm2; M128A Xmm3; M128A Xmm4; M128A Xmm5; M128A Xmm6; M128A Xmm7; M128A Xmm8; M128A Xmm9; M128A Xmm10; M128A Xmm11; M128A Xmm12; M128A Xmm13; M128A Xmm14; M128A Xmm15; } ; } ; M128A VectorRegister[26]; DWORD64 VectorControl; DWORD64 DebugControl; DWORD64 LastBranchToRip; DWORD64 LastBranchFromRip; DWORD64 LastExceptionToRip; DWORD64 LastExceptionFromRip; } CONTEXT; typedef struct _RUNTIME_FUNCTION { DWORD BeginAddress; DWORD EndAddress; DWORD UnwindData; } RUNTIME_FUNCTION, *PRUNTIME_FUNCTION; typedef struct _UNWIND_HISTORY_TABLE_ENTRY { ULONG64 ImageBase; PRUNTIME_FUNCTION FunctionEntry; } UNWIND_HISTORY_TABLE_ENTRY, *PUNWIND_HISTORY_TABLE_ENTRY; typedef struct _UNWIND_HISTORY_TABLE { ULONG Count; UCHAR Search; ULONG64 LowAddress; ULONG64 HighAddress; UNWIND_HISTORY_TABLE_ENTRY Entry[12]; } UNWIND_HISTORY_TABLE, *PUNWIND_HISTORY_TABLE; typedef struct _KNONVOLATILE_CONTEXT_POINTERS { union { PM128A FloatingContext[16]; struct { PM128A Xmm0; PM128A Xmm1; PM128A Xmm2; PM128A Xmm3; PM128A Xmm4; PM128A Xmm5; PM128A Xmm6; PM128A Xmm7; PM128A Xmm8; PM128A Xmm9; PM128A Xmm10; PM128A Xmm11; PM128A Xmm12; PM128A Xmm13; PM128A Xmm14; PM128A Xmm15; } ; } ; union { PULONG64 IntegerContext[16]; struct { PULONG64 Rax; PULONG64 Rcx; PULONG64 Rdx; PULONG64 Rbx; PULONG64 Rsp; PULONG64 Rbp; PULONG64 Rsi; PULONG64 Rdi; PULONG64 R8; PULONG64 R9; PULONG64 R10; PULONG64 R11; PULONG64 R12; PULONG64 R13; PULONG64 R14; PULONG64 R15; } ; } ; } KNONVOLATILE_CONTEXT_POINTERS, *PKNONVOLATILE_CONTEXT_POINTERS; BOOLEAN __attribute__((ms_abi)) RtlAddFunctionTable(RUNTIME_FUNCTION*,DWORD,DWORD64); BOOLEAN __attribute__((ms_abi)) RtlDeleteFunctionTable(RUNTIME_FUNCTION*); PRUNTIME_FUNCTION __attribute__((ms_abi)) RtlLookupFunctionEntry(DWORD64,DWORD64*,UNWIND_HISTORY_TABLE*); PVOID __attribute__((ms_abi)) RtlVirtualUnwind(ULONG,ULONG64,ULONG64,RUNTIME_FUNCTION*,CONTEXT*,PVOID*,ULONG64*,KNONVOLATILE_CONTEXT_POINTERS*); # 1905 "../../include/winnt.h" typedef CONTEXT *PCONTEXT; __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlCaptureContext(CONTEXT*); # 2434 "../../include/winnt.h" typedef struct _EXCEPTION_RECORD { DWORD ExceptionCode; DWORD ExceptionFlags; struct _EXCEPTION_RECORD *ExceptionRecord; PVOID ExceptionAddress; DWORD NumberParameters; ULONG_PTR ExceptionInformation[15]; } EXCEPTION_RECORD, *PEXCEPTION_RECORD; typedef struct _EXCEPTION_POINTERS { PEXCEPTION_RECORD ExceptionRecord; PCONTEXT ContextRecord; } EXCEPTION_POINTERS, *PEXCEPTION_POINTERS; # 2463 "../../include/winnt.h" struct _EXCEPTION_REGISTRATION_RECORD; typedef DWORD (*PEXCEPTION_HANDLER)(PEXCEPTION_RECORD,struct _EXCEPTION_REGISTRATION_RECORD*, PCONTEXT,struct _EXCEPTION_REGISTRATION_RECORD **); typedef struct _EXCEPTION_REGISTRATION_RECORD { struct _EXCEPTION_REGISTRATION_RECORD *Prev; PEXCEPTION_HANDLER Handler; } EXCEPTION_REGISTRATION_RECORD; typedef LONG (__attribute__((ms_abi)) *PVECTORED_EXCEPTION_HANDLER)(PEXCEPTION_POINTERS ExceptionInfo); typedef struct _NT_TIB { struct _EXCEPTION_REGISTRATION_RECORD *ExceptionList; PVOID StackBase; PVOID StackLimit; PVOID SubSystemTib; union { PVOID FiberData; DWORD Version; } ; PVOID ArbitraryUserPointer; struct _NT_TIB *Self; } NT_TIB, *PNT_TIB; struct _TEB; # 2512 "../../include/winnt.h" static inline __attribute__((always_inline)) struct _TEB * __attribute__((ms_abi)) NtCurrentTeb(void) { struct _TEB *teb; __asm__(".byte 0x65\n\tmovq (0x30),%0" : "=r" (teb)); return teb; } # 2543 "../../include/winnt.h" # 1 "../../include/pshpack2.h" 1 # 105 "../../include/pshpack2.h" #pragma pack(2) # 2544 "../../include/winnt.h" 2 typedef struct _IMAGE_DOS_HEADER { WORD e_magic; WORD e_cblp; WORD e_cp; WORD e_crlc; WORD e_cparhdr; WORD e_minalloc; WORD e_maxalloc; WORD e_ss; WORD e_sp; WORD e_csum; WORD e_ip; WORD e_cs; WORD e_lfarlc; WORD e_ovno; WORD e_res[4]; WORD e_oemid; WORD e_oeminfo; WORD e_res2[10]; DWORD e_lfanew; } IMAGE_DOS_HEADER, *PIMAGE_DOS_HEADER; # 1 "../../include/poppack.h" 1 # 253 "../../include/poppack.h" #pragma pack() # 2566 "../../include/winnt.h" 2 # 2578 "../../include/winnt.h" # 1 "../../include/pshpack2.h" 1 # 105 "../../include/pshpack2.h" #pragma pack(2) # 2579 "../../include/winnt.h" 2 typedef struct { WORD ne_magic; BYTE ne_ver; BYTE ne_rev; WORD ne_enttab; WORD ne_cbenttab; LONG ne_crc; WORD ne_flags; WORD ne_autodata; WORD ne_heap; WORD ne_stack; DWORD ne_csip; DWORD ne_sssp; WORD ne_cseg; WORD ne_cmod; WORD ne_cbnrestab; WORD ne_segtab; WORD ne_rsrctab; WORD ne_restab; WORD ne_modtab; WORD ne_imptab; DWORD ne_nrestab; WORD ne_cmovent; WORD ne_align; WORD ne_cres; BYTE ne_exetyp; BYTE ne_flagsothers; WORD ne_pretthunks; WORD ne_psegrefbytes; WORD ne_swaparea; WORD ne_expver; } IMAGE_OS2_HEADER, *PIMAGE_OS2_HEADER; # 1 "../../include/poppack.h" 1 # 253 "../../include/poppack.h" #pragma pack() # 2613 "../../include/winnt.h" 2 # 1 "../../include/pshpack2.h" 1 # 105 "../../include/pshpack2.h" #pragma pack(2) # 2615 "../../include/winnt.h" 2 typedef struct _IMAGE_VXD_HEADER { WORD e32_magic; BYTE e32_border; BYTE e32_worder; DWORD e32_level; WORD e32_cpu; WORD e32_os; DWORD e32_ver; DWORD e32_mflags; DWORD e32_mpages; DWORD e32_startobj; DWORD e32_eip; DWORD e32_stackobj; DWORD e32_esp; DWORD e32_pagesize; DWORD e32_lastpagesize; DWORD e32_fixupsize; DWORD e32_fixupsum; DWORD e32_ldrsize; DWORD e32_ldrsum; DWORD e32_objtab; DWORD e32_objcnt; DWORD e32_objmap; DWORD e32_itermap; DWORD e32_rsrctab; DWORD e32_rsrccnt; DWORD e32_restab; DWORD e32_enttab; DWORD e32_dirtab; DWORD e32_dircnt; DWORD e32_fpagetab; DWORD e32_frectab; DWORD e32_impmod; DWORD e32_impmodcnt; DWORD e32_impproc; DWORD e32_pagesum; DWORD e32_datapage; DWORD e32_preload; DWORD e32_nrestab; DWORD e32_cbnrestab; DWORD e32_nressum; DWORD e32_autodata; DWORD e32_debuginfo; DWORD e32_debuglen; DWORD e32_instpreload; DWORD e32_instdemand; DWORD e32_heapsize; BYTE e32_res3[12]; DWORD e32_winresoff; DWORD e32_winreslen; WORD e32_devid; WORD e32_ddkver; } IMAGE_VXD_HEADER, *PIMAGE_VXD_HEADER; # 1 "../../include/poppack.h" 1 # 253 "../../include/poppack.h" #pragma pack() # 2669 "../../include/winnt.h" 2 # 2810 "../../include/winnt.h" typedef struct _IMAGE_FILE_HEADER { WORD Machine; WORD NumberOfSections; DWORD TimeDateStamp; DWORD PointerToSymbolTable; DWORD NumberOfSymbols; WORD SizeOfOptionalHeader; WORD Characteristics; } IMAGE_FILE_HEADER, *PIMAGE_FILE_HEADER; typedef struct _IMAGE_DATA_DIRECTORY { DWORD VirtualAddress; DWORD Size; } IMAGE_DATA_DIRECTORY, *PIMAGE_DATA_DIRECTORY; typedef struct _IMAGE_OPTIONAL_HEADER64 { WORD Magic; BYTE MajorLinkerVersion; BYTE MinorLinkerVersion; DWORD SizeOfCode; DWORD SizeOfInitializedData; DWORD SizeOfUninitializedData; DWORD AddressOfEntryPoint; DWORD BaseOfCode; ULONGLONG ImageBase; DWORD SectionAlignment; DWORD FileAlignment; WORD MajorOperatingSystemVersion; WORD MinorOperatingSystemVersion; WORD MajorImageVersion; WORD MinorImageVersion; WORD MajorSubsystemVersion; WORD MinorSubsystemVersion; DWORD Win32VersionValue; DWORD SizeOfImage; DWORD SizeOfHeaders; DWORD CheckSum; WORD Subsystem; WORD DllCharacteristics; ULONGLONG SizeOfStackReserve; ULONGLONG SizeOfStackCommit; ULONGLONG SizeOfHeapReserve; ULONGLONG SizeOfHeapCommit; DWORD LoaderFlags; DWORD NumberOfRvaAndSizes; IMAGE_DATA_DIRECTORY DataDirectory[16]; } IMAGE_OPTIONAL_HEADER64, *PIMAGE_OPTIONAL_HEADER64; typedef struct _IMAGE_NT_HEADERS64 { DWORD Signature; IMAGE_FILE_HEADER FileHeader; IMAGE_OPTIONAL_HEADER64 OptionalHeader; } IMAGE_NT_HEADERS64, *PIMAGE_NT_HEADERS64; typedef struct _IMAGE_OPTIONAL_HEADER { WORD Magic; BYTE MajorLinkerVersion; BYTE MinorLinkerVersion; DWORD SizeOfCode; DWORD SizeOfInitializedData; DWORD SizeOfUninitializedData; DWORD AddressOfEntryPoint; DWORD BaseOfCode; DWORD BaseOfData; DWORD ImageBase; DWORD SectionAlignment; DWORD FileAlignment; WORD MajorOperatingSystemVersion; WORD MinorOperatingSystemVersion; WORD MajorImageVersion; WORD MinorImageVersion; WORD MajorSubsystemVersion; WORD MinorSubsystemVersion; DWORD Win32VersionValue; DWORD SizeOfImage; DWORD SizeOfHeaders; DWORD CheckSum; WORD Subsystem; WORD DllCharacteristics; DWORD SizeOfStackReserve; DWORD SizeOfStackCommit; DWORD SizeOfHeapReserve; DWORD SizeOfHeapCommit; DWORD LoaderFlags; DWORD NumberOfRvaAndSizes; IMAGE_DATA_DIRECTORY DataDirectory[16]; } IMAGE_OPTIONAL_HEADER32, *PIMAGE_OPTIONAL_HEADER32; typedef struct _IMAGE_NT_HEADERS { DWORD Signature; IMAGE_FILE_HEADER FileHeader; IMAGE_OPTIONAL_HEADER32 OptionalHeader; } IMAGE_NT_HEADERS32, *PIMAGE_NT_HEADERS32; typedef IMAGE_NT_HEADERS64 IMAGE_NT_HEADERS; typedef PIMAGE_NT_HEADERS64 PIMAGE_NT_HEADERS; typedef IMAGE_OPTIONAL_HEADER64 IMAGE_OPTIONAL_HEADER; typedef PIMAGE_OPTIONAL_HEADER64 PIMAGE_OPTIONAL_HEADER; # 2927 "../../include/winnt.h" typedef struct _IMAGE_SECTION_HEADER { BYTE Name[8]; union { DWORD PhysicalAddress; DWORD VirtualSize; } Misc; DWORD VirtualAddress; DWORD SizeOfRawData; DWORD PointerToRawData; DWORD PointerToRelocations; DWORD PointerToLinenumbers; WORD NumberOfRelocations; WORD NumberOfLinenumbers; DWORD Characteristics; } IMAGE_SECTION_HEADER, *PIMAGE_SECTION_HEADER; # 3005 "../../include/winnt.h" # 1 "../../include/pshpack2.h" 1 # 105 "../../include/pshpack2.h" #pragma pack(2) # 3006 "../../include/winnt.h" 2 typedef struct _IMAGE_SYMBOL { union { BYTE ShortName[8]; struct { DWORD Short; DWORD Long; } Name; DWORD LongName[2]; } N; DWORD Value; SHORT SectionNumber; WORD Type; BYTE StorageClass; BYTE NumberOfAuxSymbols; } IMAGE_SYMBOL; typedef IMAGE_SYMBOL *PIMAGE_SYMBOL; typedef struct _IMAGE_LINENUMBER { union { DWORD SymbolTableIndex; DWORD VirtualAddress; } Type; WORD Linenumber; } IMAGE_LINENUMBER; typedef IMAGE_LINENUMBER *PIMAGE_LINENUMBER; typedef union _IMAGE_AUX_SYMBOL { struct { DWORD TagIndex; union { struct { WORD Linenumber; WORD Size; } LnSz; DWORD TotalSize; } Misc; union { struct { DWORD PointerToLinenumber; DWORD PointerToNextFunction; } Function; struct { WORD Dimension[4]; } Array; } FcnAry; WORD TvIndex; } Sym; struct { BYTE Name[18]; } File; struct { DWORD Length; WORD NumberOfRelocations; WORD NumberOfLinenumbers; DWORD CheckSum; SHORT Number; BYTE Selection; } Section; } IMAGE_AUX_SYMBOL; typedef IMAGE_AUX_SYMBOL *PIMAGE_AUX_SYMBOL; # 1 "../../include/poppack.h" 1 # 253 "../../include/poppack.h" #pragma pack() # 3075 "../../include/winnt.h" 2 # 3178 "../../include/winnt.h" typedef struct _IMAGE_EXPORT_DIRECTORY { DWORD Characteristics; DWORD TimeDateStamp; WORD MajorVersion; WORD MinorVersion; DWORD Name; DWORD Base; DWORD NumberOfFunctions; DWORD NumberOfNames; DWORD AddressOfFunctions; DWORD AddressOfNames; DWORD AddressOfNameOrdinals; } IMAGE_EXPORT_DIRECTORY,*PIMAGE_EXPORT_DIRECTORY; typedef struct _IMAGE_IMPORT_BY_NAME { WORD Hint; BYTE Name[1]; } IMAGE_IMPORT_BY_NAME,*PIMAGE_IMPORT_BY_NAME; # 1 "../../include/pshpack8.h" 1 # 105 "../../include/pshpack8.h" #pragma pack(8) # 3199 "../../include/winnt.h" 2 typedef struct _IMAGE_THUNK_DATA64 { union { ULONGLONG ForwarderString; ULONGLONG Function; ULONGLONG Ordinal; ULONGLONG AddressOfData; } u1; } IMAGE_THUNK_DATA64,*PIMAGE_THUNK_DATA64; # 1 "../../include/poppack.h" 1 # 253 "../../include/poppack.h" #pragma pack() # 3209 "../../include/winnt.h" 2 typedef struct _IMAGE_THUNK_DATA32 { union { DWORD ForwarderString; DWORD Function; DWORD Ordinal; DWORD AddressOfData; } u1; } IMAGE_THUNK_DATA32,*PIMAGE_THUNK_DATA32; typedef struct _IMAGE_IMPORT_DESCRIPTOR { union { DWORD Characteristics; DWORD OriginalFirstThunk; } ; DWORD TimeDateStamp; DWORD ForwarderChain; DWORD Name; DWORD FirstThunk; } IMAGE_IMPORT_DESCRIPTOR,*PIMAGE_IMPORT_DESCRIPTOR; # 3250 "../../include/winnt.h" typedef IMAGE_THUNK_DATA64 IMAGE_THUNK_DATA; typedef PIMAGE_THUNK_DATA64 PIMAGE_THUNK_DATA; # 3260 "../../include/winnt.h" typedef struct _IMAGE_BOUND_IMPORT_DESCRIPTOR { DWORD TimeDateStamp; WORD OffsetModuleName; WORD NumberOfModuleForwarderRefs; } IMAGE_BOUND_IMPORT_DESCRIPTOR, *PIMAGE_BOUND_IMPORT_DESCRIPTOR; typedef struct _IMAGE_BOUND_FORWARDER_REF { DWORD TimeDateStamp; WORD OffsetModuleName; WORD Reserved; } IMAGE_BOUND_FORWARDER_REF, *PIMAGE_BOUND_FORWARDER_REF; typedef struct _IMAGE_BASE_RELOCATION { DWORD VirtualAddress; DWORD SizeOfBlock; } IMAGE_BASE_RELOCATION,*PIMAGE_BASE_RELOCATION; # 1 "../../include/pshpack2.h" 1 # 105 "../../include/pshpack2.h" #pragma pack(2) # 3283 "../../include/winnt.h" 2 typedef struct _IMAGE_RELOCATION { union { DWORD VirtualAddress; DWORD RelocCount; } ; DWORD SymbolTableIndex; WORD Type; } IMAGE_RELOCATION, *PIMAGE_RELOCATION; # 1 "../../include/poppack.h" 1 # 253 "../../include/poppack.h" #pragma pack() # 3295 "../../include/winnt.h" 2 # 3495 "../../include/winnt.h" typedef struct _IMAGE_ARCHIVE_MEMBER_HEADER { BYTE Name[16]; BYTE Date[12]; BYTE UserID[6]; BYTE GroupID[6]; BYTE Mode[8]; BYTE Size[10]; BYTE EndHeader[2]; } IMAGE_ARCHIVE_MEMBER_HEADER, *PIMAGE_ARCHIVE_MEMBER_HEADER; typedef struct _IMPORT_OBJECT_HEADER { WORD Sig1; WORD Sig2; WORD Version; WORD Machine; DWORD TimeDateStamp; DWORD SizeOfData; union { WORD Ordinal; WORD Hint; } ; WORD Type : 2; WORD NameType : 3; WORD Reserved : 11; } IMPORT_OBJECT_HEADER; typedef enum IMPORT_OBJECT_TYPE { IMPORT_OBJECT_CODE = 0, IMPORT_OBJECT_DATA = 1, IMPORT_OBJECT_CONST = 2 } IMPORT_OBJECT_TYPE; typedef enum IMPORT_OBJECT_NAME_TYPE { IMPORT_OBJECT_ORDINAL = 0, IMPORT_OBJECT_NAME = 1, IMPORT_OBJECT_NAME_NO_PREFIX = 2, IMPORT_OBJECT_NAME_UNDECORATE = 3 } IMPORT_OBJECT_NAME_TYPE; typedef struct _ANON_OBJECT_HEADER { WORD Sig1; WORD Sig2; WORD Version; WORD Machine; DWORD TimeDateStamp; CLSID ClassID; DWORD SizeOfData; } ANON_OBJECT_HEADER; typedef struct _IMAGE_RESOURCE_DIRECTORY { DWORD Characteristics; DWORD TimeDateStamp; WORD MajorVersion; WORD MinorVersion; WORD NumberOfNamedEntries; WORD NumberOfIdEntries; } IMAGE_RESOURCE_DIRECTORY,*PIMAGE_RESOURCE_DIRECTORY; typedef struct _IMAGE_RESOURCE_DIRECTORY_ENTRY { union { struct { unsigned NameOffset:31; unsigned NameIsString:1; } ; DWORD Name; struct { WORD Id; WORD __pad; } ; } ; union { DWORD OffsetToData; struct { unsigned OffsetToDirectory:31; unsigned DataIsDirectory:1; } ; } ; } IMAGE_RESOURCE_DIRECTORY_ENTRY,*PIMAGE_RESOURCE_DIRECTORY_ENTRY; typedef struct _IMAGE_RESOURCE_DIRECTORY_STRING { WORD Length; CHAR NameString[ 1 ]; } IMAGE_RESOURCE_DIRECTORY_STRING,*PIMAGE_RESOURCE_DIRECTORY_STRING; typedef struct _IMAGE_RESOURCE_DIR_STRING_U { WORD Length; WCHAR NameString[ 1 ]; } IMAGE_RESOURCE_DIR_STRING_U,*PIMAGE_RESOURCE_DIR_STRING_U; typedef struct _IMAGE_RESOURCE_DATA_ENTRY { DWORD OffsetToData; DWORD Size; DWORD CodePage; DWORD Reserved; } IMAGE_RESOURCE_DATA_ENTRY,*PIMAGE_RESOURCE_DATA_ENTRY; typedef void (__attribute__((ms_abi)) *PIMAGE_TLS_CALLBACK)( LPVOID DllHandle,DWORD Reason,LPVOID Reserved ); typedef struct _IMAGE_TLS_DIRECTORY64 { ULONGLONG StartAddressOfRawData; ULONGLONG EndAddressOfRawData; ULONGLONG AddressOfIndex; ULONGLONG AddressOfCallBacks; DWORD SizeOfZeroFill; DWORD Characteristics; } IMAGE_TLS_DIRECTORY64, *PIMAGE_TLS_DIRECTORY64; typedef struct _IMAGE_TLS_DIRECTORY32 { DWORD StartAddressOfRawData; DWORD EndAddressOfRawData; DWORD AddressOfIndex; DWORD AddressOfCallBacks; DWORD SizeOfZeroFill; DWORD Characteristics; } IMAGE_TLS_DIRECTORY32, *PIMAGE_TLS_DIRECTORY32; typedef IMAGE_TLS_DIRECTORY64 IMAGE_TLS_DIRECTORY; typedef PIMAGE_TLS_DIRECTORY64 PIMAGE_TLS_DIRECTORY; typedef struct _IMAGE_DEBUG_DIRECTORY { DWORD Characteristics; DWORD TimeDateStamp; WORD MajorVersion; WORD MinorVersion; DWORD Type; DWORD SizeOfData; DWORD AddressOfRawData; DWORD PointerToRawData; } IMAGE_DEBUG_DIRECTORY, *PIMAGE_DEBUG_DIRECTORY; # 3678 "../../include/winnt.h" typedef enum ReplacesCorHdrNumericDefines { COMIMAGE_FLAGS_ILONLY = 0x00000001, COMIMAGE_FLAGS_32BITREQUIRED = 0x00000002, COMIMAGE_FLAGS_IL_LIBRARY = 0x00000004, COMIMAGE_FLAGS_STRONGNAMESIGNED = 0x00000008, COMIMAGE_FLAGS_TRACKDEBUGDATA = 0x00010000, COR_VERSION_MAJOR_V2 = 2, COR_VERSION_MAJOR = COR_VERSION_MAJOR_V2, COR_VERSION_MINOR = 0, COR_DELETED_NAME_LENGTH = 8, COR_VTABLEGAP_NAME_LENGTH = 8, NATIVE_TYPE_MAX_CB = 1, COR_ILMETHOD_SECT_SMALL_MAX_DATASIZE = 0xff, IMAGE_COR_MIH_METHODRVA = 0x01, IMAGE_COR_MIH_EHRVA = 0x02, IMAGE_COR_MIH_BASICBLOCK = 0x08, COR_VTABLE_32BIT = 0x01, COR_VTABLE_64BIT = 0x02, COR_VTABLE_FROM_UNMANAGED = 0x04, COR_VTABLE_CALL_MOST_DERIVED = 0x10, IMAGE_COR_EATJ_THUNK_SIZE = 32, MAX_CLASS_NAME = 1024, MAX_PACKAGE_NAME = 1024, } ReplacesCorHdrNumericDefines; typedef struct IMAGE_COR20_HEADER { DWORD cb; WORD MajorRuntimeVersion; WORD MinorRuntimeVersion; IMAGE_DATA_DIRECTORY MetaData; DWORD Flags; DWORD EntryPointToken; IMAGE_DATA_DIRECTORY Resources; IMAGE_DATA_DIRECTORY StrongNameSignature; IMAGE_DATA_DIRECTORY CodeManagerTable; IMAGE_DATA_DIRECTORY VTableFixups; IMAGE_DATA_DIRECTORY ExportAddressTableJumps; IMAGE_DATA_DIRECTORY ManagedNativeHeader; } IMAGE_COR20_HEADER, *PIMAGE_COR20_HEADER; typedef struct _IMAGE_COFF_SYMBOLS_HEADER { DWORD NumberOfSymbols; DWORD LvaToFirstSymbol; DWORD NumberOfLinenumbers; DWORD LvaToFirstLinenumber; DWORD RvaToFirstByteOfCode; DWORD RvaToLastByteOfCode; DWORD RvaToFirstByteOfData; DWORD RvaToLastByteOfData; } IMAGE_COFF_SYMBOLS_HEADER, *PIMAGE_COFF_SYMBOLS_HEADER; typedef struct _FPO_DATA { DWORD ulOffStart; DWORD cbProcSize; DWORD cdwLocals; WORD cdwParams; WORD cbProlog : 8; WORD cbRegs : 3; WORD fHasSEH : 1; WORD fUseBP : 1; WORD reserved : 1; WORD cbFrame : 2; } FPO_DATA, *PFPO_DATA; typedef struct _IMAGE_LOAD_CONFIG_DIRECTORY { DWORD Size; DWORD TimeDateStamp; WORD MajorVersion; WORD MinorVersion; DWORD GlobalFlagsClear; DWORD GlobalFlagsSet; DWORD CriticalSectionDefaultTimeout; DWORD DeCommitFreeBlockThreshold; DWORD DeCommitTotalFreeThreshold; PVOID LockPrefixTable; DWORD MaximumAllocationSize; DWORD VirtualMemoryThreshold; DWORD ProcessHeapFlags; DWORD ProcessAffinityMask; WORD CSDVersion; WORD Reserved1; PVOID EditList; DWORD SecurityCookie; DWORD SEHandlerTable; DWORD SEHandlerCount; } IMAGE_LOAD_CONFIG_DIRECTORY, *PIMAGE_LOAD_CONFIG_DIRECTORY; typedef struct _IMAGE_FUNCTION_ENTRY { DWORD StartingAddress; DWORD EndingAddress; DWORD EndOfPrologue; } IMAGE_FUNCTION_ENTRY, *PIMAGE_FUNCTION_ENTRY; typedef struct _IMAGE_DEBUG_MISC { DWORD DataType; DWORD Length; BYTE Unicode; BYTE Reserved[ 3 ]; BYTE Data[ 1 ]; } IMAGE_DEBUG_MISC, *PIMAGE_DEBUG_MISC; typedef struct _IMAGE_SEPARATE_DEBUG_HEADER { WORD Signature; WORD Flags; WORD Machine; WORD Characteristics; DWORD TimeDateStamp; DWORD CheckSum; DWORD ImageBase; DWORD SizeOfImage; DWORD NumberOfSections; DWORD ExportedNamesSize; DWORD DebugDirectorySize; DWORD SectionAlignment; DWORD Reserved[ 2 ]; } IMAGE_SEPARATE_DEBUG_HEADER,*PIMAGE_SEPARATE_DEBUG_HEADER; typedef struct tagMESSAGE_RESOURCE_ENTRY { WORD Length; WORD Flags; BYTE Text[1]; } MESSAGE_RESOURCE_ENTRY,*PMESSAGE_RESOURCE_ENTRY; typedef struct tagMESSAGE_RESOURCE_BLOCK { DWORD LowId; DWORD HighId; DWORD OffsetToEntries; } MESSAGE_RESOURCE_BLOCK,*PMESSAGE_RESOURCE_BLOCK; typedef struct tagMESSAGE_RESOURCE_DATA { DWORD NumberOfBlocks; MESSAGE_RESOURCE_BLOCK Blocks[ 1 ]; } MESSAGE_RESOURCE_DATA,*PMESSAGE_RESOURCE_DATA; # 3847 "../../include/winnt.h" typedef PVOID PACCESS_TOKEN; typedef PVOID PSECURITY_DESCRIPTOR; typedef PVOID PSID; typedef enum _TOKEN_ELEVATION_TYPE { TokenElevationTypeDefault = 1, TokenElevationTypeFull, TokenElevationTypeLimited } TOKEN_ELEVATION_TYPE, *PTOKEN_ELEVATION_TYPE; typedef enum _TOKEN_INFORMATION_CLASS { TokenUser = 1, TokenGroups, TokenPrivileges, TokenOwner, TokenPrimaryGroup, TokenDefaultDacl, TokenSource, TokenType, TokenImpersonationLevel, TokenStatistics, TokenRestrictedSids, TokenSessionId, TokenGroupsAndPrivileges, TokenSessionReference, TokenSandBoxInert, TokenAuditPolicy, TokenOrigin, TokenElevationType, TokenLinkedToken, TokenElevation, TokenHasRestrictions, TokenAccessInformation, TokenVirtualizationAllowed, TokenVirtualizationEnabled, TokenIntegrityLevel, TokenUIAccess, TokenMandatoryPolicy, TokenLogonSid, MaxTokenInfoClass } TOKEN_INFORMATION_CLASS; # 3924 "../../include/winnt.h" typedef DWORD ACCESS_MASK, *PACCESS_MASK; typedef struct _GENERIC_MAPPING { ACCESS_MASK GenericRead; ACCESS_MASK GenericWrite; ACCESS_MASK GenericExecute; ACCESS_MASK GenericAll; } GENERIC_MAPPING, *PGENERIC_MAPPING; typedef struct { BYTE Value[6]; } SID_IDENTIFIER_AUTHORITY, *PSID_IDENTIFIER_AUTHORITY; typedef struct _SID { BYTE Revision; BYTE SubAuthorityCount; SID_IDENTIFIER_AUTHORITY IdentifierAuthority; DWORD SubAuthority[1]; } SID,*PISID; # 3970 "../../include/winnt.h" typedef struct _ACL { BYTE AclRevision; BYTE Sbz1; WORD AclSize; WORD AceCount; WORD Sbz2; } ACL, *PACL; typedef enum _ACL_INFORMATION_CLASS { AclRevisionInformation = 1, AclSizeInformation } ACL_INFORMATION_CLASS; typedef struct _ACL_REVISION_INFORMATION { DWORD AclRevision; } ACL_REVISION_INFORMATION, *PACL_REVISION_INFORMATION; typedef struct _ACL_SIZE_INFORMATION { DWORD AceCount; DWORD AclBytesInUse; DWORD AclBytesFree; } ACL_SIZE_INFORMATION, *PACL_SIZE_INFORMATION; # 4064 "../../include/winnt.h" typedef DWORD SECURITY_INFORMATION, *PSECURITY_INFORMATION; typedef WORD SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL; typedef struct { BYTE Revision; BYTE Sbz1; SECURITY_DESCRIPTOR_CONTROL Control; DWORD Owner; DWORD Group; DWORD Sacl; DWORD Dacl; } SECURITY_DESCRIPTOR_RELATIVE, *PISECURITY_DESCRIPTOR_RELATIVE; typedef struct { BYTE Revision; BYTE Sbz1; SECURITY_DESCRIPTOR_CONTROL Control; PSID Owner; PSID Group; PACL Sacl; PACL Dacl; } SECURITY_DESCRIPTOR, *PISECURITY_DESCRIPTOR; # 4096 "../../include/winnt.h" typedef struct _SID_AND_ATTRIBUTES { PSID Sid; DWORD Attributes; } SID_AND_ATTRIBUTES, *PSID_AND_ATTRIBUTES; # 4208 "../../include/winnt.h" typedef enum { WinNullSid = 0, WinWorldSid = 1, WinLocalSid = 2, WinCreatorOwnerSid = 3, WinCreatorGroupSid = 4, WinCreatorOwnerServerSid = 5, WinCreatorGroupServerSid = 6, WinNtAuthoritySid = 7, WinDialupSid = 8, WinNetworkSid = 9, WinBatchSid = 10, WinInteractiveSid = 11, WinServiceSid = 12, WinAnonymousSid = 13, WinProxySid = 14, WinEnterpriseControllersSid = 15, WinSelfSid = 16, WinAuthenticatedUserSid = 17, WinRestrictedCodeSid = 18, WinTerminalServerSid = 19, WinRemoteLogonIdSid = 20, WinLogonIdsSid = 21, WinLocalSystemSid = 22, WinLocalServiceSid = 23, WinNetworkServiceSid = 24, WinBuiltinDomainSid = 25, WinBuiltinAdministratorsSid = 26, WinBuiltinUsersSid = 27, WinBuiltinGuestsSid = 28, WinBuiltinPowerUsersSid = 29, WinBuiltinAccountOperatorsSid = 30, WinBuiltinSystemOperatorsSid = 31, WinBuiltinPrintOperatorsSid = 32, WinBuiltinBackupOperatorsSid = 33, WinBuiltinReplicatorSid = 34, WinBuiltinPreWindows2000CompatibleAccessSid = 35, WinBuiltinRemoteDesktopUsersSid = 36, WinBuiltinNetworkConfigurationOperatorsSid = 37, WinAccountAdministratorSid = 38, WinAccountGuestSid = 39, WinAccountKrbtgtSid = 40, WinAccountDomainAdminsSid = 41, WinAccountDomainUsersSid = 42, WinAccountDomainGuestsSid = 43, WinAccountComputersSid = 44, WinAccountControllersSid = 45, WinAccountCertAdminsSid = 46, WinAccountSchemaAdminsSid = 47, WinAccountEnterpriseAdminsSid = 48, WinAccountPolicyAdminsSid = 49, WinAccountRasAndIasServersSid = 50, WinNTLMAuthenticationSid = 51, WinDigestAuthenticationSid = 52, WinSChannelAuthenticationSid = 53, WinThisOrganizationSid = 54, WinOtherOrganizationSid = 55, WinBuiltinIncomingForestTrustBuildersSid = 56, WinBuiltinPerfMonitoringUsersSid = 57, WinBuiltinPerfLoggingUsersSid = 58, WinBuiltinAuthorizationAccessSid = 59, WinBuiltinTerminalServerLicenseServersSid = 60, WinBuiltinDCOMUsersSid = 61, WinBuiltinIUsersSid = 62, WinIUserSid = 63, WinBuiltinCryptoOperatorsSid = 64, WinUntrustedLabelSid = 65, WinLowLabelSid = 66, WinMediumLabelSid = 67, WinHighLabelSid = 68, WinSystemLabelSid = 69, WinWriteRestrictedCodeSid = 70, WinCreatorOwnerRightsSid = 71, WinCacheablePrincipalsGroupSid = 72, WinNonCacheablePrincipalsGroupSid = 73, WinEnterpriseReadonlyControllersSid = 74, WinAccountReadonlyControllersSid = 75, WinBuiltinEventLogReadersGroup = 76, WinNewEnterpriseReadonlyControllersSid = 77, WinBuiltinCertSvcDComAccessGroup = 78, WinMediumPlusLabelSid = 79, WinLocalLogonSid = 80, WinConsoleLogonSid = 81, WinThisOrganizationCertificateSid = 82, } WELL_KNOWN_SID_TYPE; typedef struct _TOKEN_USER { SID_AND_ATTRIBUTES User; } TOKEN_USER, *PTOKEN_USER; typedef struct _TOKEN_GROUPS { DWORD GroupCount; SID_AND_ATTRIBUTES Groups[1]; } TOKEN_GROUPS, *PTOKEN_GROUPS; typedef union _LARGE_INTEGER { struct { DWORD LowPart; LONG HighPart; } u; struct { DWORD LowPart; LONG HighPart; }; LONGLONG QuadPart; } LARGE_INTEGER, *PLARGE_INTEGER; typedef union _ULARGE_INTEGER { struct { DWORD LowPart; DWORD HighPart; } u; struct { DWORD LowPart; DWORD HighPart; }; ULONGLONG QuadPart; } ULARGE_INTEGER, *PULARGE_INTEGER; typedef struct _LUID { DWORD LowPart; LONG HighPart; } LUID, *PLUID; # 1 "../../include/pshpack4.h" 1 # 105 "../../include/pshpack4.h" #pragma pack(4) # 4373 "../../include/winnt.h" 2 typedef struct _LUID_AND_ATTRIBUTES { LUID Luid; DWORD Attributes; } LUID_AND_ATTRIBUTES, *PLUID_AND_ATTRIBUTES; # 1 "../../include/poppack.h" 1 # 253 "../../include/poppack.h" #pragma pack() # 4378 "../../include/winnt.h" 2 typedef struct _PRIVILEGE_SET { DWORD PrivilegeCount; DWORD Control; LUID_AND_ATTRIBUTES Privilege[1]; } PRIVILEGE_SET, *PPRIVILEGE_SET; typedef struct _TOKEN_PRIVILEGES { DWORD PrivilegeCount; LUID_AND_ATTRIBUTES Privileges[1]; } TOKEN_PRIVILEGES, *PTOKEN_PRIVILEGES; typedef struct _TOKEN_OWNER { PSID Owner; } TOKEN_OWNER, *PTOKEN_OWNER; typedef struct _TOKEN_PRIMARY_GROUP { PSID PrimaryGroup; } TOKEN_PRIMARY_GROUP, *PTOKEN_PRIMARY_GROUP; typedef struct _TOKEN_DEFAULT_DACL { PACL DefaultDacl; } TOKEN_DEFAULT_DACL, *PTOKEN_DEFAULT_DACL; typedef struct _TOKEN_SOURCE { char SourceName[8]; LUID SourceIdentifier; } TOKEN_SOURCE, *PTOKEN_SOURCE; typedef enum tagTOKEN_TYPE { TokenPrimary = 1, TokenImpersonation } TOKEN_TYPE; typedef enum _SECURITY_IMPERSONATION_LEVEL { SecurityAnonymous, SecurityIdentification, SecurityImpersonation, SecurityDelegation } SECURITY_IMPERSONATION_LEVEL, *PSECURITY_IMPERSONATION_LEVEL; typedef BOOLEAN SECURITY_CONTEXT_TRACKING_MODE, * PSECURITY_CONTEXT_TRACKING_MODE; typedef struct _SECURITY_QUALITY_OF_SERVICE { DWORD Length; SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; SECURITY_CONTEXT_TRACKING_MODE ContextTrackingMode; BOOLEAN EffectiveOnly; } SECURITY_QUALITY_OF_SERVICE, *PSECURITY_QUALITY_OF_SERVICE; # 1 "../../include/pshpack4.h" 1 # 105 "../../include/pshpack4.h" #pragma pack(4) # 4475 "../../include/winnt.h" 2 typedef struct _TOKEN_STATISTICS { LUID TokenId; LUID AuthenticationId; LARGE_INTEGER ExpirationTime; TOKEN_TYPE TokenType; SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; DWORD DynamicCharged; DWORD DynamicAvailable; DWORD GroupCount; DWORD PrivilegeCount; LUID ModifiedId; } TOKEN_STATISTICS; # 1 "../../include/poppack.h" 1 # 253 "../../include/poppack.h" #pragma pack() # 4488 "../../include/winnt.h" 2 typedef struct _TOKEN_GROUPS_AND_PRIVILEGES { DWORD SidCount; DWORD SidLength; PSID_AND_ATTRIBUTES Sids; DWORD RestrictedSidCount; DWORD RestrictedSidLength; PSID_AND_ATTRIBUTES RestrictedSids; DWORD PrivilegeCount; DWORD PrivilegeLength; PLUID_AND_ATTRIBUTES Privileges; LUID AuthenticationId; } TOKEN_GROUPS_AND_PRIVILEGES, * PTOKEN_GROUPS_AND_PRIVILEGES; typedef struct _TOKEN_ORIGIN { LUID OriginatingLogonSession; } TOKEN_ORIGIN, * PTOKEN_ORIGIN; typedef struct _TOKEN_LINKED_TOKEN { HANDLE LinkedToken; } TOKEN_LINKED_TOKEN, * PTOKEN_LINKED_TOKEN; typedef struct _TOKEN_ELEVATION { DWORD TokenIsElevated; } TOKEN_ELEVATION, * PTOKEN_ELEVATION; typedef struct _ACE_HEADER { BYTE AceType; BYTE AceFlags; WORD AceSize; } ACE_HEADER,*PACE_HEADER; # 4551 "../../include/winnt.h" typedef struct _ACCESS_ALLOWED_ACE { ACE_HEADER Header; DWORD Mask; DWORD SidStart; } ACCESS_ALLOWED_ACE,*PACCESS_ALLOWED_ACE; typedef struct _ACCESS_DENIED_ACE { ACE_HEADER Header; DWORD Mask; DWORD SidStart; } ACCESS_DENIED_ACE,*PACCESS_DENIED_ACE; typedef struct _SYSTEM_AUDIT_ACE { ACE_HEADER Header; DWORD Mask; DWORD SidStart; } SYSTEM_AUDIT_ACE,*PSYSTEM_AUDIT_ACE; typedef struct _SYSTEM_ALARM_ACE { ACE_HEADER Header; DWORD Mask; DWORD SidStart; } SYSTEM_ALARM_ACE,*PSYSTEM_ALARM_ACE; typedef enum tagSID_NAME_USE { SidTypeUser = 1, SidTypeGroup, SidTypeDomain, SidTypeAlias, SidTypeWellKnownGroup, SidTypeDeletedAccount, SidTypeInvalid, SidTypeUnknown } SID_NAME_USE,*PSID_NAME_USE; # 4667 "../../include/winnt.h" typedef struct _QUOTA_LIMITS { SIZE_T PagedPoolLimit; SIZE_T NonPagedPoolLimit; SIZE_T MinimumWorkingSetSize; SIZE_T MaximumWorkingSetSize; SIZE_T PagefileLimit; LARGE_INTEGER TimeLimit; } QUOTA_LIMITS, *PQUOTA_LIMITS; typedef struct _QUOTA_LIMITS_EX { SIZE_T PagedPoolLimit; SIZE_T NonPagedPoolLimit; SIZE_T MinimumWorkingSetSize; SIZE_T MaximumWorkingSetSize; SIZE_T PagefileLimit; LARGE_INTEGER TimeLimit; SIZE_T Reserved1; SIZE_T Reserved2; SIZE_T Reserved3; SIZE_T Reserved4; DWORD Flags; DWORD Reserved5; } QUOTA_LIMITS_EX, *PQUOTA_LIMITS_EX; # 4824 "../../include/winnt.h" typedef enum _LATENCY_TIME { LT_DONT_CARE, LT_LOWEST_LATENCY } LATENCY_TIME, *PLATENCY_TIME; # 4838 "../../include/winnt.h" typedef enum _POWER_ACTION { PowerActionNone = 0, PowerActionReserved, PowerActionSleep, PowerActionHibernate, PowerActionShutdown, PowerActionShutdownReset, PowerActionShutdownOff, PowerActionWarmEject } POWER_ACTION, *PPOWER_ACTION; typedef enum _SYSTEM_POWER_STATE { PowerSystemUnspecified = 0, PowerSystemWorking = 1, PowerSystemSleeping1 = 2, PowerSystemSleeping2 = 3, PowerSystemSleeping3 = 4, PowerSystemHibernate = 5, PowerSystemShutdown = 6, PowerSystemMaximum = 7 } SYSTEM_POWER_STATE, *PSYSTEM_POWER_STATE; typedef enum _DEVICE_POWER_STATE { PowerDeviceUnspecified, PowerDeviceD0, PowerDeviceD1, PowerDeviceD2, PowerDeviceD3, PowerDeviceMaximum } DEVICE_POWER_STATE, *PDEVICE_POWER_STATE; typedef enum _POWER_INFORMATION_LEVEL { SystemPowerPolicyAc, SystemPowerPolicyDc, VerifySystemPolicyAc, VerifySystemPolicyDc, SystemPowerCapabilities, SystemBatteryState, SystemPowerStateHandler, ProcessorStateHandler, SystemPowerPolicyCurrent, AdministratorPowerPolicy, SystemReserveHiberFile, ProcessorInformation, SystemPowerInformation, ProcessorStateHandler2, LastWakeTime, LastSleepTime, SystemExecutionState, SystemPowerStateNotifyHandler, ProcessorPowerPolicyAc, ProcessorPowerPolicyDc, VerifyProcessorPowerPolicyAc, VerifyProcessorPowerPolicyDc, ProcessorPowerPolicyCurrent } POWER_INFORMATION_LEVEL; typedef struct _ADMINISTRATOR_POWER_POLICY { SYSTEM_POWER_STATE MinSleep; SYSTEM_POWER_STATE MaxSleep; ULONG MinVideoTimeout; ULONG MaxVideoTimeout; ULONG MinSpindownTimeout; ULONG MaxSpindownTimeout; } ADMINISTRATOR_POWER_POLICY, *PADMINISTRATOR_POWER_POLICY; typedef struct { ULONG Granularity; ULONG Capacity; } BATTERY_REPORTING_SCALE, *PBATTERY_REPORTING_SCALE; typedef struct { POWER_ACTION Action; ULONG Flags; ULONG EventCode; } POWER_ACTION_POLICY, *PPOWER_ACTION_POLICY; typedef struct _PROCESSOR_POWER_INFORMATION { ULONG Number; ULONG MaxMhz; ULONG CurrentMhz; ULONG MhzLimit; ULONG MaxIdleState; ULONG CurrentIdleState; } PROCESSOR_POWER_INFORMATION, *PPROCESSOR_POWER_INFORMATION; typedef struct _PROCESSOR_POWER_POLICY_INFO { ULONG TimeCheck; ULONG DemoteLimit; ULONG PromoteLimit; UCHAR DemotePercent; UCHAR PromotePercent; UCHAR Spare[2]; ULONG AllowDemotion:1; ULONG AllowPromotion:1; ULONG Reserved:30; } PROCESSOR_POWER_POLICY_INFO, *PPROCESSOR_POWER_POLICY_INFO; typedef struct _PROCESSOR_POWER_POLICY { DWORD Revision; BYTE DynamicThrottle; BYTE Spare[3]; DWORD DisableCStates:1; DWORD Reserved:31; DWORD PolicyCount; PROCESSOR_POWER_POLICY_INFO Policy[3]; } PROCESSOR_POWER_POLICY, *PPROCESSOR_POWER_POLICY; typedef struct { BOOLEAN AcOnLine; BOOLEAN BatteryPresent; BOOLEAN Charging; BOOLEAN Discharging; BOOLEAN Spare1[4]; ULONG MaxCapacity; ULONG RemainingCapacity; ULONG Rate; ULONG EstimatedTime; ULONG DefaultAlert1; ULONG DefaultAlert2; } SYSTEM_BATTERY_STATE, *PSYSTEM_BATTERY_STATE; typedef struct { BOOLEAN PowerButtonPresent; BOOLEAN SleepButtonPresent; BOOLEAN LidPresent; BOOLEAN SystemS1; BOOLEAN SystemS2; BOOLEAN SystemS3; BOOLEAN SystemS4; BOOLEAN SystemS5; BOOLEAN HiberFilePresent; BOOLEAN FullWake; BOOLEAN VideoDimPresent; BOOLEAN ApmPresent; BOOLEAN UpsPresent; BOOLEAN ThermalControl; BOOLEAN ProcessorThrottle; UCHAR ProcessorMinThrottle; UCHAR ProcessorMaxThrottle; UCHAR spare2[4]; BOOLEAN DiskSpinDown; UCHAR spare3[8]; BOOLEAN SystemBatteriesPresent; BOOLEAN BatteriesAreShortTerm; BATTERY_REPORTING_SCALE BatteryScale[3]; SYSTEM_POWER_STATE AcOnLineWake; SYSTEM_POWER_STATE SoftLidWake; SYSTEM_POWER_STATE RtcWake; SYSTEM_POWER_STATE MinDeviceWakeState; SYSTEM_POWER_STATE DefaultLowLatencyWake; } SYSTEM_POWER_CAPABILITIES, *PSYSTEM_POWER_CAPABILITIES; typedef struct _SYSTEM_POWER_INFORMATION { ULONG MaxIdlenessAllowed; ULONG Idleness; ULONG TimeRemaining; UCHAR CoolingMode; } SYSTEM_POWER_INFORMATION, *PSYSTEM_POWER_INFORMATION; typedef struct _SYSTEM_POWER_LEVEL { BOOLEAN Enable; UCHAR Spare[3]; ULONG BatteryLevel; POWER_ACTION_POLICY PowerPolicy; SYSTEM_POWER_STATE MinSystemState; } SYSTEM_POWER_LEVEL, *PSYSTEM_POWER_LEVEL; typedef struct _SYSTEM_POWER_POLICY { ULONG Revision; POWER_ACTION_POLICY PowerButton; POWER_ACTION_POLICY SleepButton; POWER_ACTION_POLICY LidClose; SYSTEM_POWER_STATE LidOpenWake; ULONG Reserved; POWER_ACTION_POLICY Idle; ULONG IdleTimeout; UCHAR IdleSensitivity; UCHAR DynamicThrottle; UCHAR Spare2[2]; SYSTEM_POWER_STATE MinSleep; SYSTEM_POWER_STATE MaxSleep; SYSTEM_POWER_STATE ReducedLatencySleep; ULONG WinLogonFlags; ULONG Spare3; ULONG DozeS4Timeout; ULONG BroadcastCapacityResolution; SYSTEM_POWER_LEVEL DischargePolicy[4]; ULONG VideoTimeout; BOOLEAN VideoDimDisplay; ULONG VideoReserved[3]; ULONG SpindownTimeout; BOOLEAN OptimizeForPower; UCHAR FanThrottleTolerance; UCHAR ForcedThrottle; UCHAR MinThrottle; POWER_ACTION_POLICY OverThrottled; } SYSTEM_POWER_POLICY, *PSYSTEM_POWER_POLICY; typedef union _FILE_SEGMENT_ELEMENT { PVOID64 Buffer; ULONGLONG Alignment; } FILE_SEGMENT_ELEMENT, *PFILE_SEGMENT_ELEMENT; typedef struct _FILE_NOTIFY_INFORMATION { DWORD NextEntryOffset; DWORD Action; DWORD FileNameLength; WCHAR FileName[1]; } FILE_NOTIFY_INFORMATION, *PFILE_NOTIFY_INFORMATION; # 5089 "../../include/winnt.h" typedef struct _TAPE_CREATE_PARTITION { DWORD Method; DWORD Count; DWORD Size; } TAPE_CREATE_PARTITION, *PTAPE_CREATE_PARTITION; typedef struct _TAPE_ERASE { DWORD Type; BOOLEAN Immediate; } TAPE_ERASE, *PTAPE_ERASE; typedef struct _TAPE_PREPARE { DWORD Operation; BOOLEAN Immediate; } TAPE_PREPARE, *PTAPE_PREPARE; typedef struct _TAPE_SET_DRIVE_PARAMETERS { BOOLEAN ECC; BOOLEAN Compression; BOOLEAN DataPadding; BOOLEAN ReportSetmarks; ULONG EOTWarningZoneSize; } TAPE_SET_DRIVE_PARAMETERS, *PTAPE_SET_DRIVE_PARAMETERS; typedef struct _TAPE_SET_MEDIA_PARAMETERS { ULONG BlockSize; } TAPE_SET_MEDIA_PARAMETERS, *PTAPE_SET_MEDIA_PARAMETERS; typedef struct _TAPE_WRITE_MARKS { DWORD Type; DWORD Count; BOOLEAN Immediate; } TAPE_WRITE_MARKS, *PTAPE_WRITE_MARKS; typedef struct _TAPE_GET_POSITION { ULONG Type; ULONG Partition; ULONG OffsetLow; ULONG OffsetHigh; } TAPE_GET_POSITION, *PTAPE_GET_POSITION; typedef struct _TAPE_SET_POSITION { ULONG Method; ULONG Partition; LARGE_INTEGER Offset; BOOLEAN Immediate; } TAPE_SET_POSITION, *PTAPE_SET_POSITION; typedef struct _TAPE_GET_DRIVE_PARAMETERS { BOOLEAN ECC; BOOLEAN Compression; BOOLEAN DataPadding; BOOLEAN ReportSetmarks; DWORD DefaultBlockSize; DWORD MaximumBlockSize; DWORD MinimumBlockSize; DWORD MaximumPartitionCount; DWORD FeaturesLow; DWORD FeaturesHigh; DWORD EOTWarningZoneSize; } TAPE_GET_DRIVE_PARAMETERS, *PTAPE_GET_DRIVE_PARAMETERS; typedef struct _TAPE_GET_MEDIA_PARAMETERS { LARGE_INTEGER Capacity; LARGE_INTEGER Remaining; DWORD BlockSize; DWORD PartitionCount; BOOLEAN WriteProtected; } TAPE_GET_MEDIA_PARAMETERS, *PTAPE_GET_MEDIA_PARAMETERS; # 5242 "../../include/winnt.h" typedef struct _EVENTLOGRECORD { DWORD Length; DWORD Reserved; DWORD RecordNumber; DWORD TimeGenerated; DWORD TimeWritten; DWORD EventID; WORD EventType; WORD NumStrings; WORD EventCategory; WORD ReservedFlags; DWORD ClosingRecordNumber; DWORD StringOffset; DWORD UserSidLength; DWORD UserSidOffset; DWORD DataLength; DWORD DataOffset; } EVENTLOGRECORD, *PEVENTLOGRECORD; # 5291 "../../include/winnt.h" typedef enum _CM_SERVICE_NODE_TYPE { DriverType = 0x00000001, FileSystemType = 0x00000002, Win32ServiceOwnProcess = 0x00000010, Win32ServiceShareProcess = 0x00000020, AdapterType = 0x00000004, RecognizerType = 0x00000008 } SERVICE_NODE_TYPE; typedef enum _CM_SERVICE_LOAD_TYPE { BootLoad = 0x00000000, SystemLoad = 0x00000001, AutoLoad = 0x00000002, DemandLoad = 0x00000003, DisableLoad = 0x00000004 } SERVICE_LOAD_TYPE; typedef enum _CM_ERROR_CONTROL_TYPE { IgnoreError = 0x00000000, NormalError = 0x00000001, SevereError = 0x00000002, CriticalError = 0x00000003 } SERVICE_ERROR_TYPE; # 5326 "../../include/winnt.h" # 1 "../../include/guiddef.h" 1 # 5327 "../../include/winnt.h" 2 typedef struct _OBJECT_TYPE_LIST { WORD Level; WORD Sbz; GUID *ObjectType; } OBJECT_TYPE_LIST, *POBJECT_TYPE_LIST; typedef struct _RTL_CRITICAL_SECTION_DEBUG { WORD Type; WORD CreatorBackTraceIndex; struct _RTL_CRITICAL_SECTION *CriticalSection; LIST_ENTRY ProcessLocksList; DWORD EntryCount; DWORD ContentionCount; DWORD_PTR Spare[8/sizeof(DWORD_PTR)]; } RTL_CRITICAL_SECTION_DEBUG, *PRTL_CRITICAL_SECTION_DEBUG, RTL_RESOURCE_DEBUG, *PRTL_RESOURCE_DEBUG; typedef struct _RTL_CRITICAL_SECTION { PRTL_CRITICAL_SECTION_DEBUG DebugInfo; LONG LockCount; LONG RecursionCount; HANDLE OwningThread; HANDLE LockSemaphore; ULONG_PTR SpinCount; } RTL_CRITICAL_SECTION, *PRTL_CRITICAL_SECTION; typedef struct _RTL_SRWLOCK { PVOID Ptr; } RTL_SRWLOCK, *PRTL_SRWLOCK; typedef void (__attribute__((ms_abi)) * WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN ); typedef void (__attribute__((ms_abi)) * PFLS_CALLBACK_FUNCTION) ( PVOID ); # 1 "../../include/pshpack8.h" 1 # 105 "../../include/pshpack8.h" #pragma pack(8) # 5374 "../../include/winnt.h" 2 typedef struct _IO_COUNTERS { ULONGLONG __attribute__((aligned(8))) ReadOperationCount; ULONGLONG __attribute__((aligned(8))) WriteOperationCount; ULONGLONG __attribute__((aligned(8))) OtherOperationCount; ULONGLONG __attribute__((aligned(8))) ReadTransferCount; ULONGLONG __attribute__((aligned(8))) WriteTransferCount; ULONGLONG __attribute__((aligned(8))) OtherTransferCount; } IO_COUNTERS, *PIO_COUNTERS; # 1 "../../include/poppack.h" 1 # 253 "../../include/poppack.h" #pragma pack() # 5383 "../../include/winnt.h" 2 typedef struct { DWORD dwOSVersionInfoSize; DWORD dwMajorVersion; DWORD dwMinorVersion; DWORD dwBuildNumber; DWORD dwPlatformId; CHAR szCSDVersion[128]; } OSVERSIONINFOA, *POSVERSIONINFOA, *LPOSVERSIONINFOA; typedef struct { DWORD dwOSVersionInfoSize; DWORD dwMajorVersion; DWORD dwMinorVersion; DWORD dwBuildNumber; DWORD dwPlatformId; WCHAR szCSDVersion[128]; } OSVERSIONINFOW, *POSVERSIONINFOW, *LPOSVERSIONINFOW, RTL_OSVERSIONINFOW, *PRTL_OSVERSIONINFOW; typedef struct { DWORD dwOSVersionInfoSize; DWORD dwMajorVersion; DWORD dwMinorVersion; DWORD dwBuildNumber; DWORD dwPlatformId; CHAR szCSDVersion[128]; WORD wServicePackMajor; WORD wServicePackMinor; WORD wSuiteMask; BYTE wProductType; BYTE wReserved; } OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA; typedef struct { DWORD dwOSVersionInfoSize; DWORD dwMajorVersion; DWORD dwMinorVersion; DWORD dwBuildNumber; DWORD dwPlatformId; WCHAR szCSDVersion[128]; WORD wServicePackMajor; WORD wServicePackMinor; WORD wSuiteMask; BYTE wProductType; BYTE wReserved; } OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW, RTL_OSVERSIONINFOEXW, *PRTL_OSVERSIONINFOEXW; __attribute__((visibility ("hidden"))) ULONGLONG __attribute__((ms_abi)) VerSetConditionMask(ULONGLONG,DWORD,BYTE); # 5484 "../../include/winnt.h" typedef struct _ACTIVATION_CONTEXT_DETAILED_INFORMATION { DWORD dwFlags; DWORD ulFormatVersion; DWORD ulAssemblyCount; DWORD ulRootManifestPathType; DWORD ulRootManifestPathChars; DWORD ulRootConfigurationPathType; DWORD ulRootConfigurationPathChars; DWORD ulAppDirPathType; DWORD ulAppDirPathChars; PCWSTR lpRootManifestPath; PCWSTR lpRootConfigurationPath; PCWSTR lpAppDirPath; } ACTIVATION_CONTEXT_DETAILED_INFORMATION, *PACTIVATION_CONTEXT_DETAILED_INFORMATION; typedef struct _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION { DWORD ulFlags; DWORD ulEncodedAssemblyIdentityLength; DWORD ulManifestPathType; DWORD ulManifestPathLength; LARGE_INTEGER liManifestLastWriteTime; DWORD ulPolicyPathType; DWORD ulPolicyPathLength; LARGE_INTEGER liPolicyLastWriteTime; DWORD ulMetadataSatelliteRosterIndex; DWORD ulManifestVersionMajor; DWORD ulManifestVersionMinor; DWORD ulPolicyVersionMajor; DWORD ulPolicyVersionMinor; DWORD ulAssemblyDirectoryNameLength; PCWSTR lpAssemblyEncodedAssemblyIdentity; PCWSTR lpAssemblyManifestPath; PCWSTR lpAssemblyPolicyPath; PCWSTR lpAssemblyDirectoryName; DWORD ulFileCount; } ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION, *PACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION; typedef struct _ACTIVATION_CONTEXT_QUERY_INDEX { DWORD ulAssemblyIndex; DWORD ulFileIndexInAssembly; } ACTIVATION_CONTEXT_QUERY_INDEX, *PACTIVATION_CONTEXT_QUERY_INDEX; typedef const struct _ACTIVATION_CONTEXT_QUERY_INDEX *PCACTIVATION_CONTEXT_QUERY_INDEX; typedef struct _ASSEMBLY_FILE_DETAILED_INFORMATION { DWORD ulFlags; DWORD ulFilenameLength; DWORD ulPathLength; PCWSTR lpFileName; PCWSTR lpFilePath; } ASSEMBLY_FILE_DETAILED_INFORMATION, *PASSEMBLY_FILE_DETAILED_INFORMATION; typedef const ASSEMBLY_FILE_DETAILED_INFORMATION *PCASSEMBLY_FILE_DETAILED_INFORMATION; typedef enum _ACTIVATION_CONTEXT_INFO_CLASS { ActivationContextBasicInformation = 1, ActivationContextDetailedInformation = 2, AssemblyDetailedInformationInActivationContext = 3, FileInformationInAssemblyOfAssemblyInActivationContext = 4, MaxActivationContextInfoClass, AssemblyDetailedInformationInActivationContxt = 3, FileInformationInAssemblyOfAssemblyInActivationContxt = 4 } ACTIVATION_CONTEXT_INFO_CLASS; # 5564 "../../include/winnt.h" typedef enum _JOBOBJECTINFOCLASS { JobObjectBasicAccountingInformation = 1, JobObjectBasicLimitInformation, JobObjectBasicProcessIdList, JobObjectBasicUIRestrictions, JobObjectSecurityLimitInformation, JobObjectEndOfJobTimeInformation, JobObjectAssociateCompletionPortInformation, JobObjectBasicAndIoAccountingInformation, JobObjectExtendedLimitInformation, JobObjectJobSetInformation, MaxJobObjectInfoClass } JOBOBJECTINFOCLASS; typedef enum _LOGICAL_PROCESSOR_RELATIONSHIP { RelationProcessorCore = 0, RelationNumaNode = 1, RelationCache = 2, RelationProcessorPackage = 3, RelationGroup = 4, RelationAll = 0xffff } LOGICAL_PROCESSOR_RELATIONSHIP; typedef enum _PROCESSOR_CACHE_TYPE { CacheUnified, CacheInstruction, CacheData, CacheTrace } PROCESSOR_CACHE_TYPE; typedef struct _PROCESSOR_GROUP_INFO { BYTE MaximumProcessorCount; BYTE ActiveProcessorCount; BYTE Reserved[38]; KAFFINITY ActiveProcessorMask; } PROCESSOR_GROUP_INFO, *PPROCESSOR_GROUP_INFO; typedef struct _CACHE_DESCRIPTOR { BYTE Level; BYTE Associativity; WORD LineSize; DWORD Size; PROCESSOR_CACHE_TYPE Type; } CACHE_DESCRIPTOR, *PCACHE_DESCRIPTOR; typedef struct _GROUP_AFFINITY { KAFFINITY Mask; WORD Group; WORD Reserved[3]; } GROUP_AFFINITY, *PGROUP_AFFINITY; typedef struct _PROCESSOR_RELATIONSHIP { BYTE Flags; BYTE Reserved[21]; WORD GroupCount; GROUP_AFFINITY GroupMask[1]; } PROCESSOR_RELATIONSHIP, *PPROCESSOR_RELATIONSHIP; typedef struct _NUMA_NODE_RELATIONSHIP { DWORD NodeNumber; BYTE Reserved[20]; GROUP_AFFINITY GroupMask; } NUMA_NODE_RELATIONSHIP, *PNUMA_NODE_RELATIONSHIP; typedef struct _CACHE_RELATIONSHIP { BYTE Level; BYTE Associativity; WORD LineSize; PROCESSOR_CACHE_TYPE Type; BYTE Reserved[20]; GROUP_AFFINITY GroupMask; } CACHE_RELATIONSHIP, *PCACHE_RELATIONSHIP; typedef struct _GROUP_RELATIONSHIP { WORD MaximumGroupCount; WORD ActiveGroupCount; BYTE Reserved[20]; PROCESSOR_GROUP_INFO GroupInfo[1]; } GROUP_RELATIONSHIP, *PGROUP_RELATIONSHIP; typedef struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION { ULONG_PTR ProcessorMask; LOGICAL_PROCESSOR_RELATIONSHIP Relationship; union { struct { BYTE Flags; } ProcessorCore; struct { DWORD NodeNumber; } NumaNode; CACHE_DESCRIPTOR Cache; ULONGLONG Reserved[2]; } ; } SYSTEM_LOGICAL_PROCESSOR_INFORMATION, *PSYSTEM_LOGICAL_PROCESSOR_INFORMATION; typedef struct _SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX { LOGICAL_PROCESSOR_RELATIONSHIP Relationship; DWORD Size; union { PROCESSOR_RELATIONSHIP Processor; NUMA_NODE_RELATIONSHIP NumaNode; CACHE_RELATIONSHIP Cache; GROUP_RELATIONSHIP Group; } ; } SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, *PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX; __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlGetProductInfo(DWORD,DWORD,DWORD,DWORD,PDWORD); # 253 "../../include/windef.h" 2 typedef UINT_PTR WPARAM; typedef LONG_PTR LPARAM; typedef LONG_PTR LRESULT; typedef WORD ATOM; typedef DWORD COLORREF, *LPCOLORREF; typedef int HFILE; typedef struct HACCEL__ { int unused; } *HACCEL; typedef struct HBITMAP__ { int unused; } *HBITMAP; typedef struct HBRUSH__ { int unused; } *HBRUSH; typedef struct HCOLORSPACE__ { int unused; } *HCOLORSPACE; typedef struct HDC__ { int unused; } *HDC; typedef struct HDESK__ { int unused; } *HDESK; typedef struct HENHMETAFILE__ { int unused; } *HENHMETAFILE; typedef struct HFONT__ { int unused; } *HFONT; typedef struct HGLRC__ { int unused; } *HGLRC; typedef struct HHOOK__ { int unused; } *HHOOK; typedef struct HICON__ { int unused; } *HICON; typedef struct HINSTANCE__ { int unused; } *HINSTANCE; typedef struct HKEY__ { int unused; } *HKEY; typedef HKEY *PHKEY; typedef struct HKL__ { int unused; } *HKL; typedef struct HMENU__ { int unused; } *HMENU; typedef struct HMETAFILE__ { int unused; } *HMETAFILE; typedef struct HMONITOR__ { int unused; } *HMONITOR; typedef struct HPALETTE__ { int unused; } *HPALETTE; typedef struct HPEN__ { int unused; } *HPEN; typedef struct HRGN__ { int unused; } *HRGN; typedef struct HRSRC__ { int unused; } *HRSRC; typedef struct HTASK__ { int unused; } *HTASK; typedef struct HWINEVENTHOOK__ { int unused; } *HWINEVENTHOOK; typedef struct HWINSTA__ { int unused; } *HWINSTA; typedef struct HWND__ { int unused; } *HWND; typedef HINSTANCE HMODULE; typedef HANDLE HGDIOBJ; typedef HANDLE HGLOBAL; typedef HANDLE HLOCAL; typedef HANDLE GLOBALHANDLE; typedef HANDLE LOCALHANDLE; typedef HICON HCURSOR; typedef INT_PTR (__attribute__((ms_abi)) *FARPROC)(void); typedef INT_PTR (__attribute__((ms_abi)) *NEARPROC)(void); typedef INT_PTR (__attribute__((ms_abi)) *PROC)(void); # 347 "../../include/windef.h" typedef struct tagSIZE { LONG cx; LONG cy; } SIZE, *PSIZE, *LPSIZE; typedef SIZE SIZEL, *PSIZEL, *LPSIZEL; typedef struct tagPOINT { LONG x; LONG y; } POINT, *PPOINT, *LPPOINT; typedef struct _POINTL { LONG x; LONG y; } POINTL, *PPOINTL; typedef struct tagPOINTS { SHORT x; SHORT y; } POINTS, *PPOINTS, *LPPOINTS; typedef struct _FILETIME { DWORD dwLowDateTime; DWORD dwHighDateTime; } FILETIME, *PFILETIME, *LPFILETIME; typedef struct tagRECT { LONG left; LONG top; LONG right; LONG bottom; } RECT, *PRECT, *LPRECT; typedef const RECT *LPCRECT; typedef struct _RECTL { LONG left; LONG top; LONG right; LONG bottom; } RECTL, *PRECTL, *LPRECTL; typedef const RECTL *LPCRECTL; # 41 "file.c" 2 # 1 "../../include/winbase.h" 1 # 22 "../../include/winbase.h" # 1 "../../include/winerror.h" 1 # 93 "../../include/winerror.h" static inline HRESULT HRESULT_FROM_WIN32(unsigned int x) { return (HRESULT)x > 0 ? ((HRESULT) ((x & 0x0000FFFF) | (7 << 16) | 0x80000000)) : (HRESULT)x; } # 23 "../../include/winbase.h" 2 # 44 "../../include/winbase.h" typedef DWORD (__attribute__((ms_abi)) *LPTHREAD_START_ROUTINE)(LPVOID); typedef void (__attribute__((ms_abi)) *PFIBER_START_ROUTINE)( LPVOID lpFiberParameter ); typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE; typedef RTL_CRITICAL_SECTION CRITICAL_SECTION; typedef PRTL_CRITICAL_SECTION PCRITICAL_SECTION; typedef PRTL_CRITICAL_SECTION LPCRITICAL_SECTION; typedef RTL_CRITICAL_SECTION_DEBUG CRITICAL_SECTION_DEBUG; typedef PRTL_CRITICAL_SECTION_DEBUG PCRITICAL_SECTION_DEBUG; typedef PRTL_CRITICAL_SECTION_DEBUG LPCRITICAL_SECTION_DEBUG; typedef RTL_SRWLOCK SRWLOCK; typedef PRTL_SRWLOCK PSRWLOCK; typedef WAITORTIMERCALLBACKFUNC WAITORTIMERCALLBACK; # 76 "../../include/winbase.h" typedef struct _EXCEPTION_DEBUG_INFO { EXCEPTION_RECORD ExceptionRecord; DWORD dwFirstChance; } EXCEPTION_DEBUG_INFO; typedef struct _CREATE_THREAD_DEBUG_INFO { HANDLE hThread; LPVOID lpThreadLocalBase; LPTHREAD_START_ROUTINE lpStartAddress; } CREATE_THREAD_DEBUG_INFO; typedef struct _CREATE_PROCESS_DEBUG_INFO { HANDLE hFile; HANDLE hProcess; HANDLE hThread; LPVOID lpBaseOfImage; DWORD dwDebugInfoFileOffset; DWORD nDebugInfoSize; LPVOID lpThreadLocalBase; LPTHREAD_START_ROUTINE lpStartAddress; LPVOID lpImageName; WORD fUnicode; } CREATE_PROCESS_DEBUG_INFO; typedef struct _EXIT_THREAD_DEBUG_INFO { DWORD dwExitCode; } EXIT_THREAD_DEBUG_INFO; typedef struct _EXIT_PROCESS_DEBUG_INFO { DWORD dwExitCode; } EXIT_PROCESS_DEBUG_INFO; typedef struct _LOAD_DLL_DEBUG_INFO { HANDLE hFile; LPVOID lpBaseOfDll; DWORD dwDebugInfoFileOffset; DWORD nDebugInfoSize; LPVOID lpImageName; WORD fUnicode; } LOAD_DLL_DEBUG_INFO; typedef struct _UNLOAD_DLL_DEBUG_INFO { LPVOID lpBaseOfDll; } UNLOAD_DLL_DEBUG_INFO; typedef struct _OUTPUT_DEBUG_STRING_INFO { LPSTR lpDebugStringData; WORD fUnicode; WORD nDebugStringLength; } OUTPUT_DEBUG_STRING_INFO; typedef struct _RIP_INFO { DWORD dwError; DWORD dwType; } RIP_INFO; typedef struct _DEBUG_EVENT { DWORD dwDebugEventCode; DWORD dwProcessId; DWORD dwThreadId; union { EXCEPTION_DEBUG_INFO Exception; CREATE_THREAD_DEBUG_INFO CreateThread; CREATE_PROCESS_DEBUG_INFO CreateProcessInfo; EXIT_THREAD_DEBUG_INFO ExitThread; EXIT_PROCESS_DEBUG_INFO ExitProcess; LOAD_DLL_DEBUG_INFO LoadDll; UNLOAD_DLL_DEBUG_INFO UnloadDll; OUTPUT_DEBUG_STRING_INFO DebugString; RIP_INFO RipInfo; } u; } DEBUG_EVENT, *LPDEBUG_EVENT; typedef PCONTEXT LPCONTEXT; typedef PEXCEPTION_RECORD LPEXCEPTION_RECORD; typedef PEXCEPTION_POINTERS LPEXCEPTION_POINTERS; typedef LONG (__attribute__((ms_abi)) *PTOP_LEVEL_EXCEPTION_FILTER)(PEXCEPTION_POINTERS); typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER; typedef struct _OFSTRUCT { BYTE cBytes; BYTE fFixedDisk; WORD nErrCode; WORD Reserved1; WORD Reserved2; CHAR szPathName[128]; } OFSTRUCT, *POFSTRUCT, *LPOFSTRUCT; # 224 "../../include/winbase.h" typedef struct _SECURITY_ATTRIBUTES { DWORD nLength; LPVOID lpSecurityDescriptor; BOOL bInheritHandle; } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; # 247 "../../include/winbase.h" typedef struct _WIN32_FIND_DATAA { DWORD dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; DWORD nFileSizeHigh; DWORD nFileSizeLow; DWORD dwReserved0; DWORD dwReserved1; CHAR cFileName[260]; CHAR cAlternateFileName[14]; } WIN32_FIND_DATAA, *PWIN32_FIND_DATAA, *LPWIN32_FIND_DATAA; typedef struct _WIN32_FIND_DATAW { DWORD dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; DWORD nFileSizeHigh; DWORD nFileSizeLow; DWORD dwReserved0; DWORD dwReserved1; WCHAR cFileName[260]; WCHAR cAlternateFileName[14]; } WIN32_FIND_DATAW, *PWIN32_FIND_DATAW, *LPWIN32_FIND_DATAW; typedef enum _FINDEX_INFO_LEVELS { FindExInfoStandard, FindExInfoMaxInfoLevel } FINDEX_INFO_LEVELS; typedef enum _FINDEX_SEARCH_OPS { FindExSearchNameMatch, FindExSearchLimitToDirectories, FindExSearchLimitToDevices, FindExSearchMaxSearchOp } FINDEX_SEARCH_OPS; typedef struct _PROCESS_HEAP_ENTRY { LPVOID lpData; DWORD cbData; BYTE cbOverhead; BYTE iRegionIndex; WORD wFlags; union { struct { HANDLE hMem; DWORD dwReserved[3]; } Block; struct { DWORD dwCommittedSize; DWORD dwUnCommittedSize; LPVOID lpFirstBlock; LPVOID lpLastBlock; } Region; } ; } PROCESS_HEAP_ENTRY, *PPROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY; # 486 "../../include/winbase.h" typedef struct tagMEMORYSTATUS { DWORD dwLength; DWORD dwMemoryLoad; SIZE_T dwTotalPhys; SIZE_T dwAvailPhys; SIZE_T dwTotalPageFile; SIZE_T dwAvailPageFile; SIZE_T dwTotalVirtual; SIZE_T dwAvailVirtual; } MEMORYSTATUS, *LPMEMORYSTATUS; # 1 "../../include/pshpack8.h" 1 # 105 "../../include/pshpack8.h" #pragma pack(8) # 499 "../../include/winbase.h" 2 typedef struct tagMEMORYSTATUSEX { DWORD dwLength; DWORD dwMemoryLoad; DWORDLONG __attribute__((aligned(8))) ullTotalPhys; DWORDLONG __attribute__((aligned(8))) ullAvailPhys; DWORDLONG __attribute__((aligned(8))) ullTotalPageFile; DWORDLONG __attribute__((aligned(8))) ullAvailPageFile; DWORDLONG __attribute__((aligned(8))) ullTotalVirtual; DWORDLONG __attribute__((aligned(8))) ullAvailVirtual; DWORDLONG __attribute__((aligned(8))) ullAvailExtendedVirtual; } MEMORYSTATUSEX, *LPMEMORYSTATUSEX; # 1 "../../include/poppack.h" 1 # 253 "../../include/poppack.h" #pragma pack() # 511 "../../include/winbase.h" 2 typedef enum _MEMORY_RESOURCE_NOTIFICATION_TYPE { LowMemoryResourceNotification, HighMemoryResourceNotification } MEMORY_RESOURCE_NOTIFICATION_TYPE; typedef struct _SYSTEMTIME{ WORD wYear; WORD wMonth; WORD wDayOfWeek; WORD wDay; WORD wHour; WORD wMinute; WORD wSecond; WORD wMilliseconds; } SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME; typedef struct _OVERLAPPED { ULONG_PTR Internal; ULONG_PTR InternalHigh; union { struct { DWORD Offset; DWORD OffsetHigh; } ; PVOID Pointer; } ; HANDLE hEvent; } OVERLAPPED, *LPOVERLAPPED; typedef void (__attribute__((ms_abi)) *LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD,DWORD,LPOVERLAPPED); # 573 "../../include/winbase.h" typedef struct _STARTUPINFOA{ DWORD cb; LPSTR lpReserved; LPSTR lpDesktop; LPSTR lpTitle; DWORD dwX; DWORD dwY; DWORD dwXSize; DWORD dwYSize; DWORD dwXCountChars; DWORD dwYCountChars; DWORD dwFillAttribute; DWORD dwFlags; WORD wShowWindow; WORD cbReserved2; BYTE *lpReserved2; HANDLE hStdInput; HANDLE hStdOutput; HANDLE hStdError; } STARTUPINFOA, *LPSTARTUPINFOA; typedef struct _STARTUPINFOW{ DWORD cb; LPWSTR lpReserved; LPWSTR lpDesktop; LPWSTR lpTitle; DWORD dwX; DWORD dwY; DWORD dwXSize; DWORD dwYSize; DWORD dwXCountChars; DWORD dwYCountChars; DWORD dwFillAttribute; DWORD dwFlags; WORD wShowWindow; WORD cbReserved2; BYTE *lpReserved2; HANDLE hStdInput; HANDLE hStdOutput; HANDLE hStdError; } STARTUPINFOW, *LPSTARTUPINFOW; typedef struct _PROCESS_INFORMATION{ HANDLE hProcess; HANDLE hThread; DWORD dwProcessId; DWORD dwThreadId; } PROCESS_INFORMATION, *PPROCESS_INFORMATION, *LPPROCESS_INFORMATION; typedef struct _TIME_DYNAMIC_ZONE_INFORMATION { LONG Bias; WCHAR StandardName[32]; SYSTEMTIME StandardDate; LONG StandardBias; WCHAR DaylightName[32]; SYSTEMTIME DaylightDate; LONG DaylightBias; WCHAR TimeZoneKeyName[128]; BOOLEAN DynamicDaylightTimeDisabled; } DYNAMIC_TIME_ZONE_INFORMATION, *PDYNAMIC_TIME_ZONE_INFORMATION; typedef struct _TIME_ZONE_INFORMATION{ LONG Bias; WCHAR StandardName[32]; SYSTEMTIME StandardDate; LONG StandardBias; WCHAR DaylightName[32]; SYSTEMTIME DaylightDate; LONG DaylightBias; } TIME_ZONE_INFORMATION, *PTIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION; # 722 "../../include/winbase.h" typedef struct _BY_HANDLE_FILE_INFORMATION { DWORD dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; DWORD dwVolumeSerialNumber; DWORD nFileSizeHigh; DWORD nFileSizeLow; DWORD nNumberOfLinks; DWORD nFileIndexHigh; DWORD nFileIndexLow; } BY_HANDLE_FILE_INFORMATION, *PBY_HANDLE_FILE_INFORMATION, *LPBY_HANDLE_FILE_INFORMATION ; # 768 "../../include/winbase.h" typedef struct _SYSTEM_POWER_STATUS { BYTE ACLineStatus; BYTE BatteryFlag; BYTE BatteryLifePercent; BYTE Reserved1; DWORD BatteryLifeTime; DWORD BatteryFullLifeTime; } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS; typedef struct _SYSTEM_INFO { union { DWORD dwOemId; struct { WORD wProcessorArchitecture; WORD wReserved; } ; } ; DWORD dwPageSize; LPVOID lpMinimumApplicationAddress; LPVOID lpMaximumApplicationAddress; DWORD_PTR dwActiveProcessorMask; DWORD dwNumberOfProcessors; DWORD dwProcessorType; DWORD dwAllocationGranularity; WORD wProcessorLevel; WORD wProcessorRevision; } SYSTEM_INFO, *LPSYSTEM_INFO; typedef BOOL (__attribute__((ms_abi)) *ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG_PTR); typedef BOOL (__attribute__((ms_abi)) *ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG_PTR); typedef BOOL (__attribute__((ms_abi)) *ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG_PTR); typedef BOOL (__attribute__((ms_abi)) *ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG_PTR); typedef BOOL (__attribute__((ms_abi)) *ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG_PTR); typedef BOOL (__attribute__((ms_abi)) *ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG_PTR); # 823 "../../include/winbase.h" typedef PLDT_ENTRY LPLDT_ENTRY; typedef enum _GET_FILEEX_INFO_LEVELS { GetFileExInfoStandard } GET_FILEEX_INFO_LEVELS; typedef struct _WIN32_FILE_ATTRIBUTES_DATA { DWORD dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; DWORD nFileSizeHigh; DWORD nFileSizeLow; } WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA; typedef DWORD (__attribute__((ms_abi)) *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER, DWORD, DWORD, HANDLE, HANDLE, LPVOID); typedef DWORD (__attribute__((ms_abi)) *APPLICATION_RECOVERY_CALLBACK)(PVOID); # 959 "../../include/winbase.h" typedef struct tagACTCTXA { ULONG cbSize; DWORD dwFlags; LPCSTR lpSource; USHORT wProcessorArchitecture; LANGID wLangId; LPCSTR lpAssemblyDirectory; LPCSTR lpResourceName; LPCSTR lpApplicationName; HMODULE hModule; } ACTCTXA, *PACTCTXA; typedef struct tagACTCTXW { ULONG cbSize; DWORD dwFlags; LPCWSTR lpSource; USHORT wProcessorArchitecture; LANGID wLangId; LPCWSTR lpAssemblyDirectory; LPCWSTR lpResourceName; LPCWSTR lpApplicationName; HMODULE hModule; } ACTCTXW, *PACTCTXW; typedef const ACTCTXA *PCACTCTXA; typedef const ACTCTXW *PCACTCTXW; typedef struct tagACTCTX_SECTION_KEYED_DATA_2600 { ULONG cbSize; ULONG ulDataFormatVersion; PVOID lpData; ULONG ulLength; PVOID lpSectionGlobalData; ULONG ulSectionGlobalDataLength; PVOID lpSectionBase; ULONG ulSectionTotalLength; HANDLE hActCtx; ULONG ulAssemblyRosterIndex; } ACTCTX_SECTION_KEYED_DATA_2600, *PACTCTX_SECTION_KEYED_DATA_2600; typedef const ACTCTX_SECTION_KEYED_DATA_2600 *PCACTCTX_SECTION_KEYED_DATA_2600; typedef struct tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA { PVOID lpInformation; PVOID lpSectionBase; ULONG ulSectionLength; PVOID lpSectionGlobalDataBase; ULONG ulSectionGlobalDataLength; } ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, *PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; typedef const ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA *PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; typedef struct tagACTCTX_SECTION_KEYED_DATA { ULONG cbSize; ULONG ulDataFormatVersion; PVOID lpData; ULONG ulLength; PVOID lpSectionGlobalData; ULONG ulSectionGlobalDataLength; PVOID lpSectionBase; ULONG ulSectionTotalLength; HANDLE hActCtx; ULONG ulAssemblyRosterIndex; ULONG ulFlags; ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA AssemblyMetadata; } ACTCTX_SECTION_KEYED_DATA, *PACTCTX_SECTION_KEYED_DATA; typedef const ACTCTX_SECTION_KEYED_DATA *PCACTCTX_SECTION_KEYED_DATA; typedef struct _ACTIVATION_CONTEXT_BASIC_INFORMATION { HANDLE hActCtx; DWORD dwFlags; } ACTIVATION_CONTEXT_BASIC_INFORMATION, *PACTIVATION_CONTEXT_BASIC_INFORMATION; typedef BOOL (__attribute__((ms_abi)) *PQUERYACTCTXW_FUNC)(DWORD,HANDLE,PVOID,ULONG,PVOID,SIZE_T,SIZE_T *); typedef struct tagCOMSTAT { DWORD fCtsHold : 1; DWORD fDsrHold : 1; DWORD fRlsdHold : 1; DWORD fXoffHold : 1; DWORD fXoffSent : 1; DWORD fEof : 1; DWORD fTxim : 1; DWORD fReserved : 25; DWORD cbInQue; DWORD cbOutQue; } COMSTAT, *LPCOMSTAT; typedef struct tagDCB { DWORD DCBlength; DWORD BaudRate; unsigned fBinary :1; unsigned fParity :1; unsigned fOutxCtsFlow :1; unsigned fOutxDsrFlow :1; unsigned fDtrControl :2; unsigned fDsrSensitivity :1; unsigned fTXContinueOnXoff :1; unsigned fOutX :1; unsigned fInX :1; unsigned fErrorChar :1; unsigned fNull :1; unsigned fRtsControl :2; unsigned fAbortOnError :1; unsigned fDummy2 :17; WORD wReserved; WORD XonLim; WORD XoffLim; BYTE ByteSize; BYTE Parity; BYTE StopBits; char XonChar; char XoffChar; char ErrorChar; char EofChar; char EvtChar; WORD wReserved1; } DCB, *LPDCB; typedef struct tagCOMMCONFIG { DWORD dwSize; WORD wVersion; WORD wReserved; DCB dcb; DWORD dwProviderSubType; DWORD dwProviderOffset; DWORD dwProviderSize; DWORD wcProviderData[1]; } COMMCONFIG, *LPCOMMCONFIG; typedef struct tagCOMMPROP { WORD wPacketLength; WORD wPacketVersion; DWORD dwServiceMask; DWORD dwReserved1; DWORD dwMaxTxQueue; DWORD dwMaxRxQueue; DWORD dwMaxBaud; DWORD dwProvSubType; DWORD dwProvCapabilities; DWORD dwSettableParams; DWORD dwSettableBaud; WORD wSettableData; WORD wSettableStopParity; DWORD dwCurrentTxQueue; DWORD dwCurrentRxQueue; DWORD dwProvSpec1; DWORD dwProvSpec2; WCHAR wcProvChar[1]; } COMMPROP, *LPCOMMPROP; # 1189 "../../include/winbase.h" typedef struct tagCOMMTIMEOUTS { DWORD ReadIntervalTimeout; DWORD ReadTotalTimeoutMultiplier; DWORD ReadTotalTimeoutConstant; DWORD WriteTotalTimeoutMultiplier; DWORD WriteTotalTimeoutConstant; } COMMTIMEOUTS,*LPCOMMTIMEOUTS; # 1204 "../../include/winbase.h" typedef void (__attribute__((ms_abi)) *PAPCFUNC)(ULONG_PTR); typedef void (__attribute__((ms_abi)) *PTIMERAPCROUTINE)(LPVOID,DWORD,DWORD); typedef enum _COMPUTER_NAME_FORMAT { ComputerNameNetBIOS, ComputerNameDnsHostname, ComputerNameDnsDomain, ComputerNameDnsFullyQualified, ComputerNamePhysicalNetBIOS, ComputerNamePhysicalDnsHostname, ComputerNamePhysicalDnsDomain, ComputerNamePhysicalDnsFullyQualified, ComputerNameMax } COMPUTER_NAME_FORMAT; # 1229 "../../include/winbase.h" typedef struct tagHW_PROFILE_INFOA { DWORD dwDockInfo; CHAR szHwProfileGuid[39]; CHAR szHwProfileName[80]; } HW_PROFILE_INFOA, *LPHW_PROFILE_INFOA; typedef struct tagHW_PROFILE_INFOW { DWORD dwDockInfo; WCHAR szHwProfileGuid[39]; WCHAR szHwProfileName[80]; } HW_PROFILE_INFOW, *LPHW_PROFILE_INFOW; typedef enum _DEP_SYSTEM_POLICY_TYPE { AlwaysOff = 0, AlwaysOn = 1, OptIn = 2, OptOut = 3 } DEP_SYSTEM_POLICY_TYPE; typedef struct _EVENTLOG_FULL_INFORMATION { DWORD dwFull; } EVENTLOG_FULL_INFORMATION, *LPEVENTLOG_FULL_INFORMATION; # 1280 "../../include/winbase.h" # 1 "../../include/pshpack8.h" 1 # 105 "../../include/pshpack8.h" #pragma pack(8) # 1281 "../../include/winbase.h" 2 typedef struct _WIN32_STREAM_ID { DWORD dwStreamId; DWORD dwStreamAttributes; LARGE_INTEGER __attribute__((aligned(8))) Size; DWORD dwStreamNameSize; WCHAR cStreamName[1]; } WIN32_STREAM_ID, *LPWIN32_STREAM_ID; # 1 "../../include/poppack.h" 1 # 253 "../../include/poppack.h" #pragma pack() # 1289 "../../include/winbase.h" 2 # 1313 "../../include/winbase.h" __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ActivateActCtx(HANDLE,ULONG_PTR *); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AddAccessAllowedAce(PACL,DWORD,DWORD,PSID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AddAccessAllowedAceEx(PACL,DWORD,DWORD,DWORD,PSID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AddAccessDeniedAce(PACL,DWORD,DWORD,PSID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AddAccessDeniedAceEx(PACL,DWORD,DWORD,DWORD,PSID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AddAce(PACL,DWORD,DWORD,LPVOID,DWORD); __attribute__((visibility ("hidden"))) ATOM __attribute__((ms_abi)) AddAtomA(LPCSTR); __attribute__((visibility ("hidden"))) ATOM __attribute__((ms_abi)) AddAtomW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AddAuditAccessAce(PACL,DWORD,DWORD,PSID,BOOL,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AddAuditAccessAceEx(PACL,DWORD,DWORD,DWORD,PSID,BOOL,BOOL); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) AddRefActCtx(HANDLE); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) AddVectoredExceptionHandler(ULONG,PVECTORED_EXCEPTION_HANDLER); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AdjustTokenGroups(HANDLE,BOOL,PTOKEN_GROUPS,DWORD,PTOKEN_GROUPS,PDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AccessCheckAndAuditAlarmA(LPCSTR,LPVOID,LPSTR,LPSTR,PSECURITY_DESCRIPTOR,DWORD,PGENERIC_MAPPING,BOOL,LPDWORD,LPBOOL,LPBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AccessCheckAndAuditAlarmW(LPCWSTR,LPVOID,LPWSTR,LPWSTR,PSECURITY_DESCRIPTOR,DWORD,PGENERIC_MAPPING,BOOL,LPDWORD,LPBOOL,LPBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AccessCheckByType(PSECURITY_DESCRIPTOR,PSID,HANDLE,DWORD,POBJECT_TYPE_LIST,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) AcquireSRWLockExclusive(PSRWLOCK); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) AcquireSRWLockShared(PSRWLOCK); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AdjustTokenPrivileges(HANDLE,BOOL,PTOKEN_PRIVILEGES,DWORD,PTOKEN_PRIVILEGES,PDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AllocateLocallyUniqueId(PLUID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AreAllAccessesGranted(DWORD,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AreAnyAccessesGranted(DWORD,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AreFileApisANSI(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) AssignProcessToJobObject(HANDLE,HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) BackupEventLogA(HANDLE,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) BackupEventLogW(HANDLE,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) BackupRead(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) BackupSeek(HANDLE,DWORD,DWORD,LPDWORD,LPDWORD,LPVOID*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) BackupWrite(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) Beep(DWORD,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) BeginUpdateResourceA(LPCSTR,BOOL); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) BeginUpdateResourceW(LPCWSTR,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) BindIoCompletionCallback(HANDLE,LPOVERLAPPED_COMPLETION_ROUTINE,ULONG); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) BuildCommDCBA(LPCSTR,LPDCB); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) BuildCommDCBW(LPCWSTR,LPDCB); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CallNamedPipeA(LPCSTR,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CallNamedPipeW(LPCWSTR,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CancelIo(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CancelIoEx(HANDLE,LPOVERLAPPED); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CancelWaitableTimer(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ChangeTimerQueueTimer(HANDLE,HANDLE,ULONG,ULONG); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CheckTokenMembership(HANDLE,PSID,PBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ClearCommBreak(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ClearCommError(HANDLE,LPDWORD,LPCOMSTAT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ClearEventLogA(HANDLE,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ClearEventLogW(HANDLE,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CloseEventLog(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CloseHandle(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CommConfigDialogA(LPCSTR,HWND,LPCOMMCONFIG); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CommConfigDialogW(LPCWSTR,HWND,LPCOMMCONFIG); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ConnectNamedPipe(HANDLE,LPOVERLAPPED); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ContinueDebugEvent(DWORD,DWORD,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) ConvertToGlobalHandle(HANDLE hSrc); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CopyFileA(LPCSTR,LPCSTR,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CopyFileW(LPCWSTR,LPCWSTR,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CopySid(DWORD,PSID,PSID); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) CompareFileTime(const FILETIME*,const FILETIME*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ConvertFiberToThread(void); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) ConvertThreadToFiber(LPVOID); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) ConvertThreadToFiberEx(LPVOID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ConvertToAutoInheritPrivateObjectSecurity(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR*,GUID*,BOOL,PGENERIC_MAPPING); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateActCtxA(PCACTCTXA); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateActCtxW(PCACTCTXW); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateEventExA(SECURITY_ATTRIBUTES*,LPCSTR,DWORD,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateEventExW(SECURITY_ATTRIBUTES*,LPCWSTR,DWORD,DWORD); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) CreateFiber(SIZE_T,LPFIBER_START_ROUTINE,LPVOID); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) CreateFiberEx(SIZE_T,SIZE_T,DWORD,LPFIBER_START_ROUTINE,LPVOID); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCWSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateIoCompletionPort(HANDLE,HANDLE,ULONG_PTR,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateJobObjectA(LPSECURITY_ATTRIBUTES,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateJobObjectW(LPSECURITY_ATTRIBUTES,LPCWSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateMailslotA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateMailslotW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateMemoryResourceNotification(MEMORY_RESOURCE_NOTIFICATION_TYPE); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateMutexExA(SECURITY_ATTRIBUTES*,LPCSTR,DWORD,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateMutexExW(SECURITY_ATTRIBUTES*,LPCWSTR,DWORD,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateNamedPipeA(LPCSTR,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateNamedPipeW(LPCWSTR,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreatePrivateObjectSecurity(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR*,BOOL,HANDLE,PGENERIC_MAPPING); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,LPSTARTUPINFOA,LPPROCESS_INFORMATION); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,LPSTARTUPINFOW,LPPROCESS_INFORMATION); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreateProcessAsUserA(HANDLE,LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,LPSTARTUPINFOA,LPPROCESS_INFORMATION); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreateProcessAsUserW(HANDLE,LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,LPSTARTUPINFOW,LPPROCESS_INFORMATION); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreateProcessWithLogonW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPCWSTR,LPWSTR,DWORD,LPVOID,LPCWSTR,LPSTARTUPINFOW,LPPROCESS_INFORMATION); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateRemoteThread(HANDLE,LPSECURITY_ATTRIBUTES,SIZE_T,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreateRestrictedToken(HANDLE,DWORD,DWORD,PSID_AND_ATTRIBUTES,DWORD,PLUID_AND_ATTRIBUTES,DWORD,PSID_AND_ATTRIBUTES,PHANDLE); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateSemaphoreExA(SECURITY_ATTRIBUTES*,LONG,LONG,LPCSTR,DWORD,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateSemaphoreExW(SECURITY_ATTRIBUTES*,LONG,LONG,LPCWSTR,DWORD,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) CreateTapePartition(HANDLE,DWORD,DWORD,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateThread(LPSECURITY_ATTRIBUTES,SIZE_T,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateTimerQueue(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreateTimerQueueTimer(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,DWORD,DWORD,ULONG); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateWaitableTimerExA(SECURITY_ATTRIBUTES*,LPCSTR,DWORD,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) CreateWaitableTimerExW(SECURITY_ATTRIBUTES*,LPCWSTR,DWORD,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) CreateWellKnownSid(WELL_KNOWN_SID_TYPE,PSID,PSID,DWORD*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DeactivateActCtx(DWORD,ULONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DebugActiveProcess(DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DebugActiveProcessStop(DWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) DebugBreak(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DebugBreakProcess(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DebugSetProcessKillOnExit(BOOL); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) DecodePointer(PVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DecryptFileA(LPCSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DecryptFileW(LPCWSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DefineDosDeviceA(DWORD,LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DefineDosDeviceW(DWORD,LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DeleteAce(PACL,DWORD); __attribute__((visibility ("hidden"))) ATOM __attribute__((ms_abi)) DeleteAtom(ATOM); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) DeleteCriticalSection(CRITICAL_SECTION *lpCrit); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) DeleteFiber(LPVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DeleteFileA(LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DeleteFileW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DeleteTimerQueueEx(HANDLE,HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DeleteTimerQueueTimer(HANDLE,HANDLE,HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DeleteVolumeMountPointA(LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DeleteVolumeMountPointW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DeregisterEventSource(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DestroyPrivateObjectSecurity(PSECURITY_DESCRIPTOR*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DeviceIoControl(HANDLE,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPOVERLAPPED); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DisableThreadLibraryCalls(HMODULE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DisconnectNamedPipe(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DnsHostnameToComputerNameA(LPCSTR,LPSTR,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DnsHostnameToComputerNameW(LPCWSTR,LPWSTR,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DosDateTimeToFileTime(WORD,WORD,LPFILETIME); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DuplicateToken(HANDLE,SECURITY_IMPERSONATION_LEVEL,PHANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) DuplicateTokenEx(HANDLE,DWORD,LPSECURITY_ATTRIBUTES,SECURITY_IMPERSONATION_LEVEL,TOKEN_TYPE,PHANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EscapeCommFunction(HANDLE,UINT); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) EncodePointer(PVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EncryptFileA(LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EncryptFileW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EndUpdateResourceA(HANDLE,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EndUpdateResourceW(HANDLE,BOOL); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) EnterCriticalSection(CRITICAL_SECTION *lpCrit); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,ENUMRESLANGPROCA,LONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,ENUMRESLANGPROCW,LONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,LONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,LONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EqualSid(PSID, PSID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EqualPrefixSid(PSID,PSID); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) EraseTape(HANDLE,DWORD,BOOL); __attribute__((visibility ("hidden"))) void __attribute__((noreturn)) __attribute__((ms_abi)) ExitProcess(DWORD); __attribute__((visibility ("hidden"))) void __attribute__((noreturn)) __attribute__((ms_abi)) ExitThread(DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) FatalAppExitA(UINT,LPCSTR); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) FatalAppExitW(UINT,LPCWSTR); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) FatalExit(int); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FileEncryptionStatusA(LPCSTR,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FileEncryptionStatusW(LPCWSTR,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FileTimeToLocalFileTime(const FILETIME*,LPFILETIME); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindActCtxSectionStringA(DWORD,const GUID *,ULONG,LPCSTR,PACTCTX_SECTION_KEYED_DATA); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindActCtxSectionStringW(DWORD,const GUID *,ULONG,LPCWSTR,PACTCTX_SECTION_KEYED_DATA); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindActCtxSectionGuid(DWORD,const GUID *,ULONG,const GUID *,PACTCTX_SECTION_KEYED_DATA); __attribute__((visibility ("hidden"))) ATOM __attribute__((ms_abi)) FindAtomA(LPCSTR); __attribute__((visibility ("hidden"))) ATOM __attribute__((ms_abi)) FindAtomW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindClose(HANDLE); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) FindFirstFileExA(LPCSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) FindFirstFileExW(LPCWSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindFirstFreeAce(PACL,LPVOID*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindNextChangeNotification(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindNextFileA(HANDLE,LPWIN32_FIND_DATAA); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindNextFileW(HANDLE,LPWIN32_FIND_DATAW); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindCloseChangeNotification(HANDLE); __attribute__((visibility ("hidden"))) HRSRC __attribute__((ms_abi)) FindResourceA(HMODULE,LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) HRSRC __attribute__((ms_abi)) FindResourceW(HMODULE,LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) HRSRC __attribute__((ms_abi)) FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD); __attribute__((visibility ("hidden"))) HRSRC __attribute__((ms_abi)) FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) FindFirstVolumeA(LPSTR,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) FindFirstVolumeW(LPWSTR,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) FindFirstVolumeMountPointA(LPCSTR,LPSTR,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) FindFirstVolumeMountPointW(LPCWSTR,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindNextVolumeA(HANDLE,LPSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindNextVolumeW(HANDLE,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindNextVolumeMountPointA(HANDLE,LPSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindNextVolumeMountPointW(HANDLE,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindVolumeClose(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FindVolumeMountPointClose(HANDLE); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) FlsAlloc(PFLS_CALLBACK_FUNCTION); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FlsFree(DWORD); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) FlsGetValue(DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FlsSetValue(DWORD,PVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FlushFileBuffers(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FlushInstructionCache(HANDLE,LPCVOID,SIZE_T); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FlushViewOfFile(LPCVOID,SIZE_T); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,DWORD,__builtin_ms_va_list*); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,DWORD,__builtin_ms_va_list*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FreeEnvironmentStringsA(LPSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FreeEnvironmentStringsW(LPWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FreeLibrary(HMODULE); __attribute__((visibility ("hidden"))) void __attribute__((noreturn)) __attribute__((ms_abi)) FreeLibraryAndExitThread(HINSTANCE,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) FreeResource(HGLOBAL); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) FreeSid(PSID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetAce(PACL,DWORD,LPVOID*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetAclInformation(PACL,LPVOID,DWORD,ACL_INFORMATION_CLASS); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetAtomNameA(ATOM,LPSTR,INT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetAtomNameW(ATOM,LPWSTR,INT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType ); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType ); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetCurrentActCtx(HANDLE *); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetCommConfig(HANDLE,LPCOMMCONFIG,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetCommMask(HANDLE,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetCommModemStatus(HANDLE,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetCommProperties(HANDLE,LPCOMMPROP); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetCommState(HANDLE,LPDCB); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS); __attribute__((visibility ("hidden"))) LPSTR __attribute__((ms_abi)) GetCommandLineA(void); __attribute__((visibility ("hidden"))) LPWSTR __attribute__((ms_abi)) GetCommandLineW(void); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetCompressedFileSizeA(LPCSTR,LPDWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetCompressedFileSizeW(LPCWSTR,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetComputerNameA(LPSTR,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetComputerNameW(LPWSTR,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetComputerNameExA(COMPUTER_NAME_FORMAT,LPSTR,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetComputerNameExW(COMPUTER_NAME_FORMAT,LPWSTR,LPDWORD); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetCurrentDirectoryA(UINT,LPSTR); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetCurrentDirectoryW(UINT,LPWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetCurrentHwProfileA(LPHW_PROFILE_INFOA); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetCurrentHwProfileW(LPHW_PROFILE_INFOW); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) GetCurrentProcess(void); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) GetCurrentThread(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetDevicePowerState(HANDLE,BOOL*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetDllDirectoryA(DWORD,LPSTR); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetDllDirectoryW(DWORD,LPWSTR); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetDriveTypeA(LPCSTR); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetDriveTypeW(LPCWSTR); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetDynamicTimeZoneInformation(PDYNAMIC_TIME_ZONE_INFORMATION); __attribute__((visibility ("hidden"))) LPSTR __attribute__((ms_abi)) GetEnvironmentStringsA(void); __attribute__((visibility ("hidden"))) LPWSTR __attribute__((ms_abi)) GetEnvironmentStringsW(void); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetErrorMode(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetEventLogInformation(HANDLE,DWORD,LPVOID,DWORD,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetExitCodeProcess(HANDLE,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetExitCodeThread(HANDLE,LPDWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetFileAttributesA(LPCSTR); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetFileAttributesW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetFileInformationByHandle(HANDLE,BY_HANDLE_FILE_INFORMATION*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetFileSize(HANDLE,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetFileSizeEx(HANDLE,PLARGE_INTEGER); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetFileTime(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetFileType(HANDLE); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetHandleInformation(HANDLE,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetKernelObjectSecurity(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetLengthSid(PSID); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) GetLocalTime(LPSYSTEMTIME); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetLogicalDrives(void); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetLogicalDriveStringsA(UINT,LPSTR); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetLogicalDriveStringsW(UINT,LPWSTR); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetLongPathNameA(LPCSTR,LPSTR,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetLongPathNameW(LPCWSTR,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetMailslotInfo(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetModuleFileNameA(HMODULE,LPSTR,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetModuleFileNameW(HMODULE,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) HMODULE __attribute__((ms_abi)) GetModuleHandleA(LPCSTR); __attribute__((visibility ("hidden"))) HMODULE __attribute__((ms_abi)) GetModuleHandleW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetModuleHandleExA(DWORD,LPCSTR,HMODULE*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetModuleHandleExW(DWORD,LPCWSTR,HMODULE*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetNamedPipeHandleStateA(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetNamedPipeHandleStateW(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetNamedPipeInfo(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) GetNativeSystemInfo(LPSYSTEM_INFO); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetNumberOfEventLogRecords(HANDLE,PDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetOldestEventLogRecord(HANDLE,PDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,BOOL); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetPriorityClass(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetPrivateObjectSecurity(PSECURITY_DESCRIPTOR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,PDWORD); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR); __attribute__((visibility ("hidden"))) FARPROC __attribute__((ms_abi)) GetProcAddress(HMODULE,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetProcessAffinityMask(HANDLE,PDWORD_PTR,PDWORD_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetLogicalProcessorInformation(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION,PDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetLogicalProcessorInformationEx(LOGICAL_PROCESSOR_RELATIONSHIP,PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX,PDWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetProcessHeaps(DWORD,PHANDLE); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetProcessId(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetProcessIoCounters(HANDLE,PIO_COUNTERS); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetProcessPriorityBoost(HANDLE,PBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetProcessShutdownParameters(LPDWORD,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetProcessTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetProcessVersion(DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetProcessWorkingSetSize(HANDLE,PSIZE_T,PSIZE_T); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetProductInfo(DWORD,DWORD,DWORD,DWORD,PDWORD); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetProfileIntA(LPCSTR,LPCSTR,INT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetProfileIntW(LPCWSTR,LPCWSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetProfileSectionA(LPCSTR,LPSTR,DWORD); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetProfileSectionW(LPCWSTR,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetQueuedCompletionStatus(HANDLE,LPDWORD,PULONG_PTR,LPOVERLAPPED*,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPBOOL); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL); __attribute__((visibility ("hidden"))) PSID_IDENTIFIER_AUTHORITY __attribute__((ms_abi)) GetSidIdentifierAuthority(PSID); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetSidLengthRequired(BYTE); __attribute__((visibility ("hidden"))) PDWORD __attribute__((ms_abi)) GetSidSubAuthority(PSID,DWORD); __attribute__((visibility ("hidden"))) PUCHAR __attribute__((ms_abi)) GetSidSubAuthorityCount(PSID); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetShortPathNameA(LPCSTR,LPSTR,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetShortPathNameW(LPCWSTR,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) GetStartupInfoA(LPSTARTUPINFOA); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) GetStartupInfoW(LPSTARTUPINFOW); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) GetStdHandle(DWORD); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetSystemDirectoryA(LPSTR,UINT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetSystemDirectoryW(LPWSTR,UINT); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) GetSystemInfo(LPSYSTEM_INFO); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetSystemPowerStatus(LPSYSTEM_POWER_STATUS); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetSystemRegistryQuota(PDWORD,PDWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) GetSystemTime(LPSYSTEMTIME); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetSystemTimeAdjustment(PDWORD,PDWORD,PBOOL); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) GetSystemTimeAsFileTime(LPFILETIME); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetSystemWindowsDirectoryA(LPSTR,UINT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetSystemWindowsDirectoryW(LPWSTR,UINT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetSystemWow64DirectoryA(LPSTR,UINT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetSystemWow64DirectoryW(LPWSTR,UINT); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetTapeParameters(HANDLE,DWORD,LPDWORD,LPVOID); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetTapePosition(HANDLE,DWORD,LPDWORD,LPDWORD,LPDWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetTapeStatus(HANDLE); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetTempPathA(DWORD,LPSTR); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetTempPathW(DWORD,LPWSTR); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetThreadId(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetThreadIOPendingFlag(HANDLE,PBOOL); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetTickCount(void); __attribute__((visibility ("hidden"))) ULONGLONG __attribute__((ms_abi)) GetTickCount64(void); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetTimeZoneInformation(LPTIME_ZONE_INFORMATION); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetThreadContext(HANDLE,CONTEXT *); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetThreadErrorMode(void); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetThreadPriority(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetThreadPriorityBoost(HANDLE,PBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetUserNameA(LPSTR,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetUserNameW(LPWSTR,LPDWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) GetVersion(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetVersionExA(OSVERSIONINFOA*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetVersionExW(OSVERSIONINFOW*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetVolumeNameForVolumeMountPointA(LPCSTR,LPSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetVolumeNameForVolumeMountPointW(LPCWSTR,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetVolumePathNameA(LPCSTR,LPSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetVolumePathNameW(LPCWSTR,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetVolumePathNamesForVolumeNameA(LPCSTR,LPSTR,DWORD,PDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetVolumePathNamesForVolumeNameW(LPCWSTR,LPWSTR,DWORD,PDWORD); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetWindowsDirectoryA(LPSTR,UINT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetWindowsDirectoryW(LPWSTR,UINT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetWriteWatch(DWORD,LPVOID,SIZE_T,LPVOID*,ULONG_PTR*,ULONG*); __attribute__((visibility ("hidden"))) ATOM __attribute__((ms_abi)) GlobalAddAtomA(LPCSTR); __attribute__((visibility ("hidden"))) ATOM __attribute__((ms_abi)) GlobalAddAtomW(LPCWSTR); __attribute__((visibility ("hidden"))) HGLOBAL __attribute__((ms_abi)) GlobalAlloc(UINT,SIZE_T) __attribute__((__alloc_size__(2))); __attribute__((visibility ("hidden"))) SIZE_T __attribute__((ms_abi)) GlobalCompact(DWORD); __attribute__((visibility ("hidden"))) ATOM __attribute__((ms_abi)) GlobalDeleteAtom(ATOM); __attribute__((visibility ("hidden"))) ATOM __attribute__((ms_abi)) GlobalFindAtomA(LPCSTR); __attribute__((visibility ("hidden"))) ATOM __attribute__((ms_abi)) GlobalFindAtomW(LPCWSTR); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) GlobalFix(HGLOBAL); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GlobalFlags(HGLOBAL); __attribute__((visibility ("hidden"))) HGLOBAL __attribute__((ms_abi)) GlobalFree(HGLOBAL); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GlobalGetAtomNameA(ATOM,LPSTR,INT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GlobalGetAtomNameW(ATOM,LPWSTR,INT); __attribute__((visibility ("hidden"))) HGLOBAL __attribute__((ms_abi)) GlobalHandle(LPCVOID); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) GlobalLock(HGLOBAL); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) GlobalMemoryStatus(LPMEMORYSTATUS); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GlobalMemoryStatusEx(LPMEMORYSTATUSEX); __attribute__((visibility ("hidden"))) HGLOBAL __attribute__((ms_abi)) GlobalReAlloc(HGLOBAL,SIZE_T,UINT) __attribute__((__alloc_size__(3))); __attribute__((visibility ("hidden"))) SIZE_T __attribute__((ms_abi)) GlobalSize(HGLOBAL); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) GlobalUnfix(HGLOBAL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GlobalUnlock(HGLOBAL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GlobalUnWire(HGLOBAL); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) GlobalWire(HGLOBAL); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) HeapAlloc(HANDLE,DWORD,SIZE_T) __attribute__((__alloc_size__(3))); __attribute__((visibility ("hidden"))) SIZE_T __attribute__((ms_abi)) HeapCompact(HANDLE,DWORD); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) HeapCreate(DWORD,SIZE_T,SIZE_T); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) HeapDestroy(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) HeapFree(HANDLE,DWORD,LPVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) HeapLock(HANDLE); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) HeapReAlloc(HANDLE,DWORD,LPVOID,SIZE_T) __attribute__((__alloc_size__(4))); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) HeapQueryInformation(HANDLE,HEAP_INFORMATION_CLASS,PVOID,SIZE_T,PSIZE_T); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) HeapSetInformation(HANDLE,HEAP_INFORMATION_CLASS,PVOID,SIZE_T); __attribute__((visibility ("hidden"))) SIZE_T __attribute__((ms_abi)) HeapSize(HANDLE,DWORD,LPCVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) HeapUnlock(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) HeapValidate(HANDLE,DWORD,LPCVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) HeapWalk(HANDLE,LPPROCESS_HEAP_ENTRY); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) InitAtomTable(DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) InitializeAcl(PACL,DWORD,DWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) InitializeCriticalSection(CRITICAL_SECTION *lpCrit); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) InitializeCriticalSectionAndSpinCount(CRITICAL_SECTION *,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) InitializeCriticalSectionEx(CRITICAL_SECTION *,DWORD,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) InitializeSListHead(PSLIST_HEADER); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) InitializeSRWLock(PSRWLOCK); __attribute__((visibility ("hidden"))) PSLIST_ENTRY __attribute__((ms_abi)) InterlockedFlushSList(PSLIST_HEADER); __attribute__((visibility ("hidden"))) PSLIST_ENTRY __attribute__((ms_abi)) InterlockedPopEntrySList(PSLIST_HEADER); __attribute__((visibility ("hidden"))) PSLIST_ENTRY __attribute__((ms_abi)) InterlockedPushEntrySList(PSLIST_HEADER, PSLIST_ENTRY); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsBadCodePtr(FARPROC); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsBadHugeReadPtr(LPCVOID,UINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsBadHugeWritePtr(LPVOID,UINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsBadReadPtr(LPCVOID,UINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsBadStringPtrA(LPCSTR,UINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsBadStringPtrW(LPCWSTR,UINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsBadWritePtr(LPVOID,UINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsDebuggerPresent(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsSystemResumeAutomatic(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsTextUnicode(LPCVOID,INT,LPINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsTokenRestricted(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsValidAcl(PACL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsValidSid(PSID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsWellKnownSid(PSID,WELL_KNOWN_SID_TYPE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsWow64Process(HANDLE,PBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ImpersonateLoggedOnUser(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ImpersonateNamedPipeClient(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsProcessInJob(HANDLE,HANDLE,PBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsProcessorFeaturePresent(DWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) LeaveCriticalSection(CRITICAL_SECTION *lpCrit); __attribute__((visibility ("hidden"))) HMODULE __attribute__((ms_abi)) LoadLibraryA(LPCSTR); __attribute__((visibility ("hidden"))) HMODULE __attribute__((ms_abi)) LoadLibraryW(LPCWSTR); __attribute__((visibility ("hidden"))) HMODULE __attribute__((ms_abi)) LoadLibraryExA(LPCSTR,HANDLE,DWORD); __attribute__((visibility ("hidden"))) HMODULE __attribute__((ms_abi)) LoadLibraryExW(LPCWSTR,HANDLE,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) LoadModule(LPCSTR,LPVOID); __attribute__((visibility ("hidden"))) HGLOBAL __attribute__((ms_abi)) LoadResource(HMODULE,HRSRC); __attribute__((visibility ("hidden"))) HLOCAL __attribute__((ms_abi)) LocalAlloc(UINT,SIZE_T) __attribute__((__alloc_size__(2))); __attribute__((visibility ("hidden"))) SIZE_T __attribute__((ms_abi)) LocalCompact(UINT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) LocalFlags(HLOCAL); __attribute__((visibility ("hidden"))) HLOCAL __attribute__((ms_abi)) LocalFree(HLOCAL); __attribute__((visibility ("hidden"))) HLOCAL __attribute__((ms_abi)) LocalHandle(LPCVOID); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) LocalLock(HLOCAL); __attribute__((visibility ("hidden"))) HLOCAL __attribute__((ms_abi)) LocalReAlloc(HLOCAL,SIZE_T,UINT) __attribute__((__alloc_size__(3))); __attribute__((visibility ("hidden"))) SIZE_T __attribute__((ms_abi)) LocalShrink(HGLOBAL,UINT); __attribute__((visibility ("hidden"))) SIZE_T __attribute__((ms_abi)) LocalSize(HLOCAL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LocalUnlock(HLOCAL); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) LockResource(HGLOBAL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LookupAccountNameA(LPCSTR,LPCSTR,PSID,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LookupAccountNameW(LPCWSTR,LPCWSTR,PSID,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LookupAccountSidA(LPCSTR,PSID,LPSTR,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LookupAccountSidW(LPCWSTR,PSID,LPWSTR,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LocalFileTimeToFileTime(const FILETIME*,LPFILETIME); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LockFile(HANDLE,DWORD,DWORD,DWORD,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LogonUserA(LPCSTR,LPCSTR,LPCSTR,DWORD,DWORD,PHANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LogonUserW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,DWORD,PHANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LookupPrivilegeDisplayNameA(LPCSTR,LPCSTR,LPSTR,LPDWORD,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LookupPrivilegeDisplayNameW(LPCWSTR,LPCWSTR,LPWSTR,LPDWORD,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LookupPrivilegeNameA(LPCSTR,PLUID,LPSTR,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LookupPrivilegeNameW(LPCWSTR,PLUID,LPWSTR,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LookupPrivilegeValueA(LPCSTR,LPCSTR,PLUID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) LookupPrivilegeValueW(LPCWSTR,LPCWSTR,PLUID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) MakeAbsoluteSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD,PACL,LPDWORD,PACL,LPDWORD,PSID,LPDWORD,PSID,LPDWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) MapGenericMask(PDWORD,PGENERIC_MAPPING); __attribute__((visibility ("hidden"))) HMODULE __attribute__((ms_abi)) MapHModuleSL(WORD); __attribute__((visibility ("hidden"))) WORD __attribute__((ms_abi)) MapHModuleLS(HMODULE); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,SIZE_T); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,SIZE_T,LPVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) MoveFileA(LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) MoveFileW(LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) MoveFileExA(LPCSTR,LPCSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) MoveFileExW(LPCWSTR,LPCWSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) MoveFileWithProgressA(LPCSTR,LPCSTR,LPPROGRESS_ROUTINE,LPVOID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) MoveFileWithProgressW(LPCWSTR,LPCWSTR,LPPROGRESS_ROUTINE,LPVOID,DWORD); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) MulDiv(INT,INT,INT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) NeedCurrentDirectoryForExePathA(LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) NeedCurrentDirectoryForExePathW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) NotifyChangeEventLog(HANDLE,HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ObjectCloseAuditAlarmA(LPCSTR,LPVOID,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ObjectCloseAuditAlarmW(LPCWSTR,LPVOID,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ObjectDeleteAuditAlarmA(LPCSTR,LPVOID,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ObjectDeleteAuditAlarmW(LPCWSTR,LPVOID,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ObjectOpenAuditAlarmA(LPCSTR,LPVOID,LPSTR,LPSTR,PSECURITY_DESCRIPTOR,HANDLE,DWORD,DWORD,PPRIVILEGE_SET,BOOL,BOOL,LPBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ObjectOpenAuditAlarmW(LPCWSTR,LPVOID,LPWSTR,LPWSTR,PSECURITY_DESCRIPTOR,HANDLE,DWORD,DWORD,PPRIVILEGE_SET,BOOL,BOOL,LPBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ObjectPrivilegeAuditAlarmA(LPCSTR,LPVOID,HANDLE,DWORD,PPRIVILEGE_SET,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ObjectPrivilegeAuditAlarmW(LPCWSTR,LPVOID,HANDLE,DWORD,PPRIVILEGE_SET,BOOL); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenBackupEventLogA(LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenBackupEventLogW(LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenEventA(DWORD,BOOL,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenEventW(DWORD,BOOL,LPCWSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenEventLogA(LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenEventLogW(LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) HFILE __attribute__((ms_abi)) OpenFile(LPCSTR,OFSTRUCT*,UINT); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenFileMappingA(DWORD,BOOL,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenFileMappingW(DWORD,BOOL,LPCWSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenJobObjectA(DWORD,BOOL,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenJobObjectW(DWORD,BOOL,LPCWSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenMutexA(DWORD,BOOL,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenMutexW(DWORD,BOOL,LPCWSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenProcess(DWORD,BOOL,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) OpenProcessToken(HANDLE,DWORD,PHANDLE); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenSemaphoreA(DWORD,BOOL,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenSemaphoreW(DWORD,BOOL,LPCWSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenThread(DWORD,BOOL,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenWaitableTimerA(DWORD,BOOL,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) OpenWaitableTimerW(DWORD,BOOL,LPCWSTR); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) OutputDebugStringA(LPCSTR); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) OutputDebugStringW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) PeekNamedPipe(HANDLE,PVOID,DWORD,PDWORD,PDWORD,PDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) PostQueuedCompletionStatus(HANDLE,DWORD,ULONG_PTR,LPOVERLAPPED); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) PrepareTape(HANDLE,DWORD,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ProcessIdToSessionId(DWORD,DWORD*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) PrivilegeCheck(HANDLE,PPRIVILEGE_SET,LPBOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) PrivilegedServiceAuditAlarmA(LPCSTR,LPCSTR,HANDLE,PPRIVILEGE_SET,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) PrivilegedServiceAuditAlarmW(LPCWSTR,LPCWSTR,HANDLE,PPRIVILEGE_SET,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) PulseEvent(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) PurgeComm(HANDLE,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) QueryActCtxW(DWORD,HANDLE,PVOID,ULONG,PVOID,SIZE_T,SIZE_T *); __attribute__((visibility ("hidden"))) USHORT __attribute__((ms_abi)) QueryDepthSList(PSLIST_HEADER); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) QueryDosDeviceA(LPCSTR,LPSTR,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) QueryFullProcessImageNameA(HANDLE,DWORD,LPSTR,PDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) QueryFullProcessImageNameW(HANDLE,DWORD,LPWSTR,PDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) QueryInformationJobObject(HANDLE,JOBOBJECTINFOCLASS,LPVOID,DWORD,DWORD*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) QueryPerformanceCounter(LARGE_INTEGER*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) QueryPerformanceFrequency(LARGE_INTEGER*); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) QueueUserWorkItem(LPTHREAD_START_ROUTINE,PVOID,ULONG); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RaiseException(DWORD,DWORD,DWORD,const ULONG_PTR *); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReadDirectoryChangesW(HANDLE,LPVOID,DWORD,BOOL,DWORD,LPDWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReadFileEx(HANDLE,LPVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReadFileScatter(HANDLE,FILE_SEGMENT_ELEMENT*,DWORD,LPDWORD,LPOVERLAPPED); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReadProcessMemory(HANDLE,LPCVOID,LPVOID,SIZE_T,SIZE_T*); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) RegisterEventSourceA(LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) RegisterEventSourceW(LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) RegisterWaitForSingleObject(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,ULONG,ULONG); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) RegisterWaitForSingleObjectEx(HANDLE,WAITORTIMERCALLBACK,PVOID,ULONG,ULONG); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) ReleaseActCtx(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReleaseMutex(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReleaseSemaphore(HANDLE,LONG,LPLONG); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) ReleaseSRWLockExclusive(PSRWLOCK); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) ReleaseSRWLockShared(PSRWLOCK); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RemoveVectoredExceptionHandler(PVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReplaceFileA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPVOID,LPVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReplaceFileW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPVOID,LPVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) RemoveDirectoryA(LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) RemoveDirectoryW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) RequestWakeupLatency(LATENCY_TIME latency); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ResetEvent(HANDLE); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) ResetWriteWatch(LPVOID,SIZE_T); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) ResumeThread(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) RevertToSelf(void); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetAclInformation(PACL,LPVOID,DWORD,ACL_INFORMATION_CLASS); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetCommConfig(HANDLE,LPCOMMCONFIG,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetCommBreak(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetCommMask(HANDLE,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetCommState(HANDLE,LPDCB); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetComputerNameA(LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetComputerNameW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetComputerNameExA(COMPUTER_NAME_FORMAT,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetComputerNameExW(COMPUTER_NAME_FORMAT,LPCWSTR); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) SetCriticalSectionSpinCount(LPCRITICAL_SECTION,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetCurrentDirectoryA(LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetCurrentDirectoryW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetDllDirectoryA(LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetDllDirectoryW(LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetDynamicTimeZoneInformation(const DYNAMIC_TIME_ZONE_INFORMATION*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetEndOfFile(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetEnvironmentVariableA(LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetEnvironmentVariableW(LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) SetErrorMode(UINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetEvent(HANDLE); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) SetFileApisToANSI(void); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) SetFileApisToOEM(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetFileAttributesA(LPCSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetFileAttributesW(LPCWSTR,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) SetFilePointer(HANDLE,LONG,LPLONG,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetFilePointerEx(HANDLE,LARGE_INTEGER,LARGE_INTEGER*,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetFileTime(HANDLE,const FILETIME*,const FILETIME*,const FILETIME*); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) SetHandleCount(UINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetHandleInformation(HANDLE,DWORD,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetInformationJobObject(HANDLE,JOBOBJECTINFOCLASS,LPVOID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetKernelObjectSecurity(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetLocalTime(const SYSTEMTIME*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetMailslotInfo(HANDLE,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetNamedPipeHandleState(HANDLE,LPDWORD,LPDWORD,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetPriorityClass(HANDLE,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetPrivateObjectSecurity(SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR*,PGENERIC_MAPPING,HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetProcessAffinityMask(HANDLE,DWORD_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetProcessPriorityBoost(HANDLE,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetProcessShutdownParameters(DWORD,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetProcessWorkingSetSize(HANDLE,SIZE_T,SIZE_T); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,SECURITY_DESCRIPTOR_CONTROL,SECURITY_DESCRIPTOR_CONTROL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetStdHandle(DWORD,HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetSystemPowerState(BOOL,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetSystemTime(const SYSTEMTIME*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetSystemTimeAdjustment(DWORD,BOOL); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) SetTapeParameters(HANDLE,DWORD,LPVOID); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) SetTapePosition(HANDLE,DWORD,DWORD,DWORD,DWORD,BOOL); __attribute__((visibility ("hidden"))) DWORD_PTR __attribute__((ms_abi)) SetThreadAffinityMask(HANDLE,DWORD_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetThreadContext(HANDLE,const CONTEXT *); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetThreadErrorMode(DWORD,LPDWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) SetThreadExecutionState(EXECUTION_STATE); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) SetThreadIdealProcessor(HANDLE,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetThreadPriority(HANDLE,INT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetThreadPriorityBoost(HANDLE,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetThreadToken(PHANDLE,HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetTimeZoneInformation(const TIME_ZONE_INFORMATION *); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD); __attribute__((visibility ("hidden"))) LPTOP_LEVEL_EXCEPTION_FILTER __attribute__((ms_abi)) SetUnhandledExceptionFilter(LPTOP_LEVEL_EXCEPTION_FILTER); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetVolumeLabelA(LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetVolumeLabelW(LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetVolumeMountPointA(LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetVolumeMountPointW(LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetupComm(HANDLE,DWORD,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) SignalObjectAndWait(HANDLE,HANDLE,DWORD,BOOL); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) SizeofResource(HMODULE,HRSRC); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) Sleep(DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) SleepEx(DWORD,BOOL); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) SuspendThread(HANDLE); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) SwitchToFiber(LPVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SwitchToThread(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SystemTimeToTzSpecificLocalTime(const TIME_ZONE_INFORMATION*,const SYSTEMTIME*,LPSYSTEMTIME); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) TerminateJobObject(HANDLE,UINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) TerminateProcess(HANDLE,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) TerminateThread(HANDLE,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) TlsAlloc(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) TlsFree(DWORD); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) TlsGetValue(DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) TlsSetValue(DWORD,LPVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) TransactNamedPipe(HANDLE,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPOVERLAPPED); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) TransmitCommChar(HANDLE,CHAR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) TryAcquireSRWLockExclusive(PSRWLOCK); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) TryAcquireSRWLockShared(PSRWLOCK); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) TryEnterCriticalSection(CRITICAL_SECTION *lpCrit); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) TzSpecificLocalTimeToSystemTime(const TIME_ZONE_INFORMATION*,const SYSTEMTIME*,LPSYSTEMTIME); __attribute__((visibility ("hidden"))) LONG __attribute__((ms_abi)) UnhandledExceptionFilter(PEXCEPTION_POINTERS); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) UnmapViewOfFile(LPCVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) UnregisterWait(HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) UnregisterWaitEx(HANDLE,HANDLE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) UpdateResourceA(HANDLE,LPCSTR,LPCSTR,WORD,LPVOID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) UpdateResourceW(HANDLE,LPCWSTR,LPCWSTR,WORD,LPVOID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) VerifyVersionInfoA(LPOSVERSIONINFOEXA,DWORD,DWORDLONG); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) VerifyVersionInfoW(LPOSVERSIONINFOEXW,DWORD,DWORDLONG); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) VirtualAlloc(LPVOID,SIZE_T,DWORD,DWORD); __attribute__((visibility ("hidden"))) LPVOID __attribute__((ms_abi)) VirtualAllocEx(HANDLE,LPVOID,SIZE_T,DWORD,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) VirtualFree(LPVOID,SIZE_T,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) VirtualFreeEx(HANDLE,LPVOID,SIZE_T,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) VirtualLock(LPVOID,SIZE_T); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) VirtualProtect(LPVOID,SIZE_T,DWORD,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) VirtualProtectEx(HANDLE,LPVOID,SIZE_T,DWORD,LPDWORD); __attribute__((visibility ("hidden"))) SIZE_T __attribute__((ms_abi)) VirtualQuery(LPCVOID,PMEMORY_BASIC_INFORMATION,SIZE_T); __attribute__((visibility ("hidden"))) SIZE_T __attribute__((ms_abi)) VirtualQueryEx(HANDLE,LPCVOID,PMEMORY_BASIC_INFORMATION,SIZE_T); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) VirtualUnlock(LPVOID,SIZE_T); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) WTSGetActiveConsoleSessionId(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WaitForDebugEvent(LPDEBUG_EVENT,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) WaitForSingleObject(HANDLE,DWORD); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) WaitForSingleObjectEx(HANDLE,DWORD,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WaitNamedPipeA(LPCSTR,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WaitNamedPipeW(LPCWSTR,DWORD); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) WinExec(LPCSTR,UINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) Wow64DisableWow64FsRedirection(PVOID*); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) Wow64EnableWow64FsRedirection(BOOLEAN); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) Wow64RevertWow64FsRedirection(PVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WriteFileEx(HANDLE,LPCVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WriteFileGather(HANDLE,FILE_SEGMENT_ELEMENT*,DWORD,LPDWORD,LPOVERLAPPED); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WriteProcessMemory(HANDLE,LPVOID,LPCVOID,SIZE_T,SIZE_T*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WriteProfileSectionA(LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WriteProfileSectionW(LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) WriteTapemark(HANDLE,DWORD,DWORD,BOOL); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) ZombifyActCtx(HANDLE); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) lstrcmpA(LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) lstrcmpW(LPCWSTR,LPCWSTR); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) lstrcmpiA(LPCSTR,LPCSTR); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) lstrcmpiW(LPCWSTR,LPCWSTR); # 2249 "../../include/winbase.h" static inline LPWSTR __attribute__((ms_abi)) lstrcpynW( LPWSTR dst, LPCWSTR src, INT n ) { LPWSTR d = dst; LPCWSTR s = src; UINT count = n; while ((count > 1) && *s) { count--; *d++ = *s++; } if (count) *d = 0; return dst; } static inline LPSTR __attribute__((ms_abi)) lstrcpynA( LPSTR dst, LPCSTR src, INT n ) { LPSTR d = dst; LPCSTR s = src; UINT count = n; while ((count > 1) && *s) { count--; *d++ = *s++; } if (count) *d = 0; return dst; } static inline INT __attribute__((ms_abi)) lstrlenW( LPCWSTR str ) { const WCHAR *s = str; while (*s) s++; return s - str; } static inline INT __attribute__((ms_abi)) lstrlenA( LPCSTR str ) { return strlen( str ); } static inline LPWSTR __attribute__((ms_abi)) lstrcpyW( LPWSTR dst, LPCWSTR src ) { WCHAR *p = dst; while ((*p++ = *src++)); return dst; } static inline LPSTR __attribute__((ms_abi)) lstrcpyA( LPSTR dst, LPCSTR src ) { return strcpy( dst, src ); } static inline LPWSTR __attribute__((ms_abi)) lstrcatW( LPWSTR dst, LPCWSTR src ) { WCHAR *p = dst; while (*p) p++; while ((*p++ = *src++)); return dst; } static inline LPSTR __attribute__((ms_abi)) lstrcatA( LPSTR dst, LPCSTR src ) { return strcat( dst, src ); } # 2329 "../../include/winbase.h" __attribute__((visibility ("hidden"))) LONG __attribute__((ms_abi)) _hread(HFILE,LPVOID,LONG); __attribute__((visibility ("hidden"))) LONG __attribute__((ms_abi)) _hwrite(HFILE,LPCSTR,LONG); __attribute__((visibility ("hidden"))) HFILE __attribute__((ms_abi)) _lcreat(LPCSTR,INT); __attribute__((visibility ("hidden"))) HFILE __attribute__((ms_abi)) _lclose(HFILE); __attribute__((visibility ("hidden"))) LONG __attribute__((ms_abi)) _llseek(HFILE,LONG,INT); __attribute__((visibility ("hidden"))) HFILE __attribute__((ms_abi)) _lopen(LPCSTR,INT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) _lread(HFILE,LPVOID,UINT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) _lwrite(HFILE,LPCSTR,UINT); # 2346 "../../include/winbase.h" extern char * __attribute__((ms_abi)) wine_get_unix_file_name( LPCWSTR dos ); extern WCHAR * __attribute__((ms_abi)) wine_get_dos_file_name( LPCSTR str ); # 2413 "../../include/winbase.h" static inline __attribute__((always_inline)) LONG __attribute__((ms_abi)) InterlockedCompareExchange( LONG volatile *dest, LONG xchg, LONG compare ) { LONG ret; __asm__ __volatile__( "lock; cmpxchgl %2,(%1)" : "=a" (ret) : "r" (dest), "r" (xchg), "0" (compare) : "memory" ); return ret; } static inline __attribute__((always_inline)) PVOID __attribute__((ms_abi)) InterlockedCompareExchangePointer( PVOID volatile *dest, PVOID xchg, PVOID compare ) { PVOID ret; __asm__ __volatile__( "lock; cmpxchgq %2,(%1)" : "=a" (ret) : "r" (dest), "r" (xchg), "0" (compare) : "memory" ); return ret; } static inline __attribute__((always_inline)) LONGLONG __attribute__((ms_abi)) InterlockedCompareExchange64( LONGLONG volatile *dest, LONGLONG xchg, LONGLONG compare ) { LONGLONG ret; __asm__ __volatile__( "lock; cmpxchgq %2,(%1)" : "=a" (ret) : "r" (dest), "r" (xchg), "0" (compare) : "memory" ); return ret; } static inline __attribute__((always_inline)) LONG __attribute__((ms_abi)) InterlockedExchange( LONG volatile *dest, LONG val ) { LONG ret; __asm__ __volatile__( "lock; xchgl %0,(%1)" : "=r" (ret) :"r" (dest), "0" (val) : "memory" ); return ret; } static inline __attribute__((always_inline)) PVOID __attribute__((ms_abi)) InterlockedExchangePointer( PVOID volatile *dest, PVOID val ) { PVOID ret; __asm__ __volatile__( "lock; xchgq %0,(%1)" : "=r" (ret) :"r" (dest), "0" (val) : "memory" ); return ret; } static inline __attribute__((always_inline)) LONG __attribute__((ms_abi)) InterlockedExchangeAdd( LONG volatile *dest, LONG incr ) { LONG ret; __asm__ __volatile__( "lock; xaddl %0,(%1)" : "=r" (ret) : "r" (dest), "0" (incr) : "memory" ); return ret; } static inline __attribute__((always_inline)) LONG __attribute__((ms_abi)) InterlockedIncrement( LONG volatile *dest ) { return InterlockedExchangeAdd( dest, 1 ) + 1; } static inline __attribute__((always_inline)) LONG __attribute__((ms_abi)) InterlockedDecrement( LONG volatile *dest ) { return InterlockedExchangeAdd( dest, -1 ) - 1; } static inline __attribute__((always_inline)) DWORD __attribute__((ms_abi)) GetLastError(void) { DWORD ret; __asm__ __volatile__( ".byte 0x65\n\tmovl 0x68,%0" : "=r" (ret) ); return ret; } static inline __attribute__((always_inline)) DWORD __attribute__((ms_abi)) GetCurrentProcessId(void) { DWORD ret; __asm__ __volatile__( ".byte 0x65\n\tmovl 0x40,%0" : "=r" (ret) ); return ret; } static inline __attribute__((always_inline)) DWORD __attribute__((ms_abi)) GetCurrentThreadId(void) { DWORD ret; __asm__ __volatile__( ".byte 0x65\n\tmovl 0x48,%0" : "=r" (ret) ); return ret; } static inline __attribute__((always_inline)) void __attribute__((ms_abi)) SetLastError( DWORD err ) { __asm__ __volatile__( ".byte 0x65\n\tmovl %0,0x68" : : "r" (err) : "memory" ); } static inline __attribute__((always_inline)) HANDLE __attribute__((ms_abi)) GetProcessHeap(void) { HANDLE *pdb; __asm__ __volatile__( ".byte 0x65\n\tmovq 0x60,%0" : "=r" (pdb) ); return pdb[0x30 / sizeof(HANDLE)]; } # 2578 "../../include/winbase.h" int __attribute__((ms_abi)) WinMain(HINSTANCE,HINSTANCE,LPSTR,int); BOOL __attribute__((ms_abi)) DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) __attribute__((visibility ("hidden"))); # 42 "file.c" 2 # 1 "../../include/winternl.h" 1 # 37 "../../include/winternl.h" typedef LONG NTSTATUS; typedef const char *PCSZ; typedef short CSHORT; typedef CSHORT *PCSHORT; typedef struct _STRING { USHORT Length; USHORT MaximumLength; PCHAR Buffer; } STRING, *PSTRING; typedef STRING ANSI_STRING; typedef PSTRING PANSI_STRING; typedef const STRING *PCANSI_STRING; typedef STRING OEM_STRING; typedef PSTRING POEM_STRING; typedef const STRING *PCOEM_STRING; typedef struct _UNICODE_STRING { USHORT Length; USHORT MaximumLength; PWSTR Buffer; } UNICODE_STRING, *PUNICODE_STRING; typedef const UNICODE_STRING *PCUNICODE_STRING; # 96 "../../include/winternl.h" typedef struct _RTL_SYSTEM_TIME { WORD wYear; WORD wMonth; WORD wDayOfWeek; WORD wDay; WORD wHour; WORD wMinute; WORD wSecond; WORD wMilliseconds; } RTL_SYSTEM_TIME, *PRTL_SYSTEM_TIME; typedef struct _RTL_TIME_ZONE_INFORMATION { LONG Bias; WCHAR StandardName[32]; RTL_SYSTEM_TIME StandardDate; LONG StandardBias; WCHAR DaylightName[32]; RTL_SYSTEM_TIME DaylightDate; LONG DaylightBias; } RTL_TIME_ZONE_INFORMATION, *PRTL_TIME_ZONE_INFORMATION; typedef struct _CLIENT_ID { HANDLE UniqueProcess; HANDLE UniqueThread; } CLIENT_ID, *PCLIENT_ID; typedef struct _CURDIR { UNICODE_STRING DosPath; PVOID Handle; } CURDIR, *PCURDIR; typedef struct RTL_DRIVE_LETTER_CURDIR { USHORT Flags; USHORT Length; ULONG TimeStamp; UNICODE_STRING DosPath; } RTL_DRIVE_LETTER_CURDIR, *PRTL_DRIVE_LETTER_CURDIR; typedef struct tagRTL_BITMAP { ULONG SizeOfBitMap; PULONG Buffer; } RTL_BITMAP, *PRTL_BITMAP; typedef const RTL_BITMAP *PCRTL_BITMAP; typedef struct tagRTL_BITMAP_RUN { ULONG StartingIndex; ULONG NumberOfBits; } RTL_BITMAP_RUN, *PRTL_BITMAP_RUN; typedef const RTL_BITMAP_RUN *PCRTL_BITMAP_RUN; typedef struct _RTL_USER_PROCESS_PARAMETERS { ULONG AllocationSize; ULONG Size; ULONG Flags; ULONG DebugFlags; HANDLE ConsoleHandle; ULONG ConsoleFlags; HANDLE hStdInput; HANDLE hStdOutput; HANDLE hStdError; CURDIR CurrentDirectory; UNICODE_STRING DllPath; UNICODE_STRING ImagePathName; UNICODE_STRING CommandLine; PWSTR Environment; ULONG dwX; ULONG dwY; ULONG dwXSize; ULONG dwYSize; ULONG dwXCountChars; ULONG dwYCountChars; ULONG dwFillAttribute; ULONG dwFlags; ULONG wShowWindow; UNICODE_STRING WindowTitle; UNICODE_STRING Desktop; UNICODE_STRING ShellInfo; UNICODE_STRING RuntimeInfo; RTL_DRIVE_LETTER_CURDIR DLCurrentDirectory[0x20]; } RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS; typedef struct _PEB_LDR_DATA { ULONG Length; BOOLEAN Initialized; PVOID SsHandle; LIST_ENTRY InLoadOrderModuleList; LIST_ENTRY InMemoryOrderModuleList; LIST_ENTRY InInitializationOrderModuleList; } PEB_LDR_DATA, *PPEB_LDR_DATA; typedef struct _GDI_TEB_BATCH { ULONG Offset; HANDLE HDC; ULONG Buffer[0x136]; } GDI_TEB_BATCH; typedef struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME { struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME *Previous; struct _ACTIVATION_CONTEXT *ActivationContext; ULONG Flags; } RTL_ACTIVATION_CONTEXT_STACK_FRAME, *PRTL_ACTIVATION_CONTEXT_STACK_FRAME; typedef struct _ACTIVATION_CONTEXT_STACK { ULONG Flags; ULONG NextCookieSequenceNumber; RTL_ACTIVATION_CONTEXT_STACK_FRAME *ActiveFrame; LIST_ENTRY FrameListCache; } ACTIVATION_CONTEXT_STACK, *PACTIVATION_CONTEXT_STACK; typedef struct _PEB { BOOLEAN InheritedAddressSpace; BOOLEAN ReadImageFileExecOptions; BOOLEAN BeingDebugged; BOOLEAN SpareBool; HANDLE Mutant; HMODULE ImageBaseAddress; PPEB_LDR_DATA LdrData; RTL_USER_PROCESS_PARAMETERS *ProcessParameters; PVOID SubSystemData; HANDLE ProcessHeap; PRTL_CRITICAL_SECTION FastPebLock; PVOID FastPebLockRoutine; PVOID FastPebUnlockRoutine; ULONG EnvironmentUpdateCount; PVOID KernelCallbackTable; ULONG Reserved[2]; PVOID FreeList; ULONG TlsExpansionCounter; PRTL_BITMAP TlsBitmap; ULONG TlsBitmapBits[2]; PVOID ReadOnlySharedMemoryBase; PVOID ReadOnlySharedMemoryHeap; PVOID *ReadOnlyStaticServerData; PVOID AnsiCodePageData; PVOID OemCodePageData; PVOID UnicodeCaseTableData; ULONG NumberOfProcessors; ULONG NtGlobalFlag; LARGE_INTEGER CriticalSectionTimeout; SIZE_T HeapSegmentReserve; SIZE_T HeapSegmentCommit; SIZE_T HeapDeCommitTotalFreeThreshold; SIZE_T HeapDeCommitFreeBlockThreshold; ULONG NumberOfHeaps; ULONG MaximumNumberOfHeaps; PVOID *ProcessHeaps; PVOID GdiSharedHandleTable; PVOID ProcessStarterHelper; PVOID GdiDCAttributeList; PVOID LoaderLock; ULONG OSMajorVersion; ULONG OSMinorVersion; ULONG OSBuildNumber; ULONG OSPlatformId; ULONG ImageSubSystem; ULONG ImageSubSystemMajorVersion; ULONG ImageSubSystemMinorVersion; ULONG ImageProcessAffinityMask; HANDLE GdiHandleBuffer[28]; ULONG unknown[6]; PVOID PostProcessInitRoutine; PRTL_BITMAP TlsExpansionBitmap; ULONG TlsExpansionBitmapBits[32]; ULONG SessionId; ULARGE_INTEGER AppCompatFlags; ULARGE_INTEGER AppCompatFlagsUser; PVOID ShimData; PVOID AppCompatInfo; UNICODE_STRING CSDVersion; PVOID ActivationContextData; PVOID ProcessAssemblyStorageMap; PVOID SystemDefaultActivationData; PVOID SystemAssemblyStorageMap; SIZE_T MinimumStackCommit; PVOID *FlsCallback; LIST_ENTRY FlsListHead; PRTL_BITMAP FlsBitmap; ULONG FlsBitmapBits[4]; } PEB, *PPEB; typedef struct _TEB { NT_TIB Tib; PVOID EnvironmentPointer; CLIENT_ID ClientId; PVOID ActiveRpcHandle; PVOID ThreadLocalStoragePointer; PPEB Peb; ULONG LastErrorValue; ULONG CountOfOwnedCriticalSections; PVOID CsrClientThread; PVOID Win32ThreadInfo; ULONG Win32ClientInfo[31]; PVOID WOW32Reserved; ULONG CurrentLocale; ULONG FpSoftwareStatusRegister; PVOID SystemReserved1[54]; LONG ExceptionCode; ACTIVATION_CONTEXT_STACK ActivationContextStack; BYTE SpareBytes1[24]; PVOID SystemReserved2[10]; GDI_TEB_BATCH GdiTebBatch; HANDLE gdiRgn; HANDLE gdiPen; HANDLE gdiBrush; CLIENT_ID RealClientId; HANDLE GdiCachedProcessHandle; ULONG GdiClientPID; ULONG GdiClientTID; PVOID GdiThreadLocaleInfo; ULONG UserReserved[5]; PVOID glDispachTable[280]; PVOID glReserved1[26]; PVOID glReserved2; PVOID glSectionInfo; PVOID glSection; PVOID glTable; PVOID glCurrentRC; PVOID glContext; ULONG LastStatusValue; UNICODE_STRING StaticUnicodeString; WCHAR StaticUnicodeBuffer[261]; PVOID DeallocationStack; PVOID TlsSlots[64]; LIST_ENTRY TlsLinks; PVOID Vdm; PVOID ReservedForNtRpc; PVOID DbgSsReserved[2]; ULONG HardErrorDisabled; PVOID Instrumentation[16]; PVOID WinSockData; ULONG GdiBatchCount; ULONG Spare2; PVOID Spare3; PVOID Spare4; PVOID ReservedForOle; ULONG WaitingOnLoaderLock; PVOID Reserved5[3]; PVOID *TlsExpansionSlots; ULONG ImpersonationLocale; ULONG IsImpersonating; PVOID NlsCache; PVOID ShimData; ULONG HeapVirtualAffinity; PVOID CurrentTransactionHandle; PVOID ActiveFrame; PVOID unknown[2]; PVOID *FlsSlots; } TEB, *PTEB; typedef enum _FILE_INFORMATION_CLASS { FileDirectoryInformation = 1, FileFullDirectoryInformation, FileBothDirectoryInformation, FileBasicInformation, FileStandardInformation, FileInternalInformation, FileEaInformation, FileAccessInformation, FileNameInformation, FileRenameInformation, FileLinkInformation, FileNamesInformation, FileDispositionInformation, FilePositionInformation, FileFullEaInformation, FileModeInformation, FileAlignmentInformation, FileAllInformation, FileAllocationInformation, FileEndOfFileInformation, FileAlternateNameInformation, FileStreamInformation, FilePipeInformation, FilePipeLocalInformation, FilePipeRemoteInformation, FileMailslotQueryInformation, FileMailslotSetInformation, FileCompressionInformation, FileObjectIdInformation, FileCompletionInformation, FileMoveClusterInformation, FileQuotaInformation, FileReparsePointInformation, FileNetworkOpenInformation, FileAttributeTagInformation, FileTrackingInformation, FileIdBothDirectoryInformation, FileIdFullDirectoryInformation, FileValidDataLengthInformation, FileShortNameInformation = 40, FileSfioReserveInformation = 44, FileSfioVolumeInformation = 45, FileHardLinkInformation = 46, FileNormalizedNameInformation = 48, FileIdGlobalTxDirectoryInformation = 50, FileStandardLinkInformation = 54, FileMaximumInformation } FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS; typedef struct _FILE_DIRECTORY_INFORMATION { ULONG NextEntryOffset; ULONG FileIndex; LARGE_INTEGER CreationTime; LARGE_INTEGER LastAccessTime; LARGE_INTEGER LastWriteTime; LARGE_INTEGER ChangeTime; LARGE_INTEGER EndOfFile; LARGE_INTEGER AllocationSize; ULONG FileAttributes; ULONG FileNameLength; WCHAR FileName[1]; } FILE_DIRECTORY_INFORMATION, *PFILE_DIRECTORY_INFORMATION; typedef struct _FILE_FULL_DIRECTORY_INFORMATION { ULONG NextEntryOffset; ULONG FileIndex; LARGE_INTEGER CreationTime; LARGE_INTEGER LastAccessTime; LARGE_INTEGER LastWriteTime; LARGE_INTEGER ChangeTime; LARGE_INTEGER EndOfFile; LARGE_INTEGER AllocationSize; ULONG FileAttributes; ULONG FileNameLength; ULONG EaSize; WCHAR FileName[1]; } FILE_FULL_DIRECTORY_INFORMATION, *PFILE_FULL_DIRECTORY_INFORMATION, FILE_FULL_DIR_INFORMATION, *PFILE_FULL_DIR_INFORMATION; typedef struct _FILE_ID_FULL_DIRECTORY_INFORMATION { ULONG NextEntryOffset; ULONG FileIndex; LARGE_INTEGER CreationTime; LARGE_INTEGER LastAccessTime; LARGE_INTEGER LastWriteTime; LARGE_INTEGER ChangeTime; LARGE_INTEGER EndOfFile; LARGE_INTEGER AllocationSize; ULONG FileAttributes; ULONG FileNameLength; ULONG EaSize; LARGE_INTEGER FileId; WCHAR FileName[1]; } FILE_ID_FULL_DIRECTORY_INFORMATION, *PFILE_ID_FULL_DIRECTORY_INFORMATION; typedef struct _FILE_BOTH_DIRECTORY_INFORMATION { ULONG NextEntryOffset; ULONG FileIndex; LARGE_INTEGER CreationTime; LARGE_INTEGER LastAccessTime; LARGE_INTEGER LastWriteTime; LARGE_INTEGER ChangeTime; LARGE_INTEGER EndOfFile; LARGE_INTEGER AllocationSize; ULONG FileAttributes; ULONG FileNameLength; ULONG EaSize; CHAR ShortNameLength; WCHAR ShortName[12]; WCHAR FileName[1]; } FILE_BOTH_DIRECTORY_INFORMATION, *PFILE_BOTH_DIRECTORY_INFORMATION, FILE_BOTH_DIR_INFORMATION, *PFILE_BOTH_DIR_INFORMATION; typedef struct _FILE_ID_BOTH_DIRECTORY_INFORMATION { ULONG NextEntryOffset; ULONG FileIndex; LARGE_INTEGER CreationTime; LARGE_INTEGER LastAccessTime; LARGE_INTEGER LastWriteTime; LARGE_INTEGER ChangeTime; LARGE_INTEGER EndOfFile; LARGE_INTEGER AllocationSize; ULONG FileAttributes; ULONG FileNameLength; ULONG EaSize; CHAR ShortNameLength; WCHAR ShortName[12]; LARGE_INTEGER FileId; WCHAR FileName[1]; } FILE_ID_BOTH_DIRECTORY_INFORMATION, *PFILE_ID_BOTH_DIRECTORY_INFORMATION; typedef struct _FILE_BASIC_INFORMATION { LARGE_INTEGER CreationTime; LARGE_INTEGER LastAccessTime; LARGE_INTEGER LastWriteTime; LARGE_INTEGER ChangeTime; ULONG FileAttributes; } FILE_BASIC_INFORMATION, *PFILE_BASIC_INFORMATION; typedef struct _FILE_STANDARD_INFORMATION { LARGE_INTEGER AllocationSize; LARGE_INTEGER EndOfFile; ULONG NumberOfLinks; BOOLEAN DeletePending; BOOLEAN Directory; } FILE_STANDARD_INFORMATION, *PFILE_STANDARD_INFORMATION; typedef struct _FILE_INTERNAL_INFORMATION { LARGE_INTEGER IndexNumber; } FILE_INTERNAL_INFORMATION, *PFILE_INTERNAL_INFORMATION; typedef struct _FILE_EA_INFORMATION { ULONG EaSize; } FILE_EA_INFORMATION, *PFILE_EA_INFORMATION; typedef struct _FILE_ACCESS_INFORMATION { ACCESS_MASK AccessFlags; } FILE_ACCESS_INFORMATION, *PFILE_ACCESS_INFORMATION; typedef struct _FILE_NAME_INFORMATION { ULONG FileNameLength; WCHAR FileName[1]; } FILE_NAME_INFORMATION, *PFILE_NAME_INFORMATION; typedef struct _FILE_RENAME_INFORMATION { BOOLEAN Replace; HANDLE RootDir; ULONG FileNameLength; WCHAR FileName[1]; } FILE_RENAME_INFORMATION, *PFILE_RENAME_INFORMATION; typedef struct _FILE_NAMES_INFORMATION { ULONG NextEntryOffset; ULONG FileIndex; ULONG FileNameLength; WCHAR FileName[1]; } FILE_NAMES_INFORMATION, *PFILE_NAMES_INFORMATION; typedef struct _FILE_DISPOSITION_INFORMATION { BOOLEAN DoDeleteFile; } FILE_DISPOSITION_INFORMATION, *PFILE_DISPOSITION_INFORMATION; typedef struct _FILE_POSITION_INFORMATION { LARGE_INTEGER CurrentByteOffset; } FILE_POSITION_INFORMATION, *PFILE_POSITION_INFORMATION; typedef struct _FILE_ALIGNMENT_INFORMATION { ULONG AlignmentRequirement; } FILE_ALIGNMENT_INFORMATION, *PFILE_ALIGNMENT_INFORMATION; typedef struct _FILE_ALLOCATION_INFORMATION { LARGE_INTEGER AllocationSize; } FILE_ALLOCATION_INFORMATION, *PFILE_ALLOCATION_INFORMATION; typedef struct _FILE_END_OF_FILE_INFORMATION { LARGE_INTEGER EndOfFile; } FILE_END_OF_FILE_INFORMATION, *PFILE_END_OF_FILE_INFORMATION; typedef struct _FILE_NETWORK_OPEN_INFORMATION { LARGE_INTEGER CreationTime; LARGE_INTEGER LastAccessTime; LARGE_INTEGER LastWriteTime; LARGE_INTEGER ChangeTime; LARGE_INTEGER AllocationSize; LARGE_INTEGER EndOfFile; ULONG FileAttributes; } FILE_NETWORK_OPEN_INFORMATION, *PFILE_NETWORK_OPEN_INFORMATION; typedef struct _FILE_FULL_EA_INFORMATION { ULONG NextEntryOffset; UCHAR Flags; UCHAR EaNameLength; USHORT EaValueLength; CHAR EaName[1]; } FILE_FULL_EA_INFORMATION, *PFILE_FULL_EA_INFORMATION; typedef struct _FILE_MODE_INFORMATION { ULONG Mode; } FILE_MODE_INFORMATION, *PFILE_MODE_INFORMATION; typedef struct _FILE_STREAM_INFORMATION { ULONG NextEntryOffset; ULONG StreamNameLength; LARGE_INTEGER StreamSize; LARGE_INTEGER StreamAllocationSize; WCHAR StreamName[1]; } FILE_STREAM_INFORMATION, *PFILE_STREAM_INFORMATION; typedef struct _FILE_ATTRIBUTE_TAG_INFORMATION { ULONG FileAttributes; ULONG ReparseTag; } FILE_ATTRIBUTE_TAG_INFORMATION, *PFILE_ATTRIBUTE_TAG_INFORMATION; typedef struct _FILE_MAILSLOT_QUERY_INFORMATION { ULONG MaximumMessageSize; ULONG MailslotQuota; ULONG NextMessageSize; ULONG MessagesAvailable; LARGE_INTEGER ReadTimeout; } FILE_MAILSLOT_QUERY_INFORMATION, *PFILE_MAILSLOT_QUERY_INFORMATION; typedef struct _FILE_MAILSLOT_SET_INFORMATION { LARGE_INTEGER ReadTimeout; } FILE_MAILSLOT_SET_INFORMATION, *PFILE_MAILSLOT_SET_INFORMATION; typedef struct _FILE_PIPE_LOCAL_INFORMATION { ULONG NamedPipeType; ULONG NamedPipeConfiguration; ULONG MaximumInstances; ULONG CurrentInstances; ULONG InboundQuota; ULONG ReadDataAvailable; ULONG OutboundQuota; ULONG WriteQuotaAvailable; ULONG NamedPipeState; ULONG NamedPipeEnd; } FILE_PIPE_LOCAL_INFORMATION, *PFILE_PIPE_LOCAL_INFORMATION; typedef struct _FILE_ALL_INFORMATION { FILE_BASIC_INFORMATION BasicInformation; FILE_STANDARD_INFORMATION StandardInformation; FILE_INTERNAL_INFORMATION InternalInformation; FILE_EA_INFORMATION EaInformation; FILE_ACCESS_INFORMATION AccessInformation; FILE_POSITION_INFORMATION PositionInformation; FILE_MODE_INFORMATION ModeInformation; FILE_ALIGNMENT_INFORMATION AlignmentInformation; FILE_NAME_INFORMATION NameInformation; } FILE_ALL_INFORMATION, *PFILE_ALL_INFORMATION; typedef enum _FSINFOCLASS { FileFsVolumeInformation = 1, FileFsLabelInformation, FileFsSizeInformation, FileFsDeviceInformation, FileFsAttributeInformation, FileFsControlInformation, FileFsFullSizeInformation, FileFsObjectIdInformation, FileFsMaximumInformation } FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS; typedef enum _KEY_INFORMATION_CLASS { KeyBasicInformation, KeyNodeInformation, KeyFullInformation, KeyNameInformation } KEY_INFORMATION_CLASS; typedef enum _KEY_VALUE_INFORMATION_CLASS { KeyValueBasicInformation, KeyValueFullInformation, KeyValuePartialInformation, KeyValueFullInformationAlign64, KeyValuePartialInformationAlign64 } KEY_VALUE_INFORMATION_CLASS; typedef enum _OBJECT_INFORMATION_CLASS { ObjectBasicInformation, ObjectNameInformation, ObjectTypeInformation, ObjectAllInformation, ObjectDataInformation } OBJECT_INFORMATION_CLASS, *POBJECT_INFORMATION_CLASS; typedef enum _PROCESSINFOCLASS { ProcessBasicInformation = 0, ProcessQuotaLimits = 1, ProcessIoCounters = 2, ProcessVmCounters = 3, ProcessTimes = 4, ProcessBasePriority = 5, ProcessRaisePriority = 6, ProcessDebugPort = 7, ProcessExceptionPort = 8, ProcessAccessToken = 9, ProcessLdtInformation = 10, ProcessLdtSize = 11, ProcessDefaultHardErrorMode = 12, ProcessIoPortHandlers = 13, ProcessPooledUsageAndLimits = 14, ProcessWorkingSetWatch = 15, ProcessUserModeIOPL = 16, ProcessEnableAlignmentFaultFixup = 17, ProcessPriorityClass = 18, ProcessWx86Information = 19, ProcessHandleCount = 20, ProcessAffinityMask = 21, ProcessPriorityBoost = 22, ProcessDeviceMap = 23, ProcessSessionInformation = 24, ProcessForegroundInformation = 25, ProcessWow64Information = 26, ProcessImageFileName = 27, ProcessLUIDDeviceMapsEnabled = 28, ProcessBreakOnTermination = 29, ProcessDebugObjectHandle = 30, ProcessDebugFlags = 31, ProcessHandleTracing = 32, ProcessExecuteFlags = 34, MaxProcessInfoClass } PROCESSINFOCLASS, PROCESS_INFORMATION_CLASS; typedef enum _SECTION_INHERIT { ViewShare = 1, ViewUnmap = 2 } SECTION_INHERIT; typedef enum _SYSTEM_INFORMATION_CLASS { SystemBasicInformation = 0, SystemCpuInformation = 1, SystemPerformanceInformation = 2, SystemTimeOfDayInformation = 3, Unknown4, SystemProcessInformation = 5, Unknown6, Unknown7, SystemProcessorPerformanceInformation = 8, Unknown9, Unknown10, SystemModuleInformation = 11, Unknown12, Unknown13, Unknown14, Unknown15, SystemHandleInformation = 16, Unknown17, SystemPageFileInformation = 18, Unknown19, Unknown20, SystemCacheInformation = 21, Unknown22, SystemInterruptInformation = 23, SystemDpcBehaviourInformation = 24, SystemFullMemoryInformation = 25, SystemNotImplemented6 = 25, SystemLoadImage = 26, SystemUnloadImage = 27, SystemTimeAdjustmentInformation = 28, SystemTimeAdjustment = 28, SystemSummaryMemoryInformation = 29, SystemNotImplemented7 = 29, SystemNextEventIdInformation = 30, SystemNotImplemented8 = 30, SystemEventIdsInformation = 31, SystemCrashDumpInformation = 32, SystemExceptionInformation = 33, SystemCrashDumpStateInformation = 34, SystemKernelDebuggerInformation = 35, SystemContextSwitchInformation = 36, SystemRegistryQuotaInformation = 37, SystemCurrentTimeZoneInformation = 44, SystemTimeZoneInformation = 44, SystemLookasideInformation = 45, SystemSetTimeSlipEvent = 46, SystemCreateSession = 47, SystemDeleteSession = 48, SystemInvalidInfoClass4 = 49, SystemRangeStartInformation = 50, SystemVerifierInformation = 51, SystemAddVerifier = 52, SystemSessionProcessesInformation = 53, Unknown54, Unknown55, Unknown56, Unknown57, Unknown58, Unknown59, Unknown60, Unknown61, Unknown62, Unknown63, Unknown64, Unknown65, Unknown66, Unknown67, Unknown68, Unknown69, Unknown70, Unknown71, Unknown72, SystemLogicalProcessorInformation = 73, SystemInformationClassMax } SYSTEM_INFORMATION_CLASS, *PSYSTEM_INFORMATION_CLASS; typedef enum _TIMER_TYPE { NotificationTimer, SynchronizationTimer } TIMER_TYPE; typedef enum _THREADINFOCLASS { ThreadBasicInformation, ThreadTimes, ThreadPriority, ThreadBasePriority, ThreadAffinityMask, ThreadImpersonationToken, ThreadDescriptorTableEntry, ThreadEnableAlignmentFaultFixup, ThreadEventPair_Reusable, ThreadQuerySetWin32StartAddress, ThreadZeroTlsCell, ThreadPerformanceCount, ThreadAmILastThread, ThreadIdealProcessor, ThreadPriorityBoost, ThreadSetTlsArrayAddress, ThreadIsIoPending, ThreadHideFromDebugger, MaxThreadInfoClass } THREADINFOCLASS; typedef struct _THREAD_BASIC_INFORMATION { NTSTATUS ExitStatus; PVOID TebBaseAddress; CLIENT_ID ClientId; ULONG_PTR AffinityMask; LONG Priority; LONG BasePriority; } THREAD_BASIC_INFORMATION, *PTHREAD_BASIC_INFORMATION; typedef struct _THREAD_DESCRIPTOR_INFORMATION { DWORD Selector; LDT_ENTRY Entry; } THREAD_DESCRIPTOR_INFORMATION, *PTHREAD_DESCRIPTOR_INFORMATION; typedef struct _KERNEL_USER_TIMES { LARGE_INTEGER CreateTime; LARGE_INTEGER ExitTime; LARGE_INTEGER KernelTime; LARGE_INTEGER UserTime; } KERNEL_USER_TIMES, *PKERNEL_USER_TIMES; typedef enum _WINSTATIONINFOCLASS { WinStationInformation = 8 } WINSTATIONINFOCLASS; typedef enum _MEMORY_INFORMATION_CLASS { MemoryBasicInformation, MemoryWorkingSetList, MemorySectionName, MemoryBasicVlmInformation } MEMORY_INFORMATION_CLASS; typedef enum _MUTANT_INFORMATION_CLASS { MutantBasicInformation } MUTANT_INFORMATION_CLASS, *PMUTANT_INFORMATION_CLASS; typedef struct _MUTANT_BASIC_INFORMATION { LONG CurrentCount; BOOLEAN OwnedByCaller; BOOLEAN AbandonedState; } MUTANT_BASIC_INFORMATION, *PMUTANT_BASIC_INFORMATION; typedef enum _TIMER_INFORMATION_CLASS { TimerBasicInformation = 0 } TIMER_INFORMATION_CLASS; typedef struct _TIMER_BASIC_INFORMATION { LARGE_INTEGER RemainingTime; BOOLEAN TimerState; } TIMER_BASIC_INFORMATION, *PTIMER_BASIC_INFORMATION; typedef enum { INVALID_PATH = 0, UNC_PATH, ABSOLUTE_DRIVE_PATH, RELATIVE_DRIVE_PATH, ABSOLUTE_PATH, RELATIVE_PATH, DEVICE_PATH, UNC_DOT_PATH } DOS_PATHNAME_TYPE; typedef struct _SYSTEM_THREAD_INFORMATION { LARGE_INTEGER KernelTime; LARGE_INTEGER UserTime; LARGE_INTEGER CreateTime; DWORD dwTickCount; LPVOID StartAddress; CLIENT_ID ClientId; DWORD dwCurrentPriority; DWORD dwBasePriority; DWORD dwContextSwitches; DWORD dwThreadState; DWORD dwWaitReason; DWORD dwUnknown; } SYSTEM_THREAD_INFORMATION, *PSYSTEM_THREAD_INFORMATION; typedef struct _IO_STATUS_BLOCK { union { NTSTATUS Status; PVOID Pointer; } ; ULONG_PTR Information; } IO_STATUS_BLOCK, *PIO_STATUS_BLOCK; typedef void (__attribute__((ms_abi)) * PIO_APC_ROUTINE)(PVOID,PIO_STATUS_BLOCK,ULONG); typedef struct _KEY_BASIC_INFORMATION { LARGE_INTEGER LastWriteTime; ULONG TitleIndex; ULONG NameLength; WCHAR Name[1]; } KEY_BASIC_INFORMATION, *PKEY_BASIC_INFORMATION; typedef struct _KEY_NODE_INFORMATION { LARGE_INTEGER LastWriteTime; ULONG TitleIndex; ULONG ClassOffset; ULONG ClassLength; ULONG NameLength; WCHAR Name[1]; } KEY_NODE_INFORMATION, *PKEY_NODE_INFORMATION; typedef struct _KEY_FULL_INFORMATION { LARGE_INTEGER LastWriteTime; ULONG TitleIndex; ULONG ClassOffset; ULONG ClassLength; ULONG SubKeys; ULONG MaxNameLen; ULONG MaxClassLen; ULONG Values; ULONG MaxValueNameLen; ULONG MaxValueDataLen; WCHAR Class[1]; } KEY_FULL_INFORMATION, *PKEY_FULL_INFORMATION; typedef struct _KEY_NAME_INFORMATION { ULONG NameLength; WCHAR Name[1]; } KEY_NAME_INFORMATION, *PKEY_NAME_INFORMATION; typedef struct _KEY_VALUE_ENTRY { PUNICODE_STRING ValueName; ULONG DataLength; ULONG DataOffset; ULONG Type; } KEY_VALUE_ENTRY, *PKEY_VALUE_ENTRY; typedef struct _KEY_VALUE_BASIC_INFORMATION { ULONG TitleIndex; ULONG Type; ULONG NameLength; WCHAR Name[1]; } KEY_VALUE_BASIC_INFORMATION, *PKEY_VALUE_BASIC_INFORMATION; typedef struct _KEY_VALUE_FULL_INFORMATION { ULONG TitleIndex; ULONG Type; ULONG DataOffset; ULONG DataLength; ULONG NameLength; WCHAR Name[1]; } KEY_VALUE_FULL_INFORMATION, *PKEY_VALUE_FULL_INFORMATION; typedef struct _KEY_VALUE_PARTIAL_INFORMATION { ULONG TitleIndex; ULONG Type; ULONG DataLength; UCHAR Data[1]; } KEY_VALUE_PARTIAL_INFORMATION, *PKEY_VALUE_PARTIAL_INFORMATION; typedef struct _OBJECT_ATTRIBUTES { ULONG Length; HANDLE RootDirectory; PUNICODE_STRING ObjectName; ULONG Attributes; PVOID SecurityDescriptor; PVOID SecurityQualityOfService; } OBJECT_ATTRIBUTES, *POBJECT_ATTRIBUTES; typedef struct _OBJECT_DATA_INFORMATION { BOOLEAN InheritHandle; BOOLEAN ProtectFromClose; } OBJECT_DATA_INFORMATION, *POBJECT_DATA_INFORMATION; typedef struct _OBJECT_BASIC_INFORMATION { ULONG Attributes; ACCESS_MASK GrantedAccess; ULONG HandleCount; ULONG PointerCount; ULONG PagedPoolUsage; ULONG NonPagedPoolUsage; ULONG Reserved[3]; ULONG NameInformationLength; ULONG TypeInformationLength; ULONG SecurityDescriptorLength; LARGE_INTEGER CreateTime; } OBJECT_BASIC_INFORMATION, *POBJECT_BASIC_INFORMATION; typedef struct _OBJECT_NAME_INFORMATION { UNICODE_STRING Name; } OBJECT_NAME_INFORMATION, *POBJECT_NAME_INFORMATION; typedef struct __OBJECT_TYPE_INFORMATION { UNICODE_STRING TypeName; ULONG Reserved [22]; } OBJECT_TYPE_INFORMATION, *POBJECT_TYPE_INFORMATION; typedef struct _PROCESS_BASIC_INFORMATION { DWORD_PTR ExitStatus; PPEB PebBaseAddress; DWORD_PTR AffinityMask; DWORD_PTR BasePriority; ULONG_PTR UniqueProcessId; ULONG_PTR InheritedFromUniqueProcessId; } PROCESS_BASIC_INFORMATION, *PPROCESS_BASIC_INFORMATION; # 1072 "../../include/winternl.h" typedef struct _PROCESS_PRIORITY_CLASS { BOOLEAN Foreground; UCHAR PriorityClass; } PROCESS_PRIORITY_CLASS, *PPROCESS_PRIORITY_CLASS; typedef struct _RTL_HEAP_DEFINITION { ULONG Length; ULONG Unknown[11]; } RTL_HEAP_DEFINITION, *PRTL_HEAP_DEFINITION; typedef struct _RTL_RWLOCK { RTL_CRITICAL_SECTION rtlCS; HANDLE hSharedReleaseSemaphore; UINT uSharedWaiters; HANDLE hExclusiveReleaseSemaphore; UINT uExclusiveWaiters; INT iNumberActive; HANDLE hOwningThreadId; DWORD dwTimeoutBoost; PVOID pDebugInfo; } RTL_RWLOCK, *LPRTL_RWLOCK; typedef struct _SYSTEM_BASIC_INFORMATION { DWORD unknown; ULONG KeMaximumIncrement; ULONG PageSize; ULONG MmNumberOfPhysicalPages; ULONG MmLowestPhysicalPage; ULONG MmHighestPhysicalPage; ULONG_PTR AllocationGranularity; PVOID LowestUserAddress; PVOID HighestUserAddress; ULONG_PTR ActiveProcessorsAffinityMask; BYTE NumberOfProcessors; } SYSTEM_BASIC_INFORMATION, *PSYSTEM_BASIC_INFORMATION; typedef struct _SYSTEM_CPU_INFORMATION { WORD Architecture; WORD Level; WORD Revision; WORD Reserved; DWORD FeatureSet; } SYSTEM_CPU_INFORMATION, *PSYSTEM_CPU_INFORMATION; # 1153 "../../include/winternl.h" typedef struct _SYSTEM_PERFORMANCE_INFORMATION { LARGE_INTEGER IdleTime; LARGE_INTEGER ReadTransferCount; LARGE_INTEGER WriteTransferCount; LARGE_INTEGER OtherTransferCount; ULONG ReadOperationCount; ULONG WriteOperationCount; ULONG OtherOperationCount; ULONG AvailablePages; ULONG TotalCommittedPages; ULONG TotalCommitLimit; ULONG PeakCommitment; ULONG PageFaults; ULONG WriteCopyFaults; ULONG TransitionFaults; ULONG Reserved1; ULONG DemandZeroFaults; ULONG PagesRead; ULONG PageReadIos; ULONG Reserved2[2]; ULONG PagefilePagesWritten; ULONG PagefilePageWriteIos; ULONG MappedFilePagesWritten; ULONG MappedFilePageWriteIos; ULONG PagedPoolUsage; ULONG NonPagedPoolUsage; ULONG PagedPoolAllocs; ULONG PagedPoolFrees; ULONG NonPagedPoolAllocs; ULONG NonPagedPoolFrees; ULONG TotalFreeSystemPtes; ULONG SystemCodePage; ULONG TotalSystemDriverPages; ULONG TotalSystemCodePages; ULONG SmallNonPagedLookasideListAllocateHits; ULONG SmallPagedLookasideListAllocateHits; ULONG Reserved3; ULONG MmSystemCachePage; ULONG PagedPoolPage; ULONG SystemDriverPage; ULONG FastReadNoWait; ULONG FastReadWait; ULONG FastReadResourceMiss; ULONG FastReadNotPossible; ULONG FastMdlReadNoWait; ULONG FastMdlReadWait; ULONG FastMdlReadResourceMiss; ULONG FastMdlReadNotPossible; ULONG MapDataNoWait; ULONG MapDataWait; ULONG MapDataNoWaitMiss; ULONG MapDataWaitMiss; ULONG PinMappedDataCount; ULONG PinReadNoWait; ULONG PinReadWait; ULONG PinReadNoWaitMiss; ULONG PinReadWaitMiss; ULONG CopyReadNoWait; ULONG CopyReadWait; ULONG CopyReadNoWaitMiss; ULONG CopyReadWaitMiss; ULONG MdlReadNoWait; ULONG MdlReadWait; ULONG MdlReadNoWaitMiss; ULONG MdlReadWaitMiss; ULONG ReadAheadIos; ULONG LazyWriteIos; ULONG LazyWritePages; ULONG DataFlushes; ULONG DataPages; ULONG ContextSwitches; ULONG FirstLevelTbFills; ULONG SecondLevelTbFills; ULONG SystemCalls; } SYSTEM_PERFORMANCE_INFORMATION, *PSYSTEM_PERFORMANCE_INFORMATION; typedef struct _SYSTEM_TIMEOFDAY_INFORMATION { LARGE_INTEGER liKeBootTime; LARGE_INTEGER liKeSystemTime; LARGE_INTEGER liExpTimeZoneBias; ULONG uCurrentTimeZoneId; DWORD dwUnknown1[5]; } SYSTEM_TIMEOFDAY_INFORMATION, *PSYSTEM_TIMEOFDAY_INFORMATION; typedef struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION { LARGE_INTEGER IdleTime; LARGE_INTEGER KernelTime; LARGE_INTEGER UserTime; LARGE_INTEGER Reserved1[2]; ULONG Reserved2; } SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION, *PSYSTEM_PROCESSOR_PERFORMANCE_INFORMATION; typedef struct _SYSTEM_DRIVER_INFORMATION { PVOID pvAddress; DWORD dwUnknown1; DWORD dwUnknown2; DWORD dwEntryIndex; DWORD dwUnknown3; char szName[260 + 1]; } SYSTEM_DRIVER_INFORMATION, *PSYSTEM_DRIVER_INFORMATION; typedef struct _SYSTEM_HANDLE_ENTRY { ULONG OwnerPid; BYTE ObjectType; BYTE HandleFlags; USHORT HandleValue; PVOID ObjectPointer; ULONG AccessMask; } SYSTEM_HANDLE_ENTRY, *PSYSTEM_HANDLE_ENTRY; typedef struct _SYSTEM_HANDLE_INFORMATION { ULONG Count; SYSTEM_HANDLE_ENTRY Handle[1]; } SYSTEM_HANDLE_INFORMATION, *PSYSTEM_HANDLE_INFORMATION; typedef struct _SYSTEM_CACHE_INFORMATION { ULONG CurrentSize; ULONG PeakSize; ULONG PageFaultCount; } SYSTEM_CACHE_INFORMATION, *PSYSTEM_CACHE_INFORMATION; typedef struct _SYSTEM_INTERRUPT_INFORMATION { BYTE Reserved1[24]; } SYSTEM_INTERRUPT_INFORMATION, *PSYSTEM_INTERRUPT_INFORMATION; typedef struct _SYSTEM_CONFIGURATION_INFO { union { ULONG OemId; struct { WORD ProcessorArchitecture; WORD Reserved; } tag1; } tag2; ULONG PageSize; PVOID MinimumApplicationAddress; PVOID MaximumApplicationAddress; ULONG ActiveProcessorMask; ULONG NumberOfProcessors; ULONG ProcessorType; ULONG AllocationGranularity; WORD ProcessorLevel; WORD ProcessorRevision; } SYSTEM_CONFIGURATION_INFO, *PSYSTEM_CONFIGURATION_INFO; typedef struct _SYSTEM_EXCEPTION_INFORMATION { BYTE Reserved1[16]; } SYSTEM_EXCEPTION_INFORMATION, *PSYSTEM_EXCEPTION_INFORMATION; typedef struct _SYSTEM_LOOKASIDE_INFORMATION { BYTE Reserved1[32]; } SYSTEM_LOOKASIDE_INFORMATION, *PSYSTEM_LOOKASIDE_INFORMATION; typedef struct _SYSTEM_KERNEL_DEBUGGER_INFORMATION { BOOLEAN DebuggerEnabled; BOOLEAN DebuggerNotPresent; } SYSTEM_KERNEL_DEBUGGER_INFORMATION, *PSYSTEM_KERNEL_DEBUGGER_INFORMATION; typedef struct _VM_COUNTERS_ { SIZE_T PeakVirtualSize; SIZE_T VirtualSize; ULONG PageFaultCount; SIZE_T PeakWorkingSetSize; SIZE_T WorkingSetSize; SIZE_T QuotaPeakPagedPoolUsage; SIZE_T QuotaPagedPoolUsage; SIZE_T QuotaPeakNonPagedPoolUsage; SIZE_T QuotaNonPagedPoolUsage; SIZE_T PagefileUsage; SIZE_T PeakPagefileUsage; SIZE_T PrivatePageCount; } VM_COUNTERS, *PVM_COUNTERS; typedef struct _SYSTEM_PROCESS_INFORMATION { ULONG NextEntryOffset; DWORD dwThreadCount; DWORD dwUnknown1[6]; LARGE_INTEGER CreationTime; LARGE_INTEGER UserTime; LARGE_INTEGER KernelTime; UNICODE_STRING ProcessName; DWORD dwBasePriority; HANDLE UniqueProcessId; HANDLE ParentProcessId; ULONG HandleCount; DWORD dwUnknown3; DWORD dwUnknown4; VM_COUNTERS vmCounters; IO_COUNTERS ioCounters; SYSTEM_THREAD_INFORMATION ti[1]; # 1379 "../../include/winternl.h" } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION; typedef struct _SYSTEM_REGISTRY_QUOTA_INFORMATION { ULONG RegistryQuotaAllowed; ULONG RegistryQuotaUsed; PVOID Reserved1; } SYSTEM_REGISTRY_QUOTA_INFORMATION, *PSYSTEM_REGISTRY_QUOTA_INFORMATION; typedef struct _SYSTEM_TIME_ADJUSTMENT { ULONG TimeAdjustment; BOOLEAN TimeAdjustmentDisabled; } SYSTEM_TIME_ADJUSTMENT, *PSYSTEM_TIME_ADJUSTMENT; typedef struct _TIME_FIELDS { CSHORT Year; CSHORT Month; CSHORT Day; CSHORT Hour; CSHORT Minute; CSHORT Second; CSHORT Milliseconds; CSHORT Weekday; } TIME_FIELDS, *PTIME_FIELDS; typedef struct _WINSTATIONINFORMATIONW { BYTE Reserved2[70]; ULONG LogonId; BYTE Reserved3[1140]; } WINSTATIONINFORMATIONW, *PWINSTATIONINFORMATIONW; typedef BOOLEAN (__attribute__((ms_abi)) * PWINSTATIONQUERYINFORMATIONW)(HANDLE,ULONG,WINSTATIONINFOCLASS,PVOID,ULONG,PULONG); typedef struct _LDR_RESOURCE_INFO { ULONG_PTR Type; ULONG_PTR Name; ULONG Language; } LDR_RESOURCE_INFO, *PLDR_RESOURCE_INFO; typedef struct _DEBUG_BUFFER { HANDLE SectionHandle; PVOID SectionBase; PVOID RemoteSectionBase; ULONG SectionBaseDelta; HANDLE EventPairHandle; ULONG Unknown[2]; HANDLE RemoteThreadHandle; ULONG InfoClassMask; ULONG SizeOfInfo; ULONG AllocatedSize; ULONG SectionSize; PVOID ModuleInformation; PVOID BackTraceInformation; PVOID HeapInformation; PVOID LockInformation; PVOID Reserved[8]; } DEBUG_BUFFER, *PDEBUG_BUFFER; # 1447 "../../include/winternl.h" typedef struct _DEBUG_MODULE_INFORMATION { ULONG Reserved[2]; ULONG Base; ULONG Size; ULONG Flags; USHORT Index; USHORT Unknown; USHORT LoadCount; USHORT ModuleNameOffset; CHAR ImageName[256]; } DEBUG_MODULE_INFORMATION, *PDEBUG_MODULE_INFORMATION; typedef struct _DEBUG_HEAP_INFORMATION { ULONG Base; ULONG Flags; USHORT Granularity; USHORT Unknown; ULONG Allocated; ULONG Committed; ULONG TagCount; ULONG BlockCount; ULONG Reserved[7]; PVOID Tags; PVOID Blocks; } DEBUG_HEAP_INFORMATION, *PDEBUG_HEAP_INFORMATION; typedef struct _DEBUG_LOCK_INFORMATION { PVOID Address; USHORT Type; USHORT CreatorBackTraceIndex; ULONG OwnerThreadId; ULONG ActiveCount; ULONG ContentionCount; ULONG EntryCount; ULONG RecursionCount; ULONG NumberOfSharedWaiters; ULONG NumberOfExclusiveWaiters; } DEBUG_LOCK_INFORMATION, *PDEBUG_LOCK_INFORMATION; typedef struct _PORT_MESSAGE_HEADER { USHORT DataSize; USHORT MessageSize; USHORT MessageType; USHORT VirtualRangesOffset; CLIENT_ID ClientId; ULONG MessageId; ULONG SectionSize; } PORT_MESSAGE_HEADER, *PPORT_MESSAGE_HEADER, PORT_MESSAGE, *PPORT_MESSAGE; typedef unsigned short RTL_ATOM, *PRTL_ATOM; typedef struct atom_table *RTL_ATOM_TABLE, **PRTL_ATOM_TABLE; typedef enum _ATOM_INFORMATION_CLASS { AtomBasicInformation = 0, AtomTableInformation = 1, } ATOM_INFORMATION_CLASS; typedef struct _ATOM_BASIC_INFORMATION { USHORT ReferenceCount; USHORT Pinned; USHORT NameLength; WCHAR Name[1]; } ATOM_BASIC_INFORMATION, *PATOM_BASIC_INFORMATION; typedef struct _RTL_HANDLE { struct _RTL_HANDLE * Next; } RTL_HANDLE; typedef struct _RTL_HANDLE_TABLE { ULONG MaxHandleCount; ULONG HandleSize; ULONG Unused[2]; PVOID NextFree; PVOID FirstHandle; PVOID ReservedMemory; PVOID MaxHandle; } RTL_HANDLE_TABLE; # 1618 "../../include/winternl.h" typedef void (__attribute__((ms_abi)) *PNTAPCFUNC)(ULONG_PTR,ULONG_PTR,ULONG_PTR); typedef void (__attribute__((ms_abi)) *PRTL_THREAD_START_ROUTINE)(LPVOID); typedef DWORD (__attribute__((ms_abi)) *PRTL_WORK_ITEM_ROUTINE)(LPVOID); typedef void (__attribute__((ms_abi)) *RTL_WAITORTIMERCALLBACKFUNC)(PVOID,BOOLEAN); # 1717 "../../include/winternl.h" typedef NTSTATUS (__attribute__((ms_abi)) *PRTL_QUERY_REGISTRY_ROUTINE)( PCWSTR ValueName, ULONG ValueType, PVOID ValueData, ULONG ValueLength, PVOID Context, PVOID EntryContext); typedef struct _RTL_QUERY_REGISTRY_TABLE { PRTL_QUERY_REGISTRY_ROUTINE QueryRoutine; ULONG Flags; PWSTR Name; PVOID EntryContext; ULONG DefaultType; PVOID DefaultData; ULONG DefaultLength; } RTL_QUERY_REGISTRY_TABLE, *PRTL_QUERY_REGISTRY_TABLE; typedef struct _KEY_MULTIPLE_VALUE_INFORMATION { PUNICODE_STRING ValueName; ULONG DataLength; ULONG DataOffset; ULONG Type; } KEY_MULTIPLE_VALUE_INFORMATION, *PKEY_MULTIPLE_VALUE_INFORMATION; typedef void (__attribute__((ms_abi)) *PRTL_OVERLAPPED_COMPLETION_ROUTINE)(DWORD,DWORD,LPVOID); typedef void (__attribute__((ms_abi)) *PTIMER_APC_ROUTINE) ( PVOID, ULONG, LONG ); typedef enum _EVENT_TYPE { NotificationEvent, SynchronizationEvent } EVENT_TYPE, *PEVENT_TYPE; typedef enum _EVENT_INFORMATION_CLASS { EventBasicInformation } EVENT_INFORMATION_CLASS, *PEVENT_INFORMATION_CLASS; typedef struct _EVENT_BASIC_INFORMATION { EVENT_TYPE EventType; LONG EventState; } EVENT_BASIC_INFORMATION, *PEVENT_BASIC_INFORMATION; typedef enum _SEMAPHORE_INFORMATION_CLASS { SemaphoreBasicInformation } SEMAPHORE_INFORMATION_CLASS, *PSEMAPHORE_INFORMATION_CLASS; typedef struct _SEMAPHORE_BASIC_INFORMATION { ULONG CurrentCount; ULONG MaximumCount; } SEMAPHORE_BASIC_INFORMATION, *PSEMAPHORE_BASIC_INFORMATION; typedef enum _SECTION_INFORMATION_CLASS { SectionBasicInformation, SectionImageInformation, } SECTION_INFORMATION_CLASS; typedef struct _SECTION_BASIC_INFORMATION { ULONG BaseAddress; ULONG Attributes; LARGE_INTEGER Size; } SECTION_BASIC_INFORMATION, *PSECTION_BASIC_INFORMATION; typedef struct _SECTION_IMAGE_INFORMATION { PVOID EntryPoint; ULONG StackZeroBits; ULONG StackReserved; ULONG StackCommit; ULONG ImageSubsystem; WORD SubsystemVersionLow; WORD SubsystemVersionHigh; ULONG Unknown1; ULONG ImageCharacteristics; ULONG ImageMachineType; ULONG Unknown2[3]; } SECTION_IMAGE_INFORMATION, *PSECTION_IMAGE_INFORMATION; typedef struct _LPC_SECTION_WRITE { ULONG Length; HANDLE SectionHandle; ULONG SectionOffset; ULONG ViewSize; PVOID ViewBase; PVOID TargetViewBase; } LPC_SECTION_WRITE, *PLPC_SECTION_WRITE; typedef struct _LPC_SECTION_READ { ULONG Length; ULONG ViewSize; PVOID ViewBase; } LPC_SECTION_READ, *PLPC_SECTION_READ; typedef struct _LPC_MESSAGE { USHORT DataSize; USHORT MessageSize; USHORT MessageType; USHORT VirtualRangesOffset; CLIENT_ID ClientId; ULONG_PTR MessageId; ULONG_PTR SectionSize; UCHAR Data[1]; } LPC_MESSAGE, *PLPC_MESSAGE; typedef enum _SHUTDOWN_ACTION { ShutdownNoReboot, ShutdownReboot, ShutdownPowerOff } SHUTDOWN_ACTION, *PSHUTDOWN_ACTION; typedef enum _KPROFILE_SOURCE { ProfileTime, ProfileAlignmentFixup, ProfileTotalIssues, ProfilePipelineDry, ProfileLoadInstructions, ProfilePipelineFrozen, ProfileBranchInstructions, ProfileTotalNonissues, ProfileDcacheMisses, ProfileIcacheMisses, ProfileCacheMisses, ProfileBranchMispredictions, ProfileStoreInstructions, ProfileFpInstructions, ProfileIntegerInstructions, Profile2Issue, Profile3Issue, Profile4Issue, ProfileSpecialInstructions, ProfileTotalCycles, ProfileIcacheIssues, ProfileDcacheAccesses, ProfileMemoryBarrierCycles, ProfileLoadLinkedIssues, ProfileMaximum } KPROFILE_SOURCE, *PKPROFILE_SOURCE; typedef struct _DIRECTORY_BASIC_INFORMATION { UNICODE_STRING ObjectName; UNICODE_STRING ObjectTypeName; } DIRECTORY_BASIC_INFORMATION, *PDIRECTORY_BASIC_INFORMATION; typedef struct _INITIAL_TEB { PVOID StackBase; PVOID StackLimit; PVOID StackCommit; PVOID StackCommitMax; PVOID StackReserved; } INITIAL_TEB, *PINITIAL_TEB; typedef enum _PORT_INFORMATION_CLASS { PortNoInformation } PORT_INFORMATION_CLASS, *PPORT_INFORMATION_CLASS; typedef enum _IO_COMPLETION_INFORMATION_CLASS { IoCompletionBasicInformation } IO_COMPLETION_INFORMATION_CLASS, *PIO_COMPLETION_INFORMATION_CLASS; typedef struct _FILE_COMPLETION_INFORMATION { HANDLE CompletionPort; ULONG_PTR CompletionKey; } FILE_COMPLETION_INFORMATION, *PFILE_COMPLETION_INFORMATION; typedef enum _HARDERROR_RESPONSE_OPTION { OptionAbortRetryIgnore, OptionOk, OptionOkCancel, OptionRetryCancel, OptionYesNo, OptionYesNoCancel, OptionShutdownSystem } HARDERROR_RESPONSE_OPTION, *PHARDERROR_RESPONSE_OPTION; typedef enum _HARDERROR_RESPONSE { ResponseReturnToCaller, ResponseNotHandled, ResponseAbort, ResponseCancel, ResponseIgnore, ResponseNo, ResponseOk, ResponseRetry, ResponseYes } HARDERROR_RESPONSE, *PHARDERROR_RESPONSE; typedef enum _SYSDBG_COMMAND { SysDbgQueryModuleInformation, SysDbgQueryTraceInformation, SysDbgSetTracepoint, SysDbgSetSpecialCall, SysDbgClearSpecialCalls, SysDbgQuerySpecialCalls, SysDbgBreakPoint, SysDbgQueryVersion, SysDbgReadVirtual, SysDbgWriteVirtual, SysDbgReadPhysical, SysDbgWritePhysical, SysDbgReadControlSpace, SysDbgWriteControlSpace, SysDbgReadIoSpace, SysDbgWriteIoSpace, SysDbgReadMsr, SysDbgWriteMsr, SysDbgReadBusData, SysDbgWriteBusData } SYSDBG_COMMAND, *PSYSDBG_COMMAND; typedef struct _LDR_MODULE { LIST_ENTRY InLoadOrderModuleList; LIST_ENTRY InMemoryOrderModuleList; LIST_ENTRY InInitializationOrderModuleList; void* BaseAddress; void* EntryPoint; ULONG SizeOfImage; UNICODE_STRING FullDllName; UNICODE_STRING BaseDllName; ULONG Flags; SHORT LoadCount; SHORT TlsIndex; HANDLE SectionHandle; ULONG CheckSum; ULONG TimeDateStamp; HANDLE ActivationContext; } LDR_MODULE, *PLDR_MODULE; # 1971 "../../include/winternl.h" typedef struct _SYSTEM_MODULE { PVOID Reserved1; PVOID Reserved2; PVOID ImageBaseAddress; ULONG ImageSize; ULONG Flags; WORD Id; WORD Rank; WORD Unknown; WORD NameOffset; BYTE Name[256]; } SYSTEM_MODULE, *PSYSTEM_MODULE; typedef struct _SYSTEM_MODULE_INFORMATION { ULONG ModulesCount; SYSTEM_MODULE Modules[1]; } SYSTEM_MODULE_INFORMATION, *PSYSTEM_MODULE_INFORMATION; # 1999 "../../include/winternl.h" __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) DbgBreakPoint(void); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) DbgUserBreakPoint(void); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) DbgPrint(LPCSTR fmt, ...); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) DbgPrintEx(ULONG iComponentId, ULONG Level, LPCSTR fmt, ...); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrAccessResource(HMODULE,const IMAGE_RESOURCE_DATA_ENTRY*,void**,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrAddRefDll(ULONG,HMODULE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrFindResourceDirectory_U(HMODULE,const LDR_RESOURCE_INFO*,ULONG,const IMAGE_RESOURCE_DIRECTORY**); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrFindResource_U(HMODULE,const LDR_RESOURCE_INFO*,ULONG,const IMAGE_RESOURCE_DATA_ENTRY**); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrDisableThreadCalloutsForDll(HMODULE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrFindEntryForAddress(const void*, PLDR_MODULE*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrGetDllHandle(LPCWSTR, ULONG, const UNICODE_STRING*, HMODULE*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrGetProcedureAddress(HMODULE, const ANSI_STRING*, ULONG, void**); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) LdrInitializeThunk(void*,ULONG_PTR,ULONG_PTR,ULONG_PTR); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrLoadDll(LPCWSTR, DWORD, const UNICODE_STRING*, HMODULE*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrLockLoaderLock(ULONG,ULONG*,ULONG*); IMAGE_BASE_RELOCATION * __attribute__((ms_abi)) LdrProcessRelocationBlock(void*,UINT,USHORT*,INT_PTR); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrQueryImageFileExecutionOptions(const UNICODE_STRING*,LPCWSTR,ULONG,void*,ULONG,ULONG*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrQueryProcessModuleInformation(SYSTEM_MODULE_INFORMATION*, ULONG, ULONG*); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) LdrShutdownProcess(void); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) LdrShutdownThread(void); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrUnloadDll(HMODULE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) LdrUnlockLoaderLock(ULONG,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAcceptConnectPort(PHANDLE,ULONG,PLPC_MESSAGE,BOOLEAN,PLPC_SECTION_WRITE,PLPC_SECTION_READ); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAccessCheck(PSECURITY_DESCRIPTOR,HANDLE,ACCESS_MASK,PGENERIC_MAPPING,PPRIVILEGE_SET,PULONG,PULONG,NTSTATUS*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAccessCheckAndAuditAlarm(PUNICODE_STRING,HANDLE,PUNICODE_STRING,PUNICODE_STRING,PSECURITY_DESCRIPTOR,ACCESS_MASK,PGENERIC_MAPPING,BOOLEAN,PACCESS_MASK,PBOOLEAN,PBOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAddAtom(const WCHAR*,ULONG,RTL_ATOM*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAdjustGroupsToken(HANDLE,BOOLEAN,PTOKEN_GROUPS,ULONG,PTOKEN_GROUPS,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAdjustPrivilegesToken(HANDLE,BOOLEAN,PTOKEN_PRIVILEGES,DWORD,PTOKEN_PRIVILEGES,PDWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAlertResumeThread(HANDLE,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAlertThread(HANDLE ThreadHandle); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAllocateLocallyUniqueId(PLUID lpLuid); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAllocateUuids(PULARGE_INTEGER,PULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAllocateVirtualMemory(HANDLE,PVOID*,ULONG,SIZE_T*,ULONG,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAreMappedFilesTheSame(PVOID,PVOID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtAssignProcessToJobObject(HANDLE,HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCallbackReturn(PVOID,ULONG,NTSTATUS); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCancelIoFile(HANDLE,PIO_STATUS_BLOCK); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCancelIoFileEx(HANDLE,PIO_STATUS_BLOCK,PIO_STATUS_BLOCK); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCancelTimer(HANDLE, BOOLEAN*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtClearEvent(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtClose(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCloseObjectAuditAlarm(PUNICODE_STRING,HANDLE,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCompleteConnectPort(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtConnectPort(PHANDLE,PUNICODE_STRING,PSECURITY_QUALITY_OF_SERVICE,PLPC_SECTION_WRITE,PLPC_SECTION_READ,PULONG,PVOID,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtContinue(PCONTEXT,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateDirectoryObject(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateEvent(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *,EVENT_TYPE,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateEventPair(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateFile(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,PLARGE_INTEGER,ULONG,ULONG,ULONG,ULONG,PVOID,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateIoCompletion(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateJobObject(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateKey(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG,const UNICODE_STRING*,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateMailslotFile(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,ULONG,ULONG,ULONG,PLARGE_INTEGER); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateMutant(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateNamedPipeFile(PHANDLE,ULONG,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,PLARGE_INTEGER); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreatePagingFile(PUNICODE_STRING,PLARGE_INTEGER,PLARGE_INTEGER,PLARGE_INTEGER); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreatePort(PHANDLE,POBJECT_ATTRIBUTES,ULONG,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateProcess(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,HANDLE,BOOLEAN,HANDLE,HANDLE,HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateProfile(PHANDLE,HANDLE,PVOID,ULONG,ULONG,PVOID,ULONG,KPROFILE_SOURCE,KAFFINITY); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateSection(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,const LARGE_INTEGER*,ULONG,ULONG,HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateSemaphore(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,LONG,LONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateSymbolicLinkObject(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PUNICODE_STRING); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateThread(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,HANDLE,PCLIENT_ID,PCONTEXT,PINITIAL_TEB,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateTimer(HANDLE*, ACCESS_MASK, const OBJECT_ATTRIBUTES*, TIMER_TYPE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtCreateToken(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,TOKEN_TYPE,PLUID,PLARGE_INTEGER,PTOKEN_USER,PTOKEN_GROUPS,PTOKEN_PRIVILEGES,PTOKEN_OWNER,PTOKEN_PRIMARY_GROUP,PTOKEN_DEFAULT_DACL,PTOKEN_SOURCE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtDelayExecution(BOOLEAN,const LARGE_INTEGER*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtDeleteAtom(RTL_ATOM); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtDeleteFile(POBJECT_ATTRIBUTES); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtDeleteKey(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtDeleteValueKey(HANDLE,const UNICODE_STRING *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtDeviceIoControlFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,PVOID,ULONG,PVOID,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtDisplayString(PUNICODE_STRING); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtDuplicateObject(HANDLE,HANDLE,HANDLE,PHANDLE,ACCESS_MASK,ULONG,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtDuplicateToken(HANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,SECURITY_IMPERSONATION_LEVEL,TOKEN_TYPE,PHANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtEnumerateKey(HANDLE,ULONG,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtEnumerateValueKey(HANDLE,ULONG,KEY_VALUE_INFORMATION_CLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtExtendSection(HANDLE,PLARGE_INTEGER); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtFindAtom(const WCHAR*,ULONG,RTL_ATOM*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtFlushBuffersFile(HANDLE,IO_STATUS_BLOCK*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtFlushInstructionCache(HANDLE,LPCVOID,SIZE_T); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtFlushKey(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtFlushVirtualMemory(HANDLE,LPCVOID*,SIZE_T*,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtFlushWriteBuffer(void); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtFreeVirtualMemory(HANDLE,PVOID*,SIZE_T*,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtFsControlFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,PVOID,ULONG,PVOID,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtGetContextThread(HANDLE,CONTEXT*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtGetPlugPlayEvent(ULONG,ULONG,PVOID,ULONG); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) NtGetTickCount(void); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtGetWriteWatch(HANDLE,ULONG,PVOID,SIZE_T,PVOID*,ULONG_PTR*,ULONG*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtImpersonateAnonymousToken(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtImpersonateClientOfPort(HANDLE,PPORT_MESSAGE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtImpersonateThread(HANDLE,HANDLE,PSECURITY_QUALITY_OF_SERVICE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtInitializeRegistry(BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtInitiatePowerAction(POWER_ACTION,SYSTEM_POWER_STATE,ULONG,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtIsProcessInJob(HANDLE,HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtListenPort(HANDLE,PLPC_MESSAGE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtLoadDriver(const UNICODE_STRING *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtLoadKey(const OBJECT_ATTRIBUTES *,OBJECT_ATTRIBUTES *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtLockFile(HANDLE,HANDLE,PIO_APC_ROUTINE,void*,PIO_STATUS_BLOCK,PLARGE_INTEGER,PLARGE_INTEGER,ULONG*,BOOLEAN,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtLockVirtualMemory(HANDLE,PVOID*,SIZE_T*,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtMakeTemporaryObject(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtMapViewOfSection(HANDLE,HANDLE,PVOID*,ULONG,SIZE_T,const LARGE_INTEGER*,SIZE_T*,SECTION_INHERIT,ULONG,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtNotifyChangeDirectoryFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,PVOID,ULONG,ULONG,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtNotifyChangeKey(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,BOOLEAN,PVOID,ULONG,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenDirectoryObject(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenEvent(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenEventPair(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenFile(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,ULONG,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenIoCompletion(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenJobObject(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenKey(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenMutant(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenObjectAuditAlarm(PUNICODE_STRING,PHANDLE,PUNICODE_STRING,PUNICODE_STRING,PSECURITY_DESCRIPTOR,HANDLE,ACCESS_MASK,ACCESS_MASK,PPRIVILEGE_SET,BOOLEAN,BOOLEAN,PBOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenProcess(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,const CLIENT_ID*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenProcessToken(HANDLE,DWORD,HANDLE *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenProcessTokenEx(HANDLE,DWORD,DWORD,HANDLE *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenSection(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenSemaphore(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenSymbolicLinkObject(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenThread(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,const CLIENT_ID*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenThreadToken(HANDLE,DWORD,BOOLEAN,HANDLE *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenThreadTokenEx(HANDLE,DWORD,BOOLEAN,DWORD,HANDLE *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtOpenTimer(HANDLE*, ACCESS_MASK, const OBJECT_ATTRIBUTES*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtPowerInformation(POWER_INFORMATION_LEVEL,PVOID,ULONG,PVOID,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtPrivilegeCheck(HANDLE,PPRIVILEGE_SET,PBOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtPrivilegeObjectAuditAlarm(PUNICODE_STRING,HANDLE,HANDLE,ULONG,PPRIVILEGE_SET,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtPrivilegedServiceAuditAlarm(PUNICODE_STRING,PUNICODE_STRING,HANDLE,PPRIVILEGE_SET,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtProtectVirtualMemory(HANDLE,PVOID*,SIZE_T*,ULONG,ULONG*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtPulseEvent(HANDLE,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueueApcThread(HANDLE,PNTAPCFUNC,ULONG_PTR,ULONG_PTR,ULONG_PTR); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryAttributesFile(const OBJECT_ATTRIBUTES*,FILE_BASIC_INFORMATION*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryDefaultLocale(BOOLEAN,LCID*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryDefaultUILanguage(LANGID*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryDirectoryFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,PVOID,ULONG,FILE_INFORMATION_CLASS,BOOLEAN,PUNICODE_STRING,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryDirectoryObject(HANDLE,PDIRECTORY_BASIC_INFORMATION,ULONG,BOOLEAN,BOOLEAN,PULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryEaFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,BOOLEAN,PVOID,ULONG,PULONG,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryEvent(HANDLE,EVENT_INFORMATION_CLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryFullAttributesFile(const OBJECT_ATTRIBUTES*,FILE_NETWORK_OPEN_INFORMATION*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryInformationAtom(RTL_ATOM,ATOM_INFORMATION_CLASS,PVOID,ULONG,ULONG*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,LONG,FILE_INFORMATION_CLASS); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryInformationJobObject(HANDLE,JOBOBJECTINFOCLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryInformationPort(HANDLE,PORT_INFORMATION_CLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryInformationProcess(HANDLE,PROCESSINFOCLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryInformationThread(HANDLE,THREADINFOCLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryInformationToken(HANDLE,TOKEN_INFORMATION_CLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryInstallUILanguage(LANGID*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryIntervalProfile(KPROFILE_SOURCE,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryIoCompletion(HANDLE,IO_COMPLETION_INFORMATION_CLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryKey(HANDLE,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryMultipleValueKey(HANDLE,PKEY_MULTIPLE_VALUE_INFORMATION,ULONG,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryMutant(HANDLE,MUTANT_INFORMATION_CLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryObject(HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG, PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryOpenSubKeys(POBJECT_ATTRIBUTES,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryPerformanceCounter(PLARGE_INTEGER, PLARGE_INTEGER); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQuerySecurityObject(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQuerySection(HANDLE,SECTION_INFORMATION_CLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQuerySemaphore(HANDLE,SEMAPHORE_INFORMATION_CLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQuerySymbolicLinkObject(HANDLE,PUNICODE_STRING,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQuerySystemEnvironmentValue(PUNICODE_STRING,PWCHAR,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQuerySystemTime(PLARGE_INTEGER); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryTimer(HANDLE,TIMER_INFORMATION_CLASS,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryTimerResolution(PULONG,PULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryValueKey(HANDLE,const UNICODE_STRING *,KEY_VALUE_INFORMATION_CLASS,void *,DWORD,DWORD *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryVirtualMemory(HANDLE,LPCVOID,MEMORY_INFORMATION_CLASS,PVOID,SIZE_T,SIZE_T*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtQueryVolumeInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,FS_INFORMATION_CLASS); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtRaiseException(PEXCEPTION_RECORD,PCONTEXT,BOOL); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtRaiseHardError(NTSTATUS,ULONG,PUNICODE_STRING,PVOID*,HARDERROR_RESPONSE_OPTION,PHARDERROR_RESPONSE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtReadFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,PVOID,ULONG,PLARGE_INTEGER,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtReadFileScatter(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,FILE_SEGMENT_ELEMENT*,ULONG,PLARGE_INTEGER,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtReadRequestData(HANDLE,PLPC_MESSAGE,ULONG,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtReadVirtualMemory(HANDLE,const void*,void*,SIZE_T,SIZE_T*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtRegisterThreadTerminatePort(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtReleaseMutant(HANDLE,PLONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtReleaseSemaphore(HANDLE,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtRemoveIoCompletion(HANDLE,PULONG_PTR,PULONG_PTR,PIO_STATUS_BLOCK,PLARGE_INTEGER); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtReplaceKey(POBJECT_ATTRIBUTES,HANDLE,POBJECT_ATTRIBUTES); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtReplyPort(HANDLE,PLPC_MESSAGE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtReplyWaitReceivePort(HANDLE,PULONG,PLPC_MESSAGE,PLPC_MESSAGE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtReplyWaitReceivePortEx(HANDLE,PVOID*,PPORT_MESSAGE,PPORT_MESSAGE,PLARGE_INTEGER); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtReplyWaitReplyPort(HANDLE,PLPC_MESSAGE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtRequestPort(HANDLE,PLPC_MESSAGE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtRequestWaitReplyPort(HANDLE,PLPC_MESSAGE,PLPC_MESSAGE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtResetEvent(HANDLE,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtResetWriteWatch(HANDLE,PVOID,SIZE_T); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtRestoreKey(HANDLE,HANDLE,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtResumeThread(HANDLE,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSaveKey(HANDLE,HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSecureConnectPort(PHANDLE,PUNICODE_STRING,PSECURITY_QUALITY_OF_SERVICE,PLPC_SECTION_WRITE,PSID,PLPC_SECTION_READ,PULONG,PVOID,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetContextThread(HANDLE,const CONTEXT*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetDefaultHardErrorPort(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetDefaultLocale(BOOLEAN,LCID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetDefaultUILanguage(LANGID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetEaFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetEvent(HANDLE,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetHighEventPair(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetHighWaitLowEventPair(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetHighWaitLowThread(void); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,FILE_INFORMATION_CLASS); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetInformationJobObject(HANDLE,JOBOBJECTINFOCLASS,PVOID,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetInformationKey(HANDLE,const int,PVOID,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetInformationObject(HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetInformationProcess(HANDLE,PROCESS_INFORMATION_CLASS,PVOID,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetInformationThread(HANDLE,THREADINFOCLASS,LPCVOID,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetInformationToken(HANDLE,TOKEN_INFORMATION_CLASS,PVOID,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetIntervalProfile(ULONG,KPROFILE_SOURCE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetIoCompletion(HANDLE,ULONG_PTR,ULONG_PTR,NTSTATUS,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetLdtEntries(ULONG,LDT_ENTRY,ULONG,LDT_ENTRY); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetLowEventPair(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetLowWaitHighEventPair(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetLowWaitHighThread(void); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetSecurityObject(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetSystemEnvironmentValue(PUNICODE_STRING,PUNICODE_STRING); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetSystemInformation(SYSTEM_INFORMATION_CLASS,PVOID,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetSystemPowerState(POWER_ACTION,SYSTEM_POWER_STATE,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetSystemTime(const LARGE_INTEGER*,LARGE_INTEGER*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetTimer(HANDLE, const LARGE_INTEGER*, PTIMER_APC_ROUTINE, PVOID, BOOLEAN, ULONG, BOOLEAN*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetTimerResolution(ULONG,BOOLEAN,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetValueKey(HANDLE,const UNICODE_STRING *,ULONG,ULONG,const void *,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSetVolumeInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,FS_INFORMATION_CLASS); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSignalAndWaitForSingleObject(HANDLE,HANDLE,BOOLEAN,const LARGE_INTEGER*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtShutdownSystem(SHUTDOWN_ACTION); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtStartProfile(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtStopProfile(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSuspendThread(HANDLE,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtSystemDebugControl(SYSDBG_COMMAND,PVOID,ULONG,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtTerminateJobObject(HANDLE,NTSTATUS); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtTerminateProcess(HANDLE,LONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtTerminateThread(HANDLE,LONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtTestAlert(void); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtUnloadDriver(const UNICODE_STRING *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtUnloadKey(POBJECT_ATTRIBUTES); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtUnloadKeyEx(POBJECT_ATTRIBUTES,HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtUnlockFile(HANDLE,PIO_STATUS_BLOCK,PLARGE_INTEGER,PLARGE_INTEGER,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtUnlockVirtualMemory(HANDLE,PVOID*,SIZE_T*,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtUnmapViewOfSection(HANDLE,PVOID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtVdmControl(ULONG,PVOID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtWaitForSingleObject(HANDLE,BOOLEAN,const LARGE_INTEGER*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtWaitForMultipleObjects(ULONG,const HANDLE*,BOOLEAN,BOOLEAN,const LARGE_INTEGER*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtWaitHighEventPair(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtWaitLowEventPair(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtWriteFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,const void*,ULONG,PLARGE_INTEGER,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtWriteFileGather(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,FILE_SEGMENT_ELEMENT*,ULONG,PLARGE_INTEGER,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtWriteRequestData(HANDLE,PLPC_MESSAGE,ULONG,PVOID,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtWriteVirtualMemory(HANDLE,void*,const void*,SIZE_T,SIZE_T*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) NtYieldExecution(void); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlAcquirePebLock(void); __attribute__((visibility ("hidden"))) BYTE __attribute__((ms_abi)) RtlAcquireResourceExclusive(LPRTL_RWLOCK,BYTE); __attribute__((visibility ("hidden"))) BYTE __attribute__((ms_abi)) RtlAcquireResourceShared(LPRTL_RWLOCK,BYTE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlActivateActivationContext(DWORD,HANDLE,ULONG_PTR*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAddAce(PACL,DWORD,DWORD,PACE_HEADER,DWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAddAccessAllowedAce(PACL,DWORD,DWORD,PSID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAddAccessAllowedAceEx(PACL,DWORD,DWORD,DWORD,PSID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAddAccessDeniedAce(PACL,DWORD,DWORD,PSID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAddAccessDeniedAceEx(PACL,DWORD,DWORD,DWORD,PSID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAddAtomToAtomTable(RTL_ATOM_TABLE,const WCHAR*,RTL_ATOM*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAddAuditAccessAce(PACL,DWORD,DWORD,PSID,BOOL,BOOL); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAddAuditAccessAceEx(PACL,DWORD,DWORD,DWORD,PSID,BOOL,BOOL); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlAddRefActivationContext(HANDLE); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) RtlAddVectoredExceptionHandler(ULONG,PVECTORED_EXCEPTION_HANDLER); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAdjustPrivilege(ULONG,BOOLEAN,BOOLEAN,PBOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *); __attribute__((visibility ("hidden"))) RTL_HANDLE * __attribute__((ms_abi)) RtlAllocateHandle(RTL_HANDLE_TABLE *,ULONG *); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) RtlAllocateHeap(HANDLE,ULONG,SIZE_T) __attribute__((__alloc_size__(3))); __attribute__((visibility ("hidden"))) WCHAR __attribute__((ms_abi)) RtlAnsiCharToUnicodeChar(LPSTR *); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) RtlAnsiStringToUnicodeSize(const STRING *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAnsiStringToUnicodeString(PUNICODE_STRING,PCANSI_STRING,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAppendAsciizToString(STRING *,LPCSTR); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAppendStringToString(STRING *,const STRING *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAppendUnicodeStringToString(UNICODE_STRING *,const UNICODE_STRING *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlAppendUnicodeToString(UNICODE_STRING *,LPCWSTR); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlAreAllAccessesGranted(ACCESS_MASK,ACCESS_MASK); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlAreAnyAccessesGranted(ACCESS_MASK,ACCESS_MASK); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlAreBitsSet(PCRTL_BITMAP,ULONG,ULONG); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlAreBitsClear(PCRTL_BITMAP,ULONG,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCharToInteger(PCSZ,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCheckRegistryKey(ULONG, PWSTR); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlClearAllBits(PRTL_BITMAP); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlClearBits(PRTL_BITMAP,ULONG,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCreateActivationContext(HANDLE*,const void*); __attribute__((visibility ("hidden"))) PDEBUG_BUFFER __attribute__((ms_abi)) RtlCreateQueryDebugBuffer(ULONG,BOOLEAN); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlCompactHeap(HANDLE,ULONG); __attribute__((visibility ("hidden"))) LONG __attribute__((ms_abi)) RtlCompareString(const STRING*,const STRING*,BOOLEAN); __attribute__((visibility ("hidden"))) LONG __attribute__((ms_abi)) RtlCompareUnicodeString(const UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCompressBuffer(USHORT,PUCHAR,ULONG,PUCHAR,ULONG,ULONG,PULONG,PVOID); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) RtlComputeCrc32(DWORD,const BYTE*,INT); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlConvertSidToUnicodeString(PUNICODE_STRING,PSID,BOOLEAN); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlCopyLuid(PLUID,const LUID*); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlCopyLuidAndAttributesArray(ULONG,const LUID_AND_ATTRIBUTES*,PLUID_AND_ATTRIBUTES); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlCopySid(DWORD,PSID,PSID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCopySecurityDescriptor(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlCopyString(STRING*,const STRING*); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlCopyUnicodeString(UNICODE_STRING*,const UNICODE_STRING*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCreateAcl(PACL,DWORD,DWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCreateAtomTable(ULONG,RTL_ATOM_TABLE*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCreateEnvironment(BOOLEAN, PWSTR*); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) RtlCreateHeap(ULONG,PVOID,SIZE_T,SIZE_T,PVOID,PRTL_HEAP_DEFINITION); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCreateProcessParameters(RTL_USER_PROCESS_PARAMETERS**,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,PWSTR,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCreateSecurityDescriptor(PSECURITY_DESCRIPTOR,DWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCreateTimerQueue(PHANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCreateTimer(PHANDLE, HANDLE, RTL_WAITORTIMERCALLBACKFUNC, PVOID, DWORD, DWORD, ULONG); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlCreateUnicodeString(PUNICODE_STRING,LPCWSTR); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlCreateUnicodeStringFromAsciiz(PUNICODE_STRING,LPCSTR); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlCreateUserThread(HANDLE,const SECURITY_DESCRIPTOR*,BOOLEAN,PVOID,SIZE_T,SIZE_T,PRTL_THREAD_START_ROUTINE,void*,HANDLE*,CLIENT_ID*); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlDeactivateActivationContext(DWORD,ULONG_PTR); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) RtlDecodePointer(PVOID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDecompressBuffer(USHORT,PUCHAR,ULONG,PUCHAR,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDeleteAce(PACL,DWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDeleteAtomFromAtomTable(RTL_ATOM_TABLE,RTL_ATOM); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDeleteCriticalSection(RTL_CRITICAL_SECTION *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDeleteRegistryValue(ULONG, PCWSTR, PCWSTR); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlDeleteResource(LPRTL_RWLOCK); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDeleteSecurityObject(PSECURITY_DESCRIPTOR*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDeleteTimer(HANDLE, HANDLE, HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDeleteTimerQueueEx(HANDLE, HANDLE); __attribute__((visibility ("hidden"))) PRTL_USER_PROCESS_PARAMETERS __attribute__((ms_abi)) RtlDeNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDeregisterWait(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDeregisterWaitEx(HANDLE,HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDestroyAtomTable(RTL_ATOM_TABLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDestroyEnvironment(PWSTR); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDestroyHandleTable(RTL_HANDLE_TABLE *); __attribute__((visibility ("hidden"))) HANDLE __attribute__((ms_abi)) RtlDestroyHeap(HANDLE); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlDestroyProcessParameters(RTL_USER_PROCESS_PARAMETERS*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDestroyQueryDebugBuffer(PDEBUG_BUFFER); __attribute__((visibility ("hidden"))) DOS_PATHNAME_TYPE __attribute__((ms_abi)) RtlDetermineDosPathNameType_U(PCWSTR); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlDllShutdownInProgress(void); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlDoesFileExists_U(LPCWSTR); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlDosPathNameToNtPathName_U(PCWSTR,PUNICODE_STRING,PWSTR*,CURDIR*); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlDosSearchPath_U(LPCWSTR, LPCWSTR, LPCWSTR, ULONG, LPWSTR, LPWSTR*); __attribute__((visibility ("hidden"))) WCHAR __attribute__((ms_abi)) RtlDowncaseUnicodeChar(WCHAR); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDowncaseUnicodeString(UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlDumpResource(LPRTL_RWLOCK); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlDuplicateUnicodeString(int,const UNICODE_STRING*,UNICODE_STRING*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlEmptyAtomTable(RTL_ATOM_TABLE,BOOLEAN); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) RtlEncodePointer(PVOID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlEnterCriticalSection(RTL_CRITICAL_SECTION *); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlEraseUnicodeString(UNICODE_STRING*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlEqualComputerName(const UNICODE_STRING*,const UNICODE_STRING*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlEqualDomainName(const UNICODE_STRING*,const UNICODE_STRING*); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlEqualLuid(const LUID*,const LUID*); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) RtlEqualPrefixSid(PSID,PSID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) RtlEqualSid(PSID,PSID); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlEqualString(const STRING*,const STRING*,BOOLEAN); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlEqualUnicodeString(const UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN); __attribute__((visibility ("hidden"))) void __attribute__((noreturn)) __attribute__((ms_abi)) RtlExitUserThread(ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlExpandEnvironmentStrings_U(PCWSTR, const UNICODE_STRING*, UNICODE_STRING*, ULONG*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlFindActivationContextSectionString(ULONG,const GUID*,ULONG,const UNICODE_STRING*,PVOID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlFindCharInUnicodeString(int,const UNICODE_STRING*,const UNICODE_STRING*,USHORT*); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlFindClearBits(PCRTL_BITMAP,ULONG,ULONG); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlFindClearBitsAndSet(PRTL_BITMAP,ULONG,ULONG); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlFindClearRuns(PCRTL_BITMAP,PRTL_BITMAP_RUN,ULONG,BOOLEAN); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlFindLastBackwardRunSet(PCRTL_BITMAP,ULONG,PULONG); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlFindLastBackwardRunClear(PCRTL_BITMAP,ULONG,PULONG); __attribute__((visibility ("hidden"))) CCHAR __attribute__((ms_abi)) RtlFindLeastSignificantBit(ULONGLONG); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlFindLongestRunSet(PCRTL_BITMAP,PULONG); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlFindLongestRunClear(PCRTL_BITMAP,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlFindMessage(HMODULE,ULONG,ULONG,ULONG,const MESSAGE_RESOURCE_ENTRY**); __attribute__((visibility ("hidden"))) CCHAR __attribute__((ms_abi)) RtlFindMostSignificantBit(ULONGLONG); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlFindNextForwardRunSet(PCRTL_BITMAP,ULONG,PULONG); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlFindNextForwardRunClear(PCRTL_BITMAP,ULONG,PULONG); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlFindSetBits(PCRTL_BITMAP,ULONG,ULONG); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlFindSetBitsAndClear(PRTL_BITMAP,ULONG,ULONG); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlFindSetRuns(PCRTL_BITMAP,PRTL_BITMAP_RUN,ULONG,BOOLEAN); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlFirstFreeAce(PACL,PACE_HEADER *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlFormatCurrentUserKeyPath(PUNICODE_STRING); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlFormatMessage(LPWSTR,UCHAR,BOOLEAN,BOOLEAN,BOOLEAN,__builtin_ms_va_list *,LPWSTR,ULONG); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlFreeAnsiString(PANSI_STRING); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlFreeHandle(RTL_HANDLE_TABLE *,RTL_HANDLE *); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlFreeHeap(HANDLE,ULONG,PVOID); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlFreeOemString(POEM_STRING); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) RtlFreeSid(PSID); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlFreeThreadActivationContextStack(void); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlFreeUnicodeString(PUNICODE_STRING); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlGetAce(PACL,DWORD,LPVOID *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlGetActiveActivationContext(HANDLE*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlGetCompressionWorkSpaceSize(USHORT,PULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlGetControlSecurityDescriptor(PSECURITY_DESCRIPTOR, PSECURITY_DESCRIPTOR_CONTROL,LPDWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlGetCurrentDirectory_U(ULONG, LPWSTR); __attribute__((visibility ("hidden"))) PEB * __attribute__((ms_abi)) RtlGetCurrentPeb(void); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlGetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR,PBOOLEAN,PACL *,PBOOLEAN); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlGetFullPathName_U(PCWSTR,ULONG,PWSTR,PWSTR*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlGetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR,PSID *,PBOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlGetLastNtStatus(void); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) RtlGetLastWin32Error(void); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) RtlGetLongestNtPathLength(void); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlGetNtGlobalFlags(void); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlGetNtProductType(LPDWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlGetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR,PSID *,PBOOLEAN); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlGetProcessHeaps(ULONG,HANDLE*); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) RtlGetThreadErrorMode(void); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlGetSaclSecurityDescriptor(PSECURITY_DESCRIPTOR,PBOOLEAN,PACL *,PBOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlGetVersion(RTL_OSVERSIONINFOEXW*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlGUIDFromString(PUNICODE_STRING,GUID*); __attribute__((visibility ("hidden"))) PSID_IDENTIFIER_AUTHORITY __attribute__((ms_abi)) RtlIdentifierAuthoritySid(PSID); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) RtlImageDirectoryEntryToData(HMODULE,BOOL,WORD,ULONG *); __attribute__((visibility ("hidden"))) PIMAGE_NT_HEADERS __attribute__((ms_abi)) RtlImageNtHeader(HMODULE); __attribute__((visibility ("hidden"))) PIMAGE_SECTION_HEADER __attribute__((ms_abi)) RtlImageRvaToSection(const IMAGE_NT_HEADERS *,HMODULE,DWORD); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) RtlImageRvaToVa(const IMAGE_NT_HEADERS *,HMODULE,DWORD,IMAGE_SECTION_HEADER **); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlImpersonateSelf(SECURITY_IMPERSONATION_LEVEL); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlInitString(PSTRING,PCSZ); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlInitAnsiString(PANSI_STRING,PCSZ); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlInitAnsiStringEx(PANSI_STRING,PCSZ); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlInitUnicodeString(PUNICODE_STRING,PCWSTR); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlInitUnicodeStringEx(PUNICODE_STRING,PCWSTR); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlInitializeCriticalSection(RTL_CRITICAL_SECTION *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlInitializeCriticalSectionAndSpinCount(RTL_CRITICAL_SECTION *,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlInitializeCriticalSectionEx(RTL_CRITICAL_SECTION *,ULONG,ULONG); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlInitializeBitMap(PRTL_BITMAP,PULONG,ULONG); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlInitializeHandleTable(ULONG,ULONG,RTL_HANDLE_TABLE *); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlInitializeResource(LPRTL_RWLOCK); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) RtlInitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlInt64ToUnicodeString(ULONGLONG,ULONG,UNICODE_STRING *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlIntegerToChar(ULONG,ULONG,ULONG,PCHAR); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlIntegerToUnicodeString(ULONG,ULONG,UNICODE_STRING *); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlIsActivationContextActive(HANDLE); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlIsDosDeviceName_U(PCWSTR); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlIsNameLegalDOS8Dot3(const UNICODE_STRING*,POEM_STRING,PBOOLEAN); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlIsTextUnicode(LPCVOID,INT,INT *); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlIsValidHandle(const RTL_HANDLE_TABLE *, const RTL_HANDLE *); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlIsValidIndexHandle(const RTL_HANDLE_TABLE *, ULONG Index, RTL_HANDLE **); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlLeaveCriticalSection(RTL_CRITICAL_SECTION *); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) RtlLengthRequiredSid(DWORD); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlLengthSecurityDescriptor(PSECURITY_DESCRIPTOR); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) RtlLengthSid(PSID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlLocalTimeToSystemTime(const LARGE_INTEGER*,PLARGE_INTEGER); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlLockHeap(HANDLE); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlLookupAtomInAtomTable(RTL_ATOM_TABLE,const WCHAR*,RTL_ATOM*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlMakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlMapGenericMask(PACCESS_MASK,const GENERIC_MAPPING*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlMultiByteToUnicodeN(LPWSTR,DWORD,LPDWORD,LPCSTR,DWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlMultiByteToUnicodeSize(DWORD*,LPCSTR,UINT); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlNewSecurityObject(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR*,BOOLEAN,HANDLE,PGENERIC_MAPPING); __attribute__((visibility ("hidden"))) PRTL_USER_PROCESS_PARAMETERS __attribute__((ms_abi)) RtlNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS*); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlNtStatusToDosError(NTSTATUS); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlNtStatusToDosErrorNoTeb(NTSTATUS); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlNumberOfSetBits(PCRTL_BITMAP); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlNumberOfClearBits(PCRTL_BITMAP); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) RtlOemStringToUnicodeSize(const STRING*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlOemStringToUnicodeString(UNICODE_STRING*,const STRING*,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlOemToUnicodeN(LPWSTR,DWORD,LPDWORD,LPCSTR,DWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlOpenCurrentUser(ACCESS_MASK,PHANDLE); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) RtlPcToFileHeader(PVOID,PVOID*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlPinAtomInAtomTable(RTL_ATOM_TABLE,RTL_ATOM); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlPrefixString(const STRING*,const STRING*,BOOLEAN); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlPrefixUnicodeString(const UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlQueryAtomInAtomTable(RTL_ATOM_TABLE,RTL_ATOM,ULONG*,ULONG*,WCHAR*,ULONG*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlQueryEnvironmentVariable_U(PWSTR,PUNICODE_STRING,PUNICODE_STRING); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlQueryHeapInformation(HANDLE,HEAP_INFORMATION_CLASS,PVOID,SIZE_T,PSIZE_T); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlQueryInformationAcl(PACL,LPVOID,DWORD,ACL_INFORMATION_CLASS); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlQueryInformationActivationContext(ULONG,HANDLE,PVOID,ULONG,PVOID,SIZE_T,SIZE_T*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlQueryProcessDebugInformation(ULONG,ULONG,PDEBUG_BUFFER); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlQueryRegistryValues(ULONG, PCWSTR, PRTL_QUERY_REGISTRY_TABLE, PVOID, PVOID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlQueryTimeZoneInformation(RTL_TIME_ZONE_INFORMATION*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlQueueWorkItem(PRTL_WORK_ITEM_ROUTINE,PVOID,ULONG); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlRaiseException(PEXCEPTION_RECORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlRaiseStatus(NTSTATUS); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlRandom(PULONG); __attribute__((visibility ("hidden"))) PVOID __attribute__((ms_abi)) RtlReAllocateHeap(HANDLE,ULONG,PVOID,SIZE_T); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlRegisterWait(PHANDLE,HANDLE,RTL_WAITORTIMERCALLBACKFUNC,PVOID,ULONG,ULONG); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlReleaseActivationContext(HANDLE); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlReleasePebLock(void); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlReleaseResource(LPRTL_RWLOCK); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlRemoveVectoredExceptionHandler(PVOID); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlRestoreLastWin32Error(DWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlSecondsSince1970ToTime(DWORD,LARGE_INTEGER *); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlSecondsSince1980ToTime(DWORD,LARGE_INTEGER *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlSelfRelativeToAbsoluteSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,PDWORD,PACL,PDWORD,PACL,PDWORD,PSID,PDWORD,PSID,PDWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlSetAllBits(PRTL_BITMAP); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlSetBits(PRTL_BITMAP,ULONG,ULONG); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlSetCriticalSectionSpinCount(RTL_CRITICAL_SECTION*,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlSetControlSecurityDescriptor(PSECURITY_DESCRIPTOR,SECURITY_DESCRIPTOR_CONTROL,SECURITY_DESCRIPTOR_CONTROL); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlSetCurrentDirectory_U(const UNICODE_STRING*); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlSetCurrentEnvironment(PWSTR, PWSTR*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlSetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR,BOOLEAN,PACL,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlSetEnvironmentVariable(PWSTR*,PUNICODE_STRING,PUNICODE_STRING); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlSetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR,PSID,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlSetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR,PSID,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlSetIoCompletionCallback(HANDLE,PRTL_OVERLAPPED_COMPLETION_ROUTINE,ULONG); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlSetLastWin32Error(DWORD); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlSetLastWin32ErrorAndNtStatusFromNtStatus(NTSTATUS); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlSetSaclSecurityDescriptor(PSECURITY_DESCRIPTOR,BOOLEAN,PACL,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlSetThreadErrorMode(DWORD,LPDWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlSetTimeZoneInformation(const RTL_TIME_ZONE_INFORMATION*); __attribute__((visibility ("hidden"))) SIZE_T __attribute__((ms_abi)) RtlSizeHeap(HANDLE,ULONG,const void*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlStringFromGUID(const GUID* const,PUNICODE_STRING); __attribute__((visibility ("hidden"))) LPDWORD __attribute__((ms_abi)) RtlSubAuthoritySid(PSID,DWORD); __attribute__((visibility ("hidden"))) LPBYTE __attribute__((ms_abi)) RtlSubAuthorityCountSid(PSID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlSystemTimeToLocalTime(const LARGE_INTEGER*,PLARGE_INTEGER); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlTimeToTimeFields(const LARGE_INTEGER*,PTIME_FIELDS); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlTimeFieldsToTime(PTIME_FIELDS,PLARGE_INTEGER); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlTimeToElapsedTimeFields(const LARGE_INTEGER *,PTIME_FIELDS); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlTimeToSecondsSince1970(const LARGE_INTEGER *,LPDWORD); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlTimeToSecondsSince1980(const LARGE_INTEGER *,LPDWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) RtlTryEnterCriticalSection(RTL_CRITICAL_SECTION *); __attribute__((visibility ("hidden"))) ULONGLONG __attribute__((ms_abi)) RtlUlonglongByteSwap(ULONGLONG); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) RtlUnicodeStringToAnsiSize(const UNICODE_STRING*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUnicodeStringToAnsiString(PANSI_STRING,PCUNICODE_STRING,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUnicodeStringToInteger(const UNICODE_STRING *,ULONG,ULONG *); __attribute__((visibility ("hidden"))) DWORD __attribute__((ms_abi)) RtlUnicodeStringToOemSize(const UNICODE_STRING*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUnicodeStringToOemString(POEM_STRING,PCUNICODE_STRING,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUnicodeToMultiByteN(LPSTR,DWORD,LPDWORD,LPCWSTR,DWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUnicodeToMultiByteSize(PULONG,PCWSTR,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUnicodeToOemN(LPSTR,DWORD,LPDWORD,LPCWSTR,DWORD); __attribute__((visibility ("hidden"))) ULONG __attribute__((ms_abi)) RtlUniform(PULONG); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlUnlockHeap(HANDLE); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlUnwind(PVOID,PVOID,PEXCEPTION_RECORD,PVOID); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlUnwindEx(PVOID,PVOID,PEXCEPTION_RECORD,PVOID,PCONTEXT,PUNWIND_HISTORY_TABLE); __attribute__((visibility ("hidden"))) WCHAR __attribute__((ms_abi)) RtlUpcaseUnicodeChar(WCHAR); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUpcaseUnicodeString(UNICODE_STRING*,const UNICODE_STRING *,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUpcaseUnicodeStringToAnsiString(STRING*,const UNICODE_STRING*,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUpcaseUnicodeStringToCountedOemString(STRING*,const UNICODE_STRING*,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUpcaseUnicodeStringToOemString(STRING*,const UNICODE_STRING*,BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUpcaseUnicodeToMultiByteN(LPSTR,DWORD,LPDWORD,LPCWSTR,DWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUpcaseUnicodeToOemN(LPSTR,DWORD,LPDWORD,LPCWSTR,DWORD); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlUpdateTimer(HANDLE, HANDLE, DWORD, DWORD); __attribute__((visibility ("hidden"))) CHAR __attribute__((ms_abi)) RtlUpperChar(CHAR); __attribute__((visibility ("hidden"))) void __attribute__((ms_abi)) RtlUpperString(STRING *,const STRING *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlValidSecurityDescriptor(PSECURITY_DESCRIPTOR); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlValidAcl(PACL); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlValidSid(PSID); __attribute__((visibility ("hidden"))) BOOLEAN __attribute__((ms_abi)) RtlValidateHeap(HANDLE,ULONG,LPCVOID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlVerifyVersionInfo(const RTL_OSVERSIONINFOEXW*,DWORD,DWORDLONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlWalkHeap(HANDLE,PVOID); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlWow64EnableFsRedirection(BOOLEAN); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlWow64EnableFsRedirectionEx(ULONG,ULONG*); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlWriteRegistryValue(ULONG,PCWSTR,PCWSTR,ULONG,PVOID,ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlpNtCreateKey(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG,const UNICODE_STRING*,ULONG,PULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlpNtEnumerateSubKey(HANDLE,UNICODE_STRING *, ULONG); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlpWaitForCriticalSection(RTL_CRITICAL_SECTION *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) RtlpUnWaitCriticalSection(RTL_CRITICAL_SECTION *); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) vDbgPrintEx(ULONG,ULONG,LPCSTR,__builtin_ms_va_list); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) vDbgPrintExWithPrefix(LPCSTR,ULONG,ULONG,LPCSTR,__builtin_ms_va_list); # 2562 "../../include/winternl.h" __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRING *unix_name_ret, UINT disposition, BOOLEAN check_case ); __attribute__((visibility ("hidden"))) NTSTATUS __attribute__((ms_abi)) wine_unix_to_nt_file_name( const ANSI_STRING *name, UNICODE_STRING *nt ); # 2591 "../../include/winternl.h" static inline BOOLEAN RtlCheckBit(PCRTL_BITMAP lpBits, ULONG ulBit) { if (lpBits && ulBit < lpBits->SizeOfBitMap && lpBits->Buffer[ulBit >> 5] & (1 << (ulBit & 31))) return 1; return 0; } static inline USHORT RtlUshortByteSwap(USHORT s) { return (s >> 8) | (s << 8); } static inline ULONG RtlUlongByteSwap(ULONG i) { return ((ULONG)RtlUshortByteSwap((USHORT)i) << 16) | RtlUshortByteSwap((USHORT)(i >> 16)); } static inline PLIST_ENTRY RemoveHeadList(PLIST_ENTRY le) { PLIST_ENTRY f, b, e; e = le->Flink; f = le->Flink->Flink; b = le->Flink->Blink; f->Blink = b; b->Flink = f; if (e != le) e->Flink = e->Blink = ((void *)0); return e; } static inline PLIST_ENTRY RemoveTailList(PLIST_ENTRY le) { PLIST_ENTRY f, b, e; e = le->Blink; f = le->Blink->Flink; b = le->Blink->Blink; f->Blink = b; b->Flink = f; if (e != le) e->Flink = e->Blink = ((void *)0); return e; } typedef struct { DWORD dpmi_vif; DWORD vm86_pending; } WINE_VM86_TEB_INFO; static inline WINE_VM86_TEB_INFO *get_vm86_teb_info(void) { return (WINE_VM86_TEB_INFO *)&NtCurrentTeb()->GdiTebBatch; } typedef struct { void *unknown; UNICODE_STRING *exe_name; UNICODE_STRING exe_str; CURDIR curdir; WCHAR curdir_buffer[260]; } WIN16_SUBSYSTEM_TIB; # 43 "file.c" 2 # 1 "msvcrt.h" 1 # 55 "msvcrt.h" typedef unsigned short MSVCRT_wchar_t; typedef unsigned short MSVCRT_wint_t; typedef unsigned short MSVCRT_wctype_t; typedef unsigned short MSVCRT__ino_t; typedef unsigned int MSVCRT__fsize_t; typedef int MSVCRT_long; typedef unsigned int MSVCRT_ulong; typedef unsigned long MSVCRT_size_t; typedef long MSVCRT_intptr_t; typedef unsigned long MSVCRT_uintptr_t; typedef unsigned int MSVCRT__dev_t; typedef int MSVCRT__off_t; typedef int MSVCRT_clock_t; typedef int MSVCRT___time32_t; typedef long __attribute__((aligned(8))) MSVCRT___time64_t; typedef long __attribute__((aligned(8))) MSVCRT_fpos_t; typedef int MSVCRT_mbstate_t; typedef void (*__attribute__((ms_abi)) MSVCRT_terminate_handler)(void); typedef void (*__attribute__((ms_abi)) MSVCRT_terminate_function)(void); typedef void (*__attribute__((ms_abi)) MSVCRT_unexpected_handler)(void); typedef void (*__attribute__((ms_abi)) MSVCRT_unexpected_function)(void); typedef void (*__attribute__((ms_abi)) MSVCRT__se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info); typedef void (*__attribute__((ms_abi)) MSVCRT__beginthread_start_routine_t)(void *); typedef unsigned int (__attribute__((ms_abi)) *MSVCRT__beginthreadex_start_routine_t)(void *); typedef int (*__attribute__((ms_abi)) MSVCRT__onexit_t)(void); typedef void (__attribute__((ms_abi)) *MSVCRT_invalid_parameter_handler)(const MSVCRT_wchar_t*, const MSVCRT_wchar_t*, const MSVCRT_wchar_t*, unsigned, MSVCRT_uintptr_t); typedef void (__attribute__((ms_abi)) *MSVCRT_purecall_handler)(void); typedef void (__attribute__((ms_abi)) *MSVCRT_security_error_handler)(int, void *); typedef struct {ULONG x80[3];} MSVCRT__LDOUBLE; struct MSVCRT_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; }; typedef struct MSVCRT_tagLC_ID { unsigned short wLanguage; unsigned short wCountry; unsigned short wCodePage; } MSVCRT_LC_ID, *MSVCRT_LPLC_ID; typedef struct MSVCRT_threadlocaleinfostruct { int refcount; unsigned int lc_codepage; unsigned int lc_collate_cp; MSVCRT_ulong lc_handle[6]; MSVCRT_LC_ID lc_id[6]; struct { char *locale; wchar_t *wlocale; int *refcount; int *wrefcount; } lc_category[6]; int lc_clike; int mb_cur_max; int *lconv_intl_refcount; int *lconv_num_refcount; int *lconv_mon_refcount; struct MSVCRT_lconv *lconv; int *ctype1_refcount; unsigned short *ctype1; unsigned short *pctype; unsigned char *pclmap; unsigned char *pcumap; struct MSVCRT___lc_time_data *lc_time_curr; } MSVCRT_threadlocinfo; typedef struct MSVCRT_threadmbcinfostruct { int refcount; int mbcodepage; int ismbcodepage; int mblcid; unsigned short mbulinfo[6]; char mbctype[257]; char mbcasemap[256]; } MSVCRT_threadmbcinfo; typedef struct MSVCRT_threadlocaleinfostruct *MSVCRT_pthreadlocinfo; typedef struct MSVCRT_threadmbcinfostruct *MSVCRT_pthreadmbcinfo; typedef struct MSVCRT_localeinfo_struct { MSVCRT_pthreadlocinfo locinfo; MSVCRT_pthreadmbcinfo mbcinfo; } MSVCRT__locale_tstruct, *MSVCRT__locale_t; extern DWORD msvcrt_tls_index; struct __thread_data { DWORD tid; HANDLE handle; int thread_errno; MSVCRT_ulong thread_doserrno; int unk1; unsigned int random_seed; char *strtok_next; MSVCRT_wchar_t *wcstok_next; unsigned char *mbstok_next; char *strerror_buffer; MSVCRT_wchar_t *wcserror_buffer; char *tmpnam_buffer; MSVCRT_wchar_t *wtmpnam_buffer; void *unk2[2]; char *asctime_buffer; MSVCRT_wchar_t *wasctime_buffer; struct MSVCRT_tm *time_buffer; char *efcvt_buffer; int unk3[2]; void *unk4[4]; int fpecode; MSVCRT_pthreadmbcinfo mbcinfo; MSVCRT_pthreadlocinfo locinfo; BOOL have_locale; int unk5[1]; MSVCRT_terminate_function terminate_handler; MSVCRT_unexpected_function unexpected_handler; MSVCRT__se_translator_function se_translator; void *unk6[3]; int unk7; EXCEPTION_RECORD *exc_record; void *unk8[100]; }; typedef struct __thread_data thread_data_t; extern thread_data_t *msvcrt_get_thread_data(void); extern int MSVCRT___lc_codepage; extern int MSVCRT___lc_collate_cp; extern int MSVCRT___mb_cur_max; extern WORD MSVCRT__ctype [257]; extern unsigned short *MSVCRT__pctype; void msvcrt_set_errno(int); void __attribute__((ms_abi)) _purecall(void); void __attribute__((ms_abi)) _amsg_exit(int errnum); extern char **MSVCRT__environ; extern MSVCRT_wchar_t **MSVCRT__wenviron; extern char ** msvcrt_SnapshotOfEnvironmentA(char **); extern MSVCRT_wchar_t ** msvcrt_SnapshotOfEnvironmentW(MSVCRT_wchar_t **); MSVCRT_wchar_t *msvcrt_wstrdupa(const char *); int __attribute__((ms_abi)) MSVCRT__set_new_mode(int mode); void* __attribute__((ms_abi)) MSVCRT_operator_new(MSVCRT_size_t); void __attribute__((ms_abi)) MSVCRT_operator_delete(void*); typedef void* (*__attribute__((ms_abi)) malloc_func_t)(MSVCRT_size_t); typedef void (*__attribute__((ms_abi)) free_func_t)(void*); extern char* __attribute__((ms_abi)) __unDName(char *,const char*,int,malloc_func_t,free_func_t,unsigned short int); extern char* __attribute__((ms_abi)) __unDNameEx(char *,const char*,int,malloc_func_t,free_func_t,void *,unsigned short int); extern void msvcrt_init_mt_locks(void); extern void msvcrt_free_mt_locks(void); extern BOOL msvcrt_init_locale(void); extern void msvcrt_init_math(void); extern void msvcrt_init_io(void); extern void msvcrt_free_io(void); extern void msvcrt_init_console(void); extern void msvcrt_free_console(void); extern void msvcrt_init_args(void); extern void msvcrt_free_args(void); extern void msvcrt_init_signals(void); extern void msvcrt_free_signals(void); extern unsigned msvcrt_create_io_inherit_block(WORD*, BYTE**); extern unsigned int __attribute__((ms_abi)) _control87(unsigned int, unsigned int); # 286 "msvcrt.h" struct MSVCRT___timeb32 { MSVCRT___time32_t time; unsigned short millitm; short timezone; short dstflag; }; struct MSVCRT___timeb64 { MSVCRT___time64_t time; unsigned short millitm; short timezone; short dstflag; }; struct MSVCRT__iobuf { char* _ptr; int _cnt; char* _base; int _flag; int _file; int _charbuf; int _bufsiz; char* _tmpfname; }; typedef struct MSVCRT__iobuf MSVCRT_FILE; struct MSVCRT_lconv { char* decimal_point; char* thousands_sep; char* grouping; char* int_curr_symbol; char* currency_symbol; char* mon_decimal_point; char* mon_thousands_sep; char* mon_grouping; char* positive_sign; char* negative_sign; char int_frac_digits; char frac_digits; char p_cs_precedes; char p_sep_by_space; char n_cs_precedes; char n_sep_by_space; char p_sign_posn; char n_sign_posn; }; struct MSVCRT__exception { int type; char* name; double arg1; double arg2; double retval; }; struct MSVCRT__complex { double x; double y; }; typedef struct MSVCRT__div_t { int quot; int rem; } MSVCRT_div_t; typedef struct MSVCRT__ldiv_t { MSVCRT_long quot; MSVCRT_long rem; } MSVCRT_ldiv_t; struct MSVCRT__heapinfo { int* _pentry; MSVCRT_size_t _size; int _useflag; }; # 379 "msvcrt.h" struct MSVCRT__SETJMP_FLOAT128 { unsigned long __attribute__((aligned(16))) Part[2]; }; struct MSVCRT___JUMP_BUFFER { unsigned long Frame; unsigned long Rbx; unsigned long Rsp; unsigned long Rbp; unsigned long Rsi; unsigned long Rdi; unsigned long R12; unsigned long R13; unsigned long R14; unsigned long R15; unsigned long Rip; unsigned long Spare; struct MSVCRT__SETJMP_FLOAT128 Xmm6; struct MSVCRT__SETJMP_FLOAT128 Xmm7; struct MSVCRT__SETJMP_FLOAT128 Xmm8; struct MSVCRT__SETJMP_FLOAT128 Xmm9; struct MSVCRT__SETJMP_FLOAT128 Xmm10; struct MSVCRT__SETJMP_FLOAT128 Xmm11; struct MSVCRT__SETJMP_FLOAT128 Xmm12; struct MSVCRT__SETJMP_FLOAT128 Xmm13; struct MSVCRT__SETJMP_FLOAT128 Xmm14; struct MSVCRT__SETJMP_FLOAT128 Xmm15; }; struct MSVCRT__diskfree_t { unsigned int total_clusters; unsigned int avail_clusters; unsigned int sectors_per_cluster; unsigned int bytes_per_sector; }; struct MSVCRT__finddata32_t { unsigned int attrib; MSVCRT___time32_t time_create; MSVCRT___time32_t time_access; MSVCRT___time32_t time_write; MSVCRT__fsize_t size; char name[260]; }; struct MSVCRT__finddata32i64_t { unsigned int attrib; MSVCRT___time32_t time_create; MSVCRT___time32_t time_access; MSVCRT___time32_t time_write; long __attribute__((aligned(8))) size; char name[260]; }; struct MSVCRT__finddata64i32_t { unsigned int attrib; MSVCRT___time64_t time_create; MSVCRT___time64_t time_access; MSVCRT___time64_t time_write; MSVCRT__fsize_t size; char name[260]; }; struct MSVCRT__finddata64_t { unsigned int attrib; MSVCRT___time64_t time_create; MSVCRT___time64_t time_access; MSVCRT___time64_t time_write; long __attribute__((aligned(8))) size; char name[260]; }; struct MSVCRT__wfinddata32_t { unsigned int attrib; MSVCRT___time32_t time_create; MSVCRT___time32_t time_access; MSVCRT___time32_t time_write; MSVCRT__fsize_t size; MSVCRT_wchar_t name[260]; }; struct MSVCRT__wfinddata32i64_t { unsigned int attrib; MSVCRT___time32_t time_create; MSVCRT___time32_t time_access; MSVCRT___time32_t time_write; long __attribute__((aligned(8))) size; MSVCRT_wchar_t name[260]; }; struct MSVCRT__wfinddata64i32_t { unsigned int attrib; MSVCRT___time64_t time_create; MSVCRT___time64_t time_access; MSVCRT___time64_t time_write; MSVCRT__fsize_t size; MSVCRT_wchar_t name[260]; }; struct MSVCRT__wfinddata64_t { unsigned int attrib; MSVCRT___time64_t time_create; MSVCRT___time64_t time_access; MSVCRT___time64_t time_write; long __attribute__((aligned(8))) size; MSVCRT_wchar_t name[260]; }; struct MSVCRT___utimbuf32 { MSVCRT___time32_t actime; MSVCRT___time32_t modtime; }; struct MSVCRT___utimbuf64 { MSVCRT___time64_t actime; MSVCRT___time64_t modtime; }; struct MSVCRT__stat32 { MSVCRT__dev_t st_dev; MSVCRT__ino_t st_ino; unsigned short st_mode; short st_nlink; short st_uid; short st_gid; MSVCRT__dev_t st_rdev; MSVCRT__off_t st_size; MSVCRT___time32_t st_atime; MSVCRT___time32_t st_mtime; MSVCRT___time32_t st_ctime; }; struct MSVCRT__stat32i64 { MSVCRT__dev_t st_dev; MSVCRT__ino_t st_ino; unsigned short st_mode; short st_nlink; short st_uid; short st_gid; MSVCRT__dev_t st_rdev; long __attribute__((aligned(8))) st_size; MSVCRT___time32_t st_atime; MSVCRT___time32_t st_mtime; MSVCRT___time32_t st_ctime; }; struct MSVCRT__stat64i32 { MSVCRT__dev_t st_dev; MSVCRT__ino_t st_ino; unsigned short st_mode; short st_nlink; short st_uid; short st_gid; MSVCRT__dev_t st_rdev; MSVCRT__off_t st_size; MSVCRT___time64_t st_atime; MSVCRT___time64_t st_mtime; MSVCRT___time64_t st_ctime; }; struct MSVCRT__stat64 { MSVCRT__dev_t st_dev; MSVCRT__ino_t st_ino; unsigned short st_mode; short st_nlink; short st_uid; short st_gid; MSVCRT__dev_t st_rdev; long __attribute__((aligned(8))) st_size; MSVCRT___time64_t st_atime; MSVCRT___time64_t st_mtime; MSVCRT___time64_t st_ctime; }; # 797 "msvcrt.h" typedef void (__attribute__((ms_abi)) *MSVCRT___sighandler_t)(int); # 844 "msvcrt.h" void __attribute__((ms_abi)) MSVCRT_free(void*); void* __attribute__((ms_abi)) MSVCRT_malloc(MSVCRT_size_t); void* __attribute__((ms_abi)) MSVCRT_calloc(MSVCRT_size_t,MSVCRT_size_t); void* __attribute__((ms_abi)) MSVCRT_realloc(void*,MSVCRT_size_t); int __attribute__((ms_abi)) MSVCRT_iswalpha(MSVCRT_wint_t); int __attribute__((ms_abi)) MSVCRT_iswspace(MSVCRT_wint_t); int __attribute__((ms_abi)) MSVCRT_iswdigit(MSVCRT_wint_t); int __attribute__((ms_abi)) MSVCRT_isleadbyte(int); void __attribute__((ms_abi)) MSVCRT__lock_file(MSVCRT_FILE*); void __attribute__((ms_abi)) MSVCRT__unlock_file(MSVCRT_FILE*); int __attribute__((ms_abi)) MSVCRT_fgetc(MSVCRT_FILE*); int __attribute__((ms_abi)) MSVCRT_ungetc(int,MSVCRT_FILE*); MSVCRT_wint_t __attribute__((ms_abi)) MSVCRT_fgetwc(MSVCRT_FILE*); MSVCRT_wint_t __attribute__((ms_abi)) MSVCRT_ungetwc(MSVCRT_wint_t,MSVCRT_FILE*); void __attribute__((ms_abi)) MSVCRT__exit(int); void __attribute__((ms_abi)) MSVCRT_abort(void); MSVCRT_ulong* __attribute__((ms_abi)) MSVCRT___doserrno(void); int* __attribute__((ms_abi)) MSVCRT__errno(void); char* __attribute__((ms_abi)) MSVCRT_getenv(const char*); int __attribute__((ms_abi)) MSVCRT_fclose(MSVCRT_FILE*); void __attribute__((ms_abi)) MSVCRT_terminate(void); MSVCRT_FILE* __attribute__((ms_abi)) MSVCRT__iob_func(void); MSVCRT_clock_t __attribute__((ms_abi)) MSVCRT_clock(void); MSVCRT___time32_t __attribute__((ms_abi)) MSVCRT__time32(MSVCRT___time32_t*); MSVCRT___time64_t __attribute__((ms_abi)) MSVCRT__time64(MSVCRT___time64_t*); MSVCRT_FILE* __attribute__((ms_abi)) MSVCRT__fdopen(int, const char *); MSVCRT_FILE* __attribute__((ms_abi)) MSVCRT__wfdopen(int, const MSVCRT_wchar_t *); int __attribute__((ms_abi)) MSVCRT_vsnprintf(char *str, MSVCRT_size_t len, const char *format, __builtin_ms_va_list valist); int __attribute__((ms_abi)) MSVCRT_vsnwprintf(MSVCRT_wchar_t *str, MSVCRT_size_t len, const MSVCRT_wchar_t *format, __builtin_ms_va_list valist ); int __attribute__((ms_abi)) MSVCRT__snwprintf(MSVCRT_wchar_t*, unsigned int, const MSVCRT_wchar_t*, ...); int __attribute__((ms_abi)) MSVCRT_sprintf(char*,const char*,...); int __attribute__((ms_abi)) MSVCRT__scprintf(const char*,...); int __attribute__((ms_abi)) MSVCRT_raise(int sig); extern MSVCRT__locale_t MSVCRT_locale; MSVCRT_pthreadlocinfo get_locinfo(void); void __attribute__((ms_abi)) MSVCRT__free_locale(MSVCRT__locale_t); void free_locinfo(MSVCRT_pthreadlocinfo); void free_mbcinfo(MSVCRT_pthreadmbcinfo); int __attribute__((ms_abi)) MSVCRT__write(int,const void*,unsigned int); int __attribute__((ms_abi)) _getch(void); int __attribute__((ms_abi)) _ismbblead(unsigned int); int __attribute__((ms_abi)) _ismbstrail(const unsigned char* start, const unsigned char* str); MSVCRT_size_t __attribute__((ms_abi)) MSVCRT_mbstowcs(MSVCRT_wchar_t*,const char*,MSVCRT_size_t); MSVCRT_intptr_t __attribute__((ms_abi)) MSVCRT__spawnve(int,const char*,const char* const *,const char* const *); MSVCRT_intptr_t __attribute__((ms_abi)) MSVRT__spawnvpe(int,const char*,const char* const *,const char* const *); MSVCRT_intptr_t __attribute__((ms_abi)) MSVCRT__wspawnve(int,const MSVCRT_wchar_t*,const MSVCRT_wchar_t* const *,const MSVCRT_wchar_t* const *); MSVCRT_intptr_t __attribute__((ms_abi)) MSVCRT__wspawnvpe(int,const MSVCRT_wchar_t*,const MSVCRT_wchar_t* const *,const MSVCRT_wchar_t* const *); void __attribute__((ms_abi)) MSVCRT__searchenv(const char*,const char*,char*); int __attribute__((ms_abi)) MSVCRT__getdrive(void); char* __attribute__((ms_abi)) MSVCRT__strdup(const char*); char* __attribute__((ms_abi)) MSVCRT__strnset(char*,int,MSVCRT_size_t); char* __attribute__((ms_abi)) _strset(char*,int); int __attribute__((ms_abi)) _ungetch(int); int __attribute__((ms_abi)) _cputs(const char*); int __attribute__((ms_abi)) _cprintf(const char*,...); int __attribute__((ms_abi)) _cwprintf(const MSVCRT_wchar_t*,...); char*** __attribute__((ms_abi)) MSVCRT___p__environ(void); int* __attribute__((ms_abi)) __p___mb_cur_max(void); unsigned int* __attribute__((ms_abi)) __p__fmode(void); MSVCRT_wchar_t* __attribute__((ms_abi)) MSVCRT__wcsdup(const MSVCRT_wchar_t*); MSVCRT_wchar_t*** __attribute__((ms_abi)) MSVCRT___p__wenviron(void); char* __attribute__((ms_abi)) MSVCRT__strdate(char* date); char* __attribute__((ms_abi)) MSVCRT__strtime(char* date); int __attribute__((ms_abi)) _setmbcp(int); int __attribute__((ms_abi)) MSVCRT__close(int); int __attribute__((ms_abi)) MSVCRT__dup(int); int __attribute__((ms_abi)) MSVCRT__dup2(int, int); int __attribute__((ms_abi)) MSVCRT__pipe(int *, unsigned int, int); MSVCRT_wchar_t* __attribute__((ms_abi)) MSVCRT__wgetenv(const MSVCRT_wchar_t*); void __attribute__((ms_abi)) MSVCRT__wsearchenv(const MSVCRT_wchar_t*, const MSVCRT_wchar_t*, MSVCRT_wchar_t*); MSVCRT_intptr_t __attribute__((ms_abi)) MSVCRT__spawnvpe(int, const char*, const char* const*, const char* const*); void __attribute__((ms_abi)) MSVCRT__invalid_parameter(const MSVCRT_wchar_t *expr, const MSVCRT_wchar_t *func, const MSVCRT_wchar_t *file, unsigned int line, MSVCRT_uintptr_t arg); int __attribute__((ms_abi)) MSVCRT__toupper_l(int,MSVCRT__locale_t); int __attribute__((ms_abi)) MSVCRT__tolower_l(int,MSVCRT__locale_t); # 942 "msvcrt.h" typedef int (*puts_clbk_a)(void*, int, const char*); typedef int (*puts_clbk_w)(void*, int, const MSVCRT_wchar_t*); typedef union _printf_arg { void *get_ptr; int get_int; LONGLONG get_longlong; double get_double; } printf_arg; typedef printf_arg (*args_clbk)(void*, int, int, __builtin_ms_va_list*); int pf_printf_a(puts_clbk_a, void*, const char*, MSVCRT__locale_t, BOOL, BOOL, args_clbk, void*, __builtin_ms_va_list*); int pf_printf_w(puts_clbk_w, void*, const MSVCRT_wchar_t*, MSVCRT__locale_t, BOOL, BOOL, args_clbk, void*, __builtin_ms_va_list*); printf_arg arg_clbk_valist(void*, int, int, __builtin_ms_va_list*); typedef struct { float f; } MSVCRT__CRT_FLOAT; # 44 "file.c" 2 # 1 "mtdll.h" 1 # 27 "mtdll.h" void __attribute__((ms_abi)) _unlock( int locknum ); void __attribute__((ms_abi)) _lock( int locknum ); # 45 "file.c" 2 # 1 "../../include/wine/unicode.h" 1 # 28 "../../include/wine/unicode.h" # 1 "../../include/winnls.h" 1 # 557 "../../include/winnls.h" typedef enum _NORM_FORM { NormalizationOther = 0, NormalizationC = 0x1, NormalizationD = 0x2, NormalizationKC = 0x5, NormalizationKD = 0x6 } NORM_FORM; typedef DWORD CALID; typedef DWORD CALTYPE; typedef LONG GEOID; typedef DWORD GEOCLASS; typedef DWORD GEOTYPE; typedef DWORD LCTYPE; typedef DWORD LGRPID; typedef struct { UINT MaxCharSize; BYTE DefaultChar[2]; BYTE LeadByte[12]; } CPINFO, *LPCPINFO; typedef struct { UINT MaxCharSize; BYTE DefaultChar[2]; BYTE LeadByte[12]; WCHAR UnicodeDefaultChar; UINT CodePage; CHAR CodePageName[260]; } CPINFOEXA, *LPCPINFOEXA; typedef struct { UINT MaxCharSize; BYTE DefaultChar[2]; BYTE LeadByte[12]; WCHAR UnicodeDefaultChar; UINT CodePage; WCHAR CodePageName[260]; } CPINFOEXW, *LPCPINFOEXW; typedef struct _numberfmtA { UINT NumDigits; UINT LeadingZero; UINT Grouping; LPSTR lpDecimalSep; LPSTR lpThousandSep; UINT NegativeOrder; } NUMBERFMTA, *LPNUMBERFMTA; typedef struct _numberfmtW { UINT NumDigits; UINT LeadingZero; UINT Grouping; LPWSTR lpDecimalSep; LPWSTR lpThousandSep; UINT NegativeOrder; } NUMBERFMTW, *LPNUMBERFMTW; typedef struct _currencyfmtA { UINT NumDigits; UINT LeadingZero; UINT Grouping; LPSTR lpDecimalSep; LPSTR lpThousandSep; UINT NegativeOrder; UINT PositiveOrder; LPSTR lpCurrencySymbol; } CURRENCYFMTA, *LPCURRENCYFMTA; typedef struct _currencyfmtW { UINT NumDigits; UINT LeadingZero; UINT Grouping; LPWSTR lpDecimalSep; LPWSTR lpThousandSep; UINT NegativeOrder; UINT PositiveOrder; LPWSTR lpCurrencySymbol; } CURRENCYFMTW, *LPCURRENCYFMTW; typedef BOOL (__attribute__((ms_abi)) *CALINFO_ENUMPROCA)(LPSTR); typedef BOOL (__attribute__((ms_abi)) *CALINFO_ENUMPROCW)(LPWSTR); typedef BOOL (__attribute__((ms_abi)) *CALINFO_ENUMPROCEXA)(LPSTR,CALID); typedef BOOL (__attribute__((ms_abi)) *CALINFO_ENUMPROCEXW)(LPWSTR,CALID); typedef BOOL (__attribute__((ms_abi)) *CODEPAGE_ENUMPROCA)(LPSTR); typedef BOOL (__attribute__((ms_abi)) *CODEPAGE_ENUMPROCW)(LPWSTR); typedef BOOL (__attribute__((ms_abi)) *DATEFMT_ENUMPROCA)(LPSTR); typedef BOOL (__attribute__((ms_abi)) *DATEFMT_ENUMPROCW)(LPWSTR); typedef BOOL (__attribute__((ms_abi)) *DATEFMT_ENUMPROCEXA)(LPSTR,CALID); typedef BOOL (__attribute__((ms_abi)) *DATEFMT_ENUMPROCEXW)(LPWSTR,CALID); typedef BOOL (__attribute__((ms_abi)) *GEO_ENUMPROC)(GEOID); typedef BOOL (__attribute__((ms_abi)) *LANGGROUPLOCALE_ENUMPROCA)(LGRPID,LCID,LPSTR,LONG_PTR); typedef BOOL (__attribute__((ms_abi)) *LANGGROUPLOCALE_ENUMPROCW)(LGRPID,LCID,LPWSTR,LONG_PTR); typedef BOOL (__attribute__((ms_abi)) *LANGUAGEGROUP_ENUMPROCA)(LGRPID,LPSTR,LPSTR,DWORD,LONG_PTR); typedef BOOL (__attribute__((ms_abi)) *LANGUAGEGROUP_ENUMPROCW)(LGRPID,LPWSTR,LPWSTR,DWORD,LONG_PTR); typedef BOOL (__attribute__((ms_abi)) *LOCALE_ENUMPROCA)(LPSTR); typedef BOOL (__attribute__((ms_abi)) *LOCALE_ENUMPROCW)(LPWSTR); typedef BOOL (__attribute__((ms_abi)) *LOCALE_ENUMPROCEX)(LPWSTR, DWORD, LPARAM); typedef BOOL (__attribute__((ms_abi)) *TIMEFMT_ENUMPROCA)(LPSTR); typedef BOOL (__attribute__((ms_abi)) *TIMEFMT_ENUMPROCW)(LPWSTR); typedef BOOL (__attribute__((ms_abi)) *UILANGUAGE_ENUMPROCA)(LPSTR,LONG_PTR); typedef BOOL (__attribute__((ms_abi)) *UILANGUAGE_ENUMPROCW)(LPWSTR,LONG_PTR); # 701 "../../include/winnls.h" enum SYSGEOTYPE { GEO_NATION = 1, GEO_LATITUDE, GEO_LONGITUDE, GEO_ISO2, GEO_ISO3, GEO_RFC1766, GEO_LCID, GEO_FRIENDLYNAME, GEO_OFFICIALNAME, GEO_TIMEZONES, GEO_OFFICIALLANGUAGES }; enum SYSGEOCLASS { GEOCLASS_REGION = 14, GEOCLASS_NATION = 16 }; __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) CompareStringA(LCID,DWORD,LPCSTR,INT,LPCSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) CompareStringW(LCID,DWORD,LPCWSTR,INT,LPCWSTR,INT); __attribute__((visibility ("hidden"))) LCID __attribute__((ms_abi)) ConvertDefaultLocale(LCID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumCalendarInfoA(CALINFO_ENUMPROCA,LCID,CALID,CALTYPE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumCalendarInfoW(CALINFO_ENUMPROCW,LCID,CALID,CALTYPE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumCalendarInfoExA(CALINFO_ENUMPROCEXA,LCID,CALID,CALTYPE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumCalendarInfoExW(CALINFO_ENUMPROCEXW,LCID,CALID,CALTYPE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumDateFormatsA(DATEFMT_ENUMPROCA,LCID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumDateFormatsW(DATEFMT_ENUMPROCW,LCID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumDateFormatsExA(DATEFMT_ENUMPROCEXA,LCID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumDateFormatsExW(DATEFMT_ENUMPROCEXW,LCID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumSystemGeoID(GEOCLASS,GEOID,GEO_ENUMPROC); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumSystemLocalesEx(LOCALE_ENUMPROCEX,DWORD,LPARAM,LPVOID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumSystemLanguageGroupsA(LANGUAGEGROUP_ENUMPROCA,DWORD,LONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumSystemLanguageGroupsW(LANGUAGEGROUP_ENUMPROCW,DWORD,LONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumLanguageGroupLocalesA(LANGGROUPLOCALE_ENUMPROCA,LGRPID,DWORD,LONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumLanguageGroupLocalesW(LANGGROUPLOCALE_ENUMPROCW,LGRPID,DWORD,LONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumTimeFormatsA(TIMEFMT_ENUMPROCA,LCID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumTimeFormatsW(TIMEFMT_ENUMPROCW,LCID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumUILanguagesA(UILANGUAGE_ENUMPROCA,DWORD,LONG_PTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) EnumUILanguagesW(UILANGUAGE_ENUMPROCW,DWORD,LONG_PTR); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) FoldStringA(DWORD,LPCSTR,INT,LPSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) FoldStringW(DWORD,LPCWSTR,INT,LPWSTR,INT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetACP(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetCPInfo(UINT,LPCPINFO); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetCPInfoExA(UINT,DWORD,LPCPINFOEXA); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetCPInfoExW(UINT,DWORD,LPCPINFOEXW); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetCalendarInfoA(LCID,DWORD,DWORD,LPSTR,INT,LPDWORD); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetCalendarInfoW(LCID,DWORD,DWORD,LPWSTR,INT,LPDWORD); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetCurrencyFormatA(LCID,DWORD,LPCSTR,const CURRENCYFMTA*,LPSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetCurrencyFormatW(LCID,DWORD,LPCWSTR,const CURRENCYFMTW*,LPWSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetDateFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetDateFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetGeoInfoA(GEOID,GEOTYPE,LPSTR,INT,LANGID); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetGeoInfoW(GEOID,GEOTYPE,LPWSTR,INT,LANGID); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetNumberFormatA(LCID,DWORD,LPCSTR,const NUMBERFMTA*,LPSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetNumberFormatW(LCID,DWORD,LPCWSTR,const NUMBERFMTW*,LPWSTR,INT); __attribute__((visibility ("hidden"))) UINT __attribute__((ms_abi)) GetOEMCP(void); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD); __attribute__((visibility ("hidden"))) LANGID __attribute__((ms_abi)) GetSystemDefaultLangID(void); __attribute__((visibility ("hidden"))) LCID __attribute__((ms_abi)) GetSystemDefaultLCID(void); __attribute__((visibility ("hidden"))) LANGID __attribute__((ms_abi)) GetSystemDefaultUILanguage(void); __attribute__((visibility ("hidden"))) LCID __attribute__((ms_abi)) GetThreadLocale(void); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetTimeFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetTimeFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT); __attribute__((visibility ("hidden"))) LANGID __attribute__((ms_abi)) GetUserDefaultLangID(void); __attribute__((visibility ("hidden"))) LCID __attribute__((ms_abi)) GetUserDefaultLCID(void); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) GetUserDefaultLocaleName(LPWSTR,int); __attribute__((visibility ("hidden"))) LANGID __attribute__((ms_abi)) GetUserDefaultUILanguage(void); __attribute__((visibility ("hidden"))) GEOID __attribute__((ms_abi)) GetUserGeoID(GEOCLASS); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) IdnToAscii(DWORD,LPCWSTR,INT,LPWSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) IdnToNameprepUnicode(DWORD,LPCWSTR,INT,LPWSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) IdnToUnicode(DWORD,LPCWSTR,INT,LPWSTR,INT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsDBCSLeadByte(BYTE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsDBCSLeadByteEx(UINT,BYTE); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsNormalizedString(NORM_FORM,LPCWSTR,INT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsValidCodePage(UINT); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsValidLocale(LCID,DWORD); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) IsValidLanguageGroup(LGRPID,DWORD); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) LCIDToLocaleName(LCID,LPWSTR,INT,DWORD); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) LCMapStringA(LCID,DWORD,LPCSTR,INT,LPSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) LCMapStringW(LCID,DWORD,LPCWSTR,INT,LPWSTR,INT); __attribute__((visibility ("hidden"))) LCID __attribute__((ms_abi)) LocaleNameToLCID(LPCWSTR,DWORD); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) NormalizeString(NORM_FORM,LPCWSTR,INT,LPWSTR,INT); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) SetCalendarInfoA(LCID,CALID,CALTYPE,LPCSTR); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) SetCalendarInfoW(LCID,CALID,CALTYPE,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetLocaleInfoA(LCID,LCTYPE,LPCSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetLocaleInfoW(LCID,LCTYPE,LPCWSTR); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetThreadLocale(LCID); __attribute__((visibility ("hidden"))) BOOL __attribute__((ms_abi)) SetUserGeoID(GEOID); __attribute__((visibility ("hidden"))) INT __attribute__((ms_abi)) WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,LPBOOL); # 29 "../../include/wine/unicode.h" 2 # 51 "../../include/wine/unicode.h" struct cp_info { unsigned int codepage; unsigned int char_size; WCHAR def_char; WCHAR def_unicode_char; const char *name; }; struct sbcs_table { struct cp_info info; const WCHAR *cp2uni; const WCHAR *cp2uni_glyphs; const unsigned char *uni2cp_low; const unsigned short *uni2cp_high; }; struct dbcs_table { struct cp_info info; const WCHAR *cp2uni; const unsigned char *cp2uni_leadbytes; const unsigned short *uni2cp_low; const unsigned short *uni2cp_high; unsigned char lead_bytes[12]; }; union cptable { struct cp_info info; struct sbcs_table sbcs; struct dbcs_table dbcs; }; extern const union cptable *wine_cp_get_table( unsigned int codepage ); extern const union cptable *wine_cp_enum_table( unsigned int index ); extern int wine_cp_mbstowcs( const union cptable *table, int flags, const char *src, int srclen, WCHAR *dst, int dstlen ); extern int wine_cp_wcstombs( const union cptable *table, int flags, const WCHAR *src, int srclen, char *dst, int dstlen, const char *defchar, int *used ); extern int wine_cpsymbol_mbstowcs( const char *src, int srclen, WCHAR *dst, int dstlen ); extern int wine_cpsymbol_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen ); extern int wine_utf8_mbstowcs( int flags, const char *src, int srclen, WCHAR *dst, int dstlen ); extern int wine_utf8_wcstombs( int flags, const WCHAR *src, int srclen, char *dst, int dstlen ); extern int wine_compare_string( int flags, const WCHAR *str1, int len1, const WCHAR *str2, int len2 ); extern int wine_get_sortkey( int flags, const WCHAR *src, int srclen, char *dst, int dstlen ); extern int wine_fold_string( int flags, const WCHAR *src, int srclen , WCHAR *dst, int dstlen ); extern int strcmpiW( const WCHAR *str1, const WCHAR *str2 ); extern int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n ); extern int memicmpW( const WCHAR *str1, const WCHAR *str2, int n ); extern WCHAR *strstrW( const WCHAR *str, const WCHAR *sub ); extern long int strtolW( const WCHAR *nptr, WCHAR **endptr, int base ); extern unsigned long int strtoulW( const WCHAR *nptr, WCHAR **endptr, int base ); extern int sprintfW( WCHAR *str, const WCHAR *format, ... ); extern int snprintfW( WCHAR *str, size_t len, const WCHAR *format, ... ); extern int vsprintfW( WCHAR *str, const WCHAR *format, va_list valist ); extern int vsnprintfW( WCHAR *str, size_t len, const WCHAR *format, va_list valist ); static inline int wine_is_dbcs_leadbyte( const union cptable *table, unsigned char ch ) { return (table->info.char_size == 2) && (table->dbcs.cp2uni_leadbytes[ch]); } static inline WCHAR tolowerW( WCHAR ch ) { extern const WCHAR wine_casemap_lower[]; return ch + wine_casemap_lower[wine_casemap_lower[ch >> 8] + (ch & 0xff)]; } static inline WCHAR toupperW( WCHAR ch ) { extern const WCHAR wine_casemap_upper[]; return ch + wine_casemap_upper[wine_casemap_upper[ch >> 8] + (ch & 0xff)]; } static inline unsigned short get_char_typeW( WCHAR ch ) { extern const unsigned short wine_wctype_table[]; return wine_wctype_table[wine_wctype_table[ch >> 8] + (ch & 0xff)]; } static inline int iscntrlW( WCHAR wc ) { return get_char_typeW(wc) & 0x0020; } static inline int ispunctW( WCHAR wc ) { return get_char_typeW(wc) & 0x0010; } static inline int isspaceW( WCHAR wc ) { return get_char_typeW(wc) & 0x0008; } static inline int isdigitW( WCHAR wc ) { return get_char_typeW(wc) & 0x0004; } static inline int isxdigitW( WCHAR wc ) { return get_char_typeW(wc) & 0x0080; } static inline int islowerW( WCHAR wc ) { return get_char_typeW(wc) & 0x0002; } static inline int isupperW( WCHAR wc ) { return get_char_typeW(wc) & 0x0001; } static inline int isalnumW( WCHAR wc ) { return get_char_typeW(wc) & (0x0100|0x0004|0x0002|0x0001); } static inline int isalphaW( WCHAR wc ) { return get_char_typeW(wc) & (0x0100|0x0002|0x0001); } static inline int isgraphW( WCHAR wc ) { return get_char_typeW(wc) & (0x0100|0x0010|0x0004|0x0002|0x0001); } static inline int isprintW( WCHAR wc ) { return get_char_typeW(wc) & (0x0100|0x0040|0x0010|0x0004|0x0002|0x0001); } static inline unsigned int strlenW( const WCHAR *str ) { const WCHAR *s = str; while (*s) s++; return s - str; } static inline WCHAR *strcpyW( WCHAR *dst, const WCHAR *src ) { WCHAR *p = dst; while ((*p++ = *src++)); return dst; } static inline int strcmpW( const WCHAR *str1, const WCHAR *str2 ) { while (*str1 && (*str1 == *str2)) { str1++; str2++; } return *str1 - *str2; } static inline int strncmpW( const WCHAR *str1, const WCHAR *str2, int n ) { if (n <= 0) return 0; while ((--n > 0) && *str1 && (*str1 == *str2)) { str1++; str2++; } return *str1 - *str2; } static inline WCHAR *strcatW( WCHAR *dst, const WCHAR *src ) { strcpyW( dst + strlenW(dst), src ); return dst; } static inline WCHAR *strchrW( const WCHAR *str, WCHAR ch ) { do { if (*str == ch) return (WCHAR *)(ULONG_PTR)str; } while (*str++); return ((void *)0); } static inline WCHAR *strrchrW( const WCHAR *str, WCHAR ch ) { WCHAR *ret = ((void *)0); do { if (*str == ch) ret = (WCHAR *)(ULONG_PTR)str; } while (*str++); return ret; } static inline WCHAR *strpbrkW( const WCHAR *str, const WCHAR *accept ) { for ( ; *str; str++) if (strchrW( accept, *str )) return (WCHAR *)(ULONG_PTR)str; return ((void *)0); } static inline size_t strspnW( const WCHAR *str, const WCHAR *accept ) { const WCHAR *ptr; for (ptr = str; *ptr; ptr++) if (!strchrW( accept, *ptr )) break; return ptr - str; } static inline size_t strcspnW( const WCHAR *str, const WCHAR *reject ) { const WCHAR *ptr; for (ptr = str; *ptr; ptr++) if (strchrW( reject, *ptr )) break; return ptr - str; } static inline WCHAR *strlwrW( WCHAR *str ) { WCHAR *ret = str; while ((*str = tolowerW(*str))) str++; return ret; } static inline WCHAR *struprW( WCHAR *str ) { WCHAR *ret = str; while ((*str = toupperW(*str))) str++; return ret; } static inline WCHAR *memchrW( const WCHAR *ptr, WCHAR ch, size_t n ) { const WCHAR *end; for (end = ptr + n; ptr < end; ptr++) if (*ptr == ch) return (WCHAR *)(ULONG_PTR)ptr; return ((void *)0); } static inline WCHAR *memrchrW( const WCHAR *ptr, WCHAR ch, size_t n ) { const WCHAR *end; WCHAR *ret = ((void *)0); for (end = ptr + n; ptr < end; ptr++) if (*ptr == ch) ret = (WCHAR *)(ULONG_PTR)ptr; return ret; } static inline long int atolW( const WCHAR *str ) { return strtolW( str, (WCHAR **)0, 10 ); } static inline int atoiW( const WCHAR *str ) { return (int)atolW( str ); } # 47 "file.c" 2 # 1 "../../include/wine/debug.h" 1 # 38 "../../include/wine/debug.h" struct _GUID; enum __wine_debug_class { __WINE_DBCL_FIXME, __WINE_DBCL_ERR, __WINE_DBCL_WARN, __WINE_DBCL_TRACE, __WINE_DBCL_INIT = 7 }; struct __wine_debug_channel { unsigned char flags; char name[15]; }; # 144 "../../include/wine/debug.h" struct __wine_debug_functions { char * (*get_temp_buffer)( size_t n ); void (*release_temp_buffer)( char *buffer, size_t n ); const char * (*dbgstr_an)( const char * s, int n ); const char * (*dbgstr_wn)( const WCHAR *s, int n ); int (*dbg_vprintf)( const char *format, va_list args ); int (*dbg_vlog)( enum __wine_debug_class cls, struct __wine_debug_channel *channel, const char *function, const char *format, va_list args ); }; extern unsigned char __wine_dbg_get_channel_flags( struct __wine_debug_channel *channel ); extern int __wine_dbg_set_channel_flags( struct __wine_debug_channel *channel, unsigned char set, unsigned char clear ); extern void __wine_dbg_set_functions( const struct __wine_debug_functions *new_funcs, struct __wine_debug_functions *old_funcs, size_t size ); # 168 "../../include/wine/debug.h" extern const char *wine_dbgstr_an( const char * s, int n ); extern const char *wine_dbgstr_wn( const WCHAR *s, int n ); extern const char *wine_dbg_sprintf( const char *format, ... ) __attribute__((format (printf,1,2))); extern int wine_dbg_printf( const char *format, ... ) __attribute__((format (printf,1,2))); extern int wine_dbg_log( enum __wine_debug_class cls, struct __wine_debug_channel *ch, const char *func, const char *format, ... ) __attribute__((format (printf,4,5))); static inline const char *wine_dbgstr_a( const char *s ) { return wine_dbgstr_an( s, -1 ); } static inline const char *wine_dbgstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); } static inline const char *wine_dbgstr_guid( const GUID *id ) { if (!id) return "(null)"; if (!((ULONG_PTR)id >> 16)) return wine_dbg_sprintf( "", (WORD)(ULONG_PTR)id ); return wine_dbg_sprintf( "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}", id->Data1, id->Data2, id->Data3, id->Data4[0], id->Data4[1], id->Data4[2], id->Data4[3], id->Data4[4], id->Data4[5], id->Data4[6], id->Data4[7] ); } static inline const char *wine_dbgstr_point( const POINT *pt ) { if (!pt) return "(null)"; return wine_dbg_sprintf( "(%d,%d)", pt->x, pt->y ); } static inline const char *wine_dbgstr_size( const SIZE *size ) { if (!size) return "(null)"; return wine_dbg_sprintf( "(%d,%d)", size->cx, size->cy ); } static inline const char *wine_dbgstr_rect( const RECT *rect ) { if (!rect) return "(null)"; return wine_dbg_sprintf( "(%d,%d)-(%d,%d)", rect->left, rect->top, rect->right, rect->bottom ); } static inline const char *wine_dbgstr_longlong( ULONGLONG ll ) { if (sizeof(ll) > sizeof(unsigned long) && ll >> 32) return wine_dbg_sprintf( "%lx%08lx", (unsigned long)(ll >> 32), (unsigned long)ll ); else return wine_dbg_sprintf( "%lx", (unsigned long)ll ); } # 256 "../../include/wine/debug.h" static inline const char *debugstr_an( const char * s, int n ) { return wine_dbgstr_an( s, n ); } static inline const char *debugstr_wn( const WCHAR *s, int n ) { return wine_dbgstr_wn( s, n ); } static inline const char *debugstr_guid( const struct _GUID *id ) { return wine_dbgstr_guid(id); } static inline const char *debugstr_a( const char *s ) { return wine_dbgstr_an( s, -1 ); } static inline const char *debugstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 ); } # 49 "file.c" 2 static struct __wine_debug_channel __wine_dbch_msvcrt = { ~0, "msvcrt" }; static struct __wine_debug_channel * const __wine_dbch___default = &__wine_dbch_msvcrt; # 75 "file.c" typedef struct { HANDLE handle; unsigned char wxflag; char unk1; BOOL crit_init; CRITICAL_SECTION crit; } ioinfo; ioinfo * MSVCRT___pioinfo[2048/64] = { 0 }; ioinfo MSVCRT___badioinfo = { ((HANDLE)~(ULONG_PTR)0), 0x80 }; static int MSVCRT_fdstart = 3; static int MSVCRT_fdend = 3; typedef struct { MSVCRT_FILE file; CRITICAL_SECTION crit; } file_crit; MSVCRT_FILE MSVCRT__iob[20] = { { 0 } }; static file_crit* MSVCRT_fstream[2048/64]; static int MSVCRT_max_streams = 512, MSVCRT_stream_idx; static int MSVCRT_umask = 0; static int tmpnam_unique; static const unsigned int EXE = 'e' << 16 | 'x' << 8 | 'e'; static const unsigned int BAT = 'b' << 16 | 'a' << 8 | 't'; static const unsigned int CMD = 'c' << 16 | 'm' << 8 | 'd'; static const unsigned int COM = 'c' << 16 | 'o' << 8 | 'm'; static const ULONGLONG WCEXE = (ULONGLONG)('e') << 32 | (ULONGLONG)('x') << 16 | (ULONGLONG)('e'); static const ULONGLONG WCBAT = (ULONGLONG)('b') << 32 | (ULONGLONG)('a') << 16 | (ULONGLONG)('t'); static const ULONGLONG WCCMD = (ULONGLONG)('c') << 32 | (ULONGLONG)('m') << 16 | (ULONGLONG)('d'); static const ULONGLONG WCCOM = (ULONGLONG)('c') << 32 | (ULONGLONG)('o') << 16 | (ULONGLONG)('m'); # 130 "file.c" static CRITICAL_SECTION MSVCRT_file_cs; static void msvcrt_stat64_to_stat(const struct MSVCRT__stat64 *buf64, struct MSVCRT__stat64i32 *buf) { buf->st_dev = buf64->st_dev; buf->st_ino = buf64->st_ino; buf->st_mode = buf64->st_mode; buf->st_nlink = buf64->st_nlink; buf->st_uid = buf64->st_uid; buf->st_gid = buf64->st_gid; buf->st_rdev = buf64->st_rdev; buf->st_size = buf64->st_size; buf->st_atime = buf64->st_atime; buf->st_mtime = buf64->st_mtime; buf->st_ctime = buf64->st_ctime; } static void msvcrt_stat64_to_stati64(const struct MSVCRT__stat64 *buf64, struct MSVCRT__stat64 *buf) { buf->st_dev = buf64->st_dev; buf->st_ino = buf64->st_ino; buf->st_mode = buf64->st_mode; buf->st_nlink = buf64->st_nlink; buf->st_uid = buf64->st_uid; buf->st_gid = buf64->st_gid; buf->st_rdev = buf64->st_rdev; buf->st_size = buf64->st_size; buf->st_atime = buf64->st_atime; buf->st_mtime = buf64->st_mtime; buf->st_ctime = buf64->st_ctime; } static void time_to_filetime( MSVCRT___time64_t time, FILETIME *ft ) { static const long secs_1601_to_1970 = ((369 * 365 + 89) * (long)86400); long ticks = (time + secs_1601_to_1970) * 10000000; ft->dwHighDateTime = ticks >> 32; ft->dwLowDateTime = ticks; } static inline ioinfo* msvcrt_get_ioinfo(int fd) { ioinfo *ret = ((void *)0); if(fd < 2048) ret = MSVCRT___pioinfo[fd/64]; if(!ret) return &MSVCRT___badioinfo; return ret + (fd%64); } static inline MSVCRT_FILE* msvcrt_get_file(int i) { file_crit *ret; if(i >= MSVCRT_max_streams) return ((void *)0); if(i < 20) return &MSVCRT__iob[i]; ret = MSVCRT_fstream[i/64]; if(!ret) { MSVCRT_fstream[i/64] = MSVCRT_calloc(64, sizeof(file_crit)); if(!MSVCRT_fstream[i/64]) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_ERR))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_ERR; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "out of memory\n"); } } while(0); *MSVCRT__errno() = 12; return ((void *)0); } ret = MSVCRT_fstream[i/64] + (i%64); } else ret += i%64; return &ret->file; } static inline BOOL msvcrt_is_valid_fd(int fd) { return fd >= 0 && fd < MSVCRT_fdend && (msvcrt_get_ioinfo(fd)->wxflag & 0x01); } static HANDLE msvcrt_fdtoh(int fd) { if (!msvcrt_is_valid_fd(fd)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_WARN))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_WARN; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) - no handle!\n",fd); } } while(0); *MSVCRT___doserrno() = 0; *MSVCRT__errno() = 9; return ((HANDLE)~(ULONG_PTR)0); } if (msvcrt_get_ioinfo(fd)->handle == ((HANDLE)~(ULONG_PTR)0)) do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_FIXME))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_FIXME; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "returning INVALID_HANDLE_VALUE for %d\n", fd); } } while(0); return msvcrt_get_ioinfo(fd)->handle; } static void msvcrt_free_fd(int fd) { HANDLE old_handle; ioinfo *fdinfo; do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); fdinfo = msvcrt_get_ioinfo(fd); old_handle = fdinfo->handle; if(fdinfo != &MSVCRT___badioinfo) { fdinfo->handle = ((HANDLE)~(ULONG_PTR)0); fdinfo->wxflag = 0; } do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) freed\n",fd); } } while(0); if (fd < 3) { switch (fd) { case 0: if (GetStdHandle(((DWORD) -10)) == old_handle) SetStdHandle(((DWORD) -10), 0); break; case 1: if (GetStdHandle(((DWORD) -11)) == old_handle) SetStdHandle(((DWORD) -11), 0); break; case 2: if (GetStdHandle(((DWORD) -12)) == old_handle) SetStdHandle(((DWORD) -12), 0); break; } } else { if (fd == MSVCRT_fdend - 1) MSVCRT_fdend--; if (fd < MSVCRT_fdstart) MSVCRT_fdstart = fd; } do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); } static int msvcrt_alloc_fd_from(HANDLE hand, int flag, int fd) { ioinfo *fdinfo; if (fd >= 2048) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_WARN))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_WARN; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":files exhausted!\n"); } } while(0); *MSVCRT__errno() = 23; return -1; } fdinfo = msvcrt_get_ioinfo(fd); if(fdinfo == &MSVCRT___badioinfo) { int i; MSVCRT___pioinfo[fd/64] = MSVCRT_calloc(64, sizeof(ioinfo)); if(!MSVCRT___pioinfo[fd/64]) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_WARN))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_WARN; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":out of memory!\n"); } } while(0); *MSVCRT__errno() = 12; return -1; } for(i=0; i<64; i++) MSVCRT___pioinfo[fd/64][i].handle = ((HANDLE)~(ULONG_PTR)0); fdinfo = msvcrt_get_ioinfo(fd); } fdinfo->handle = hand; fdinfo->wxflag = 0x01 | (flag & (0x10 | 0x20 | 0x80)); if (fd == MSVCRT_fdstart && fd == MSVCRT_fdend) MSVCRT_fdstart = MSVCRT_fdend + 1; else while (MSVCRT_fdstart < MSVCRT_fdend && msvcrt_get_ioinfo(MSVCRT_fdstart)->handle != ((HANDLE)~(ULONG_PTR)0)) MSVCRT_fdstart++; if (fd >= MSVCRT_fdend) MSVCRT_fdend = fd + 1; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "fdstart is %d, fdend is %d\n", MSVCRT_fdstart, MSVCRT_fdend); } } while(0); switch (fd) { case 0: SetStdHandle(((DWORD) -10), hand); break; case 1: SetStdHandle(((DWORD) -11), hand); break; case 2: SetStdHandle(((DWORD) -12), hand); break; } return fd; } static int msvcrt_alloc_fd(HANDLE hand, int flag) { int ret; do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":handle (%p) allocating fd (%d)\n",hand,MSVCRT_fdstart); } } while(0); ret = msvcrt_alloc_fd_from(hand, flag, MSVCRT_fdstart); do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); return ret; } static MSVCRT_FILE* msvcrt_alloc_fp(void) { unsigned int i; MSVCRT_FILE *file; for (i = 3; i < MSVCRT_max_streams; i++) { file = msvcrt_get_file(i); if (!file) return ((void *)0); if (file->_flag == 0) { if (i == MSVCRT_stream_idx) MSVCRT_stream_idx++; return file; } } return ((void *)0); } static int msvcrt_init_fp(MSVCRT_FILE* file, int fd, unsigned stream_flags) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) allocating FILE*\n",fd); } } while(0); if (!msvcrt_is_valid_fd(fd)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_WARN))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_WARN; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":invalid fd %d\n",fd); } } while(0); *MSVCRT___doserrno() = 0; *MSVCRT__errno() = 9; return -1; } memset(file, 0, sizeof(*file)); file->_file = fd; file->_flag = stream_flags; if(file=MSVCRT__iob+20) InitializeCriticalSection(&((file_crit*)file)->crit); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":got FILE* (%p)\n",file); } } while(0); return 0; } unsigned msvcrt_create_io_inherit_block(WORD *size, BYTE **block) { int fd; char* wxflag_ptr; HANDLE* handle_ptr; ioinfo* fdinfo; *size = sizeof(unsigned) + (sizeof(char) + sizeof(HANDLE)) * MSVCRT_fdend; *block = MSVCRT_calloc(*size, 1); if (!*block) { *size = 0; return 0; } wxflag_ptr = (char*)*block + sizeof(unsigned); handle_ptr = (HANDLE*)(wxflag_ptr + MSVCRT_fdend * sizeof(char)); *(unsigned*)*block = MSVCRT_fdend; for (fd = 0; fd < MSVCRT_fdend; fd++) { fdinfo = msvcrt_get_ioinfo(fd); if ((fdinfo->wxflag & (0x01 | 0x10)) == 0x01) { *wxflag_ptr = fdinfo->wxflag; *handle_ptr = fdinfo->handle; } else { *wxflag_ptr = 0; *handle_ptr = ((HANDLE)~(ULONG_PTR)0); } wxflag_ptr++; handle_ptr++; } return 1; } void msvcrt_init_io(void) { STARTUPINFOA si; int i; ioinfo *fdinfo; InitializeCriticalSection(&MSVCRT_file_cs); MSVCRT_file_cs.DebugInfo->Spare[0] = (DWORD_PTR)("file.c" ": MSVCRT_file_cs"); GetStartupInfoA(&si); if (si.cbReserved2 >= sizeof(unsigned int) && si.lpReserved2 != ((void *)0)) { BYTE* wxflag_ptr; HANDLE* handle_ptr; unsigned int count; count = *(unsigned*)si.lpReserved2; wxflag_ptr = si.lpReserved2 + sizeof(unsigned); handle_ptr = (HANDLE*)(wxflag_ptr + count); count = (((count) < ((si.cbReserved2 - sizeof(unsigned)) / (sizeof(HANDLE) + 1))) ? (count) : ((si.cbReserved2 - sizeof(unsigned)) / (sizeof(HANDLE) + 1))); count = (((count) < (2048)) ? (count) : (2048)); for (i = 0; i < count; i++) { if ((*wxflag_ptr & 0x01) && *handle_ptr != ((HANDLE)~(ULONG_PTR)0)) msvcrt_alloc_fd_from(*handle_ptr, *wxflag_ptr, i); wxflag_ptr++; handle_ptr++; } MSVCRT_fdend = (((3) > (count)) ? (3) : (count)); for (MSVCRT_fdstart = 3; MSVCRT_fdstart < MSVCRT_fdend; MSVCRT_fdstart++) if (msvcrt_get_ioinfo(MSVCRT_fdstart)->handle == ((HANDLE)~(ULONG_PTR)0)) break; } if(!MSVCRT___pioinfo[0]) msvcrt_alloc_fd_from(((HANDLE)~(ULONG_PTR)0), 0, 3); fdinfo = msvcrt_get_ioinfo(0); if (!(fdinfo->wxflag & 0x01) || fdinfo->handle == ((HANDLE)~(ULONG_PTR)0)) { HANDLE std = GetStdHandle(((DWORD) -10)); if (std != ((HANDLE)~(ULONG_PTR)0) && DuplicateHandle(((HANDLE)~(ULONG_PTR)0), std, ((HANDLE)~(ULONG_PTR)0), &fdinfo->handle, 0, 1, 0x00000002)) fdinfo->wxflag = 0x01 | 0x80; } fdinfo = msvcrt_get_ioinfo(1); if (!(fdinfo->wxflag & 0x01) || fdinfo->handle == ((HANDLE)~(ULONG_PTR)0)) { HANDLE std = GetStdHandle(((DWORD) -11)); if (std != ((HANDLE)~(ULONG_PTR)0) && DuplicateHandle(((HANDLE)~(ULONG_PTR)0), std, ((HANDLE)~(ULONG_PTR)0), &fdinfo->handle, 0, 1, 0x00000002)) fdinfo->wxflag = 0x01 | 0x80; } fdinfo = msvcrt_get_ioinfo(2); if (!(fdinfo->wxflag & 0x01) || fdinfo->handle == ((HANDLE)~(ULONG_PTR)0)) { HANDLE std = GetStdHandle(((DWORD) -12)); if (std != ((HANDLE)~(ULONG_PTR)0) && DuplicateHandle(((HANDLE)~(ULONG_PTR)0), std, ((HANDLE)~(ULONG_PTR)0), &fdinfo->handle, 0, 1, 0x00000002)) fdinfo->wxflag = 0x01 | 0x80; } do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":handles (%p)(%p)(%p)\n", msvcrt_get_ioinfo(0)->handle, msvcrt_get_ioinfo(1)->handle, msvcrt_get_ioinfo(2)->handle); } } while(0) ; memset(MSVCRT__iob,0,3*sizeof(MSVCRT_FILE)); for (i = 0; i < 3; i++) { MSVCRT__iob[i]._file = i; MSVCRT__iob[i]._tmpfname = ((void *)0); MSVCRT__iob[i]._flag = (i == 0) ? 0x0001 : 0x0002; } MSVCRT_stream_idx = 3; } static int msvcrt_flush_buffer(MSVCRT_FILE* file) { if(file->_bufsiz) { int cnt=file->_ptr-file->_base; if(cnt>0 && MSVCRT__write(file->_file, file->_base, cnt) != cnt) { file->_flag |= 0x0020; return (-1); } file->_ptr=file->_base; file->_cnt=file->_bufsiz; } return 0; } static void msvcrt_alloc_buffer(MSVCRT_FILE* file) { file->_base = MSVCRT_calloc(512,1); if(file->_base) { file->_bufsiz = 512; file->_flag |= 0x0008; } else { file->_base = (char*)(&file->_charbuf); file->_bufsiz = sizeof(file->_charbuf); } file->_ptr = file->_base; file->_cnt = 0; } static int msvcrt_int_to_base32(int num, char *str) { char *p; int n = num; int digits = 0; while (n != 0) { n >>= 5; digits++; } p = str + digits; *p = 0; while (--p >= str) { *p = (num & 31) + '0'; if (*p > '9') *p += ('a' - '0' - 10); num >>= 5; } return digits; } static int msvcrt_int_to_base32_w(int num, MSVCRT_wchar_t *str) { MSVCRT_wchar_t *p; int n = num; int digits = 0; while (n != 0) { n >>= 5; digits++; } p = str + digits; *p = 0; while (--p >= str) { *p = (num & 31) + '0'; if (*p > '9') *p += ('a' - '0' - 10); num >>= 5; } return digits; } MSVCRT_FILE * __attribute__((ms_abi)) MSVCRT___iob_func(void) { return &MSVCRT__iob[0]; } int __attribute__((ms_abi)) MSVCRT__access(const char *filename, int mode) { DWORD attr = GetFileAttributesA(filename); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "(%s,%d) %d\n",filename,mode,attr); } } while(0); if (!filename || attr == (~0u)) { msvcrt_set_errno(GetLastError()); return -1; } if ((attr & 0x00000001) && (mode & 0x02)) { msvcrt_set_errno(5); return -1; } return 0; } int __attribute__((ms_abi)) _access_s(const char *filename, int mode) { if (!((filename != ((void *)0)) || (MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0),0)) || !(((mode & ~(0x04 | 0x02)) == 0) || (MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0),0))) { *MSVCRT__errno() = 22; return -1; } return MSVCRT__access(filename, mode); } int __attribute__((ms_abi)) MSVCRT__waccess(const MSVCRT_wchar_t *filename, int mode) { DWORD attr = GetFileAttributesW(filename); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "(%s,%d) %d\n",debugstr_w(filename),mode,attr); } } while(0); if (!filename || attr == (~0u)) { msvcrt_set_errno(GetLastError()); return -1; } if ((attr & 0x00000001) && (mode & 0x02)) { msvcrt_set_errno(5); return -1; } return 0; } int __attribute__((ms_abi)) _waccess_s(const MSVCRT_wchar_t *filename, int mode) { if (!((filename != ((void *)0)) || (MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0),0)) || !(((mode & ~(0x04 | 0x02)) == 0) || (MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0),0))) { *MSVCRT__errno() = 22; return -1; } return MSVCRT__waccess(filename, mode); } int __attribute__((ms_abi)) MSVCRT__chmod(const char *path, int flags) { DWORD oldFlags = GetFileAttributesA(path); if (oldFlags != (~0u)) { DWORD newFlags = (flags & 0x0080)? oldFlags & ~0x00000001: oldFlags | 0x00000001; if (newFlags == oldFlags || SetFileAttributesA(path, newFlags)) return 0; } msvcrt_set_errno(GetLastError()); return -1; } int __attribute__((ms_abi)) MSVCRT__wchmod(const MSVCRT_wchar_t *path, int flags) { DWORD oldFlags = GetFileAttributesW(path); if (oldFlags != (~0u)) { DWORD newFlags = (flags & 0x0080)? oldFlags & ~0x00000001: oldFlags | 0x00000001; if (newFlags == oldFlags || SetFileAttributesW(path, newFlags)) return 0; } msvcrt_set_errno(GetLastError()); return -1; } int __attribute__((ms_abi)) MSVCRT__unlink(const char *path) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "%s\n",debugstr_a(path)); } } while(0); if(DeleteFileA(path)) return 0; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "failed (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(GetLastError()); return -1; } int __attribute__((ms_abi)) MSVCRT__wunlink(const MSVCRT_wchar_t *path) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "(%s)\n",debugstr_w(path)); } } while(0); if(DeleteFileW(path)) return 0; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "failed (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(GetLastError()); return -1; } int __attribute__((ms_abi)) MSVCRT_fflush(MSVCRT_FILE* file); int __attribute__((ms_abi)) MSVCRT__flushall(void) { int i, num_flushed = 0; MSVCRT_FILE *file; do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); for (i = 3; i < MSVCRT_stream_idx; i++) { file = msvcrt_get_file(i); if (file->_flag) { if(file->_flag & 0x0002) { MSVCRT_fflush(file); num_flushed++; } } } do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":flushed (%d) handles\n",num_flushed); } } while(0); return num_flushed; } int __attribute__((ms_abi)) MSVCRT_fflush(MSVCRT_FILE* file) { if(!file) { MSVCRT__flushall(); } else if(file->_flag & 0x0002) { int res; MSVCRT__lock_file(file); res = msvcrt_flush_buffer(file); MSVCRT__unlock_file(file); return res; } return 0; } int __attribute__((ms_abi)) MSVCRT__close(int fd) { HANDLE hand; int ret; do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); hand = msvcrt_fdtoh(fd); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) handle (%p)\n",fd,hand); } } while(0); if (hand == ((HANDLE)~(ULONG_PTR)0)) ret = -1; else if (!CloseHandle(hand)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_WARN))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_WARN; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":failed-last error (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(GetLastError()); ret = -1; } else { msvcrt_free_fd(fd); ret = 0; } do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":ok\n"); } } while(0); return ret; } int __attribute__((ms_abi)) MSVCRT__commit(int fd) { HANDLE hand = msvcrt_fdtoh(fd); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) handle (%p)\n",fd,hand); } } while(0); if (hand == ((HANDLE)~(ULONG_PTR)0)) return -1; if (!FlushFileBuffers(hand)) { if (GetLastError() == 6) { return 0; } do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":failed-last error (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(GetLastError()); return -1; } do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":ok\n"); } } while(0); return 0; } # 853 "file.c" int __attribute__((ms_abi)) MSVCRT__dup2(int od, int nd) { int ret; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "(od=%d, nd=%d)\n", od, nd); } } while(0); do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); if (nd < 2048 && nd >= 0 && msvcrt_is_valid_fd(od)) { HANDLE handle; if (DuplicateHandle(((HANDLE)~(ULONG_PTR)0), msvcrt_get_ioinfo(od)->handle, ((HANDLE)~(ULONG_PTR)0), &handle, 0, 1, 0x00000002)) { int wxflag = msvcrt_get_ioinfo(od)->wxflag & ~0x0080; if (msvcrt_is_valid_fd(nd)) MSVCRT__close(nd); ret = msvcrt_alloc_fd_from(handle, wxflag, nd); if (ret == -1) { CloseHandle(handle); *MSVCRT__errno() = 24; } else { ret = 0; } } else { ret = -1; msvcrt_set_errno(GetLastError()); } } else { *MSVCRT__errno() = 9; ret = -1; } do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); return ret; } int __attribute__((ms_abi)) MSVCRT__dup(int od) { int fd, ret; do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); fd = MSVCRT_fdstart; if (MSVCRT__dup2(od, fd) == 0) ret = fd; else ret = -1; do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); return ret; } int __attribute__((ms_abi)) MSVCRT__eof(int fd) { DWORD curpos,endpos; LONG hcurpos,hendpos; HANDLE hand = msvcrt_fdtoh(fd); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) handle (%p)\n",fd,hand); } } while(0); if (hand == ((HANDLE)~(ULONG_PTR)0)) return -1; if (msvcrt_get_ioinfo(fd)->wxflag & 0x02) return 1; hcurpos = hendpos = 0; curpos = SetFilePointer(hand, 0, &hcurpos, 1); endpos = SetFilePointer(hand, 0, &hendpos, 2); if (curpos == endpos && hcurpos == hendpos) { return 1; } SetFilePointer(hand, curpos, &hcurpos, 0); return 0; } int __attribute__((ms_abi)) MSVCRT__fcloseall(void) { int num_closed = 0, i; MSVCRT_FILE *file; do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); for (i = 3; i < MSVCRT_stream_idx; i++) { file = msvcrt_get_file(i); if (file->_flag && !MSVCRT_fclose(file)) num_closed++; } do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":closed (%d) handles\n",num_closed); } } while(0); return num_closed; } void msvcrt_free_io(void) { int i; MSVCRT__fcloseall(); MSVCRT_fclose(&MSVCRT__iob[0]); MSVCRT_fclose(&MSVCRT__iob[1]); MSVCRT_fclose(&MSVCRT__iob[2]); for(i=0; iSpare[0] = 0; DeleteCriticalSection(&MSVCRT_file_cs); } long __attribute__((ms_abi)) MSVCRT__lseeki64(int fd, long offset, int whence) { HANDLE hand = msvcrt_fdtoh(fd); LARGE_INTEGER ofs; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) handle (%p)\n",fd,hand); } } while(0); if (hand == ((HANDLE)~(ULONG_PTR)0)) return -1; if (whence < 0 || whence > 2) { *MSVCRT__errno() = 22; return -1; } do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) to %s pos %s\n", fd,wine_dbgstr_longlong(offset), (whence==0)?"SEEK_SET": (whence==1)?"SEEK_CUR": (whence==2)?"SEEK_END":"UNKNOWN"); } } while(0) ; ofs.QuadPart = offset; if ((ofs.u.LowPart = SetFilePointer(hand, ofs.u.LowPart, &ofs.u.HighPart, whence)) != (~0u) || GetLastError() == 0) { msvcrt_get_ioinfo(fd)->wxflag &= ~(0x02|0x04); return ofs.QuadPart; } do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":error-last error (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(GetLastError()); return -1; } LONG __attribute__((ms_abi)) MSVCRT__lseek(int fd, LONG offset, int whence) { return MSVCRT__lseeki64(fd, offset, whence); } void __attribute__((ms_abi)) MSVCRT__lock_file(MSVCRT_FILE *file) { if(file>=MSVCRT__iob && filecrit); } void __attribute__((ms_abi)) MSVCRT__unlock_file(MSVCRT_FILE *file) { if(file>=MSVCRT__iob && filecrit); } int __attribute__((ms_abi)) MSVCRT__locking(int fd, int mode, LONG nbytes) { BOOL ret; DWORD cur_locn; HANDLE hand = msvcrt_fdtoh(fd); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) handle (%p)\n",fd,hand); } } while(0); if (hand == ((HANDLE)~(ULONG_PTR)0)) return -1; if (mode < 0 || mode > 4) { *MSVCRT__errno() = 22; return -1; } do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) by 0x%08x mode %s\n", fd,nbytes,(mode==0)?"_LK_UNLCK": (mode==1)?"_LK_LOCK": (mode==2)?"_LK_NBLCK": (mode==3)?"_LK_RLCK": (mode==4)?"_LK_NBRLCK": "UNKNOWN"); } } while(0) ; if ((cur_locn = SetFilePointer(hand, 0L, ((void *)0), 1)) == (~0u)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_FIXME))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_FIXME; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "Seek failed\n"); } } while(0); *MSVCRT__errno() = 22; return -1; } if (mode == 1 || mode == 3) { int nretry = 10; ret = 1; while (nretry--) { ret = LockFile(hand, cur_locn, 0L, nbytes, 0L); if (ret) break; Sleep(1); } } else if (mode == 0) ret = UnlockFile(hand, cur_locn, 0L, nbytes, 0L); else ret = LockFile(hand, cur_locn, 0L, nbytes, 0L); return ret ? 0 : -1; } int __attribute__((ms_abi)) MSVCRT__fseeki64(MSVCRT_FILE* file, long offset, int whence) { int ret; MSVCRT__lock_file(file); if(file->_flag & 0x0002) msvcrt_flush_buffer(file); if(whence == 1 && file->_flag & 0x0001 ) { offset -= file->_cnt; if (msvcrt_get_ioinfo(file->_file)->wxflag & 0x80) { int i; for (i=0; i_cnt; i++) { if (file->_ptr[i] == '\n') offset--; } if(msvcrt_get_ioinfo(file->_file)->wxflag & 0x08) offset--; } } file->_cnt = 0; file->_ptr = file->_base; if(file->_flag & 0x0080) { file->_flag &= ~(0x0001|0x0002); } file->_flag &= ~0x0010; ret = (MSVCRT__lseeki64(file->_file,offset,whence) == -1)?-1:0; MSVCRT__unlock_file(file); return ret; } int __attribute__((ms_abi)) MSVCRT_fseek(MSVCRT_FILE* file, MSVCRT_long offset, int whence) { return MSVCRT__fseeki64( file, offset, whence ); } int __attribute__((ms_abi)) MSVCRT__chsize(int fd, MSVCRT_long size) { LONG cur, pos; HANDLE handle; BOOL ret = 0; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "(fd=%d, size=%d)\n", fd, size); } } while(0); do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); handle = msvcrt_fdtoh(fd); if (handle != ((HANDLE)~(ULONG_PTR)0)) { cur = MSVCRT__lseek(fd, 0, 1); if (cur >= 0) { pos = MSVCRT__lseek(fd, size, 0); if (pos >= 0) { ret = SetEndOfFile(handle); if (!ret) msvcrt_set_errno(GetLastError()); } MSVCRT__lseek(fd, cur, 0); } } do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); return ret ? 0 : -1; } void __attribute__((ms_abi)) MSVCRT_clearerr(MSVCRT_FILE* file) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":file (%p) fd (%d)\n",file,file->_file); } } while(0); MSVCRT__lock_file(file); file->_flag &= ~(0x0020 | 0x0010); MSVCRT__unlock_file(file); } void __attribute__((ms_abi)) MSVCRT_rewind(MSVCRT_FILE* file) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":file (%p) fd (%d)\n",file,file->_file); } } while(0); MSVCRT__lock_file(file); MSVCRT_fseek(file, 0L, 0); MSVCRT_clearerr(file); MSVCRT__unlock_file(file); } static int msvcrt_get_flags(const MSVCRT_wchar_t* mode, int *open_flags, int* stream_flags) { int plus = strchrW(mode, '+') != ((void *)0); switch(*mode++) { case 'R': case 'r': *open_flags = plus ? 2 : 0; *stream_flags = plus ? 0x0080 : 0x0001; break; case 'W': case 'w': *open_flags = 0x0100 | 0x0200 | (plus ? 2 : 1); *stream_flags = plus ? 0x0080 : 0x0002; break; case 'A': case 'a': *open_flags = 0x0100 | 0x0008 | (plus ? 2 : 1); *stream_flags = plus ? 0x0080 : 0x0002; break; default: MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0); *MSVCRT__errno() = 22; return -1; } while (*mode) switch (*mode++) { case 'B': case 'b': *open_flags |= 0x8000; *open_flags &= ~0x4000; break; case 'T': case 't': *open_flags |= 0x4000; *open_flags &= ~0x8000; break; case '+': case ' ': break; default: do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_FIXME))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_FIXME; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":unknown flag %c not supported\n",mode[-1]); } } while(0); } return 0; } MSVCRT_FILE* __attribute__((ms_abi)) MSVCRT__fdopen(int fd, const char *mode) { MSVCRT_FILE *ret; MSVCRT_wchar_t *modeW = ((void *)0); if (mode && !(modeW = msvcrt_wstrdupa(mode))) return ((void *)0); ret = MSVCRT__wfdopen(fd, modeW); MSVCRT_free(modeW); return ret; } MSVCRT_FILE* __attribute__((ms_abi)) MSVCRT__wfdopen(int fd, const MSVCRT_wchar_t *mode) { int open_flags, stream_flags; MSVCRT_FILE* file; if (msvcrt_get_flags(mode, &open_flags, &stream_flags) == -1) return ((void *)0); do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); if (!(file = msvcrt_alloc_fp())) file = ((void *)0); else if (msvcrt_init_fp(file, fd, stream_flags) == -1) { file->_flag = 0; file = ((void *)0); } else do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) mode (%s) FILE* (%p)\n", fd, debugstr_w(mode), file); } } while(0); do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); return file; } LONG __attribute__((ms_abi)) MSVCRT__filelength(int fd) { LONG curPos = MSVCRT__lseek(fd, 0, 1); if (curPos != -1) { LONG endPos = MSVCRT__lseek(fd, 0, 2); if (endPos != -1) { if (endPos != curPos) MSVCRT__lseek(fd, curPos, 0); return endPos; } } return -1; } long __attribute__((ms_abi)) MSVCRT__filelengthi64(int fd) { long curPos = MSVCRT__lseeki64(fd, 0, 1); if (curPos != -1) { long endPos = MSVCRT__lseeki64(fd, 0, 2); if (endPos != -1) { if (endPos != curPos) MSVCRT__lseeki64(fd, curPos, 0); return endPos; } } return -1; } int __attribute__((ms_abi)) MSVCRT__fileno(MSVCRT_FILE* file) { int ret; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":FILE* (%p) fd (%d)\n",file,file->_file); } } while(0); MSVCRT__lock_file(file); ret = file->_file; MSVCRT__unlock_file(file); return ret; } int __attribute__((ms_abi)) MSVCRT__fstat64(int fd, struct MSVCRT__stat64* buf) { DWORD dw; DWORD type; BY_HANDLE_FILE_INFORMATION hfi; HANDLE hand = msvcrt_fdtoh(fd); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) stat (%p)\n",fd,buf); } } while(0); if (hand == ((HANDLE)~(ULONG_PTR)0)) return -1; if (!buf) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_WARN))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_WARN; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":failed-NULL buf\n"); } } while(0); msvcrt_set_errno(87); return -1; } memset(&hfi, 0, sizeof(hfi)); memset(buf, 0, sizeof(struct MSVCRT__stat64)); type = GetFileType(hand); if (type == 3) { buf->st_dev = buf->st_rdev = fd; buf->st_mode = 0010000; buf->st_nlink = 1; } else if (type == 2) { buf->st_dev = buf->st_rdev = fd; buf->st_mode = 0020000; buf->st_nlink = 1; } else { if (!GetFileInformationByHandle(hand, &hfi)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_WARN))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_WARN; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":failed-last error (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(87); return -1; } buf->st_mode = 0100000 | 0444; if (!(hfi.dwFileAttributes & 0x00000001)) buf->st_mode |= 0222; buf->st_size = ((long)hfi.nFileSizeHigh << 32) + hfi.nFileSizeLow; RtlTimeToSecondsSince1970((LARGE_INTEGER *)&hfi.ftLastAccessTime, &dw); buf->st_atime = dw; RtlTimeToSecondsSince1970((LARGE_INTEGER *)&hfi.ftLastWriteTime, &dw); buf->st_mtime = buf->st_ctime = dw; buf->st_nlink = hfi.nNumberOfLinks; } do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":dwFileAttributes = 0x%x, mode set to 0x%x\n",hfi.dwFileAttributes, buf->st_mode); } } while(0) ; return 0; } int __attribute__((ms_abi)) MSVCRT__fstati64(int fd, struct MSVCRT__stat64* buf) { int ret; struct MSVCRT__stat64 buf64; ret = MSVCRT__fstat64(fd, &buf64); if (!ret) msvcrt_stat64_to_stati64(&buf64, buf); return ret; } int __attribute__((ms_abi)) MSVCRT__fstat(int fd, struct MSVCRT__stat64i32* buf) { int ret; struct MSVCRT__stat64 buf64; ret = MSVCRT__fstat64(fd, &buf64); if (!ret) msvcrt_stat64_to_stat(&buf64, buf); return ret; } int __attribute__((ms_abi)) _futime64(int fd, struct MSVCRT___utimbuf64 *t) { HANDLE hand = msvcrt_fdtoh(fd); FILETIME at, wt; if (!t) { time_to_filetime( MSVCRT__time64(((void *)0)), &at ); wt = at; } else { time_to_filetime( t->actime, &at ); time_to_filetime( t->modtime, &wt ); } if (!SetFileTime(hand, ((void *)0), &at, &wt)) { msvcrt_set_errno(GetLastError()); return -1 ; } return 0; } int __attribute__((ms_abi)) _futime32(int fd, struct MSVCRT___utimbuf32 *t) { if (t) { struct MSVCRT___utimbuf64 t64; t64.actime = t->actime; t64.modtime = t->modtime; return _futime64( fd, &t64 ); } else return _futime64( fd, ((void *)0) ); } int __attribute__((ms_abi)) _futime(int fd, struct MSVCRT___utimbuf64 *t) { return _futime64( fd, t ); } # 1509 "file.c" MSVCRT_intptr_t __attribute__((ms_abi)) MSVCRT__get_osfhandle(int fd) { HANDLE hand = msvcrt_fdtoh(fd); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) handle (%p)\n",fd,hand); } } while(0); return (MSVCRT_intptr_t)hand; } int __attribute__((ms_abi)) MSVCRT__isatty(int fd) { HANDLE hand = msvcrt_fdtoh(fd); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) handle (%p)\n",fd,hand); } } while(0); if (hand == ((HANDLE)~(ULONG_PTR)0)) return 0; return GetFileType(hand) == 2? 1 : 0; } char * __attribute__((ms_abi)) MSVCRT__mktemp(char *pattern) { int numX = 0; char *retVal = pattern; int id; char letter = 'a'; while(*pattern) numX = (*pattern++ == 'X')? numX + 1 : 0; if (numX < 5) return ((void *)0); pattern--; id = GetCurrentProcessId(); numX = 6; while(numX--) { int tempNum = id / 10; *pattern-- = id - (tempNum * 10) + '0'; id = tempNum; } pattern++; do { *pattern = letter++; if (GetFileAttributesA(retVal) == (~0u) && GetLastError() == 2) return retVal; } while(letter <= 'z'); return ((void *)0); } MSVCRT_wchar_t * __attribute__((ms_abi)) MSVCRT__wmktemp(MSVCRT_wchar_t *pattern) { int numX = 0; MSVCRT_wchar_t *retVal = pattern; int id; MSVCRT_wchar_t letter = 'a'; while(*pattern) numX = (*pattern++ == 'X')? numX + 1 : 0; if (numX < 5) return ((void *)0); pattern--; id = GetCurrentProcessId(); numX = 6; while(numX--) { int tempNum = id / 10; *pattern-- = id - (tempNum * 10) + '0'; id = tempNum; } pattern++; do { if (GetFileAttributesW(retVal) == (~0u) && GetLastError() == 2) return retVal; *pattern = letter++; } while(letter != '|'); return ((void *)0); } static unsigned split_oflags(unsigned oflags) { int wxflags = 0; unsigned unsupp; if (oflags & 0x0008) wxflags |= 0x20; if (oflags & 0x8000) { } else if (oflags & 0x4000) wxflags |= 0x80; else if (*__p__fmode() & 0x8000) { } else wxflags |= 0x80; if (oflags & 0x0080) wxflags |= 0x10; if ((unsupp = oflags & ~( 0x8000|0x4000|0x0008| 0x0200|0x0400|0x0100| 2|1|0x0040| 0x0080| 0x0020|0x0010|0x1000 ))) do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_ERR))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_ERR; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":unsupported oflags 0x%04x\n",unsupp); } } while(0); return wxflags; } int __attribute__((ms_abi)) MSVCRT__pipe(int *pfds, unsigned int psize, int textmode) { int ret = -1; SECURITY_ATTRIBUTES sa; HANDLE readHandle, writeHandle; if (!pfds) { *MSVCRT__errno() = 22; return -1; } sa.nLength = sizeof(SECURITY_ATTRIBUTES); sa.bInheritHandle = !(textmode & 0x0080); sa.lpSecurityDescriptor = ((void *)0); if (CreatePipe(&readHandle, &writeHandle, &sa, psize)) { unsigned int wxflags = split_oflags(textmode); int fd; do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); fd = msvcrt_alloc_fd(readHandle, wxflags); if (fd != -1) { pfds[0] = fd; fd = msvcrt_alloc_fd(writeHandle, wxflags); if (fd != -1) { pfds[1] = fd; ret = 0; } else { MSVCRT__close(pfds[0]); CloseHandle(writeHandle); *MSVCRT__errno() = 24; } } else { CloseHandle(readHandle); CloseHandle(writeHandle); *MSVCRT__errno() = 24; } do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); } else msvcrt_set_errno(GetLastError()); return ret; } int __attribute__((ms_abi)) MSVCRT__sopen_s( int *fd, const char *path, int oflags, int shflags, int pmode ) { DWORD access = 0, creation = 0, attrib; DWORD sharing; int wxflag; HANDLE hand; SECURITY_ATTRIBUTES sa; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "fd*: %p file: (%s) oflags: 0x%04x shflags: 0x%04x pmode: 0x%04x\n", fd, path, oflags, shflags, pmode); } } while(0) ; if (!fd) { MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0); *MSVCRT__errno() = 22; return 22; } *fd = -1; wxflag = split_oflags(oflags); switch (oflags & (0 | 1 | 2)) { case 0: access |= 0x80000000; break; case 1: access |= 0x40000000; break; case 2: access |= 0x40000000 | 0x80000000; break; } if (oflags & 0x0100) { if(pmode & ~(0x0100 | 0x0080)) do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_FIXME))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_FIXME; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ": pmode 0x%04x ignored\n", pmode); } } while(0); else do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_WARN))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_WARN; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ": pmode 0x%04x ignored\n", pmode); } } while(0); if (oflags & 0x0400) creation = 1; else if (oflags & 0x0200) creation = 2; else creation = 4; } else { if (oflags & 0x0200) creation = 5; else creation = 3; } switch( shflags ) { case 0x10: sharing = 0L; break; case 0x20: sharing = 0x00000001L; break; case 0x30: sharing = 0x00000002L; break; case 0x40: sharing = 0x00000001L | 0x00000002L; break; default: do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_ERR))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_ERR; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "Unhandled shflags 0x%x\n", shflags); } } while(0); return 22; } attrib = 0x00000080; if (oflags & 0x0040) { attrib |= 0x04000000L; access |= 0x00010000; sharing |= 0x00000004L; } sa.nLength = sizeof( SECURITY_ATTRIBUTES ); sa.lpSecurityDescriptor = ((void *)0); sa.bInheritHandle = (oflags & 0x0080) ? 0 : 1; hand = CreateFileA(path, access, sharing, &sa, creation, attrib, 0); if (hand == ((HANDLE)~(ULONG_PTR)0)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_WARN))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_WARN; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":failed-last error (%d)\n", GetLastError()); } } while(0); msvcrt_set_errno(GetLastError()); return *MSVCRT__errno(); } *fd = msvcrt_alloc_fd(hand, wxflag); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) handle (%p)\n", *fd, hand); } } while(0); return 0; } int __attribute__((ms_abi)) MSVCRT__sopen( const char *path, int oflags, int shflags, ... ) { int pmode; int fd; if (oflags & 0x0100) { __builtin_ms_va_list ap; __builtin_ms_va_start(ap,shflags); pmode = __builtin_va_arg(ap,int); __builtin_ms_va_end(ap); } else pmode = 0; MSVCRT__sopen_s(&fd, path, oflags, shflags, pmode); return fd; } int __attribute__((ms_abi)) MSVCRT__wsopen_s( int *fd, const MSVCRT_wchar_t* path, int oflags, int shflags, int pmode ) { DWORD access = 0, creation = 0, attrib; SECURITY_ATTRIBUTES sa; DWORD sharing; int wxflag; HANDLE hand; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "fd*: %p :file (%s) oflags: 0x%04x shflags: 0x%04x pmode: 0x%04x\n", fd, debugstr_w(path), oflags, shflags, pmode); } } while(0) ; if (!fd) { MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0); *MSVCRT__errno() = 22; return 22; } *fd = -1; wxflag = split_oflags(oflags); switch (oflags & (0 | 1 | 2)) { case 0: access |= 0x80000000; break; case 1: access |= 0x40000000; break; case 2: access |= 0x40000000 | 0x80000000; break; } if (oflags & 0x0100) { if(pmode & ~(0x0100 | 0x0080)) do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_FIXME))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_FIXME; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ": pmode 0x%04x ignored\n", pmode); } } while(0); else do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_WARN))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_WARN; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ": pmode 0x%04x ignored\n", pmode); } } while(0); if (oflags & 0x0400) creation = 1; else if (oflags & 0x0200) creation = 2; else creation = 4; } else { if (oflags & 0x0200) creation = 5; else creation = 3; } switch( shflags ) { case 0x10: sharing = 0L; break; case 0x20: sharing = 0x00000001L; break; case 0x30: sharing = 0x00000002L; break; case 0x40: sharing = 0x00000001L | 0x00000002L; break; default: do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_ERR))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_ERR; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "Unhandled shflags 0x%x\n", shflags); } } while(0); return 22; } attrib = 0x00000080; if (oflags & 0x0040) { attrib |= 0x04000000L; access |= 0x00010000; sharing |= 0x00000004L; } sa.nLength = sizeof( SECURITY_ATTRIBUTES ); sa.lpSecurityDescriptor = ((void *)0); sa.bInheritHandle = (oflags & 0x0080) ? 0 : 1; hand = CreateFileW(path, access, sharing, &sa, creation, attrib, 0); if (hand == ((HANDLE)~(ULONG_PTR)0)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_WARN))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_WARN; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":failed-last error (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(GetLastError()); msvcrt_set_errno(GetLastError()); return *MSVCRT__errno(); } *fd = msvcrt_alloc_fd(hand, wxflag); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) handle (%p)\n", *fd, hand); } } while(0); return 0; } int __attribute__((ms_abi)) MSVCRT__wsopen( const MSVCRT_wchar_t *path, int oflags, int shflags, ... ) { int pmode; int fd; if (oflags & 0x0100) { __builtin_ms_va_list ap; __builtin_ms_va_start(ap,shflags); pmode = __builtin_va_arg(ap,int); __builtin_ms_va_end(ap); } else pmode = 0; MSVCRT__wsopen_s(&fd, path, oflags, shflags, pmode); return fd; } int __attribute__((ms_abi)) MSVCRT__open( const char *path, int flags, ... ) { __builtin_ms_va_list ap; if (flags & 0x0100) { int pmode; __builtin_ms_va_start(ap,flags); pmode = __builtin_va_arg(ap,int); __builtin_ms_va_end(ap); return MSVCRT__sopen( path, flags, 0x40, pmode ); } else return MSVCRT__sopen( path, flags, 0x40); } int __attribute__((ms_abi)) MSVCRT__wopen(const MSVCRT_wchar_t *path,int flags,...) { __builtin_ms_va_list ap; if (flags & 0x0100) { int pmode; __builtin_ms_va_start(ap,flags); pmode = __builtin_va_arg(ap,int); __builtin_ms_va_end(ap); return MSVCRT__wsopen( path, flags, 0x40, pmode ); } else return MSVCRT__wsopen( path, flags, 0x40); } int __attribute__((ms_abi)) MSVCRT__creat(const char *path, int flags) { int usedFlags = (flags & 0x4000)| 0x0100| 1| 0x0200; return MSVCRT__open(path, usedFlags); } int __attribute__((ms_abi)) MSVCRT__wcreat(const MSVCRT_wchar_t *path, int flags) { int usedFlags = (flags & 0x4000)| 0x0100| 1| 0x0200; return MSVCRT__wopen(path, usedFlags); } int __attribute__((ms_abi)) MSVCRT__open_osfhandle(MSVCRT_intptr_t handle, int oflags) { int fd; if (!(oflags & (0x8000 | 0x4000))) oflags |= 0x8000; fd = msvcrt_alloc_fd((HANDLE)handle, split_oflags(oflags)); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":handle (%ld) fd (%d) flags 0x%08x\n", handle, fd, oflags); } } while(0); return fd; } int __attribute__((ms_abi)) MSVCRT__rmtmp(void) { int num_removed = 0, i; MSVCRT_FILE *file; do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); for (i = 3; i < MSVCRT_stream_idx; i++) { file = msvcrt_get_file(i); if (file->_tmpfname) { MSVCRT_fclose(file); num_removed++; } } do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); if (num_removed) do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":removed (%d) temp files\n",num_removed); } } while(0); return num_removed; } # 2027 "file.c" static int read_i(int fd, void *buf, unsigned int count) { DWORD num_read; char *bufstart = buf; HANDLE hand = msvcrt_fdtoh(fd); ioinfo *fdinfo = msvcrt_get_ioinfo(fd); if (count == 0) return 0; if (fdinfo->wxflag & 0x04) { fdinfo->wxflag |= 0x02; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "already at EOF, returning 0\n"); } } while(0); return 0; } if (count > 4) do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) handle (%p) buf (%p) len (%d)\n",fd,hand,buf,count); } } while(0); if (hand == ((HANDLE)~(ULONG_PTR)0)) return -1; if (ReadFile(hand, bufstart, count, &num_read, ((void *)0))) { if (count != 0 && num_read == 0) { fdinfo->wxflag |= (0x02|0x04); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":EOF %s\n",debugstr_an(buf,num_read)); } } while(0); } else if (fdinfo->wxflag & 0x80) { DWORD i, j; if (bufstart[num_read-1] == '\r') { if(count == 1) { fdinfo->wxflag &= ~0x08; ReadFile(hand, bufstart, 1, &num_read, ((void *)0)); } else { fdinfo->wxflag |= 0x08; num_read--; } } else fdinfo->wxflag &= ~0x08; for (i=0, j=0; iwxflag |= (0x02|0x04); do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":^Z EOF %s\n",debugstr_an(buf,num_read)); } } while(0); break; } if ((bufstart[i] != '\r') || ((i+1) < num_read && bufstart[i+1] != '\n')) bufstart[j++] = bufstart[i]; } num_read = j; } } else { if (GetLastError() == 109) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":end-of-pipe\n"); } } while(0); fdinfo->wxflag |= (0x02|0x04); return 0; } else { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":failed-last error (%d)\n",GetLastError()); } } while(0); return -1; } } if (count > 4) do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "(%u), %s\n",num_read,debugstr_an(buf, num_read)); } } while(0); return num_read; } int __attribute__((ms_abi)) MSVCRT__read(int fd, void *buf, unsigned int count) { int num_read; num_read = read_i(fd, buf, count); return num_read; } int __attribute__((ms_abi)) MSVCRT__setmode(int fd,int mode) { int ret = msvcrt_get_ioinfo(fd)->wxflag & 0x80 ? 0x4000 : 0x8000; if (mode & (~(0x4000|0x8000))) do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_FIXME))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_FIXME; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "fd (%d) mode (0x%08x) unknown\n",fd,mode); } } while(0); if ((mode & 0x4000) == 0x4000) msvcrt_get_ioinfo(fd)->wxflag |= 0x80; else msvcrt_get_ioinfo(fd)->wxflag &= ~0x80; return ret; } int __attribute__((ms_abi)) MSVCRT_stat64(const char* path, struct MSVCRT__stat64 * buf) { DWORD dw; WIN32_FILE_ATTRIBUTE_DATA hfi; unsigned short mode = (0x0100 | (0x0100 >> 3) | (0x0100 >> 6)); int plen; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":file (%s) buf(%p)\n",path,buf); } } while(0); if (!GetFileAttributesExA(path, GetFileExInfoStandard, &hfi)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "failed (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(2); return -1; } memset(buf,0,sizeof(struct MSVCRT__stat64)); if (((*__ctype_b_loc ())[(int) ((*path))] & (unsigned short int) _ISalpha)&& (*(path+1)==':')) buf->st_dev = buf->st_rdev = (__extension__ ({ int __res; if (sizeof (*path) > 1) { if (__builtin_constant_p (*path)) { int __c = (*path); __res = __c < -128 || __c > 255 ? __c : (*__ctype_toupper_loc ())[__c]; } else __res = toupper (*path); } else __res = (*__ctype_toupper_loc ())[(int) (*path)]; __res; })) - 'A'; else buf->st_dev = buf->st_rdev = MSVCRT__getdrive() - 1; plen = strlen(path); if ((hfi.dwFileAttributes & 0x00000010) || (path[plen-1] == '\\')) mode |= (0x4000 | (0x0040 | (0x0040 >> 3) | (0x0040 >> 6))); else { mode |= 0x8000; if (plen > 6 && path[plen-4] == '.') { unsigned int ext = (__extension__ ({ int __res; if (sizeof (path[plen-1]) > 1) { if (__builtin_constant_p (path[plen-1])) { int __c = (path[plen-1]); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower (path[plen-1]); } else __res = (*__ctype_tolower_loc ())[(int) (path[plen-1])]; __res; })) | ((__extension__ ({ int __res; if (sizeof (path[plen-2]) > 1) { if (__builtin_constant_p (path[plen-2])) { int __c = (path[plen-2]); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower (path[plen-2]); } else __res = (*__ctype_tolower_loc ())[(int) (path[plen-2])]; __res; })) << 8) | ((__extension__ ({ int __res; if (sizeof (path[plen-3]) > 1) { if (__builtin_constant_p (path[plen-3])) { int __c = (path[plen-3]); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower (path[plen-3]); } else __res = (*__ctype_tolower_loc ())[(int) (path[plen-3])]; __res; })) << 16); if (ext == EXE || ext == BAT || ext == CMD || ext == COM) mode |= (0x0040 | (0x0040 >> 3) | (0x0040 >> 6)); } } if (!(hfi.dwFileAttributes & 0x00000001)) mode |= (0x0080 | (0x0080 >> 3) | (0x0080 >> 6)); buf->st_mode = mode; buf->st_nlink = 1; buf->st_size = ((long)hfi.nFileSizeHigh << 32) + hfi.nFileSizeLow; RtlTimeToSecondsSince1970((LARGE_INTEGER *)&hfi.ftLastAccessTime, &dw); buf->st_atime = dw; RtlTimeToSecondsSince1970((LARGE_INTEGER *)&hfi.ftLastWriteTime, &dw); buf->st_mtime = buf->st_ctime = dw; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "%d %d 0x%08x%08x %d %d %d\n", buf->st_mode,buf->st_nlink, (int)(buf->st_size >> 32),(int)buf->st_size, (int)buf->st_atime,(int)buf->st_mtime,(int)buf->st_ctime); } } while(0) ; return 0; } int __attribute__((ms_abi)) MSVCRT_stati64(const char* path, struct MSVCRT__stat64 * buf) { int ret; struct MSVCRT__stat64 buf64; ret = MSVCRT_stat64(path, &buf64); if (!ret) msvcrt_stat64_to_stati64(&buf64, buf); return ret; } int __attribute__((ms_abi)) MSVCRT_stat(const char* path, struct MSVCRT__stat64i32 * buf) { int ret; struct MSVCRT__stat64 buf64; ret = MSVCRT_stat64( path, &buf64); if (!ret) msvcrt_stat64_to_stat(&buf64, buf); return ret; } int __attribute__((ms_abi)) MSVCRT__wstat64(const MSVCRT_wchar_t* path, struct MSVCRT__stat64 * buf) { DWORD dw; WIN32_FILE_ATTRIBUTE_DATA hfi; unsigned short mode = (0x0100 | (0x0100 >> 3) | (0x0100 >> 6)); int plen; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":file (%s) buf(%p)\n",debugstr_w(path),buf); } } while(0); if (!GetFileAttributesExW(path, GetFileExInfoStandard, &hfi)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "failed (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(2); return -1; } memset(buf,0,sizeof(struct MSVCRT__stat64)); if (MSVCRT_iswalpha(*path)) buf->st_dev = buf->st_rdev = toupperW(*path - 'A'); else buf->st_dev = buf->st_rdev = MSVCRT__getdrive() - 1; plen = strlenW(path); if ((hfi.dwFileAttributes & 0x00000010) || (path[plen-1] == '\\')) mode |= (0x4000 | (0x0040 | (0x0040 >> 3) | (0x0040 >> 6))); else { mode |= 0x8000; if (plen > 6 && path[plen-4] == '.') { ULONGLONG ext = tolowerW(path[plen-1]) | (tolowerW(path[plen-2]) << 16) | ((ULONGLONG)tolowerW(path[plen-3]) << 32); if (ext == WCEXE || ext == WCBAT || ext == WCCMD || ext == WCCOM) mode |= (0x0040 | (0x0040 >> 3) | (0x0040 >> 6)); } } if (!(hfi.dwFileAttributes & 0x00000001)) mode |= (0x0080 | (0x0080 >> 3) | (0x0080 >> 6)); buf->st_mode = mode; buf->st_nlink = 1; buf->st_size = ((long)hfi.nFileSizeHigh << 32) + hfi.nFileSizeLow; RtlTimeToSecondsSince1970((LARGE_INTEGER *)&hfi.ftLastAccessTime, &dw); buf->st_atime = dw; RtlTimeToSecondsSince1970((LARGE_INTEGER *)&hfi.ftLastWriteTime, &dw); buf->st_mtime = buf->st_ctime = dw; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "%d %d 0x%08x%08x %d %d %d\n", buf->st_mode,buf->st_nlink, (int)(buf->st_size >> 32),(int)buf->st_size, (int)buf->st_atime,(int)buf->st_mtime,(int)buf->st_ctime); } } while(0) ; return 0; } int __attribute__((ms_abi)) MSVCRT__wstati64(const MSVCRT_wchar_t* path, struct MSVCRT__stat64 * buf) { int ret; struct MSVCRT__stat64 buf64; ret = MSVCRT__wstat64(path, &buf64); if (!ret) msvcrt_stat64_to_stati64(&buf64, buf); return ret; } int __attribute__((ms_abi)) MSVCRT__wstat(const MSVCRT_wchar_t* path, struct MSVCRT__stat64i32 * buf) { int ret; struct MSVCRT__stat64 buf64; ret = MSVCRT__wstat64( path, &buf64 ); if (!ret) msvcrt_stat64_to_stat(&buf64, buf); return ret; } MSVCRT_long __attribute__((ms_abi)) MSVCRT__tell(int fd) { return MSVCRT__lseek(fd, 0, 1); } long __attribute__((ms_abi)) _telli64(int fd) { return MSVCRT__lseeki64(fd, 0, 1); } char * __attribute__((ms_abi)) MSVCRT__tempnam(const char *dir, const char *prefix) { char tmpbuf[260]; const char *tmp_dir = MSVCRT_getenv("TMP"); if (tmp_dir) dir = tmp_dir; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "dir (%s) prefix (%s)\n",dir,prefix); } } while(0); if (GetTempFileNameA(dir,prefix,0,tmpbuf)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "got name (%s)\n",tmpbuf); } } while(0); DeleteFileA(tmpbuf); return MSVCRT__strdup(tmpbuf); } do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "failed (%d)\n",GetLastError()); } } while(0); return ((void *)0); } MSVCRT_wchar_t * __attribute__((ms_abi)) MSVCRT__wtempnam(const MSVCRT_wchar_t *dir, const MSVCRT_wchar_t *prefix) { MSVCRT_wchar_t tmpbuf[260]; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "dir (%s) prefix (%s)\n",debugstr_w(dir),debugstr_w(prefix)); } } while(0); if (GetTempFileNameW(dir,prefix,0,tmpbuf)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "got name (%s)\n",debugstr_w(tmpbuf)); } } while(0); DeleteFileW(tmpbuf); return MSVCRT__wcsdup(tmpbuf); } do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "failed (%d)\n",GetLastError()); } } while(0); return ((void *)0); } int __attribute__((ms_abi)) MSVCRT__umask(int umask) { int old_umask = MSVCRT_umask; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "(%d)\n",umask); } } while(0); MSVCRT_umask = umask; return old_umask; } int __attribute__((ms_abi)) _utime64(const char* path, struct MSVCRT___utimbuf64 *t) { int fd = MSVCRT__open(path, 1 | 0x8000); if (fd > 0) { int retVal = _futime64(fd, t); MSVCRT__close(fd); return retVal; } return -1; } int __attribute__((ms_abi)) _utime32(const char* path, struct MSVCRT___utimbuf32 *t) { if (t) { struct MSVCRT___utimbuf64 t64; t64.actime = t->actime; t64.modtime = t->modtime; return _utime64( path, &t64 ); } else return _utime64( path, ((void *)0) ); } int __attribute__((ms_abi)) _utime(const char* path, struct MSVCRT___utimbuf64 *t) { return _utime64( path, t ); } # 2439 "file.c" int __attribute__((ms_abi)) _wutime64(const MSVCRT_wchar_t* path, struct MSVCRT___utimbuf64 *t) { int fd = MSVCRT__wopen(path, 1 | 0x8000); if (fd > 0) { int retVal = _futime64(fd, t); MSVCRT__close(fd); return retVal; } return -1; } int __attribute__((ms_abi)) _wutime32(const MSVCRT_wchar_t* path, struct MSVCRT___utimbuf32 *t) { if (t) { struct MSVCRT___utimbuf64 t64; t64.actime = t->actime; t64.modtime = t->modtime; return _wutime64( path, &t64 ); } else return _wutime64( path, ((void *)0) ); } int __attribute__((ms_abi)) _wutime(const MSVCRT_wchar_t* path, struct MSVCRT___utimbuf64 *t) { return _wutime64( path, t ); } # 2486 "file.c" int __attribute__((ms_abi)) MSVCRT__write(int fd, const void* buf, unsigned int count) { DWORD num_written; HANDLE hand = msvcrt_fdtoh(fd); if (hand == ((HANDLE)~(ULONG_PTR)0)) { *MSVCRT__errno() = 9; return -1; } if (msvcrt_get_ioinfo(fd)->wxflag & 0x20) MSVCRT__lseek(fd, 0, 2); if (!(msvcrt_get_ioinfo(fd)->wxflag & 0x80)) { if (WriteFile(hand, buf, count, &num_written, ((void *)0)) && (num_written == count)) return num_written; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "WriteFile (fd %d, hand %p) failed-last error (%d)\n", fd, hand, GetLastError()); } } while(0) ; *MSVCRT__errno() = 28; } else { unsigned int i, j, nr_lf; char *p = ((void *)0); const char *q; const char *s = buf, *buf_start = buf; for ( nr_lf=0,i = 0; i flags & (1 << __WINE_DBCL_FIXME))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_FIXME; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "Malloc failed\n"); } } while(0); nr_lf =0; q = buf; } } else q = buf; if ((WriteFile(hand, q, count+nr_lf, &num_written, ((void *)0)) == 0 ) || (num_written != count+nr_lf)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "WriteFile (fd %d, hand %p) failed-last error (%d), num_written %d\n", fd, hand, GetLastError(), num_written); } } while(0) ; *MSVCRT__errno() = 28; if(nr_lf) MSVCRT_free(p); return s - buf_start; } else { if(nr_lf) MSVCRT_free(p); return count; } } return -1; } int __attribute__((ms_abi)) MSVCRT__putw(int val, MSVCRT_FILE* file) { int len; MSVCRT__lock_file(file); len = MSVCRT__write(file->_file, &val, sizeof(val)); if (len == sizeof(val)) { MSVCRT__unlock_file(file); return val; } file->_flag |= 0x0020; MSVCRT__unlock_file(file); return (-1); } int __attribute__((ms_abi)) MSVCRT_fclose(MSVCRT_FILE* file) { int r, flag; MSVCRT__lock_file(file); flag = file->_flag; MSVCRT_free(file->_tmpfname); file->_tmpfname = ((void *)0); if(file->_flag & 0x0002) MSVCRT_fflush(file); if(file->_flag & 0x0008) MSVCRT_free(file->_base); r=MSVCRT__close(file->_file); file->_flag = 0; MSVCRT__unlock_file(file); if(file=MSVCRT__iob+20) DeleteCriticalSection(&((file_crit*)file)->crit); if(file == msvcrt_get_file(MSVCRT_stream_idx-1)) { while(MSVCRT_stream_idx>3 && !file->_flag) { MSVCRT_stream_idx--; file = msvcrt_get_file(MSVCRT_stream_idx-1); } } return ((r == -1) || (flag & 0x0020) ? (-1) : 0); } int __attribute__((ms_abi)) MSVCRT_feof(MSVCRT_FILE* file) { int ret; MSVCRT__lock_file(file); ret = file->_flag & 0x0010; MSVCRT__unlock_file(file); return ret; } int __attribute__((ms_abi)) MSVCRT_ferror(MSVCRT_FILE* file) { int ret; MSVCRT__lock_file(file); ret = file->_flag & 0x0020; MSVCRT__unlock_file(file); return ret; } int __attribute__((ms_abi)) MSVCRT__filbuf(MSVCRT_FILE* file) { unsigned char c; MSVCRT__lock_file(file); if(file->_bufsiz == 0 && !(file->_flag & 0x0004)) msvcrt_alloc_buffer(file); if(!(file->_flag & 0x0001)) { if(file->_flag & 0x0080) file->_flag |= 0x0001; else { MSVCRT__unlock_file(file); return (-1); } } if(file->_flag & 0x0004) { int r; if ((r = read_i(file->_file,&c,1)) != 1) { file->_flag |= (r == 0) ? 0x0010 : 0x0020; MSVCRT__unlock_file(file); return (-1); } MSVCRT__unlock_file(file); return c; } else { file->_cnt = read_i(file->_file, file->_base, file->_bufsiz); if(file->_cnt<=0) { file->_flag |= (file->_cnt == 0) ? 0x0010 : 0x0020; file->_cnt = 0; MSVCRT__unlock_file(file); return (-1); } file->_cnt--; file->_ptr = file->_base+1; c = *(unsigned char *)file->_base; MSVCRT__unlock_file(file); return c; } } int __attribute__((ms_abi)) MSVCRT_fgetc(MSVCRT_FILE* file) { unsigned char *i; unsigned int j; MSVCRT__lock_file(file); if (file->_cnt>0) { file->_cnt--; i = (unsigned char *)file->_ptr++; j = *i; } else j = MSVCRT__filbuf(file); MSVCRT__unlock_file(file); return j; } int __attribute__((ms_abi)) MSVCRT__fgetchar(void) { return MSVCRT_fgetc((MSVCRT__iob+0)); } char * __attribute__((ms_abi)) MSVCRT_fgets(char *s, int size, MSVCRT_FILE* file) { int cc = (-1); char * buf_start = s; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":file(%p) fd (%d) str (%p) len (%d)\n", file,file->_file,s,size); } } while(0) ; MSVCRT__lock_file(file); while ((size >1) && (cc = MSVCRT_fgetc(file)) != (-1) && cc != '\n') { *s++ = (char)cc; size --; } if ((cc == (-1)) && (s == buf_start)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":nothing read\n"); } } while(0); MSVCRT__unlock_file(file); return ((void *)0); } if ((cc != (-1)) && (size > 1)) *s++ = cc; *s = '\0'; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":got %s\n", debugstr_a(buf_start)); } } while(0); MSVCRT__unlock_file(file); return buf_start; } MSVCRT_wint_t __attribute__((ms_abi)) MSVCRT_fgetwc(MSVCRT_FILE* file) { int c; MSVCRT__lock_file(file); if (!(msvcrt_get_ioinfo(file->_file)->wxflag & 0x80)) { MSVCRT_wchar_t wc; unsigned int i; int j; char *chp, *wcp; wcp = (char *)&wc; for(i=0; i_cnt>0) { file->_cnt--; chp = file->_ptr++; wcp[i] = *chp; } else { j = MSVCRT__filbuf(file); if(file->_cnt<=0) { file->_flag |= (file->_cnt == 0) ? 0x0010 : 0x0020; file->_cnt = 0; MSVCRT__unlock_file(file); return (MSVCRT_wint_t)(0xFFFF); } wcp[i] = j; } } MSVCRT__unlock_file(file); return wc; } c = MSVCRT_fgetc(file); if ((get_locinfo()->mb_cur_max > 1) && MSVCRT_isleadbyte(c)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_FIXME))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_FIXME; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "Treat Multibyte characters\n"); } } while(0); } MSVCRT__unlock_file(file); if (c == (-1)) return (MSVCRT_wint_t)(0xFFFF); else return (MSVCRT_wint_t)c; } int __attribute__((ms_abi)) MSVCRT__getw(MSVCRT_FILE* file) { char *ch; int i, k; unsigned int j; ch = (char *)&i; MSVCRT__lock_file(file); for (j=0; j_flag |= 0x0010; MSVCRT__unlock_file(file); return (-1); } ch[j] = k; } MSVCRT__unlock_file(file); return i; } MSVCRT_wint_t __attribute__((ms_abi)) MSVCRT_getwc(MSVCRT_FILE* file) { return MSVCRT_fgetwc(file); } MSVCRT_wint_t __attribute__((ms_abi)) MSVCRT__fgetwchar(void) { return MSVCRT_fgetwc((MSVCRT__iob+0)); } MSVCRT_wint_t __attribute__((ms_abi)) MSVCRT_getwchar(void) { return MSVCRT__fgetwchar(); } MSVCRT_wchar_t * __attribute__((ms_abi)) MSVCRT_fgetws(MSVCRT_wchar_t *s, int size, MSVCRT_FILE* file) { int cc = (MSVCRT_wint_t)(0xFFFF); MSVCRT_wchar_t * buf_start = s; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":file(%p) fd (%d) str (%p) len (%d)\n", file,file->_file,s,size); } } while(0) ; MSVCRT__lock_file(file); while ((size >1) && (cc = MSVCRT_fgetwc(file)) != (MSVCRT_wint_t)(0xFFFF) && cc != '\n') { *s++ = (char)cc; size --; } if ((cc == (MSVCRT_wint_t)(0xFFFF)) && (s == buf_start)) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":nothing read\n"); } } while(0); MSVCRT__unlock_file(file); return ((void *)0); } if ((cc != (MSVCRT_wint_t)(0xFFFF)) && (size > 1)) *s++ = cc; *s = 0; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":got %s\n", debugstr_w(buf_start)); } } while(0); MSVCRT__unlock_file(file); return buf_start; } MSVCRT_size_t __attribute__((ms_abi)) MSVCRT_fwrite(const void *ptr, MSVCRT_size_t size, MSVCRT_size_t nmemb, MSVCRT_FILE* file) { MSVCRT_size_t wrcnt=size * nmemb; int written = 0; if (size == 0) return 0; MSVCRT__lock_file(file); if(file->_cnt) { int pcnt=(file->_cnt>wrcnt)? wrcnt: file->_cnt; memcpy(file->_ptr, ptr, pcnt); file->_cnt -= pcnt; file->_ptr += pcnt; written = pcnt; wrcnt -= pcnt; ptr = (const char*)ptr + pcnt; } else if(!(file->_flag & 0x0002)) { if(file->_flag & 0x0080) { file->_flag |= 0x0002; } else { MSVCRT__unlock_file(file); return 0; } } if(wrcnt) { int res=msvcrt_flush_buffer(file); if(!res) { int pwritten = MSVCRT__write(file->_file, ptr, wrcnt); if (pwritten <= 0) { file->_flag |= 0x0020; pwritten=0; } written += pwritten; } } MSVCRT__unlock_file(file); return written / size; } MSVCRT_wint_t __attribute__((ms_abi)) MSVCRT_fputwc(MSVCRT_wint_t wc, MSVCRT_FILE* file) { MSVCRT_wchar_t mwc=wc; if (MSVCRT_fwrite( &mwc, sizeof(mwc), 1, file) != 1) return (MSVCRT_wint_t)(0xFFFF); return wc; } MSVCRT_wint_t __attribute__((ms_abi)) MSVCRT__fputwchar(MSVCRT_wint_t wc) { return MSVCRT_fputwc(wc, (MSVCRT__iob+1)); } MSVCRT_FILE * __attribute__((ms_abi)) MSVCRT__wfsopen(const MSVCRT_wchar_t *path, const MSVCRT_wchar_t *mode, int share) { MSVCRT_FILE* file; int open_flags, stream_flags, fd; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "(%s,%s)\n", debugstr_w(path), debugstr_w(mode)); } } while(0); if (msvcrt_get_flags(mode, &open_flags, &stream_flags) == -1) return ((void *)0); do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); fd = MSVCRT__wsopen(path, open_flags, share, 0x0100 | 0x0080); if (fd < 0) file = ((void *)0); else if ((file = msvcrt_alloc_fp()) && msvcrt_init_fp(file, fd, stream_flags) != -1) do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":fd (%d) mode (%s) FILE* (%p)\n", fd, debugstr_w(mode), file); } } while(0); else if (file) { file->_flag = 0; file = ((void *)0); } do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":got (%p)\n",file); } } while(0); if (fd >= 0 && !file) MSVCRT__close(fd); do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); return file; } MSVCRT_FILE * __attribute__((ms_abi)) MSVCRT__fsopen(const char *path, const char *mode, int share) { MSVCRT_FILE *ret; MSVCRT_wchar_t *pathW = ((void *)0), *modeW = ((void *)0); if (path && !(pathW = msvcrt_wstrdupa(path))) { MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0); *MSVCRT__errno() = 22; return ((void *)0); } if (mode && !(modeW = msvcrt_wstrdupa(mode))) { MSVCRT_free(pathW); MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0); *MSVCRT__errno() = 22; return ((void *)0); } ret = MSVCRT__wfsopen(pathW, modeW, share); MSVCRT_free(pathW); MSVCRT_free(modeW); return ret; } MSVCRT_FILE * __attribute__((ms_abi)) MSVCRT_fopen(const char *path, const char *mode) { return MSVCRT__fsopen( path, mode, 0x40 ); } int __attribute__((ms_abi)) MSVCRT_fopen_s(MSVCRT_FILE** pFile, const char *filename, const char *mode) { if (!((pFile != ((void *)0)) || (MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0),0)) || !((filename != ((void *)0)) || (MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0),0)) || !((mode != ((void *)0)) || (MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0),0))) { *MSVCRT__errno() = 22; return 22; } *pFile = MSVCRT_fopen(filename, mode); if(!*pFile) return *MSVCRT__errno(); return 0; } MSVCRT_FILE * __attribute__((ms_abi)) MSVCRT__wfopen(const MSVCRT_wchar_t *path, const MSVCRT_wchar_t *mode) { return MSVCRT__wfsopen( path, mode, 0x40 ); } int __attribute__((ms_abi)) MSVCRT__wfopen_s(MSVCRT_FILE** pFile, const MSVCRT_wchar_t *filename, const MSVCRT_wchar_t *mode) { if (!((pFile != ((void *)0)) || (MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0),0)) || !((filename != ((void *)0)) || (MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0),0)) || !((mode != ((void *)0)) || (MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0),0))) { *MSVCRT__errno() = 22; return 22; } *pFile = MSVCRT__wfopen(filename, mode); if(!*pFile) return *MSVCRT__errno(); return 0; } int __attribute__((ms_abi)) MSVCRT__flsbuf(int c, MSVCRT_FILE* file); int __attribute__((ms_abi)) MSVCRT_fputc(int c, MSVCRT_FILE* file) { int res; MSVCRT__lock_file(file); if(file->_cnt>0) { *file->_ptr++=c; file->_cnt--; if (c == '\n') { res = msvcrt_flush_buffer(file); MSVCRT__unlock_file(file); return res ? res : c; } else { MSVCRT__unlock_file(file); return c & 0xff; } } else { res = MSVCRT__flsbuf(c, file); MSVCRT__unlock_file(file); return res; } } int __attribute__((ms_abi)) MSVCRT__flsbuf(int c, MSVCRT_FILE* file) { MSVCRT__lock_file(file); if(file->_bufsiz == 0 && !(file->_flag & 0x0004)) { msvcrt_alloc_buffer(file); } if(!(file->_flag & 0x0002)) { if(file->_flag & 0x0080) { file->_flag |= 0x0002; } else { MSVCRT__unlock_file(file); return (-1); } } if(file->_bufsiz) { int res=msvcrt_flush_buffer(file); if(!res) res = MSVCRT_fputc(c, file); MSVCRT__unlock_file(file); return res; } else { unsigned char cc=c; int len; file->_cnt = 0; len = MSVCRT__write(file->_file, &cc, 1); if (len == 1) { MSVCRT__unlock_file(file); return c & 0xff; } file->_flag |= 0x0020; MSVCRT__unlock_file(file); return (-1); } } int __attribute__((ms_abi)) MSVCRT__fputchar(int c) { return MSVCRT_fputc(c, (MSVCRT__iob+1)); } MSVCRT_size_t __attribute__((ms_abi)) MSVCRT_fread(void *ptr, MSVCRT_size_t size, MSVCRT_size_t nmemb, MSVCRT_FILE* file) { MSVCRT_size_t rcnt=size * nmemb; MSVCRT_size_t read=0; int pread=0; if(!rcnt) return 0; MSVCRT__lock_file(file); if(file->_cnt>0) { int pcnt= (rcnt>file->_cnt)? file->_cnt:rcnt; memcpy(ptr, file->_ptr, pcnt); file->_cnt -= pcnt; file->_ptr += pcnt; read += pcnt ; rcnt -= pcnt ; ptr = (char*)ptr + pcnt; } else if(!(file->_flag & 0x0001 )) { if(file->_flag & 0x0080) { file->_flag |= 0x0001; } else { MSVCRT__unlock_file(file); return 0; } } while(rcnt>0) { int i; if (!file->_cnt && size*nmemb <= 512/2 && !(file->_flag & 0x0004)) { if (file->_bufsiz == 0) { msvcrt_alloc_buffer(file); } file->_cnt = MSVCRT__read(file->_file, file->_base, file->_bufsiz); file->_ptr = file->_base; i = (file->_cnt_cnt : rcnt; if (i > 0 && i < file->_cnt) { msvcrt_get_ioinfo(file->_file)->wxflag &= ~0x02; file->_flag &= ~0x0010; } if (i > 0) { memcpy(ptr, file->_ptr, i); file->_cnt -= i; file->_ptr += i; } } else { i = MSVCRT__read(file->_file,ptr, rcnt); } pread += i; rcnt -= i; ptr = (char *)ptr+i; if (msvcrt_get_ioinfo(file->_file)->wxflag & 0x02) file->_flag |= 0x0010; else if (i == -1) { file->_flag |= 0x0020; pread = 0; rcnt = 0; } if (i < 1) break; } read+=pread; MSVCRT__unlock_file(file); return read / size; } MSVCRT_FILE* __attribute__((ms_abi)) MSVCRT__wfreopen(const MSVCRT_wchar_t *path, const MSVCRT_wchar_t *mode, MSVCRT_FILE* file) { int open_flags, stream_flags, fd; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":path (%p) mode (%s) file (%p) fd (%d)\n", debugstr_w(path), debugstr_w(mode), file, file->_file); } } while(0); do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); if (!file || ((fd = file->_file) < 0) || fd > MSVCRT_fdend) file = ((void *)0); else { MSVCRT_fclose(file); if (msvcrt_get_flags(mode, &open_flags, &stream_flags) == -1) file = ((void *)0); else { fd = MSVCRT__wopen(path, open_flags, 0x0100 | 0x0080); if (fd < 0) file = ((void *)0); else if (msvcrt_init_fp(file, fd, stream_flags) == -1) { file->_flag = 0; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_WARN))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_WARN; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":failed-last error (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(GetLastError()); file = ((void *)0); } } } do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); return file; } MSVCRT_FILE* __attribute__((ms_abi)) MSVCRT_freopen(const char *path, const char *mode, MSVCRT_FILE* file) { MSVCRT_FILE *ret; MSVCRT_wchar_t *pathW = ((void *)0), *modeW = ((void *)0); if (path && !(pathW = msvcrt_wstrdupa(path))) return ((void *)0); if (mode && !(modeW = msvcrt_wstrdupa(mode))) { MSVCRT_free(pathW); return ((void *)0); } ret = MSVCRT__wfreopen(pathW, modeW, file); MSVCRT_free(pathW); MSVCRT_free(modeW); return ret; } int __attribute__((ms_abi)) MSVCRT_fsetpos(MSVCRT_FILE* file, MSVCRT_fpos_t *pos) { int ret; MSVCRT__lock_file(file); if(file->_flag & 0x0002) msvcrt_flush_buffer(file); file->_cnt = 0; file->_ptr = file->_base; if(file->_flag & 0x0080) { file->_flag &= ~(0x0001|0x0002); } ret = (MSVCRT__lseeki64(file->_file,*pos,0) == -1) ? -1 : 0; MSVCRT__unlock_file(file); return ret; } long __attribute__((ms_abi)) MSVCRT__ftelli64(MSVCRT_FILE* file) { int off=0; long pos; MSVCRT__lock_file(file); pos = _telli64(file->_file); if(pos == -1) { MSVCRT__unlock_file(file); return -1; } if(file->_bufsiz) { if( file->_flag & 0x0002 ) { off = file->_ptr - file->_base; } else { off = -file->_cnt; if (msvcrt_get_ioinfo(file->_file)->wxflag & 0x80) { int i; for (i=0; i_cnt; i++) { if (file->_ptr[i] == '\n') off--; } if(msvcrt_get_ioinfo(file->_file)->wxflag & 0x08) off--; } } } MSVCRT__unlock_file(file); return off + pos; } LONG __attribute__((ms_abi)) MSVCRT_ftell(MSVCRT_FILE* file) { return MSVCRT__ftelli64(file); } int __attribute__((ms_abi)) MSVCRT_fgetpos(MSVCRT_FILE* file, MSVCRT_fpos_t *pos) { int off=0; MSVCRT__lock_file(file); *pos = MSVCRT__lseeki64(file->_file,0,1); if(*pos == -1) { MSVCRT__unlock_file(file); return -1; } if(file->_bufsiz) { if( file->_flag & 0x0002 ) { off = file->_ptr - file->_base; } else { off = -file->_cnt; if (msvcrt_get_ioinfo(file->_file)->wxflag & 0x80) { int i; for (i=0; i_cnt; i++) { if (file->_ptr[i] == '\n') off--; } if(msvcrt_get_ioinfo(file->_file)->wxflag & 0x08) off--; } } } *pos += off; MSVCRT__unlock_file(file); return 0; } int __attribute__((ms_abi)) MSVCRT_fputs(const char *s, MSVCRT_FILE* file) { MSVCRT_size_t i, len = strlen(s); int ret; MSVCRT__lock_file(file); if (!(msvcrt_get_ioinfo(file->_file)->wxflag & 0x80)) { ret = MSVCRT_fwrite(s,sizeof(*s),len,file) == len ? 0 : (-1); MSVCRT__unlock_file(file); return ret; } for (i=0; i_file)->wxflag & 0x80)) { ret = MSVCRT_fwrite(s,sizeof(*s),len,file) == len ? 0 : (-1); MSVCRT__unlock_file(file); return ret; } for (i=0; iflags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "got '%s'\n", buf_start); } } while(0); MSVCRT__unlock_file((MSVCRT__iob+0)); return buf_start; } MSVCRT_wchar_t* __attribute__((ms_abi)) MSVCRT__getws(MSVCRT_wchar_t* buf) { MSVCRT_wint_t cc; MSVCRT_wchar_t* ws = buf; MSVCRT__lock_file((MSVCRT__iob+0)); for (cc = MSVCRT_fgetwc((MSVCRT__iob+0)); cc != (MSVCRT_wint_t)(0xFFFF) && cc != '\n'; cc = MSVCRT_fgetwc((MSVCRT__iob+0))) { if (cc != '\r') *buf++ = (MSVCRT_wchar_t)cc; } *buf = '\0'; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "got %s\n", debugstr_w(ws)); } } while(0); MSVCRT__unlock_file((MSVCRT__iob+0)); return ws; } int __attribute__((ms_abi)) MSVCRT_putc(int c, MSVCRT_FILE* file) { return MSVCRT_fputc(c, file); } int __attribute__((ms_abi)) MSVCRT_putchar(int c) { return MSVCRT_fputc(c, (MSVCRT__iob+1)); } int __attribute__((ms_abi)) MSVCRT__putwch(int c) { return MSVCRT_fputwc(c, (MSVCRT__iob+1)); } int __attribute__((ms_abi)) MSVCRT_puts(const char *s) { MSVCRT_size_t len = strlen(s); int ret; MSVCRT__lock_file((MSVCRT__iob+1)); if(MSVCRT_fwrite(s, sizeof(*s), len, (MSVCRT__iob+1)) != len) { MSVCRT__unlock_file((MSVCRT__iob+1)); return (-1); } ret = MSVCRT_fwrite("\n",1,1,(MSVCRT__iob+1)) == 1 ? 0 : (-1); MSVCRT__unlock_file((MSVCRT__iob+1)); return ret; } int __attribute__((ms_abi)) MSVCRT__putws(const MSVCRT_wchar_t *s) { static const MSVCRT_wchar_t nl = '\n'; MSVCRT_size_t len = strlenW(s); int ret; MSVCRT__lock_file((MSVCRT__iob+1)); if(MSVCRT_fwrite(s, sizeof(*s), len, (MSVCRT__iob+1)) != len) { MSVCRT__unlock_file((MSVCRT__iob+1)); return (-1); } ret = MSVCRT_fwrite(&nl,sizeof(nl),1,(MSVCRT__iob+1)) == 1 ? 0 : (-1); MSVCRT__unlock_file((MSVCRT__iob+1)); return ret; } int __attribute__((ms_abi)) MSVCRT_remove(const char *path) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "(%s)\n",path); } } while(0); if (DeleteFileA(path)) return 0; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":failed (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(GetLastError()); return -1; } int __attribute__((ms_abi)) MSVCRT__wremove(const MSVCRT_wchar_t *path) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "(%s)\n",debugstr_w(path)); } } while(0); if (DeleteFileW(path)) return 0; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":failed (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(GetLastError()); return -1; } int __attribute__((ms_abi)) MSVCRT_rename(const char *oldpath,const char *newpath) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":from %s to %s\n",oldpath,newpath); } } while(0); if (MoveFileExA(oldpath, newpath, 0x00000002)) return 0; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":failed (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(GetLastError()); return -1; } int __attribute__((ms_abi)) MSVCRT__wrename(const MSVCRT_wchar_t *oldpath,const MSVCRT_wchar_t *newpath) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":from %s to %s\n",debugstr_w(oldpath),debugstr_w(newpath)); } } while(0); if (MoveFileExW(oldpath, newpath, 0x00000002)) return 0; do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, ":failed (%d)\n",GetLastError()); } } while(0); msvcrt_set_errno(GetLastError()); return -1; } int __attribute__((ms_abi)) MSVCRT_setvbuf(MSVCRT_FILE* file, char *buf, int mode, MSVCRT_size_t size) { MSVCRT__lock_file(file); if(file->_bufsiz) { MSVCRT_free(file->_base); file->_bufsiz = 0; file->_cnt = 0; } if(mode == 0x0000) { file->_flag &= ~0x0004; file->_base = file->_ptr = buf; if(buf) { file->_bufsiz = size; } } else { file->_flag |= 0x0004; } MSVCRT__unlock_file(file); return 0; } void __attribute__((ms_abi)) MSVCRT_setbuf(MSVCRT_FILE* file, char *buf) { MSVCRT_setvbuf(file, buf, buf ? 0x0000 : 0x0004, 512); } char * __attribute__((ms_abi)) MSVCRT_tmpnam(char *s) { char tmpstr[16]; char *p; int count, size; if (!s) { thread_data_t *data = msvcrt_get_thread_data(); if(!data->tmpnam_buffer) data->tmpnam_buffer = MSVCRT_malloc(260); s = data->tmpnam_buffer; } msvcrt_int_to_base32(GetCurrentProcessId(), tmpstr); p = s + sprintf(s, "\\s%s.", tmpstr); for (count = 0; count < 0x7fff; count++) { size = msvcrt_int_to_base32(tmpnam_unique++, tmpstr); memcpy(p, tmpstr, size); p[size] = '\0'; if (GetFileAttributesA(s) == (~0u) && GetLastError() == 2) break; } return s; } MSVCRT_wchar_t * __attribute__((ms_abi)) MSVCRT_wtmpnam(MSVCRT_wchar_t *s) { static const MSVCRT_wchar_t format[] = {'\\','s','%','s','.',0}; MSVCRT_wchar_t tmpstr[16]; MSVCRT_wchar_t *p; int count, size; if (!s) { thread_data_t *data = msvcrt_get_thread_data(); if(!data->wtmpnam_buffer) data->wtmpnam_buffer = MSVCRT_malloc(sizeof(MSVCRT_wchar_t[260])); s = data->wtmpnam_buffer; } msvcrt_int_to_base32_w(GetCurrentProcessId(), tmpstr); p = s + MSVCRT__snwprintf(s, 260, format, tmpstr); for (count = 0; count < 0x7fff; count++) { size = msvcrt_int_to_base32_w(tmpnam_unique++, tmpstr); memcpy(p, tmpstr, size*sizeof(MSVCRT_wchar_t)); p[size] = '\0'; if (GetFileAttributesW(s) == (~0u) && GetLastError() == 2) break; } return s; } MSVCRT_FILE* __attribute__((ms_abi)) MSVCRT_tmpfile(void) { char *filename = MSVCRT_tmpnam(((void *)0)); int fd; MSVCRT_FILE* file = ((void *)0); do { EnterCriticalSection(&MSVCRT_file_cs); } while (0); fd = MSVCRT__open(filename, 0x0100 | 0x8000 | 2 | 0x0040); if (fd != -1 && (file = msvcrt_alloc_fp())) { if (msvcrt_init_fp(file, fd, 2) == -1) { file->_flag = 0; file = ((void *)0); } else file->_tmpfname = MSVCRT__strdup(filename); } do { LeaveCriticalSection(&MSVCRT_file_cs); } while (0); return file; } static int puts_clbk_file_a(void *file, int len, const char *str) { return MSVCRT_fwrite(str, sizeof(char), len, file); } static int puts_clbk_file_w(void *file, int len, const MSVCRT_wchar_t *str) { return MSVCRT_fwrite(str, sizeof(MSVCRT_wchar_t), len, file); } int __attribute__((ms_abi)) MSVCRT_vfprintf(MSVCRT_FILE* file, const char *format, __builtin_ms_va_list valist) { int ret; MSVCRT__lock_file(file); ret = pf_printf_a(puts_clbk_file_a, file, format, ((void *)0), 0, 0, arg_clbk_valist, ((void *)0), &valist); MSVCRT__unlock_file(file); return ret; } int __attribute__((ms_abi)) MSVCRT_vfprintf_s(MSVCRT_FILE* file, const char *format, __builtin_ms_va_list valist) { int ret; if(!((file != ((void *)0)) || (MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0),0))) { *MSVCRT__errno() = 22; return -1; } MSVCRT__lock_file(file); ret = pf_printf_a(puts_clbk_file_a, file, format, ((void *)0), 0, 1, arg_clbk_valist, ((void *)0), &valist); MSVCRT__unlock_file(file); return ret; } int __attribute__((ms_abi)) MSVCRT_vfwprintf(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, __builtin_ms_va_list valist) { int ret; MSVCRT__lock_file(file); ret = pf_printf_w(puts_clbk_file_w, file, format, ((void *)0), 0, 0, arg_clbk_valist, ((void *)0), &valist); MSVCRT__unlock_file(file); return ret; } int __attribute__((ms_abi)) MSVCRT_vfwprintf_s(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, __builtin_ms_va_list valist) { int ret; if(!((file != ((void *)0)) || (MSVCRT__invalid_parameter(((void *)0), ((void *)0), ((void *)0), 0, 0),0))) { *MSVCRT__errno() = 22; return -1; } MSVCRT__lock_file(file); ret = pf_printf_w(puts_clbk_file_w, file, format, ((void *)0), 0, 1, arg_clbk_valist, ((void *)0), &valist); MSVCRT__unlock_file(file); return ret; } int __attribute__((ms_abi)) MSVCRT_vprintf(const char *format, __builtin_ms_va_list valist) { return MSVCRT_vfprintf((MSVCRT__iob+1),format,valist); } int __attribute__((ms_abi)) MSVCRT_vprintf_s(const char *format, __builtin_ms_va_list valist) { return MSVCRT_vfprintf_s((MSVCRT__iob+1),format,valist); } int __attribute__((ms_abi)) MSVCRT_vwprintf(const MSVCRT_wchar_t *format, __builtin_ms_va_list valist) { return MSVCRT_vfwprintf((MSVCRT__iob+1),format,valist); } int __attribute__((ms_abi)) MSVCRT_vwprintf_s(const MSVCRT_wchar_t *format, __builtin_ms_va_list valist) { return MSVCRT_vfwprintf_s((MSVCRT__iob+1),format,valist); } int __attribute__((ms_abi)) MSVCRT_fprintf(MSVCRT_FILE* file, const char *format, ...) { __builtin_ms_va_list valist; int res; __builtin_ms_va_start(valist,format); res = MSVCRT_vfprintf(file, format, valist); __builtin_ms_va_end(valist); return res; } int __attribute__((ms_abi)) MSVCRT_fprintf_s(MSVCRT_FILE* file, const char *format, ...) { __builtin_ms_va_list valist; int res; __builtin_ms_va_start(valist,format); res = MSVCRT_vfprintf_s(file, format, valist); __builtin_ms_va_end(valist); return res; } int __attribute__((ms_abi)) MSVCRT_fwprintf(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, ...) { __builtin_ms_va_list valist; int res; __builtin_ms_va_start(valist,format); res = MSVCRT_vfwprintf(file, format, valist); __builtin_ms_va_end(valist); return res; } int __attribute__((ms_abi)) MSVCRT_fwprintf_s(MSVCRT_FILE* file, const MSVCRT_wchar_t *format, ...) { __builtin_ms_va_list valist; int res; __builtin_ms_va_start(valist,format); res = MSVCRT_vfwprintf_s(file, format, valist); __builtin_ms_va_end(valist); return res; } int __attribute__((ms_abi)) MSVCRT_printf(const char *format, ...) { __builtin_ms_va_list valist; int res; __builtin_ms_va_start(valist,format); res = MSVCRT_vfprintf((MSVCRT__iob+1), format, valist); __builtin_ms_va_end(valist); return res; } int __attribute__((ms_abi)) MSVCRT_printf_s(const char *format, ...) { __builtin_ms_va_list valist; int res; __builtin_ms_va_start(valist,format); res = MSVCRT_vprintf_s(format, valist); __builtin_ms_va_end(valist); return res; } int __attribute__((ms_abi)) MSVCRT_ungetc(int c, MSVCRT_FILE * file) { if (c == (-1)) return (-1); MSVCRT__lock_file(file); if(file->_bufsiz == 0) { msvcrt_alloc_buffer(file); file->_ptr++; } if(file->_ptr>file->_base) { file->_ptr--; *file->_ptr=c; file->_cnt++; MSVCRT_clearerr(file); MSVCRT__unlock_file(file); return c; } MSVCRT__unlock_file(file); return (-1); } MSVCRT_wint_t __attribute__((ms_abi)) MSVCRT_ungetwc(MSVCRT_wint_t wc, MSVCRT_FILE * file) { MSVCRT_wchar_t mwc = wc; char * pp = (char *)&mwc; int i; MSVCRT__lock_file(file); for(i=sizeof(MSVCRT_wchar_t)-1;i>=0;i--) { if(pp[i] != MSVCRT_ungetc(pp[i],file)) { MSVCRT__unlock_file(file); return (MSVCRT_wint_t)(0xFFFF); } } MSVCRT__unlock_file(file); return mwc; } int __attribute__((ms_abi)) MSVCRT_wprintf(const MSVCRT_wchar_t *format, ...) { __builtin_ms_va_list valist; int res; __builtin_ms_va_start(valist,format); res = MSVCRT_vwprintf(format, valist); __builtin_ms_va_end(valist); return res; } int __attribute__((ms_abi)) MSVCRT_wprintf_s(const MSVCRT_wchar_t *format, ...) { __builtin_ms_va_list valist; int res; __builtin_ms_va_start(valist,format); res = MSVCRT_vwprintf_s(format, valist); __builtin_ms_va_end(valist); return res; } int __attribute__((ms_abi)) MSVCRT__getmaxstdio(void) { return MSVCRT_max_streams; } int __attribute__((ms_abi)) MSVCRT__setmaxstdio(int newmax) { do { if((((__wine_dbch___default))->flags & (1 << __WINE_DBCL_TRACE))) { struct __wine_debug_channel * const __dbch = (__wine_dbch___default); const enum __wine_debug_class __dbcl = __WINE_DBCL_TRACE; wine_dbg_log( __dbcl, __dbch, __FUNCTION__, "%d\n", newmax); } } while(0); if(newmax<20 || newmax>2048 || newmax