summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/libc/musl_openbsd_amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/libc/musl_openbsd_amd64.go')
-rw-r--r--vendor/modernc.org/libc/musl_openbsd_amd64.go4586
1 files changed, 972 insertions, 3614 deletions
diff --git a/vendor/modernc.org/libc/musl_openbsd_amd64.go b/vendor/modernc.org/libc/musl_openbsd_amd64.go
index 6a2a07ba..c0493349 100644
--- a/vendor/modernc.org/libc/musl_openbsd_amd64.go
+++ b/vendor/modernc.org/libc/musl_openbsd_amd64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6,getnameinfo,gethostbyaddr_r, -nostdinc -nostdlib -o ../musl_openbsd_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../freebsd/table.cpp.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isspace.c src/ctype/isupper.c src/ctype/isxdigit.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strnlen.c src/string/strspn.c', DO NOT EDIT.
+// Code generated by 'ccgo -export-externs X -export-fields F -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6,getnameinfo,gethostbyaddr_r, -nostdinc -nostdlib -o ../musl_openbsd_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../openbsd/ctype_.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isspace.c src/ctype/isupper.c src/ctype/isxdigit.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strnlen.c src/string/strspn.c', DO NOT EDIT.
package libc
@@ -357,2964 +357,322 @@ type size_t = uint64 /* <builtin>:9:23 */
type wchar_t = int32 /* <builtin>:15:24 */
-/// typedef __ct_rune_t __wint_t;
-///
-///
-///
-/// typedef __uint_least16_t __char16_t;
-/// typedef __uint_least32_t __char32_t;
-///
-///
-///
-///
-///
-///
-///
-/// typedef struct {
-/// long long __max_align1 __attribute__((__aligned__(_Alignof(long long))));
-///
-/// long double __max_align2 __attribute__((__aligned__(_Alignof(long double))));
-///
-/// } __max_align_t;
-///
-/// typedef __uint64_t __dev_t;
-///
-/// typedef __uint32_t __fixpt_t;
-///
-///
-///
-///
-///
-/// typedef union {
-/// char __mbstate8[128];
-/// __int64_t _mbstateL;
-/// } __mbstate_t;
-///
-/// typedef __uintmax_t __rman_res_t;
-///
-///
-///
-///
-///
-///
-/// typedef __builtin_va_list __va_list;
-///
-///
-///
-///
-///
-///
-/// typedef __va_list __gnuc_va_list;
-///
-///
-///
-///
-/// unsigned long ___runetype(__ct_rune_t) __attribute__((__pure__));
-/// __ct_rune_t ___tolower(__ct_rune_t) __attribute__((__pure__));
-/// __ct_rune_t ___toupper(__ct_rune_t) __attribute__((__pure__));
-///
-///
-/// extern int __mb_sb_limit;
-
-type _RuneEntry = struct {
- __min int32
- __max int32
- __map int32
- _ [4]byte
- __types uintptr
-} /* table.cpp.c:290:3 */
-
-type _RuneRange = struct {
- __nranges int32
- _ [4]byte
- __ranges uintptr
-} /* table.cpp.c:295:3 */
-
-type _RuneLocale = struct {
- __magic [8]int8
- __encoding [32]int8
- __sgetrune uintptr
- __sputrune uintptr
- __invalid_rune int32
- _ [4]byte
- __runetype [256]uint64
- __maplower [256]int32
- __mapupper [256]int32
- __runetype_ext _RuneRange
- __maplower_ext _RuneRange
- __mapupper_ext _RuneRange
- __variable uintptr
- __variable_len int32
- _ [4]byte
-} /* table.cpp.c:320:3 */
-///
-/// extern const _RuneLocale _DefaultRuneLocale;
-/// extern const _RuneLocale *_CurrentRuneLocale;
-///
-///
-///
-/// extern _Thread_local const _RuneLocale *_ThreadRuneLocale;
-/// static __inline const _RuneLocale *__getCurrentRuneLocale(void)
-/// {
-///
-/// if (_ThreadRuneLocale)
-/// return _ThreadRuneLocale;
-/// return _CurrentRuneLocale;
-/// }
-///
-///
-///
-///
-///
-/// static __inline int
-/// __maskrune(__ct_rune_t _c, unsigned long _f)
-/// {
-/// return ((_c < 0 || _c >= (1 <<8 )) ? ___runetype(_c) :
-/// (__getCurrentRuneLocale())->__runetype[_c]) & _f;
-/// }
-///
-/// static __inline int
-/// __sbmaskrune(__ct_rune_t _c, unsigned long _f)
-/// {
-/// return (_c < 0 || _c >= __mb_sb_limit) ? 0 :
-/// (__getCurrentRuneLocale())->__runetype[_c] & _f;
-/// }
-///
-/// static __inline int
-/// __istype(__ct_rune_t _c, unsigned long _f)
-/// {
-/// return (!!__maskrune(_c, _f));
-/// }
-///
-/// static __inline int
-/// __sbistype(__ct_rune_t _c, unsigned long _f)
-/// {
-/// return (!!__sbmaskrune(_c, _f));
-/// }
-///
-/// static __inline int
-/// __isctype(__ct_rune_t _c, unsigned long _f)
-/// {
-/// return (_c < 0 || _c >= 128) ? 0 :
-/// !!(_DefaultRuneLocale.__runetype[_c] & _f);
-/// }
-///
-/// static __inline __ct_rune_t
-/// __toupper(__ct_rune_t _c)
-/// {
-/// return (_c < 0 || _c >= (1 <<8 )) ? ___toupper(_c) :
-/// (__getCurrentRuneLocale())->__mapupper[_c];
-/// }
-///
-/// static __inline __ct_rune_t
-/// __sbtoupper(__ct_rune_t _c)
-/// {
-/// return (_c < 0 || _c >= __mb_sb_limit) ? _c :
-/// (__getCurrentRuneLocale())->__mapupper[_c];
-/// }
-///
-/// static __inline __ct_rune_t
-/// __tolower(__ct_rune_t _c)
-/// {
-/// return (_c < 0 || _c >= (1 <<8 )) ? ___tolower(_c) :
-/// (__getCurrentRuneLocale())->__maplower[_c];
-/// }
-///
-/// static __inline __ct_rune_t
-/// __sbtolower(__ct_rune_t _c)
-/// {
-/// return (_c < 0 || _c >= __mb_sb_limit) ? _c :
-/// (__getCurrentRuneLocale())->__maplower[_c];
-/// }
-///
-/// static __inline int
-/// __wcwidth(__ct_rune_t _c)
-/// {
-/// unsigned int _x;
-///
-/// if (_c == 0)
-/// return (0);
-/// _x = (unsigned int)__maskrune(_c, 0xe0000000L|0x00040000L);
-/// if ((_x & 0xe0000000L) != 0)
-/// return ((_x & 0xe0000000L) >> 30);
-/// return ((_x & 0x00040000L) != 0 ? 1 : -1);
-/// }
-///
-///
-///
-/// int isalnum(int);
-/// int isalpha(int);
-/// int iscntrl(int);
-/// int isdigit(int);
-/// int isgraph(int);
-/// int islower(int);
-/// int isprint(int);
-/// int ispunct(int);
-/// int isspace(int);
-/// int isupper(int);
-/// int isxdigit(int);
-/// int tolower(int);
-/// int toupper(int);
-///
-///
-/// int isascii(int);
-/// int toascii(int);
-///
-///
-///
-/// int isblank(int);
-///
-///
-///
-/// int digittoint(int);
-/// int ishexnumber(int);
-/// int isideogram(int);
-/// int isnumber(int);
-/// int isphonogram(int);
-/// int isrune(int);
-/// int isspecial(int);
-///
-///
-///
-///
-///
-/// typedef struct _xlocale *locale_t;
-///
-///
-///
-///
-/// unsigned long ___runetype_l(__ct_rune_t, locale_t) __attribute__((__pure__));
-/// __ct_rune_t ___tolower_l(__ct_rune_t, locale_t) __attribute__((__pure__));
-/// __ct_rune_t ___toupper_l(__ct_rune_t, locale_t) __attribute__((__pure__));
-/// _RuneLocale *__runes_for_locale(locale_t, int*);
-///
-/// inline int
-/// __sbmaskrune_l(__ct_rune_t __c, unsigned long __f, locale_t __loc);
-/// inline int
-/// __sbistype_l(__ct_rune_t __c, unsigned long __f, locale_t __loc);
-///
-/// inline int
-/// __sbmaskrune_l(__ct_rune_t __c, unsigned long __f, locale_t __loc)
-/// {
-/// int __limit;
-/// _RuneLocale *runes = __runes_for_locale(__loc, &__limit);
-/// return (__c < 0 || __c >= __limit) ? 0 :
-/// runes->__runetype[__c] & __f;
-/// }
-///
-/// inline int
-/// __sbistype_l(__ct_rune_t __c, unsigned long __f, locale_t __loc)
-/// {
-/// return (!!__sbmaskrune_l(__c, __f, __loc));
-/// }
-///
-///
-///
-///
-///
-///
-///
-/// inline int isalnum_l(int, locale_t); inline int isalnum_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00000100L|0x00000400L|0x00400000L, __l); }
-/// inline int isalpha_l(int, locale_t); inline int isalpha_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00000100L, __l); }
-/// inline int isblank_l(int, locale_t); inline int isblank_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00020000L, __l); }
-/// inline int iscntrl_l(int, locale_t); inline int iscntrl_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00000200L, __l); }
-/// inline int isdigit_l(int, locale_t); inline int isdigit_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00000400L, __l); }
-/// inline int isgraph_l(int, locale_t); inline int isgraph_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00000800L, __l); }
-/// inline int ishexnumber_l(int, locale_t); inline int ishexnumber_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00010000L, __l); }
-/// inline int isideogram_l(int, locale_t); inline int isideogram_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00080000L, __l); }
-/// inline int islower_l(int, locale_t); inline int islower_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00001000L, __l); }
-/// inline int isnumber_l(int, locale_t); inline int isnumber_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00000400L|0x00400000L, __l); }
-/// inline int isphonogram_l(int, locale_t); inline int isphonogram_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00200000L, __l); }
-/// inline int isprint_l(int, locale_t); inline int isprint_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00040000L, __l); }
-/// inline int ispunct_l(int, locale_t); inline int ispunct_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00002000L, __l); }
-/// inline int isrune_l(int, locale_t); inline int isrune_l(int __c, locale_t __l) { return __sbistype_l(__c, 0xFFFFFF00L, __l); }
-/// inline int isspace_l(int, locale_t); inline int isspace_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00004000L, __l); }
-/// inline int isspecial_l(int, locale_t); inline int isspecial_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00100000L, __l); }
-/// inline int isupper_l(int, locale_t); inline int isupper_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00008000L, __l); }
-/// inline int isxdigit_l(int, locale_t); inline int isxdigit_l(int __c, locale_t __l) { return __sbistype_l(__c, 0x00010000L, __l); }
-///
-/// inline int digittoint_l(int, locale_t);
-/// inline int tolower_l(int, locale_t);
-/// inline int toupper_l(int, locale_t);
-///
-/// inline int digittoint_l(int __c, locale_t __l)
-/// { return __sbmaskrune_l((__c), 0xFF, __l); }
-///
-/// inline int tolower_l(int __c, locale_t __l)
-/// {
-/// int __limit;
-/// _RuneLocale *__runes = __runes_for_locale(__l, &__limit);
-/// return (__c < 0 || __c >= __limit) ? __c :
-/// __runes->__maplower[__c];
-/// }
-/// inline int toupper_l(int __c, locale_t __l)
-/// {
-/// int __limit;
-/// _RuneLocale *__runes = __runes_for_locale(__l, &__limit);
-/// return (__c < 0 || __c >= __limit) ? __c :
-/// __runes->__mapupper[__c];
-/// }
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-/// typedef __mbstate_t mbstate_t;
-///
-///
-///
-///
-/// typedef __size_t size_t;
-///
-///
-///
-///
-///
-/// typedef __va_list va_list;
-///
-///
-///
-///
-///
-///
-/// typedef ___wchar_t wchar_t;
-///
-///
-///
-///
-///
-/// typedef __wint_t wint_t;
-///
-/// typedef struct __sFILE FILE;
-///
-/// struct tm;
-///
-///
-/// wint_t btowc(int);
-/// wint_t fgetwc(FILE *);
-/// wchar_t *
-/// fgetws(wchar_t * restrict, int, FILE * restrict);
-/// wint_t fputwc(wchar_t, FILE *);
-/// int fputws(const wchar_t * restrict, FILE * restrict);
-/// int fwide(FILE *, int);
-/// int fwprintf(FILE * restrict, const wchar_t * restrict, ...);
-/// int fwscanf(FILE * restrict, const wchar_t * restrict, ...);
-/// wint_t getwc(FILE *);
-/// wint_t getwchar(void);
-/// size_t mbrlen(const char * restrict, size_t, mbstate_t * restrict);
-/// size_t mbrtowc(wchar_t * restrict, const char * restrict, size_t,
-/// mbstate_t * restrict);
-/// int mbsinit(const mbstate_t *);
-/// size_t mbsrtowcs(wchar_t * restrict, const char ** restrict, size_t,
-/// mbstate_t * restrict);
-/// wint_t putwc(wchar_t, FILE *);
-/// wint_t putwchar(wchar_t);
-/// int swprintf(wchar_t * restrict, size_t n, const wchar_t * restrict,
-/// ...);
-/// int swscanf(const wchar_t * restrict, const wchar_t * restrict, ...);
-/// wint_t ungetwc(wint_t, FILE *);
-/// int vfwprintf(FILE * restrict, const wchar_t * restrict,
-/// __va_list);
-/// int vswprintf(wchar_t * restrict, size_t n, const wchar_t * restrict,
-/// __va_list);
-/// int vwprintf(const wchar_t * restrict, __va_list);
-/// size_t wcrtomb(char * restrict, wchar_t, mbstate_t * restrict);
-/// wchar_t *wcscat(wchar_t * restrict, const wchar_t * restrict);
-/// wchar_t *wcschr(const wchar_t *, wchar_t) __attribute__((__pure__));
-/// int wcscmp(const wchar_t *, const wchar_t *) __attribute__((__pure__));
-/// int wcscoll(const wchar_t *, const wchar_t *);
-/// wchar_t *wcscpy(wchar_t * restrict, const wchar_t * restrict);
-/// size_t wcscspn(const wchar_t *, const wchar_t *) __attribute__((__pure__));
-/// size_t wcsftime(wchar_t * restrict, size_t, const wchar_t * restrict,
-/// const struct tm * restrict);
-/// size_t wcslen(const wchar_t *) __attribute__((__pure__));
-/// wchar_t *wcsncat(wchar_t * restrict, const wchar_t * restrict,
-/// size_t);
-/// int wcsncmp(const wchar_t *, const wchar_t *, size_t) __attribute__((__pure__));
-/// wchar_t *wcsncpy(wchar_t * restrict , const wchar_t * restrict, size_t);
-/// wchar_t *wcspbrk(const wchar_t *, const wchar_t *) __attribute__((__pure__));
-/// wchar_t *wcsrchr(const wchar_t *, wchar_t) __attribute__((__pure__));
-/// size_t wcsrtombs(char * restrict, const wchar_t ** restrict, size_t,
-/// mbstate_t * restrict);
-/// size_t wcsspn(const wchar_t *, const wchar_t *) __attribute__((__pure__));
-/// wchar_t *wcsstr(const wchar_t * restrict, const wchar_t * restrict)
-/// __attribute__((__pure__));
-/// size_t wcsxfrm(wchar_t * restrict, const wchar_t * restrict, size_t);
-/// int wctob(wint_t);
-/// double wcstod(const wchar_t * restrict, wchar_t ** restrict);
-/// wchar_t *wcstok(wchar_t * restrict, const wchar_t * restrict,
-/// wchar_t ** restrict);
-/// long wcstol(const wchar_t * restrict, wchar_t ** restrict, int);
-/// unsigned long
-/// wcstoul(const wchar_t * restrict, wchar_t ** restrict, int);
-/// wchar_t *wmemchr(const wchar_t *, wchar_t, size_t) __attribute__((__pure__));
-/// int wmemcmp(const wchar_t *, const wchar_t *, size_t) __attribute__((__pure__));
-/// wchar_t *wmemcpy(wchar_t * restrict, const wchar_t * restrict, size_t);
-/// wchar_t *wmemmove(wchar_t *, const wchar_t *, size_t);
-/// wchar_t *wmemset(wchar_t *, wchar_t, size_t);
-/// int wprintf(const wchar_t * restrict, ...);
-/// int wscanf(const wchar_t * restrict, ...);
-///
-///
-/// extern FILE *__stdinp;
-/// extern FILE *__stdoutp;
-/// extern FILE *__stderrp;
-///
-/// int vfwscanf(FILE * restrict, const wchar_t * restrict,
-/// __va_list);
-/// int vswscanf(const wchar_t * restrict, const wchar_t * restrict,
-/// __va_list);
-/// int vwscanf(const wchar_t * restrict, __va_list);
-/// float wcstof(const wchar_t * restrict, wchar_t ** restrict);
-/// long double
-/// wcstold(const wchar_t * restrict, wchar_t ** restrict);
-///
-///
-/// long long
-/// wcstoll(const wchar_t * restrict, wchar_t ** restrict, int);
-///
-/// unsigned long long
-/// wcstoull(const wchar_t * restrict, wchar_t ** restrict, int);
-///
-///
-///
-///
-/// int wcswidth(const wchar_t *, size_t);
-/// int wcwidth(wchar_t);
-///
-///
-///
-///
-/// size_t mbsnrtowcs(wchar_t * restrict, const char ** restrict, size_t,
-/// size_t, mbstate_t * restrict);
-/// FILE *open_wmemstream(wchar_t **, size_t *);
-/// wchar_t *wcpcpy(wchar_t * restrict, const wchar_t * restrict);
-/// wchar_t *wcpncpy(wchar_t * restrict, const wchar_t * restrict, size_t);
-/// wchar_t *wcsdup(const wchar_t *) __attribute__((__malloc__));
-/// int wcscasecmp(const wchar_t *, const wchar_t *);
-/// int wcsncasecmp(const wchar_t *, const wchar_t *, size_t n);
-/// size_t wcsnlen(const wchar_t *, size_t) __attribute__((__pure__));
-/// size_t wcsnrtombs(char * restrict, const wchar_t ** restrict, size_t,
-/// size_t, mbstate_t * restrict);
-///
-///
-///
-/// wchar_t *fgetwln(FILE * restrict, size_t * restrict);
-/// size_t wcslcat(wchar_t *, const wchar_t *, size_t);
-/// size_t wcslcpy(wchar_t *, const wchar_t *, size_t);
-///
-///
-///
-///
-///
-/// int wcscasecmp_l(const wchar_t *, const wchar_t *,
-/// locale_t);
-/// int wcsncasecmp_l(const wchar_t *, const wchar_t *, size_t,
-/// locale_t);
-/// int wcscoll_l(const wchar_t *, const wchar_t *, locale_t);
-/// size_t wcsxfrm_l(wchar_t * restrict,
-/// const wchar_t * restrict, size_t, locale_t);
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-/// struct 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;
-/// char int_p_cs_precedes;
-/// char int_n_cs_precedes;
-/// char int_p_sep_by_space;
-/// char int_n_sep_by_space;
-/// char int_p_sign_posn;
-/// char int_n_sign_posn;
-/// };
-///
-///
-/// struct lconv *localeconv(void);
-/// char *setlocale(int, const char *);
-///
-///
-///
-///
-/// locale_t duplocale(locale_t base);
-/// void freelocale(locale_t loc);
-/// locale_t newlocale(int mask, const char *locale, locale_t base);
-/// const char *querylocale(int mask, locale_t loc);
-/// locale_t uselocale(locale_t loc);
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-/// wint_t btowc_l(int, locale_t);
-/// wint_t fgetwc_l(FILE *, locale_t);
-/// wchar_t *fgetws_l(wchar_t * restrict, int, FILE * restrict,
-/// locale_t);
-/// wint_t fputwc_l(wchar_t, FILE *, locale_t);
-/// int fputws_l(const wchar_t * restrict, FILE * restrict,
-/// locale_t);
-/// int fwprintf_l(FILE * restrict, locale_t,
-/// const wchar_t * restrict, ...);
-/// int fwscanf_l(FILE * restrict, locale_t,
-/// const wchar_t * restrict, ...);
-/// wint_t getwc_l(FILE *, locale_t);
-/// wint_t getwchar_l(locale_t);
-/// size_t mbrlen_l(const char * restrict, size_t,
-/// mbstate_t * restrict, locale_t);
-/// size_t mbrtowc_l(wchar_t * restrict,
-/// const char * restrict, size_t,
-/// mbstate_t * restrict, locale_t);
-/// int mbsinit_l(const mbstate_t *, locale_t);
-/// size_t mbsrtowcs_l(wchar_t * restrict,
-/// const char ** restrict, size_t,
-/// mbstate_t * restrict, locale_t);
-/// wint_t putwc_l(wchar_t, FILE *, locale_t);
-/// wint_t putwchar_l(wchar_t, locale_t);
-/// int swprintf_l(wchar_t * restrict, size_t n, locale_t,
-/// const wchar_t * restrict, ...);
-/// int swscanf_l(const wchar_t * restrict, locale_t,
-/// const wchar_t * restrict, ...);
-/// wint_t ungetwc_l(wint_t, FILE *, locale_t);
-/// int vfwprintf_l(FILE * restrict, locale_t,
-/// const wchar_t * restrict, __va_list);
-/// int vswprintf_l(wchar_t * restrict, size_t n, locale_t,
-/// const wchar_t * restrict, __va_list);
-/// int vwprintf_l(locale_t, const wchar_t * restrict,
-/// __va_list);
-/// size_t wcrtomb_l(char * restrict, wchar_t,
-/// mbstate_t * restrict, locale_t);
-/// size_t wcsftime_l(wchar_t * restrict, size_t,
-/// const wchar_t * restrict,
-/// const struct tm * restrict, locale_t);
-/// size_t wcsrtombs_l(char * restrict,
-/// const wchar_t ** restrict, size_t,
-/// mbstate_t * restrict, locale_t);
-/// double wcstod_l(const wchar_t * restrict,
-/// wchar_t ** restrict, locale_t);
-/// long wcstol_l(const wchar_t * restrict,
-/// wchar_t ** restrict, int, locale_t);
-/// unsigned long wcstoul_l(const wchar_t * restrict,
-/// wchar_t ** restrict, int, locale_t);
-/// int wcswidth_l(const wchar_t *, size_t, locale_t);
-/// int wctob_l(wint_t, locale_t);
-/// int wcwidth_l(wchar_t, locale_t);
-/// int wprintf_l(locale_t, const wchar_t * restrict, ...);
-/// int wscanf_l(locale_t, const wchar_t * restrict, ...);
-/// int vfwscanf_l(FILE * restrict, locale_t,
-/// const wchar_t * restrict, __va_list);
-/// int vswscanf_l(const wchar_t * restrict, locale_t,
-/// const wchar_t *restrict, __va_list);
-/// int vwscanf_l(locale_t, const wchar_t * restrict,
-/// __va_list);
-/// float wcstof_l(const wchar_t * restrict,
-/// wchar_t ** restrict, locale_t);
-/// long double wcstold_l(const wchar_t * restrict,
-/// wchar_t ** restrict, locale_t);
-/// long long wcstoll_l(const wchar_t * restrict,
-/// wchar_t ** restrict, int, locale_t);
-/// unsigned long long wcstoull_l(const wchar_t * restrict,
-/// wchar_t ** restrict, int, locale_t);
-/// size_t mbsnrtowcs_l(wchar_t * restrict,
-/// const char ** restrict, size_t, size_t,
-/// mbstate_t * restrict, locale_t);
-/// size_t wcsnrtombs_l(char * restrict,
-/// const wchar_t ** restrict, size_t, size_t,
-/// mbstate_t * restrict, locale_t);
-///
-///
-///
-///
-///
-/// struct lconv *localeconv_l(locale_t);
-///
-///
-///
-///
-///
-///
-///
-///
-///
-/// typedef __rune_t rune_t;
-///
-/// typedef struct {
-/// int quot;
-/// int rem;
-/// } div_t;
-///
-/// typedef struct {
-/// long quot;
-/// long rem;
-/// } ldiv_t;
-///
-///
-///
-///
-///
-/// double atof_l(const char *, locale_t);
-/// int atoi_l(const char *, locale_t);
-/// long atol_l(const char *, locale_t);
-/// long long atoll_l(const char *, locale_t);
-/// int mblen_l(const char *, size_t, locale_t);
-/// size_t mbstowcs_l(wchar_t * restrict,
-/// const char * restrict, size_t, locale_t);
-/// int mbtowc_l(wchar_t * restrict,
-/// const char * restrict, size_t, locale_t);
-/// double strtod_l(const char *, char **, locale_t);
-/// float strtof_l(const char *, char **, locale_t);
-/// long strtol_l(const char *, char **, int, locale_t);
-/// long double strtold_l(const char *, char **, locale_t);
-/// long long strtoll_l(const char *, char **, int, locale_t);
-/// unsigned long strtoul_l(const char *, char **, int, locale_t);
-/// unsigned long long strtoull_l(const char *, char **, int, locale_t);
-/// size_t wcstombs_l(char * restrict,
-/// const wchar_t * restrict, size_t, locale_t);
-/// int wctomb_l(char *, wchar_t, locale_t);
-///
-/// int ___mb_cur_max_l(locale_t);
-///
-///
-/// extern int __mb_cur_max;
-/// extern int ___mb_cur_max(void);
-///
-///
-/// _Noreturn void abort(void);
-/// int abs(int) __attribute__((__const__));
-/// int atexit(void (* )(void));
-/// double atof(const char *);
-/// int atoi(const char *);
-/// long atol(const char *);
-/// void *bsearch(const void *, const void *, size_t,
-/// size_t, int (*)(const void * , const void *));
-/// void *calloc(size_t, size_t) __attribute__((__malloc__)) __attribute__((__warn_unused_result__))
-/// __attribute__((__alloc_size__(1, 2)));
-/// div_t div(int, int) __attribute__((__const__));
-/// _Noreturn void exit(int);
-/// void free(void *);
-/// char *getenv(const char *);
-/// long labs(long) __attribute__((__const__));
-/// ldiv_t ldiv(long, long) __attribute__((__const__));
-/// void *malloc(size_t) __attribute__((__malloc__)) __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(1)));
-/// int mblen(const char *, size_t);
-/// size_t mbstowcs(wchar_t * restrict , const char * restrict, size_t);
-/// int mbtowc(wchar_t * restrict, const char * restrict, size_t);
-/// void qsort(void *, size_t, size_t,
-/// int (* )(const void *, const void *));
-/// int rand(void);
-/// void *realloc(void *, size_t) __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2)));
-/// void srand(unsigned);
-/// double strtod(const char * restrict, char ** restrict);
-/// float strtof(const char * restrict, char ** restrict);
-/// long strtol(const char * restrict, char ** restrict, int);
-/// long double
-/// strtold(const char * restrict, char ** restrict);
-/// unsigned long
-/// strtoul(const char * restrict, char ** restrict, int);
-/// int system(const char *);
-/// int wctomb(char *, wchar_t);
-/// size_t wcstombs(char * restrict, const wchar_t * restrict, size_t);
-///
-/// typedef struct {
-/// long long quot;
-/// long long rem;
-/// } lldiv_t;
-///
-///
-/// long long
-/// atoll(const char *);
-///
-/// long long
-/// llabs(long long) __attribute__((__const__));
-///
-/// lldiv_t lldiv(long long, long long) __attribute__((__const__));
-///
-/// long long
-/// strtoll(const char * restrict, char ** restrict, int);
-///
-/// unsigned long long
-/// strtoull(const char * restrict, char ** restrict, int);
-///
-///
-/// _Noreturn void _Exit(int);
-///
-///
-///
-///
-///
-///
-/// void * aligned_alloc(size_t, size_t) __attribute__((__malloc__)) __attribute__((__alloc_align__(1)))
-/// __attribute__((__alloc_size__(2)));
-/// int at_quick_exit(void (*)(void));
-/// _Noreturn void
-/// quick_exit(int);
-///
-///
-///
-///
-///
-/// char *realpath(const char * restrict, char * restrict);
-///
-///
-/// int rand_r(unsigned *);
-///
-///
-/// int posix_memalign(void **, size_t, size_t);
-/// int setenv(const char *, const char *, int);
-/// int unsetenv(const char *);
-///
-///
-///
-/// int getsubopt(char **, char *const *, char **);
-///
-/// char *mkdtemp(char *);
-///
-///
-///
-/// int mkstemp(char *);
-///
-/// long a64l(const char *);
-/// double drand48(void);
-///
-/// double erand48(unsigned short[3]);
-///
-///
-/// char *initstate(unsigned int, char *, size_t);
-/// long jrand48(unsigned short[3]);
-/// char *l64a(long);
-/// void lcong48(unsigned short[7]);
-/// long lrand48(void);
-///
-/// char *mktemp(char *);
-///
-///
-/// long mrand48(void);
-/// long nrand48(unsigned short[3]);
-/// int putenv(char *);
-/// long random(void);
-/// unsigned short
-/// *seed48(unsigned short[3]);
-/// char *setstate( char *);
-/// void srand48(long);
-/// void srandom(unsigned int);
-///
-///
-///
-/// int grantpt(int);
-/// int posix_openpt(int);
-/// char *ptsname(int);
-/// int unlockpt(int);
-///
-///
-///
-/// int ptsname_r(int, char *, size_t);
-///
-///
-///
-/// extern const char *malloc_conf;
-/// extern void (*malloc_message)(void *, const char *);
-///
-/// void abort2(const char *, int, void **) __attribute__((__noreturn__));
-/// __uint32_t
-/// arc4random(void);
-/// void arc4random_buf(void *, size_t);
-/// __uint32_t
-/// arc4random_uniform(__uint32_t);
-///
-///
-///
-///
-///
-///
-/// char *getbsize(int *, long *);
-///
-/// char *cgetcap(char *, const char *, int);
-/// int cgetclose(void);
-/// int cgetent(char **, char **, const char *);
-/// int cgetfirst(char **, char **);
-/// int cgetmatch(const char *, const char *);
-/// int cgetnext(char **, char **);
-/// int cgetnum(char *, const char *, long *);
-/// int cgetset(const char *);
-/// int cgetstr(char *, const char *, char **);
-/// int cgetustr(char *, const char *, char **);
-///
-/// int daemon(int, int);
-/// int daemonfd(int, int);
-/// char *devname(__dev_t, __mode_t);
-/// char *devname_r(__dev_t, __mode_t, char *, int);
-/// char *fdevname(int);
-/// char *fdevname_r(int, char *, int);
-/// int getloadavg(double [], int);
-/// const char *
-/// getprogname(void);
-///
-/// int heapsort(void *, size_t, size_t,
-/// int (* )(const void *, const void *));
-///
-///
-///
-///
-///
-///
-/// int l64a_r(long, char *, int);
-/// int mergesort(void *, size_t, size_t, int (*)(const void *, const void *));
-///
-///
-///
-/// int mkostemp(char *, int);
-/// int mkostemps(char *, int, int);
-/// int mkostempsat(int, char *, int, int);
-/// void qsort_r(void *, size_t, size_t, void *,
-/// int (*)(void *, const void *, const void *));
-/// int radixsort(const unsigned char **, int, const unsigned char *,
-/// unsigned);
-/// void *reallocarray(void *, size_t, size_t) __attribute__((__warn_unused_result__))
-/// __attribute__((__alloc_size__(2, 3)));
-/// void *reallocf(void *, size_t) __attribute__((__warn_unused_result__)) __attribute__((__alloc_size__(2)));
-/// int rpmatch(const char *);
-/// void setprogname(const char *);
-/// int sradixsort(const unsigned char **, int, const unsigned char *,
-/// unsigned);
-/// void srandomdev(void);
-/// long long
-/// strtonum(const char *, long long, long long, const char **);
-///
-///
-/// __int64_t
-/// strtoq(const char *, char **, int);
-/// __uint64_t
-/// strtouq(const char *, char **, int);
-///
-/// extern char *suboptarg;
-///
-///
-///
-///
-///
-///
-/// typedef size_t rsize_t;
-///
-///
-///
-///
-/// typedef int errno_t;
-///
-///
-///
-/// typedef void (*constraint_handler_t)(const char * restrict,
-/// void * restrict, errno_t);
-///
-/// constraint_handler_t set_constraint_handler_s(constraint_handler_t handler);
-///
-/// _Noreturn void abort_handler_s(const char * restrict, void * restrict,
-/// errno_t);
-///
-/// void ignore_handler_s(const char * restrict, void * restrict, errno_t);
-///
-/// errno_t qsort_s(void *, rsize_t, rsize_t,
-/// int (*)(const void *, const void *, void *), void *);
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-/// typedef __int8_t int8_t;
-///
-///
-///
-///
-/// typedef __int16_t int16_t;
-///
-///
-///
-///
-/// typedef __int32_t int32_t;
-///
-///
-///
-///
-/// typedef __int64_t int64_t;
-///
-///
-///
-///
-/// typedef __uint8_t uint8_t;
-///
-///
-///
-///
-/// typedef __uint16_t uint16_t;
-///
-///
-///
-///
-/// typedef __uint32_t uint32_t;
-///
-///
-///
-///
-/// typedef __uint64_t uint64_t;
-///
-///
-///
-///
-/// typedef __intptr_t intptr_t;
-///
-///
-///
-/// typedef __uintptr_t uintptr_t;
-///
-///
-///
-/// typedef __intmax_t intmax_t;
-///
-///
-///
-/// typedef __uintmax_t uintmax_t;
-///
-///
-/// typedef __int_least8_t int_least8_t;
-/// typedef __int_least16_t int_least16_t;
-/// typedef __int_least32_t int_least32_t;
-/// typedef __int_least64_t int_least64_t;
-///
-/// typedef __uint_least8_t uint_least8_t;
-/// typedef __uint_least16_t uint_least16_t;
-/// typedef __uint_least32_t uint_least32_t;
-/// typedef __uint_least64_t uint_least64_t;
-///
-/// typedef __int_fast8_t int_fast8_t;
-/// typedef __int_fast16_t int_fast16_t;
-/// typedef __int_fast32_t int_fast32_t;
-/// typedef __int_fast64_t int_fast64_t;
-///
-/// typedef __uint_fast8_t uint_fast8_t;
-/// typedef __uint_fast16_t uint_fast16_t;
-/// typedef __uint_fast32_t uint_fast32_t;
-/// typedef __uint_fast64_t uint_fast64_t;
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-/// struct pthread;
-/// struct pthread_attr;
-/// struct pthread_cond;
-/// struct pthread_cond_attr;
-/// struct pthread_mutex;
-/// struct pthread_mutex_attr;
-/// struct pthread_once;
-/// struct pthread_rwlock;
-/// struct pthread_rwlockattr;
-/// struct pthread_barrier;
-/// struct pthread_barrier_attr;
-/// struct pthread_spinlock;
-///
-/// typedef struct pthread *pthread_t;
-///
-///
-/// typedef struct pthread_attr *pthread_attr_t;
-/// typedef struct pthread_mutex *pthread_mutex_t;
-/// typedef struct pthread_mutex_attr *pthread_mutexattr_t;
-/// typedef struct pthread_cond *pthread_cond_t;
-/// typedef struct pthread_cond_attr *pthread_condattr_t;
-/// typedef int pthread_key_t;
-/// typedef struct pthread_once pthread_once_t;
-/// typedef struct pthread_rwlock *pthread_rwlock_t;
-/// typedef struct pthread_rwlockattr *pthread_rwlockattr_t;
-/// typedef struct pthread_barrier *pthread_barrier_t;
-/// typedef struct pthread_barrierattr *pthread_barrierattr_t;
-/// typedef struct pthread_spinlock *pthread_spinlock_t;
-///
-///
-///
-///
-///
-///
-///
-/// typedef void *pthread_addr_t;
-/// typedef void *(*pthread_startroutine_t)(void *);
-///
-///
-///
-///
-/// struct pthread_once {
-/// int state;
-/// pthread_mutex_t mutex;
-/// };
-///
-///
-///
-/// typedef unsigned char u_char;
-/// typedef unsigned short u_short;
-/// typedef unsigned int u_int;
-/// typedef unsigned long u_long;
-///
-/// typedef unsigned short ushort;
-/// typedef unsigned int uint;
-///
-/// typedef __uint8_t u_int8_t;
-/// typedef __uint16_t u_int16_t;
-/// typedef __uint32_t u_int32_t;
-/// typedef __uint64_t u_int64_t;
-///
-/// typedef __uint64_t u_quad_t;
-/// typedef __int64_t quad_t;
-/// typedef quad_t * qaddr_t;
-///
-/// typedef char * caddr_t;
-/// typedef const char * c_caddr_t;
-///
-///
-/// typedef __blksize_t blksize_t;
-///
-///
-///
-/// typedef __cpuwhich_t cpuwhich_t;
-/// typedef __cpulevel_t cpulevel_t;
-/// typedef __cpusetid_t cpusetid_t;
-///
-///
-/// typedef __blkcnt_t blkcnt_t;
-///
-///
-///
-///
-/// typedef __clock_t clock_t;
-///
-///
-///
-///
-/// typedef __clockid_t clockid_t;
-///
-///
-///
-/// typedef __critical_t critical_t;
-/// typedef __daddr_t daddr_t;
-///
-///
-/// typedef __dev_t dev_t;
-///
-///
-///
-///
-/// typedef __fflags_t fflags_t;
-///
-///
-///
-/// typedef __fixpt_t fixpt_t;
-///
-///
-/// typedef __fsblkcnt_t fsblkcnt_t;
-/// typedef __fsfilcnt_t fsfilcnt_t;
-///
-///
-///
-///
-/// typedef __gid_t gid_t;
-///
-///
-///
-///
-/// typedef __uint32_t in_addr_t;
-///
-///
-///
-///
-/// typedef __uint16_t in_port_t;
-///
-///
-///
-///
-/// typedef __id_t id_t;
-///
-///
-///
-///
-/// typedef __ino_t ino_t;
-///
-///
-///
-///
-/// typedef __key_t key_t;
-///
-///
-///
-///
-/// typedef __lwpid_t lwpid_t;
-///
-///
-///
-///
-/// typedef __mode_t mode_t;
-///
-///
-///
-///
-/// typedef __accmode_t accmode_t;
-///
-///
-///
-///
-/// typedef __nlink_t nlink_t;
-///
-///
-///
-///
-/// typedef __off_t off_t;
-///
-///
-///
-///
-/// typedef __off64_t off64_t;
-///
-///
-///
-///
-/// typedef __pid_t pid_t;
-///
-///
-///
-/// typedef __register_t register_t;
-///
-///
-/// typedef __rlim_t rlim_t;
-///
-///
-///
-/// typedef __int64_t sbintime_t;
-///
-/// typedef __segsz_t segsz_t;
-///
-///
-///
-///
-///
-///
-///
-/// typedef __ssize_t ssize_t;
-///
-///
-///
-///
-/// typedef __suseconds_t suseconds_t;
-///
-///
-///
-///
-/// typedef __time_t time_t;
-///
-///
-///
-///
-/// typedef __timer_t timer_t;
-///
-///
-///
-///
-/// typedef __mqd_t mqd_t;
-///
-///
-///
-/// typedef __u_register_t u_register_t;
-///
-///
-/// typedef __uid_t uid_t;
-///
-///
-///
-///
-/// typedef __useconds_t useconds_t;
-///
-///
-///
-///
-///
-/// typedef unsigned long cap_ioctl_t;
-///
-///
-///
-///
-/// struct cap_rights;
-///
-/// typedef struct cap_rights cap_rights_t;
-///
-/// typedef __uint64_t kpaddr_t;
-/// typedef __uint64_t kvaddr_t;
-/// typedef __uint64_t ksize_t;
-/// typedef __int64_t kssize_t;
-///
-/// typedef __vm_offset_t vm_offset_t;
-/// typedef __uint64_t vm_ooffset_t;
-/// typedef __vm_paddr_t vm_paddr_t;
-/// typedef __uint64_t vm_pindex_t;
-/// typedef __vm_size_t vm_size_t;
-///
-/// typedef __rman_res_t rman_res_t;
-///
-/// static __inline __uint16_t
-/// __bitcount16(__uint16_t _x)
-/// {
-///
-/// _x = (_x & 0x5555) + ((_x & 0xaaaa) >> 1);
-/// _x = (_x & 0x3333) + ((_x & 0xcccc) >> 2);
-/// _x = (_x + (_x >> 4)) & 0x0f0f;
-/// _x = (_x + (_x >> 8)) & 0x00ff;
-/// return (_x);
-/// }
-///
-/// static __inline __uint32_t
-/// __bitcount32(__uint32_t _x)
-/// {
-///
-/// _x = (_x & 0x55555555) + ((_x & 0xaaaaaaaa) >> 1);
-/// _x = (_x & 0x33333333) + ((_x & 0xcccccccc) >> 2);
-/// _x = (_x + (_x >> 4)) & 0x0f0f0f0f;
-/// _x = (_x + (_x >> 8));
-/// _x = (_x + (_x >> 16)) & 0x000000ff;
-/// return (_x);
-/// }
-///
-///
-/// static __inline __uint64_t
-/// __bitcount64(__uint64_t _x)
-/// {
-///
-/// _x = (_x & 0x5555555555555555) + ((_x & 0xaaaaaaaaaaaaaaaa) >> 1);
-/// _x = (_x & 0x3333333333333333) + ((_x & 0xcccccccccccccccc) >> 2);
-/// _x = (_x + (_x >> 4)) & 0x0f0f0f0f0f0f0f0f;
-/// _x = (_x + (_x >> 8));
-/// _x = (_x + (_x >> 16));
-/// _x = (_x + (_x >> 32)) & 0x000000ff;
-/// return (_x);
-/// }
-///
-///
-///
-///
-///
-/// typedef struct __sigset {
-/// __uint32_t __bits[4];
-/// } __sigset_t;
-///
-///
-///
-/// struct timeval {
-/// time_t tv_sec;
-/// suseconds_t tv_usec;
-/// };
-///
-///
-///
-///
-///
-/// struct timespec {
-/// time_t tv_sec;
-/// long tv_nsec;
-/// };
-///
-///
-/// struct itimerspec {
-/// struct timespec it_interval;
-/// struct timespec it_value;
-/// };
-///
-///
-/// typedef unsigned long __fd_mask;
-///
-/// typedef __fd_mask fd_mask;
-///
-///
-///
-///
-/// typedef __sigset_t sigset_t;
-///
-/// typedef struct fd_set {
-/// __fd_mask __fds_bits[(((1024) + (((sizeof(__fd_mask) * 8)) - 1)) / ((sizeof(__fd_mask) * 8)))];
-/// } fd_set;
-///
-///
-/// int pselect(int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
-/// const struct timespec *restrict, const sigset_t *restrict);
-///
-///
-///
-/// int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
-///
-///
-///
-///
-/// static __inline int
-/// __major(dev_t _d)
-/// {
-/// return (((_d >> 32) & 0xffffff00) | ((_d >> 8) & 0xff));
-/// }
-///
-/// static __inline int
-/// __minor(dev_t _d)
-/// {
-/// return (((_d >> 24) & 0xff00) | (_d & 0xffff00ff));
-/// }
-///
-/// static __inline dev_t
-/// __makedev(int _Major, int _Minor)
-/// {
-/// return (((dev_t)(_Major & 0xffffff00) << 32) | ((_Major & 0xff) << 8) |
-/// ((dev_t)(_Minor & 0xff00) << 24) | (_Minor & 0xffff00ff));
-/// }
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-/// int ftruncate(int, off_t);
-///
-///
-///
-/// off_t lseek(int, off_t, int);
-///
-///
-///
-/// void * mmap(void *, size_t, int, int, int, off_t);
-///
-///
-///
-/// int truncate(const char *, off_t);
-///
-///
-///
-///
-///
-///
-///
-///
-/// static __inline int atomic_cmpset_char(volatile u_char *dst, u_char expect, u_char src) { u_char res; __asm volatile( " " "lock ; " " " " cmpxchg %3,%1 ; " "# atomic_cmpset_" "char" " " : "=@cce" (res), "+m" (*dst), "+a" (expect) : "r" (src) : "memory", "cc"); return (res); } static __inline int atomic_fcmpset_char(volatile u_char *dst, u_char *expect, u_char src) { u_char res; __asm volatile( " " "lock ; " " " " cmpxchg %3,%1 ; " "# atomic_fcmpset_" "char" " " : "=@cce" (res), "+m" (*dst), "+a" (*expect) : "r" (src) : "memory", "cc"); return (res); };
-/// static __inline int atomic_cmpset_short(volatile u_short *dst, u_short expect, u_short src) { u_char res; __asm volatile( " " "lock ; " " " " cmpxchg %3,%1 ; " "# atomic_cmpset_" "short" " " : "=@cce" (res), "+m" (*dst), "+a" (expect) : "r" (src) : "memory", "cc"); return (res); } static __inline int atomic_fcmpset_short(volatile u_short *dst, u_short *expect, u_short src) { u_char res; __asm volatile( " " "lock ; " " " " cmpxchg %3,%1 ; " "# atomic_fcmpset_" "short" " " : "=@cce" (res), "+m" (*dst), "+a" (*expect) : "r" (src) : "memory", "cc"); return (res); };
-/// static __inline int atomic_cmpset_int(volatile u_int *dst, u_int expect, u_int src) { u_char res; __asm volatile( " " "lock ; " " " " cmpxchg %3,%1 ; " "# atomic_cmpset_" "int" " " : "=@cce" (res), "+m" (*dst), "+a" (expect) : "r" (src) : "memory", "cc"); return (res); } static __inline int atomic_fcmpset_int(volatile u_int *dst, u_int *expect, u_int src) { u_char res; __asm volatile( " " "lock ; " " " " cmpxchg %3,%1 ; " "# atomic_fcmpset_" "int" " " : "=@cce" (res), "+m" (*dst), "+a" (*expect) : "r" (src) : "memory", "cc"); return (res); };
-/// static __inline int atomic_cmpset_long(volatile u_long *dst, u_long expect, u_long src) { u_char res; __asm volatile( " " "lock ; " " " " cmpxchg %3,%1 ; " "# atomic_cmpset_" "long" " " : "=@cce" (res), "+m" (*dst), "+a" (expect) : "r" (src) : "memory", "cc"); return (res); } static __inline int atomic_fcmpset_long(volatile u_long *dst, u_long *expect, u_long src) { u_char res; __asm volatile( " " "lock ; " " " " cmpxchg %3,%1 ; " "# atomic_fcmpset_" "long" " " : "=@cce" (res), "+m" (*dst), "+a" (*expect) : "r" (src) : "memory", "cc"); return (res); };
-///
-///
-///
-///
-///
-/// static __inline u_int
-/// atomic_fetchadd_int(volatile u_int *p, u_int v)
-/// {
-///
-/// __asm volatile(
-/// " " "lock ; " " "
-/// " xaddl %0,%1 ; "
-/// "# atomic_fetchadd_int"
-/// : "+r" (v),
-/// "+m" (*p)
-/// : : "cc");
-/// return (v);
-/// }
-///
-///
-///
-///
-///
-/// static __inline u_long
-/// atomic_fetchadd_long(volatile u_long *p, u_long v)
-/// {
-///
-/// __asm volatile(
-/// " " "lock ; " " "
-/// " xaddq %0,%1 ; "
-/// "# atomic_fetchadd_long"
-/// : "+r" (v),
-/// "+m" (*p)
-/// : : "cc");
-/// return (v);
-/// }
-///
-/// static __inline int
-/// atomic_testandset_int(volatile u_int *p, u_int v)
-/// {
-/// u_char res;
-///
-/// __asm volatile(
-/// " " "lock ; " " "
-/// " btsl %2,%1 ; "
-/// "# atomic_testandset_int"
-/// : "=@ccc" (res),
-/// "+m" (*p)
-/// : "Ir" (v & 0x1f)
-/// : "cc");
-/// return (res);
-/// }
-///
-/// static __inline int
-/// atomic_testandset_long(volatile u_long *p, u_int v)
-/// {
-/// u_char res;
-///
-/// __asm volatile(
-/// " " "lock ; " " "
-/// " btsq %2,%1 ; "
-/// "# atomic_testandset_long"
-/// : "=@ccc" (res),
-/// "+m" (*p)
-/// : "Jr" ((u_long)(v & 0x3f))
-/// : "cc");
-/// return (res);
-/// }
-///
-/// static __inline int
-/// atomic_testandclear_int(volatile u_int *p, u_int v)
-/// {
-/// u_char res;
-///
-/// __asm volatile(
-/// " " "lock ; " " "
-/// " btrl %2,%1 ; "
-/// "# atomic_testandclear_int"
-/// : "=@ccc" (res),
-/// "+m" (*p)
-/// : "Ir" (v & 0x1f)
-/// : "cc");
-/// return (res);
-/// }
-///
-/// static __inline int
-/// atomic_testandclear_long(volatile u_long *p, u_int v)
-/// {
-/// u_char res;
-///
-/// __asm volatile(
-/// " " "lock ; " " "
-/// " btrq %2,%1 ; "
-/// "# atomic_testandclear_long"
-/// : "=@ccc" (res),
-/// "+m" (*p)
-/// : "Jr" ((u_long)(v & 0x3f))
-/// : "cc");
-/// return (res);
-/// }
-///
-/// static __inline void
-/// __storeload_barrier(void)
-/// {
-///
-/// __asm volatile("lock; addl $0,-8(%%rsp)" : : : "memory", "cc");
-/// }
-///
-/// static __inline void
-/// atomic_thread_fence_acq(void)
-/// {
-///
-/// __asm volatile(" " : : : "memory");
-/// }
-///
-/// static __inline void
-/// atomic_thread_fence_rel(void)
-/// {
-///
-/// __asm volatile(" " : : : "memory");
-/// }
-///
-/// static __inline void
-/// atomic_thread_fence_acq_rel(void)
-/// {
-///
-/// __asm volatile(" " : : : "memory");
-/// }
-///
-/// static __inline void
-/// atomic_thread_fence_seq_cst(void)
-/// {
-///
-/// __storeload_barrier();
-/// }
-///
-///
-///
-/// static __inline void atomic_set_char(volatile u_char *p, u_char v){ __asm volatile("lock ; " "orb %b1,%0" : "+m" (*p) : "iq" (v) : "cc"); } static __inline void atomic_set_barr_char(volatile u_char *p, u_char v){ __asm volatile("lock ; " "orb %b1,%0" : "+m" (*p) : "iq" (v) : "memory", "cc"); } struct __hack;
-/// static __inline void atomic_clear_char(volatile u_char *p, u_char v){ __asm volatile("lock ; " "andb %b1,%0" : "+m" (*p) : "iq" (~v) : "cc"); } static __inline void atomic_clear_barr_char(volatile u_char *p, u_char v){ __asm volatile("lock ; " "andb %b1,%0" : "+m" (*p) : "iq" (~v) : "memory", "cc"); } struct __hack;
-/// static __inline void atomic_add_char(volatile u_char *p, u_char v){ __asm volatile("lock ; " "addb %b1,%0" : "+m" (*p) : "iq" (v) : "cc"); } static __inline void atomic_add_barr_char(volatile u_char *p, u_char v){ __asm volatile("lock ; " "addb %b1,%0" : "+m" (*p) : "iq" (v) : "memory", "cc"); } struct __hack;
-/// static __inline void atomic_subtract_char(volatile u_char *p, u_char v){ __asm volatile("lock ; " "subb %b1,%0" : "+m" (*p) : "iq" (v) : "cc"); } static __inline void atomic_subtract_barr_char(volatile u_char *p, u_char v){ __asm volatile("lock ; " "subb %b1,%0" : "+m" (*p) : "iq" (v) : "memory", "cc"); } struct __hack;
-///
-/// static __inline void atomic_set_short(volatile u_short *p, u_short v){ __asm volatile("lock ; " "orw %w1,%0" : "+m" (*p) : "ir" (v) : "cc"); } static __inline void atomic_set_barr_short(volatile u_short *p, u_short v){ __asm volatile("lock ; " "orw %w1,%0" : "+m" (*p) : "ir" (v) : "memory", "cc"); } struct __hack;
-/// static __inline void atomic_clear_short(volatile u_short *p, u_short v){ __asm volatile("lock ; " "andw %w1,%0" : "+m" (*p) : "ir" (~v) : "cc"); } static __inline void atomic_clear_barr_short(volatile u_short *p, u_short v){ __asm volatile("lock ; " "andw %w1,%0" : "+m" (*p) : "ir" (~v) : "memory", "cc"); } struct __hack;
-/// static __inline void atomic_add_short(volatile u_short *p, u_short v){ __asm volatile("lock ; " "addw %w1,%0" : "+m" (*p) : "ir" (v) : "cc"); } static __inline void atomic_add_barr_short(volatile u_short *p, u_short v){ __asm volatile("lock ; " "addw %w1,%0" : "+m" (*p) : "ir" (v) : "memory", "cc"); } struct __hack;
-/// static __inline void atomic_subtract_short(volatile u_short *p, u_short v){ __asm volatile("lock ; " "subw %w1,%0" : "+m" (*p) : "ir" (v) : "cc"); } static __inline void atomic_subtract_barr_short(volatile u_short *p, u_short v){ __asm volatile("lock ; " "subw %w1,%0" : "+m" (*p) : "ir" (v) : "memory", "cc"); } struct __hack;
-///
-/// static __inline void atomic_set_int(volatile u_int *p, u_int v){ __asm volatile("lock ; " "orl %1,%0" : "+m" (*p) : "ir" (v) : "cc"); } static __inline void atomic_set_barr_int(volatile u_int *p, u_int v){ __asm volatile("lock ; " "orl %1,%0" : "+m" (*p) : "ir" (v) : "memory", "cc"); } struct __hack;
-/// static __inline void atomic_clear_int(volatile u_int *p, u_int v){ __asm volatile("lock ; " "andl %1,%0" : "+m" (*p) : "ir" (~v) : "cc"); } static __inline void atomic_clear_barr_int(volatile u_int *p, u_int v){ __asm volatile("lock ; " "andl %1,%0" : "+m" (*p) : "ir" (~v) : "memory", "cc"); } struct __hack;
-/// static __inline void atomic_add_int(volatile u_int *p, u_int v){ __asm volatile("lock ; " "addl %1,%0" : "+m" (*p) : "ir" (v) : "cc"); } static __inline void atomic_add_barr_int(volatile u_int *p, u_int v){ __asm volatile("lock ; " "addl %1,%0" : "+m" (*p) : "ir" (v) : "memory", "cc"); } struct __hack;
-/// static __inline void atomic_subtract_int(volatile u_int *p, u_int v){ __asm volatile("lock ; " "subl %1,%0" : "+m" (*p) : "ir" (v) : "cc"); } static __inline void atomic_subtract_barr_int(volatile u_int *p, u_int v){ __asm volatile("lock ; " "subl %1,%0" : "+m" (*p) : "ir" (v) : "memory", "cc"); } struct __hack;
-///
-/// static __inline void atomic_set_long(volatile u_long *p, u_long v){ __asm volatile("lock ; " "orq %1,%0" : "+m" (*p) : "er" (v) : "cc"); } static __inline void atomic_set_barr_long(volatile u_long *p, u_long v){ __asm volatile("lock ; " "orq %1,%0" : "+m" (*p) : "er" (v) : "memory", "cc"); } struct __hack;
-/// static __inline void atomic_clear_long(volatile u_long *p, u_long v){ __asm volatile("lock ; " "andq %1,%0" : "+m" (*p) : "er" (~v) : "cc"); } static __inline void atomic_clear_barr_long(volatile u_long *p, u_long v){ __asm volatile("lock ; " "andq %1,%0" : "+m" (*p) : "er" (~v) : "memory", "cc"); } struct __hack;
-/// static __inline void atomic_add_long(volatile u_long *p, u_long v){ __asm volatile("lock ; " "addq %1,%0" : "+m" (*p) : "er" (v) : "cc"); } static __inline void atomic_add_barr_long(volatile u_long *p, u_long v){ __asm volatile("lock ; " "addq %1,%0" : "+m" (*p) : "er" (v) : "memory", "cc"); } struct __hack;
-/// static __inline void atomic_subtract_long(volatile u_long *p, u_long v){ __asm volatile("lock ; " "subq %1,%0" : "+m" (*p) : "er" (v) : "cc"); } static __inline void atomic_subtract_barr_long(volatile u_long *p, u_long v){ __asm volatile("lock ; " "subq %1,%0" : "+m" (*p) : "er" (v) : "memory", "cc"); } struct __hack;
-///
-///
-///
-///
-///
-/// static __inline u_char atomic_load_acq_char(volatile u_char *p) { u_char res; res = *p; __asm volatile(" " : : : "memory"); return (res); } struct __hack; static __inline void atomic_store_rel_char(volatile u_char *p, u_char v) { __asm volatile(" " : : : "memory"); *p = v; } struct __hack;
-/// static __inline u_short atomic_load_acq_short(volatile u_short *p) { u_short res; res = *p; __asm volatile(" " : : : "memory"); return (res); } struct __hack; static __inline void atomic_store_rel_short(volatile u_short *p, u_short v) { __asm volatile(" " : : : "memory"); *p = v; } struct __hack;
-/// static __inline u_int atomic_load_acq_int(volatile u_int *p) { u_int res; res = *p; __asm volatile(" " : : : "memory"); return (res); } struct __hack; static __inline void atomic_store_rel_int(volatile u_int *p, u_int v) { __asm volatile(" " : : : "memory"); *p = v; } struct __hack;
-/// static __inline u_long atomic_load_acq_long(volatile u_long *p) { u_long res; res = *p; __asm volatile(" " : : : "memory"); return (res); } struct __hack; static __inline void atomic_store_rel_long(volatile u_long *p, u_long v) { __asm volatile(" " : : : "memory"); *p = v; } struct __hack;
-///
-/// static __inline u_int
-/// atomic_swap_int(volatile u_int *p, u_int v)
-/// {
-///
-/// __asm volatile(
-/// " xchgl %1,%0 ; "
-/// "# atomic_swap_int"
-/// : "+r" (v),
-/// "+m" (*p));
-/// return (v);
-/// }
-///
-/// static __inline u_long
-/// atomic_swap_long(volatile u_long *p, u_long v)
-/// {
-///
-/// __asm volatile(
-/// " xchgq %1,%0 ; "
-/// "# atomic_swap_long"
-/// : "+r" (v),
-/// "+m" (*p));
-/// return (v);
-/// }
-///
-///
-///
-///
-///
-/// extern char *_PathLocale;
-///
-/// int __detect_path_locale(void);
-/// int __wrap_setrunelocale(const char *);
-///
-///
-/// enum {
-/// XLC_COLLATE = 0,
-/// XLC_CTYPE,
-/// XLC_MONETARY,
-/// XLC_NUMERIC,
-/// XLC_TIME,
-/// XLC_MESSAGES,
-/// XLC_LAST
-/// };
-///
-/// _Static_assert(XLC_LAST - XLC_COLLATE == 6, "XLC values should be contiguous");
-/// _Static_assert(XLC_COLLATE ==
-///
-/// 1
-///
-/// - 1,
-/// "XLC_COLLATE doesn't match the LC_COLLATE value.");
-/// _Static_assert(XLC_CTYPE ==
-///
-/// 2
-///
-/// - 1,
-/// "XLC_CTYPE doesn't match the LC_CTYPE value.");
-/// _Static_assert(XLC_MONETARY ==
-///
-/// 3
-///
-/// - 1,
-/// "XLC_MONETARY doesn't match the LC_MONETARY value.");
-/// _Static_assert(XLC_NUMERIC ==
-///
-/// 4
-///
-/// - 1,
-/// "XLC_NUMERIC doesn't match the LC_NUMERIC value.");
-/// _Static_assert(XLC_TIME ==
-///
-/// 5
-///
-/// - 1,
-/// "XLC_TIME doesn't match the LC_TIME value.");
-/// _Static_assert(XLC_MESSAGES ==
-///
-/// 6
-///
-/// - 1,
-/// "XLC_MESSAGES doesn't match the LC_MESSAGES value.");
-///
-/// struct xlocale_refcounted {
-///
-/// long retain_count;
-///
-/// void(*destructor)(void*);
-/// };
-///
-///
-///
-///
-///
-///
-///
-/// struct xlocale_component {
-/// struct xlocale_refcounted header;
-///
-/// char locale[31 +1];
-///
-/// char version[12];
-/// };
-///
-///
-///
-///
-/// struct _xlocale {
-/// struct xlocale_refcounted header;
-///
-/// struct xlocale_component *components[XLC_LAST];
-///
-///
-/// int monetary_locale_changed;
-///
-///
-/// int using_monetary_locale;
-///
-///
-/// int numeric_locale_changed;
-///
-///
-/// int using_numeric_locale;
-///
-///
-/// int using_time_locale;
-///
-///
-/// int using_messages_locale;
-///
-/// struct lconv lconv;
-///
-/// char *csym;
-/// };
-///
-///
-///
-///
-/// __attribute__((unused)) static void*
-/// xlocale_retain(void *val)
-/// {
-/// struct xlocale_refcounted *obj = val;
-/// atomic_add_long(&(obj->retain_count), 1);
-/// return (val);
-/// }
-///
-///
-///
-///
-/// __attribute__((unused)) static void
-/// xlocale_release(void *val)
-/// {
-/// struct xlocale_refcounted *obj = val;
-/// long count;
-///
-/// count = atomic_fetchadd_long(&(obj->retain_count), -1) - 1;
-/// if (count < 0 && obj->destructor !=
-///
-/// ((void *)0)
-///
-/// )
-/// obj->destructor(obj);
-/// }
-///
-///
-///
-///
-///
-/// extern void* __collate_load(const char*, locale_t);
-/// extern void* __ctype_load(const char*, locale_t);
-/// extern void* __messages_load(const char*, locale_t);
-/// extern void* __monetary_load(const char*, locale_t);
-/// extern void* __numeric_load(const char*, locale_t);
-/// extern void* __time_load(const char*, locale_t);
-///
-/// extern struct _xlocale __xlocale_global_locale;
-/// extern struct _xlocale __xlocale_C_locale;
-///
-///
-///
-///
-/// void __set_thread_rune_locale(locale_t loc);
-///
-///
-///
-///
-/// extern int __has_thread_locale;
-///
-///
-///
-///
-///
-/// extern _Thread_local locale_t __thread_locale;
-///
-///
-///
-///
-///
-///
-///
-/// static inline locale_t __get_locale(void)
-/// {
-///
-/// if (!__has_thread_locale) {
-/// return (&__xlocale_global_locale);
-/// }
-/// return (__thread_locale ? __thread_locale : &__xlocale_global_locale);
-/// }
-///
-///
-///
-///
-///
-/// static inline locale_t get_real_locale(locale_t locale)
-/// {
-/// switch ((intptr_t)locale) {
-/// case 0: return (&__xlocale_C_locale);
-/// case -1: return (&__xlocale_global_locale);
-/// default: return (locale);
-/// }
-/// }
-///
-///
-///
-///
-///
-///
-///
-///
-/// struct xlocale_ctype {
-/// struct xlocale_component header;
-/// _RuneLocale *runes;
-/// size_t (*__mbrtowc)(wchar_t *
-///
-/// restrict
-///
-/// , const char *
-///
-/// restrict
-///
-/// ,
-/// size_t, mbstate_t *
-///
-/// restrict
-///
-/// );
-/// int (*__mbsinit)(const mbstate_t *);
-/// size_t (*__mbsnrtowcs)(wchar_t *
-///
-/// restrict
-///
-/// , const char **
-///
-/// restrict
-///
-/// ,
-/// size_t, size_t, mbstate_t *
-///
-/// restrict
-///
-/// );
-/// size_t (*__wcrtomb)(char *
-///
-/// restrict
-///
-/// , wchar_t, mbstate_t *
-///
-/// restrict
-///
-/// );
-/// size_t (*__wcsnrtombs)(char *
-///
-/// restrict
-///
-/// , const wchar_t **
-///
-/// restrict
-///
-/// ,
-/// size_t, size_t, mbstate_t *
-///
-/// restrict
-///
-/// );
-/// int __mb_cur_max;
-/// int __mb_sb_limit;
-///
-/// __mbstate_t mblen;
-///
-/// __mbstate_t mbrlen;
-///
-/// __mbstate_t mbrtoc16;
-///
-/// __mbstate_t mbrtoc32;
-///
-/// __mbstate_t mbrtowc;
-///
-/// __mbstate_t mbsnrtowcs;
-///
-/// __mbstate_t mbsrtowcs;
-///
-/// __mbstate_t mbtowc;
-///
-/// __mbstate_t c16rtomb;
-///
-/// __mbstate_t c32rtomb;
-///
-/// __mbstate_t wcrtomb;
-///
-/// __mbstate_t wcsnrtombs;
-///
-/// __mbstate_t wcsrtombs;
-///
-/// __mbstate_t wctomb;
-/// };
-///
-/// extern struct xlocale_ctype __xlocale_global_ctype;
-///
-///
-///
-///
-/// int _none_init(struct xlocale_ctype *, _RuneLocale *)
-///
-/// __attribute__((__visibility__("hidden")))
-///
-/// ;
-/// int _UTF8_init(struct xlocale_ctype *, _RuneLocale *)
-///
-/// __attribute__((__visibility__("hidden")))
-///
-/// ;
-/// int _EUC_CN_init(struct xlocale_ctype *, _RuneLocale *)
-///
-/// __attribute__((__visibility__("hidden")))
-///
-/// ;
-/// int _EUC_JP_init(struct xlocale_ctype *, _RuneLocale *)
-///
-/// __attribute__((__visibility__("hidden")))
-///
-/// ;
-/// int _EUC_KR_init(struct xlocale_ctype *, _RuneLocale *)
-///
-/// __attribute__((__visibility__("hidden")))
-///
-/// ;
-/// int _EUC_TW_init(struct xlocale_ctype *, _RuneLocale *)
-///
-/// __attribute__((__visibility__("hidden")))
-///
-/// ;
-/// int _GB18030_init(struct xlocale_ctype *, _RuneLocale *)
-///
-/// __attribute__((__visibility__("hidden")))
-///
-/// ;
-/// int _GB2312_init(struct xlocale_ctype *, _RuneLocale *)
-///
-/// __attribute__((__visibility__("hidden")))
-///
-/// ;
-/// int _GBK_init(struct xlocale_ctype *, _RuneLocale *)
-///
-/// __attribute__((__visibility__("hidden")))
-///
-/// ;
-/// int _BIG5_init(struct xlocale_ctype *, _RuneLocale *)
-///
-/// __attribute__((__visibility__("hidden")))
-///
-/// ;
-/// int _MSKanji_init(struct xlocale_ctype *, _RuneLocale *)
-///
-/// __attribute__((__visibility__("hidden")))
-///
-/// ;
-/// int _ascii_init(struct xlocale_ctype *, _RuneLocale *)
-///
-/// __attribute__((__visibility__("hidden")))
-///
-/// ;
-///
-/// typedef size_t (*mbrtowc_pfn_t)(wchar_t *
-///
-/// restrict
-///
-/// ,
-/// const char *
-///
-/// restrict
-///
-/// , size_t, mbstate_t *
-///
-/// restrict
-///
-/// );
-/// typedef size_t (*wcrtomb_pfn_t)(char *
-///
-/// restrict
-///
-/// , wchar_t,
-/// mbstate_t *
-///
-/// restrict
-///
-/// );
-/// size_t __mbsnrtowcs_std(wchar_t *
-///
-/// restrict
-///
-/// , const char **
-///
-/// restrict
-///
-/// ,
-/// size_t, size_t, mbstate_t *
-///
-/// restrict
-///
-/// , mbrtowc_pfn_t);
-/// size_t __wcsnrtombs_std(char *
-///
-/// restrict
-///
-/// , const wchar_t **
-///
-/// restrict
-///
-/// ,
-/// size_t, size_t, mbstate_t *
-///
-/// restrict
-///
-/// , wcrtomb_pfn_t);
-///
-
-var X_DefaultRuneLocale = _RuneLocale{
-
- __magic: *(*[8]int8)(unsafe.Pointer(ts)),
- __encoding: *(*[32]int8)(unsafe.Pointer(ts + 9)),
- __invalid_rune: 0xFFFD,
-
- __runetype: [256]uint64{
-
- 0: uint64(0x00000200),
-
- 1: uint64(0x00000200),
-
- 2: uint64(0x00000200),
-
- 3: uint64(0x00000200),
-
- 4: uint64(0x00000200),
-
- 5: uint64(0x00000200),
-
- 6: uint64(0x00000200),
-
- 7: uint64(0x00000200),
-
- 8: uint64(0x00000200),
-
- 9: uint64(0x00000200 |
-
- 0x00004000 |
-
- 0x00020000),
-
- 10: uint64(0x00000200 |
-
- 0x00004000),
-
- 11: uint64(0x00000200 |
-
- 0x00004000),
-
- 12: uint64(0x00000200 |
-
- 0x00004000),
-
- 13: uint64(0x00000200 |
-
- 0x00004000),
-
- 14: uint64(0x00000200),
-
- 15: uint64(0x00000200),
-
- 16: uint64(0x00000200),
-
- 17: uint64(0x00000200),
-
- 18: uint64(0x00000200),
-
- 19: uint64(0x00000200),
-
- 20: uint64(0x00000200),
-
- 21: uint64(0x00000200),
-
- 22: uint64(0x00000200),
-
- 23: uint64(0x00000200),
-
- 24: uint64(0x00000200),
-
- 25: uint64(0x00000200),
-
- 26: uint64(0x00000200),
-
- 27: uint64(0x00000200),
-
- 28: uint64(0x00000200),
-
- 29: uint64(0x00000200),
-
- 30: uint64(0x00000200),
-
- 31: uint64(0x00000200),
-
- 32: uint64(0x00004000 |
-
- 0x00020000 |
-
- 0x00040000),
-
- 33: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 34: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 35: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 36: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 37: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 38: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 39: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 40: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 41: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 42: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 43: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 44: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 45: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 46: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 47: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 48: uint64(0x00000400 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00010000 |
-
- 0x00400000 |
-
- int64(0)),
-
- 49: uint64(0x00000400 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00010000 |
-
- 0x00400000 |
-
- int64(1)),
-
- 50: uint64(0x00000400 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00010000 |
-
- 0x00400000 |
-
- int64(2)),
-
- 51: uint64(0x00000400 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00010000 |
-
- 0x00400000 |
-
- int64(3)),
-
- 52: uint64(0x00000400 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00010000 |
-
- 0x00400000 |
-
- int64(4)),
-
- 53: uint64(0x00000400 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00010000 |
-
- 0x00400000 |
-
- int64(5)),
-
- 54: uint64(0x00000400 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00010000 |
-
- 0x00400000 |
-
- int64(6)),
-
- 55: uint64(0x00000400 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00010000 |
-
- 0x00400000 |
-
- int64(7)),
-
- 56: uint64(0x00000400 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00010000 |
-
- 0x00400000 |
-
- int64(8)),
-
- 57: uint64(0x00000400 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00010000 |
-
- 0x00400000 |
-
- int64(9)),
-
- 58: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 59: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 60: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 61: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 62: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 63: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 64: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 65: uint64(0x00008000 |
-
- 0x00010000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100 |
-
- int64(10)),
-
- 66: uint64(0x00008000 |
-
- 0x00010000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100 |
-
- int64(11)),
-
- 67: uint64(0x00008000 |
-
- 0x00010000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100 |
-
- int64(12)),
-
- 68: uint64(0x00008000 |
-
- 0x00010000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100 |
-
- int64(13)),
-
- 69: uint64(0x00008000 |
-
- 0x00010000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100 |
-
- int64(14)),
-
- 70: uint64(0x00008000 |
-
- 0x00010000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100 |
-
- int64(15)),
-
- 71: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 72: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 73: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 74: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 75: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 76: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 77: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 78: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 79: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 80: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 81: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 82: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 83: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 84: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 85: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 86: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 87: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 88: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 89: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 90: uint64(0x00008000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 91: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 92: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 93: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 94: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 95: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 96: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 97: uint64(0x00001000 |
-
- 0x00010000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100 |
-
- int64(10)),
-
- 98: uint64(0x00001000 |
-
- 0x00010000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100 |
-
- int64(11)),
-
- 99: uint64(0x00001000 |
-
- 0x00010000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100 |
-
- int64(12)),
-
- 100: uint64(0x00001000 |
-
- 0x00010000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100 |
-
- int64(13)),
-
- 101: uint64(0x00001000 |
-
- 0x00010000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100 |
-
- int64(14)),
-
- 102: uint64(0x00001000 |
-
- 0x00010000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100 |
-
- int64(15)),
-
- 103: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 104: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 105: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 106: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 107: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 108: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 109: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 110: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 111: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 112: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 113: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 114: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 115: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 116: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 117: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 118: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 119: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 120: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 121: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 122: uint64(0x00001000 |
-
- 0x00040000 |
-
- 0x00000800 |
-
- 0x00000100),
-
- 123: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 124: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 125: uint64(0x00002000 |
-
- 0x00040000 |
-
- 0x00000800),
-
- 126: uint64(0x00002000 |
-
- 0x00040000 |
+// # 1 "lib/libc/gen/ctype_.c"
+// # 1 "<built-in>"
+// # 1 "<command-line>"
+// # 1 "lib/libc/gen/ctype_.c"
+// # 36 "lib/libc/gen/ctype_.c"
+// # 1 "./include/ctype.h" 1
+// # 43 "./include/ctype.h"
+// # 1 "./sys/sys/cdefs.h" 1
+// # 41 "./sys/sys/cdefs.h"
+// # 1 "./machine/cdefs.h" 1
+// # 42 "./sys/sys/cdefs.h" 2
+// # 44 "./include/ctype.h" 2
+// # 57 "./include/ctype.h"
+// typedef void *locale_t;
+//
+//
+//
+//
+//
+// extern const char *_ctype_;
+// extern const short *_tolower_tab_;
+// extern const short *_toupper_tab_;
+//
+//
+// int isalnum(int);
+// int isalpha(int);
+// int iscntrl(int);
+// int isdigit(int);
+// int isgraph(int);
+// int islower(int);
+// int isprint(int);
+// int ispunct(int);
+// int isspace(int);
+// int isupper(int);
+// int isxdigit(int);
+// int tolower(int);
+// int toupper(int);
+//
+//
+//
+// int isblank(int);
+//
+//
+//
+// int isascii(int);
+// int toascii(int);
+// int _tolower(int);
+// int _toupper(int);
+//
+//
+//
+// int isalnum_l(int, locale_t);
+// int isalpha_l(int, locale_t);
+// int isblank_l(int, locale_t);
+// int iscntrl_l(int, locale_t);
+// int isdigit_l(int, locale_t);
+// int isgraph_l(int, locale_t);
+// int islower_l(int, locale_t);
+// int isprint_l(int, locale_t);
+// int ispunct_l(int, locale_t);
+// int isspace_l(int, locale_t);
+// int isupper_l(int, locale_t);
+// int isxdigit_l(int, locale_t);
+// int tolower_l(int, locale_t);
+// int toupper_l(int, locale_t);
+//
+//
+//
+//
+//
+//
+// extern __inline __attribute__((__gnu_inline__)) int isalnum(int _c)
+// {
+// return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] & (0x01|0x02|0x04)));
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int isalpha(int _c)
+// {
+// return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] & (0x01|0x02)));
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int iscntrl(int _c)
+// {
+// return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] & 0x20));
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int isdigit(int _c)
+// {
+// return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] & 0x04));
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int isgraph(int _c)
+// {
+// return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] & (0x10|0x01|0x02|0x04)));
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int islower(int _c)
+// {
+// return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] & 0x02));
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int isprint(int _c)
+// {
+// return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] & (0x10|0x01|0x02|0x04|0x80)));
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int ispunct(int _c)
+// {
+// return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] & 0x10));
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int isspace(int _c)
+// {
+// return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] & 0x08));
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int isupper(int _c)
+// {
+// return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] & 0x01));
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int isxdigit(int _c)
+// {
+// return (_c == -1 ? 0 : ((_ctype_ + 1)[(unsigned char)_c] & (0x04|0x40)));
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int tolower(int _c)
+// {
+// if ((unsigned int)_c > 255)
+// return (_c);
+// return ((_tolower_tab_ + 1)[_c]);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int toupper(int _c)
+// {
+// if ((unsigned int)_c > 255)
+// return (_c);
+// return ((_toupper_tab_ + 1)[_c]);
+// }
+//
+//
- 0x00000800),
+// extern __inline __attribute__((__gnu_inline__))
+func Xisblank(tls *TLS, _c int32) int32 { /* ctype_.c:144:5: */
+ return Bool32(_c == ' ' || _c == '\t')
+}
- 127: uint64(0x00000200),
- },
- __maplower: [256]int32{0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
- 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
- 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
- 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
- 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
- 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
- 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
- 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
- 0x40, 'a', 'b', 'c', 'd', 'e', 'f', 'g',
- 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
- 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
- 'x', 'y', 'z', 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
- 0x60, 'a', 'b', 'c', 'd', 'e', 'f', 'g',
- 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
- 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
- 'x', 'y', 'z', 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
- 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
- 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
- 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
- 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
- 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
- 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
- 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
- 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
- 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
- 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
- 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
- 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
- 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
- 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
- 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
- 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
- },
- __mapupper: [256]int32{0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
- 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
- 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
- 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
- 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27,
- 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
- 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
- 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
- 0x40, 'A', 'B', 'C', 'D', 'E', 'F', 'G',
- 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
- 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
- 'X', 'Y', 'Z', 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
- 0x60, 'A', 'B', 'C', 'D', 'E', 'F', 'G',
- 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
- 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
- 'X', 'Y', 'Z', 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
- 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
- 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
- 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
- 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
- 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
- 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
- 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
- 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
- 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
- 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
- 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
- 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
- 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
- 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
- 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
- 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
- },
-} /* table.cpp.c:2243:19 */
-
-var X_CurrentRuneLocale uintptr = 0 /* table.cpp.c:4092:19 */
-
-/// _RuneLocale *
-/// __runes_for_locale(locale_t locale, int *mb_sb_limit)
-/// {
-/// (locale = get_real_locale(locale));
-/// struct xlocale_ctype *c = ((struct xlocale_ctype*)(locale)->components[XLC_CTYPE]);
-/// *mb_sb_limit = c->__mb_sb_limit;
-/// return c->runes;
-/// }
+// extern __inline __attribute__((__gnu_inline__)) int isascii(int _c)
+// {
+// return ((unsigned int)_c <= 0177);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int toascii(int _c)
+// {
+// return (_c & 0177);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int _tolower(int _c)
+// {
+// return (_c - 'A' + 'a');
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int _toupper(int _c)
+// {
+// return (_c - 'a' + 'A');
+// }
+//
+//
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// isalnum_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return isalnum(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// isalpha_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return isalpha(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// isblank_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return isblank(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// iscntrl_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return iscntrl(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// isdigit_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return isdigit(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// isgraph_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return isgraph(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// islower_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return islower(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// isprint_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return isprint(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// ispunct_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return ispunct(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// isspace_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return isspace(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// isupper_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return isupper(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// isxdigit_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return isxdigit(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// tolower_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return tolower(_c);
+// }
+//
+// extern __inline __attribute__((__gnu_inline__)) int
+// toupper_l(int _c, locale_t _l __attribute__((__unused__)))
+// {
+// return toupper(_c);
+// }
+//
+//
+//
+//
+//
+// # 37 "lib/libc/gen/ctype_.c" 2
+// # 1 "./lib/libc/include/ctype_private.h" 1
+//
+//
+//
+//
+//
+// # 5 "./lib/libc/include/ctype_private.h"
+// #pragma GCC visibility push(hidden)
+// # 5 "./lib/libc/include/ctype_private.h"
+//
+// extern const char _C_ctype_[];
+// extern const short _C_toupper_[];
+// extern const short _C_tolower_[];
+//
+// # 9 "./lib/libc/include/ctype_private.h"
+// #pragma GCC visibility pop
+// # 9 "./lib/libc/include/ctype_private.h"
+//
+// # 38 "lib/libc/gen/ctype_.c" 2
+
+var X_C_ctype_ = [257]int8{
+ int8(0),
+ int8(0x20), int8(0x20), int8(0x20), int8(0x20), int8(0x20), int8(0x20), int8(0x20), int8(0x20),
+ int8(0x20), int8(0x20 | 0x08), int8(0x20 | 0x08), int8(0x20 | 0x08), int8(0x20 | 0x08), int8(0x20 | 0x08), int8(0x20), int8(0x20),
+ int8(0x20), int8(0x20), int8(0x20), int8(0x20), int8(0x20), int8(0x20), int8(0x20), int8(0x20),
+ int8(0x20), int8(0x20), int8(0x20), int8(0x20), int8(0x20), int8(0x20), int8(0x20), int8(0x20),
+ int8(0x08 | int32(Int8FromInt32(0x80))), int8(0x10), int8(0x10), int8(0x10), int8(0x10), int8(0x10), int8(0x10), int8(0x10),
+ int8(0x10), int8(0x10), int8(0x10), int8(0x10), int8(0x10), int8(0x10), int8(0x10), int8(0x10),
+ int8(0x04), int8(0x04), int8(0x04), int8(0x04), int8(0x04), int8(0x04), int8(0x04), int8(0x04),
+ int8(0x04), int8(0x04), int8(0x10), int8(0x10), int8(0x10), int8(0x10), int8(0x10), int8(0x10),
+ int8(0x10), int8(0x01 | 0x40), int8(0x01 | 0x40), int8(0x01 | 0x40), int8(0x01 | 0x40), int8(0x01 | 0x40), int8(0x01 | 0x40), int8(0x01),
+ int8(0x01), int8(0x01), int8(0x01), int8(0x01), int8(0x01), int8(0x01), int8(0x01), int8(0x01),
+ int8(0x01), int8(0x01), int8(0x01), int8(0x01), int8(0x01), int8(0x01), int8(0x01), int8(0x01),
+ int8(0x01), int8(0x01), int8(0x01), int8(0x10), int8(0x10), int8(0x10), int8(0x10), int8(0x10),
+ int8(0x10), int8(0x02 | 0x40), int8(0x02 | 0x40), int8(0x02 | 0x40), int8(0x02 | 0x40), int8(0x02 | 0x40), int8(0x02 | 0x40), int8(0x02),
+ int8(0x02), int8(0x02), int8(0x02), int8(0x02), int8(0x02), int8(0x02), int8(0x02), int8(0x02),
+ int8(0x02), int8(0x02), int8(0x02), int8(0x02), int8(0x02), int8(0x02), int8(0x02), int8(0x02),
+ int8(0x02), int8(0x02), int8(0x02), int8(0x10), int8(0x10), int8(0x10), int8(0x10), int8(0x20),
+
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0),
+} /* ctype_.c:282:12 */
+
+var X_ctype_ uintptr = 0 /* ctype_.c:319:12 */
func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */
return Bool32(_c == ' ' || uint32(_c)-uint32('\t') < uint32(5))
@@ -3451,39 +809,39 @@ type ssize_t = int64 /* alltypes.h:65:15 */
type off_t = int64 /* alltypes.h:162:16 */
type _IO_FILE = struct {
- flags uint32
- _ [4]byte
- rpos uintptr
- rend uintptr
- close uintptr
- wend uintptr
- wpos uintptr
- mustbezero_1 uintptr
- wbase uintptr
- read uintptr
- write uintptr
- seek uintptr
- buf uintptr
- buf_size size_t
- prev uintptr
- next uintptr
- fd int32
- pipe_pid int32
- lockcount int64
- mode int32
- lock int32
- lbf int32
- _ [4]byte
- cookie uintptr
- off off_t
- getln_buf uintptr
- mustbezero_2 uintptr
- shend uintptr
- shlim off_t
- shcnt off_t
- prev_locked uintptr
- next_locked uintptr
- locale uintptr
+ Fflags uint32
+ F__ccgo_pad1 [4]byte
+ Frpos uintptr
+ Frend uintptr
+ Fclose uintptr
+ Fwend uintptr
+ Fwpos uintptr
+ Fmustbezero_1 uintptr
+ Fwbase uintptr
+ Fread uintptr
+ Fwrite uintptr
+ Fseek uintptr
+ Fbuf uintptr
+ Fbuf_size size_t
+ Fprev uintptr
+ Fnext uintptr
+ Ffd int32
+ Fpipe_pid int32
+ Flockcount int64
+ Fmode int32
+ Flock int32
+ Flbf int32
+ F__ccgo_pad2 [4]byte
+ Fcookie uintptr
+ Foff off_t
+ Fgetln_buf uintptr
+ Fmustbezero_2 uintptr
+ Fshend uintptr
+ Fshlim off_t
+ Fshcnt off_t
+ Fprev_locked uintptr
+ Fnext_locked uintptr
+ Flocale uintptr
} /* alltypes.h:320:9 */
type FILE = _IO_FILE /* alltypes.h:320:25 */
@@ -3491,8 +849,8 @@ type FILE = _IO_FILE /* alltypes.h:320:25 */
type va_list = uintptr /* alltypes.h:326:27 */
type _G_fpos64_t = struct {
- _ [0]uint64
- __opaque [16]int8
+ F__ccgo_pad1 [0]uint64
+ F__opaque [16]int8
} /* stdio.h:54:9 */
type fpos_t = _G_fpos64_t /* stdio.h:58:3 */
@@ -3505,7 +863,7 @@ func __FLOAT_BITS(tls *TLS, __f float32) uint32 { /* math.h:55:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
- // var __u struct {__f float32;} at bp, 4
+ // var __u struct {F__f float32;} at bp, 4
*(*float32)(unsafe.Pointer(bp)) = __f
return *(*uint32)(unsafe.Pointer(bp))
@@ -3515,7 +873,7 @@ func __DOUBLE_BITS(tls *TLS, __f float64) uint64 { /* math.h:61:36: */
bp := tls.Alloc(8)
defer tls.Free(8)
- // var __u struct {__f float64;} at bp, 8
+ // var __u struct {F__f float64;} at bp, 8
*(*float64)(unsafe.Pointer(bp)) = __f
return *(*uint64)(unsafe.Pointer(bp))
@@ -3530,58 +888,58 @@ func scanexp(tls *TLS, f uintptr, pok int32) int64 { /* floatscan.c:37:18: */
var neg int32 = 0
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
if c == '+' || c == '-' {
neg = Bool32(c == '-')
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
if uint32(c-'0') >= 10 && pok != 0 {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
}
}
if uint32(c-'0') >= 10 {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
return -0x7fffffffffffffff - int64(1)
}
for x = 0; uint32(c-'0') < 10 && x < 0x7fffffff/10; c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}() {
x = 10*x + c - '0'
}
for y = int64(x); uint32(c-'0') < 10 && y < 0x7fffffffffffffff/int64(100); c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}() {
y = int64(10)*y + int64(c) - int64('0')
}
for ; uint32(c-'0') < 10; c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}() {
}
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
if neg != 0 {
@@ -3620,8 +978,8 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
// Don't let leading zeros consume buffer space
for ; c == '0'; c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}() {
@@ -3630,13 +988,13 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
if c == '.' {
gotrad = 1
for c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}(); c == '0'; c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}() {
@@ -3647,8 +1005,8 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
*(*uint32_t)(unsafe.Pointer(bp)) = uint32_t(0)
for ; uint32(c-'0') < 10 || c == '.'; c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}() {
@@ -3689,8 +1047,8 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
e10 = scanexp(tls, f, pok)
if e10 == -0x7fffffffffffffff-int64(1) {
if pok != 0 {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
} else {
@@ -3701,8 +1059,8 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
}
lrp = lrp + e10
} else if c >= 0 {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
}
@@ -3944,16 +1302,16 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
var c int32
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
// Skip leading zeros
for ; c == '0'; c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}() {
@@ -3963,8 +1321,8 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
if c == '.' {
gotrad = 1
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -3978,8 +1336,8 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
goto __2
__2:
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -3990,8 +1348,8 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
}
for ; uint32(c-'0') < 10 || uint32(c|32-'a') < 6 || c == '.'; c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}() {
@@ -4020,18 +1378,18 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
}
}
if !(gotdig != 0) {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
if pok != 0 {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
if gotrad != 0 {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
}
@@ -4051,8 +1409,8 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
e2 = scanexp(tls, f, pok)
if e2 == -0x7fffffffffffffff-int64(1) {
if pok != 0 {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
} else {
@@ -4062,8 +1420,8 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
e2 = int64(0)
}
} else {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
}
@@ -4143,8 +1501,8 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* float
}
for __isspace(tls, AssignInt32(&c, func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}())) != 0 {
@@ -4153,18 +1511,18 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* float
if c == '+' || c == '-' {
sign = sign - 2*Bool32(c == '-')
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
}
- for i = uint64(0); i < uint64(8) && c|32 == int32(*(*int8)(unsafe.Pointer(ts + 41 /* "infinity" */ + uintptr(i)))); i++ {
+ for i = uint64(0); i < uint64(8) && c|32 == int32(*(*int8)(unsafe.Pointer(ts /* "infinity" */ + uintptr(i)))); i++ {
if i < uint64(7) {
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -4172,14 +1530,14 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* float
}
if i == uint64(3) || i == uint64(8) || i > uint64(3) && pok != 0 {
if i != uint64(8) {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
if pok != 0 {
for ; i > uint64(3); i-- {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
}
@@ -4188,11 +1546,11 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* float
return float64(float32(sign) * X__builtin_inff(tls))
}
if !(i != 0) {
- for i = uint64(0); i < uint64(3) && c|32 == int32(*(*int8)(unsafe.Pointer(ts + 50 /* "nan" */ + uintptr(i)))); i++ {
+ for i = uint64(0); i < uint64(3) && c|32 == int32(*(*int8)(unsafe.Pointer(ts + 9 /* "nan" */ + uintptr(i)))); i++ {
if i < uint64(2) {
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -4201,21 +1559,21 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* float
}
if i == uint64(3) {
if func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}() != '(' {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
- return float64(X__builtin_nanf(tls, ts+54))
+ return float64(X__builtin_nanf(tls, ts+13))
}
for i = uint64(1); ; i++ {
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -4223,10 +1581,10 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* float
continue
}
if c == ')' {
- return float64(X__builtin_nanf(tls, ts+54))
+ return float64(X__builtin_nanf(tls, ts+13))
}
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
if !(pok != 0) {
@@ -4235,19 +1593,19 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* float
return float64(0)
}
for PostDecUint64(&i, 1) != 0 {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
}
- return float64(X__builtin_nanf(tls, ts+54))
+ return float64(X__builtin_nanf(tls, ts+13))
}
- return float64(X__builtin_nanf(tls, ts+54))
+ return float64(X__builtin_nanf(tls, ts+13))
}
if i != 0 {
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
*(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22
@@ -4257,16 +1615,16 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* float
if c == '0' {
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
if c|32 == 'x' {
return hexfloat(tls, f, bits, emin, sign, pok)
}
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
c = '0'
@@ -4313,8 +1671,8 @@ __1:
;
__2:
if !(__isspace(tls, AssignInt32(&c, func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}())) != 0) {
@@ -4328,8 +1686,8 @@ __3:
}
neg = -Bool32(c == '-')
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -4339,8 +1697,8 @@ __4:
goto __5
}
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -4348,23 +1706,23 @@ __4:
goto __7
}
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
if !(int32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= 16) {
goto __9
}
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
if !(pok != 0) {
goto __10
}
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
goto __11
@@ -4397,8 +1755,8 @@ __13:
if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= base) {
goto __14
}
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
X__shlim(tls, f, int64(0))
@@ -4420,8 +1778,8 @@ __17:
goto __18
__18:
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -4438,8 +1796,8 @@ __20:
goto __21
__21:
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -4458,7 +1816,7 @@ __15:
if !!(base&(base-uint32(1)) != 0) {
goto __24
}
- bs = int32(*(*int8)(unsafe.Pointer(ts + 55 + uintptr(uint32(0x17)*base>>5&uint32(7)))))
+ bs = int32(*(*int8)(unsafe.Pointer(ts + 14 + uintptr(uint32(0x17)*base>>5&uint32(7)))))
x = uint32(0)
__26:
if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base && x <= 0xffffffff/uint32(32)) {
@@ -4468,8 +1826,8 @@ __26:
goto __27
__27:
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -4486,8 +1844,8 @@ __29:
goto __30
__30:
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -4506,8 +1864,8 @@ __32:
goto __33
__33:
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -4524,8 +1882,8 @@ __35:
goto __36
__36:
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -4547,8 +1905,8 @@ __39:
goto __40
__40:
c = func() int32 {
- if (*FILE)(unsafe.Pointer(f)).rpos != (*FILE)(unsafe.Pointer(f)).shend {
- return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).rpos, 1))))
+ if (*FILE)(unsafe.Pointer(f)).Frpos != (*FILE)(unsafe.Pointer(f)).Fshend {
+ return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE)(unsafe.Pointer(f)).Frpos, 1))))
}
return X__shgetc(tls, f)
}()
@@ -4567,8 +1925,8 @@ __42:
__38:
;
done:
- if (*FILE)(unsafe.Pointer(f)).shlim >= int64(0) {
- (*FILE)(unsafe.Pointer(f)).rpos--
+ if (*FILE)(unsafe.Pointer(f)).Fshlim >= int64(0) {
+ (*FILE)(unsafe.Pointer(f)).Frpos--
} else {
}
if !(y >= lim) {
@@ -4601,34 +1959,34 @@ __43:
// the actual count.
func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */
- (*FILE)(unsafe.Pointer(f)).shlim = lim
- (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf) - int64((*FILE)(unsafe.Pointer(f)).rpos)) / 1
+ (*FILE)(unsafe.Pointer(f)).Fshlim = lim
+ (*FILE)(unsafe.Pointer(f)).Fshcnt = (int64((*FILE)(unsafe.Pointer(f)).Fbuf) - int64((*FILE)(unsafe.Pointer(f)).Frpos)) / 1
// If lim is nonzero, rend must be a valid pointer.
- if lim != 0 && (int64((*FILE)(unsafe.Pointer(f)).rend)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 > lim {
- (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos + uintptr(lim)
+ if lim != 0 && (int64((*FILE)(unsafe.Pointer(f)).Frend)-int64((*FILE)(unsafe.Pointer(f)).Frpos))/1 > lim {
+ (*FILE)(unsafe.Pointer(f)).Fshend = (*FILE)(unsafe.Pointer(f)).Frpos + uintptr(lim)
} else {
- (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rend
+ (*FILE)(unsafe.Pointer(f)).Fshend = (*FILE)(unsafe.Pointer(f)).Frend
}
}
func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */
var c int32
- var cnt off_t = (*FILE)(unsafe.Pointer(f)).shcnt + (int64((*FILE)(unsafe.Pointer(f)).rpos)-int64((*FILE)(unsafe.Pointer(f)).buf))/1
- if (*FILE)(unsafe.Pointer(f)).shlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).shlim || AssignInt32(&c, X__uflow(tls, f)) < 0 {
- (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 + cnt
- (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos
- (*FILE)(unsafe.Pointer(f)).shlim = int64(-1)
+ var cnt off_t = (*FILE)(unsafe.Pointer(f)).Fshcnt + (int64((*FILE)(unsafe.Pointer(f)).Frpos)-int64((*FILE)(unsafe.Pointer(f)).Fbuf))/1
+ if (*FILE)(unsafe.Pointer(f)).Fshlim != 0 && cnt >= (*FILE)(unsafe.Pointer(f)).Fshlim || AssignInt32(&c, X__uflow(tls, f)) < 0 {
+ (*FILE)(unsafe.Pointer(f)).Fshcnt = (int64((*FILE)(unsafe.Pointer(f)).Fbuf)-int64((*FILE)(unsafe.Pointer(f)).Frpos))/1 + cnt
+ (*FILE)(unsafe.Pointer(f)).Fshend = (*FILE)(unsafe.Pointer(f)).Frpos
+ (*FILE)(unsafe.Pointer(f)).Fshlim = int64(-1)
return -1
}
cnt++
- if (*FILE)(unsafe.Pointer(f)).shlim != 0 && (int64((*FILE)(unsafe.Pointer(f)).rend)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 > (*FILE)(unsafe.Pointer(f)).shlim-cnt {
- (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rpos + uintptr((*FILE)(unsafe.Pointer(f)).shlim-cnt)
+ if (*FILE)(unsafe.Pointer(f)).Fshlim != 0 && (int64((*FILE)(unsafe.Pointer(f)).Frend)-int64((*FILE)(unsafe.Pointer(f)).Frpos))/1 > (*FILE)(unsafe.Pointer(f)).Fshlim-cnt {
+ (*FILE)(unsafe.Pointer(f)).Fshend = (*FILE)(unsafe.Pointer(f)).Frpos + uintptr((*FILE)(unsafe.Pointer(f)).Fshlim-cnt)
} else {
- (*FILE)(unsafe.Pointer(f)).shend = (*FILE)(unsafe.Pointer(f)).rend
+ (*FILE)(unsafe.Pointer(f)).Fshend = (*FILE)(unsafe.Pointer(f)).Frend
}
- (*FILE)(unsafe.Pointer(f)).shcnt = (int64((*FILE)(unsafe.Pointer(f)).buf)-int64((*FILE)(unsafe.Pointer(f)).rpos))/1 + cnt
- if (*FILE)(unsafe.Pointer(f)).rpos <= (*FILE)(unsafe.Pointer(f)).buf {
- *(*uint8)(unsafe.Pointer((*FILE)(unsafe.Pointer(f)).rpos + UintptrFromInt32(-1))) = uint8(c)
+ (*FILE)(unsafe.Pointer(f)).Fshcnt = (int64((*FILE)(unsafe.Pointer(f)).Fbuf)-int64((*FILE)(unsafe.Pointer(f)).Frpos))/1 + cnt
+ if (*FILE)(unsafe.Pointer(f)).Frpos <= (*FILE)(unsafe.Pointer(f)).Fbuf {
+ *(*uint8)(unsafe.Pointer((*FILE)(unsafe.Pointer(f)).Frpos + UintptrFromInt32(-1))) = uint8(c)
}
return c
}
@@ -4655,7 +2013,7 @@ func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */
bp := tls.Alloc(8)
defer tls.Free(8)
- *(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) {
+ *(*struct{ Ff float64 })(unsafe.Pointer(bp)) = func() (r struct{ Ff float64 }) {
*(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x
return r
}()
@@ -4684,7 +2042,7 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */
bp := tls.Alloc(8)
defer tls.Free(8)
- // var u struct {f float64;} at bp, 8
+ // var u struct {Ff float64;} at bp, 8
var y double_t = x
@@ -4721,26 +2079,26 @@ func Xscalbnl(tls *TLS, x float64, n int32) float64 { /* scalbnl.c:4:13: */
}
type div_t = struct {
- quot int32
- rem int32
+ Fquot int32
+ Frem int32
} /* stdlib.h:62:35 */
type ldiv_t = struct {
- quot int64
- rem int64
+ Fquot int64
+ Frem int64
} /* stdlib.h:63:36 */
type lldiv_t = struct {
- quot int64
- rem int64
+ Fquot int64
+ Frem int64
} /* stdlib.h:64:41 */
type max_align_t = struct {
- __ll int64
- __ld float64
+ F__ll int64
+ F__ld float64
} /* alltypes.h:41:54 */
type imaxdiv_t = struct {
- quot intmax_t
- rem intmax_t
+ Fquot intmax_t
+ Frem intmax_t
} /* inttypes.h:14:40 */
type pid_t = int32 /* alltypes.h:235:13 */
@@ -4750,8 +2108,8 @@ type uid_t = uint32 /* alltypes.h:245:18 */
type gid_t = uint32 /* alltypes.h:250:18 */
type iovec = struct {
- iov_base uintptr
- iov_len size_t
+ Fiov_base uintptr
+ Fiov_len size_t
} /* alltypes.h:355:1 */
type socklen_t = uint32 /* alltypes.h:361:18 */
@@ -4759,311 +2117,311 @@ type socklen_t = uint32 /* alltypes.h:361:18 */
type sa_family_t = uint16 /* alltypes.h:366:24 */
type msghdr = struct {
- msg_name uintptr
- msg_namelen socklen_t
- _ [4]byte
- msg_iov uintptr
- msg_iovlen int32
- __pad1 int32
- msg_control uintptr
- msg_controllen socklen_t
- __pad2 int32
- msg_flags int32
- _ [4]byte
+ Fmsg_name uintptr
+ Fmsg_namelen socklen_t
+ F__ccgo_pad1 [4]byte
+ Fmsg_iov uintptr
+ Fmsg_iovlen int32
+ F__pad1 int32
+ Fmsg_control uintptr
+ Fmsg_controllen socklen_t
+ F__pad2 int32
+ Fmsg_flags int32
+ F__ccgo_pad2 [4]byte
} /* socket.h:22:1 */
type cmsghdr = struct {
- cmsg_len socklen_t
- __pad1 int32
- cmsg_level int32
- cmsg_type int32
+ Fcmsg_len socklen_t
+ F__pad1 int32
+ Fcmsg_level int32
+ Fcmsg_type int32
} /* socket.h:44:1 */
type linger = struct {
- l_onoff int32
- l_linger int32
+ Fl_onoff int32
+ Fl_linger int32
} /* socket.h:74:1 */
type sockaddr = struct {
- sa_family sa_family_t
- sa_data [14]int8
+ Fsa_family sa_family_t
+ Fsa_data [14]int8
} /* socket.h:367:1 */
type sockaddr_storage = struct {
- ss_family sa_family_t
- __ss_padding [118]int8
- __ss_align uint64
+ Fss_family sa_family_t
+ F__ss_padding [118]int8
+ F__ss_align uint64
} /* socket.h:372:1 */
-type in_port_t = uint16_t /* in.h:12:18 */
-type in_addr_t = uint32_t /* in.h:13:18 */
-type in_addr = struct{ s_addr in_addr_t } /* in.h:14:1 */
+type in_port_t = uint16_t /* in.h:12:18 */
+type in_addr_t = uint32_t /* in.h:13:18 */
+type in_addr = struct{ Fs_addr in_addr_t } /* in.h:14:1 */
type sockaddr_in = struct {
- sin_family sa_family_t
- sin_port in_port_t
- sin_addr struct{ s_addr in_addr_t }
- sin_zero [8]uint8_t
+ Fsin_family sa_family_t
+ Fsin_port in_port_t
+ Fsin_addr struct{ Fs_addr in_addr_t }
+ Fsin_zero [8]uint8_t
} /* in.h:16:1 */
type in6_addr = struct {
- __in6_union struct {
- _ [0]uint32
- __s6_addr [16]uint8_t
+ F__in6_union struct {
+ F__ccgo_pad1 [0]uint32
+ F__s6_addr [16]uint8_t
}
} /* in.h:23:1 */
type sockaddr_in6 = struct {
- sin6_family sa_family_t
- sin6_port in_port_t
- sin6_flowinfo uint32_t
- sin6_addr struct {
- __in6_union struct {
- _ [0]uint32
- __s6_addr [16]uint8_t
+ Fsin6_family sa_family_t
+ Fsin6_port in_port_t
+ Fsin6_flowinfo uint32_t
+ Fsin6_addr struct {
+ F__in6_union struct {
+ F__ccgo_pad1 [0]uint32
+ F__s6_addr [16]uint8_t
}
}
- sin6_scope_id uint32_t
+ Fsin6_scope_id uint32_t
} /* in.h:34:1 */
type ipv6_mreq = struct {
- ipv6mr_multiaddr struct {
- __in6_union struct {
- _ [0]uint32
- __s6_addr [16]uint8_t
+ Fipv6mr_multiaddr struct {
+ F__in6_union struct {
+ F__ccgo_pad1 [0]uint32
+ F__s6_addr [16]uint8_t
}
}
- ipv6mr_interface uint32
+ Fipv6mr_interface uint32
} /* in.h:42:1 */
type ip_opts = struct {
- ip_dst struct{ s_addr in_addr_t }
- ip_opts [40]int8
+ Fip_dst struct{ Fs_addr in_addr_t }
+ Fip_opts [40]int8
} /* in.h:229:1 */
type ip_mreq = struct {
- imr_multiaddr struct{ s_addr in_addr_t }
- imr_interface struct{ s_addr in_addr_t }
+ Fimr_multiaddr struct{ Fs_addr in_addr_t }
+ Fimr_interface struct{ Fs_addr in_addr_t }
} /* in.h:247:1 */
type ip_mreqn = struct {
- imr_multiaddr struct{ s_addr in_addr_t }
- imr_address struct{ s_addr in_addr_t }
- imr_ifindex int32
+ Fimr_multiaddr struct{ Fs_addr in_addr_t }
+ Fimr_address struct{ Fs_addr in_addr_t }
+ Fimr_ifindex int32
} /* in.h:252:1 */
type ip_mreq_source = struct {
- imr_multiaddr struct{ s_addr in_addr_t }
- imr_interface struct{ s_addr in_addr_t }
- imr_sourceaddr struct{ s_addr in_addr_t }
+ Fimr_multiaddr struct{ Fs_addr in_addr_t }
+ Fimr_interface struct{ Fs_addr in_addr_t }
+ Fimr_sourceaddr struct{ Fs_addr in_addr_t }
} /* in.h:258:1 */
type ip_msfilter = struct {
- imsf_multiaddr struct{ s_addr in_addr_t }
- imsf_interface struct{ s_addr in_addr_t }
- imsf_fmode uint32_t
- imsf_numsrc uint32_t
- imsf_slist [1]struct{ s_addr in_addr_t }
+ Fimsf_multiaddr struct{ Fs_addr in_addr_t }
+ Fimsf_interface struct{ Fs_addr in_addr_t }
+ Fimsf_fmode uint32_t
+ Fimsf_numsrc uint32_t
+ Fimsf_slist [1]struct{ Fs_addr in_addr_t }
} /* in.h:264:1 */
type group_req = struct {
- gr_interface uint32_t
- _ [4]byte
- gr_group struct {
- ss_family sa_family_t
- __ss_padding [118]int8
- __ss_align uint64
+ Fgr_interface uint32_t
+ F__ccgo_pad1 [4]byte
+ Fgr_group struct {
+ Fss_family sa_family_t
+ F__ss_padding [118]int8
+ F__ss_align uint64
}
} /* in.h:275:1 */
type group_source_req = struct {
- gsr_interface uint32_t
- _ [4]byte
- gsr_group struct {
- ss_family sa_family_t
- __ss_padding [118]int8
- __ss_align uint64
- }
- gsr_source struct {
- ss_family sa_family_t
- __ss_padding [118]int8
- __ss_align uint64
+ Fgsr_interface uint32_t
+ F__ccgo_pad1 [4]byte
+ Fgsr_group struct {
+ Fss_family sa_family_t
+ F__ss_padding [118]int8
+ F__ss_align uint64
+ }
+ Fgsr_source struct {
+ Fss_family sa_family_t
+ F__ss_padding [118]int8
+ F__ss_align uint64
}
} /* in.h:280:1 */
type group_filter = struct {
- gf_interface uint32_t
- _ [4]byte
- gf_group struct {
- ss_family sa_family_t
- __ss_padding [118]int8
- __ss_align uint64
- }
- gf_fmode uint32_t
- gf_numsrc uint32_t
- gf_slist [1]struct {
- ss_family sa_family_t
- __ss_padding [118]int8
- __ss_align uint64
+ Fgf_interface uint32_t
+ F__ccgo_pad1 [4]byte
+ Fgf_group struct {
+ Fss_family sa_family_t
+ F__ss_padding [118]int8
+ F__ss_align uint64
+ }
+ Fgf_fmode uint32_t
+ Fgf_numsrc uint32_t
+ Fgf_slist [1]struct {
+ Fss_family sa_family_t
+ F__ss_padding [118]int8
+ F__ss_align uint64
}
} /* in.h:286:1 */
type in_pktinfo = struct {
- ipi_ifindex int32
- ipi_spec_dst struct{ s_addr in_addr_t }
- ipi_addr struct{ s_addr in_addr_t }
+ Fipi_ifindex int32
+ Fipi_spec_dst struct{ Fs_addr in_addr_t }
+ Fipi_addr struct{ Fs_addr in_addr_t }
} /* in.h:297:1 */
type in6_pktinfo = struct {
- ipi6_addr struct {
- __in6_union struct {
- _ [0]uint32
- __s6_addr [16]uint8_t
+ Fipi6_addr struct {
+ F__in6_union struct {
+ F__ccgo_pad1 [0]uint32
+ F__s6_addr [16]uint8_t
}
}
- ipi6_ifindex uint32
+ Fipi6_ifindex uint32
} /* in.h:303:1 */
type ip6_mtuinfo = struct {
- ip6m_addr struct {
- sin6_family sa_family_t
- sin6_port in_port_t
- sin6_flowinfo uint32_t
- sin6_addr struct {
- __in6_union struct {
- _ [0]uint32
- __s6_addr [16]uint8_t
+ Fip6m_addr struct {
+ Fsin6_family sa_family_t
+ Fsin6_port in_port_t
+ Fsin6_flowinfo uint32_t
+ Fsin6_addr struct {
+ F__in6_union struct {
+ F__ccgo_pad1 [0]uint32
+ F__s6_addr [16]uint8_t
}
}
- sin6_scope_id uint32_t
+ Fsin6_scope_id uint32_t
}
- ip6m_mtu uint32_t
+ Fip6m_mtu uint32_t
} /* in.h:308:1 */
type addrinfo = struct {
- ai_flags int32
- ai_family int32
- ai_socktype int32
- ai_protocol int32
- ai_addrlen socklen_t
- _ [4]byte
- ai_addr uintptr
- ai_canonname uintptr
- ai_next uintptr
+ Fai_flags int32
+ Fai_family int32
+ Fai_socktype int32
+ Fai_protocol int32
+ Fai_addrlen socklen_t
+ F__ccgo_pad1 [4]byte
+ Fai_addr uintptr
+ Fai_canonname uintptr
+ Fai_next uintptr
} /* netdb.h:16:1 */
// Legacy functions follow (marked OBsolete in SUS)
type netent = struct {
- n_name uintptr
- n_aliases uintptr
- n_addrtype int32
- n_net uint32_t
+ Fn_name uintptr
+ Fn_aliases uintptr
+ Fn_addrtype int32
+ Fn_net uint32_t
} /* netdb.h:62:1 */
type hostent = struct {
- h_name uintptr
- h_aliases uintptr
- h_addrtype int32
- h_length int32
- h_addr_list uintptr
+ Fh_name uintptr
+ Fh_aliases uintptr
+ Fh_addrtype int32
+ Fh_length int32
+ Fh_addr_list uintptr
} /* netdb.h:69:1 */
type servent = struct {
- s_name uintptr
- s_aliases uintptr
- s_port int32
- _ [4]byte
- s_proto uintptr
+ Fs_name uintptr
+ Fs_aliases uintptr
+ Fs_port int32
+ F__ccgo_pad1 [4]byte
+ Fs_proto uintptr
} /* netdb.h:78:1 */
type protoent = struct {
- p_name uintptr
- p_aliases uintptr
- p_proto int32
- _ [4]byte
+ Fp_name uintptr
+ Fp_aliases uintptr
+ Fp_proto int32
+ F__ccgo_pad1 [4]byte
} /* netdb.h:85:1 */
type aibuf = struct {
- ai struct {
- ai_flags int32
- ai_family int32
- ai_socktype int32
- ai_protocol int32
- ai_addrlen socklen_t
- _ [4]byte
- ai_addr uintptr
- ai_canonname uintptr
- ai_next uintptr
- }
- sa struct {
- sin struct {
- sin_family sa_family_t
- sin_port in_port_t
- sin_addr struct{ s_addr in_addr_t }
- sin_zero [8]uint8_t
- }
- _ [12]byte
- }
- lock [1]int32
- slot int16
- ref int16
- _ [4]byte
+ Fai struct {
+ Fai_flags int32
+ Fai_family int32
+ Fai_socktype int32
+ Fai_protocol int32
+ Fai_addrlen socklen_t
+ F__ccgo_pad1 [4]byte
+ Fai_addr uintptr
+ Fai_canonname uintptr
+ Fai_next uintptr
+ }
+ Fsa struct {
+ Fsin struct {
+ Fsin_family sa_family_t
+ Fsin_port in_port_t
+ Fsin_addr struct{ Fs_addr in_addr_t }
+ Fsin_zero [8]uint8_t
+ }
+ F__ccgo_pad1 [12]byte
+ }
+ Flock [1]int32
+ Fslot int16
+ Fref int16
+ F__ccgo_pad1 [4]byte
} /* lookup.h:10:1 */
type sa = struct {
- sin struct {
- sin_family sa_family_t
- sin_port in_port_t
- sin_addr struct{ s_addr in_addr_t }
- sin_zero [8]uint8_t
+ Fsin struct {
+ Fsin_family sa_family_t
+ Fsin_port in_port_t
+ Fsin_addr struct{ Fs_addr in_addr_t }
+ Fsin_zero [8]uint8_t
}
- _ [12]byte
+ F__ccgo_pad1 [12]byte
} /* lookup.h:10:1 */
type address = struct {
- family int32
- scopeid uint32
- addr [16]uint8_t
- sortkey int32
+ Ffamily int32
+ Fscopeid uint32
+ Faddr [16]uint8_t
+ Fsortkey int32
} /* lookup.h:20:1 */
type service = struct {
- port uint16_t
- proto uint8
- socktype uint8
+ Fport uint16_t
+ Fproto uint8
+ Fsocktype uint8
} /* lookup.h:27:1 */
type resolvconf = struct {
- ns [3]struct {
- family int32
- scopeid uint32
- addr [16]uint8_t
- sortkey int32
- }
- nns uint32
- attempts uint32
- ndots uint32
- timeout uint32
+ Fns [3]struct {
+ Ffamily int32
+ Fscopeid uint32
+ Faddr [16]uint8_t
+ Fsortkey int32
+ }
+ Fnns uint32
+ Fattempts uint32
+ Fndots uint32
+ Ftimeout uint32
} /* lookup.h:34:1 */
func Xfreeaddrinfo(tls *TLS, p uintptr) { /* freeaddrinfo.c:7:6: */
var cnt size_t
cnt = uint64(1)
__1:
- if !((*addrinfo)(unsafe.Pointer(p)).ai_next != 0) {
+ if !((*addrinfo)(unsafe.Pointer(p)).Fai_next != 0) {
goto __3
}
goto __2
__2:
cnt++
- p = (*addrinfo)(unsafe.Pointer(p)).ai_next
+ p = (*addrinfo)(unsafe.Pointer(p)).Fai_next
goto __1
goto __3
__3:
;
var b uintptr = p - uintptr(uint64(uintptr(0)))
- b -= 88 * uintptr((*aibuf)(unsafe.Pointer(b)).slot)
+ b -= 88 * uintptr((*aibuf)(unsafe.Pointer(b)).Fslot)
//TODO LOCK(b->lock);
if !(int32(AssignSubPtrInt16(b+82, int16(cnt))) != 0) {
Xfree(tls, b)
@@ -5076,8 +2434,8 @@ type time_t = int64 /* alltypes.h:85:16 */
type clockid_t = int32 /* alltypes.h:214:13 */
type timespec = struct {
- tv_sec time_t
- tv_nsec int64
+ Ftv_sec time_t
+ Ftv_nsec int64
} /* alltypes.h:229:1 */
type pthread_t = uintptr /* alltypes.h:273:26 */
@@ -5088,62 +2446,62 @@ type pthread_key_t = uint32 /* alltypes.h:284:18 */
type pthread_spinlock_t = int32 /* alltypes.h:289:13 */
-type pthread_mutexattr_t = struct{ __attr uint32 } /* alltypes.h:294:37 */
+type pthread_mutexattr_t = struct{ F__attr uint32 } /* alltypes.h:294:37 */
-type pthread_condattr_t = struct{ __attr uint32 } /* alltypes.h:299:37 */
+type pthread_condattr_t = struct{ F__attr uint32 } /* alltypes.h:299:37 */
-type pthread_barrierattr_t = struct{ __attr uint32 } /* alltypes.h:304:37 */
+type pthread_barrierattr_t = struct{ F__attr uint32 } /* alltypes.h:304:37 */
-type pthread_rwlockattr_t = struct{ __attr [2]uint32 } /* alltypes.h:309:40 */
+type pthread_rwlockattr_t = struct{ F__attr [2]uint32 } /* alltypes.h:309:40 */
-type __sigset_t = struct{ __bits [16]uint64 } /* alltypes.h:349:9 */
+type __sigset_t = struct{ F__bits [16]uint64 } /* alltypes.h:349:9 */
type sigset_t = __sigset_t /* alltypes.h:349:71 */
type pthread_attr_t = struct {
- __u struct {
- _ [0]uint64
- __i [14]int32
+ F__u struct {
+ F__ccgo_pad1 [0]uint64
+ F__i [14]int32
}
} /* alltypes.h:372:147 */
type pthread_mutex_t = struct {
- __u struct {
- _ [0]uint64
- __i [10]int32
+ F__u struct {
+ F__ccgo_pad1 [0]uint64
+ F__i [10]int32
}
} /* alltypes.h:377:157 */
type pthread_cond_t = struct {
- __u struct {
- _ [0]uint64
- __i [12]int32
+ F__u struct {
+ F__ccgo_pad1 [0]uint64
+ F__i [12]int32
}
} /* alltypes.h:387:112 */
type pthread_rwlock_t = struct {
- __u struct {
- _ [0]uint64
- __i [14]int32
+ F__u struct {
+ F__ccgo_pad1 [0]uint64
+ F__i [14]int32
}
} /* alltypes.h:397:139 */
type pthread_barrier_t = struct {
- __u struct {
- _ [0]uint64
- __i [8]int32
+ F__u struct {
+ F__ccgo_pad1 [0]uint64
+ F__i [8]int32
}
} /* alltypes.h:402:137 */
type sched_param = struct {
- sched_priority int32
- __reserved1 int32
- __reserved2 [2]struct {
- __reserved1 time_t
- __reserved2 int64
- }
- __reserved3 int32
- _ [4]byte
+ Fsched_priority int32
+ F__reserved1 int32
+ F__reserved2 [2]struct {
+ F__reserved1 time_t
+ F__reserved2 int64
+ }
+ F__reserved3 int32
+ F__ccgo_pad1 [4]byte
} /* sched.h:19:1 */
type timer_t = uintptr /* alltypes.h:209:14 */
@@ -5151,35 +2509,35 @@ type timer_t = uintptr /* alltypes.h:209:14 */
type clock_t = int64 /* alltypes.h:219:14 */
type tm = struct {
- tm_sec int32
- tm_min int32
- tm_hour int32
- tm_mday int32
- tm_mon int32
- tm_year int32
- tm_wday int32
- tm_yday int32
- tm_isdst int32
- _ [4]byte
- tm_gmtoff int64
- tm_zone uintptr
+ Ftm_sec int32
+ Ftm_min int32
+ Ftm_hour int32
+ Ftm_mday int32
+ Ftm_mon int32
+ Ftm_year int32
+ Ftm_wday int32
+ Ftm_yday int32
+ Ftm_isdst int32
+ F__ccgo_pad1 [4]byte
+ Ftm_gmtoff int64
+ Ftm_zone uintptr
} /* time.h:38:1 */
type itimerspec = struct {
- it_interval struct {
- tv_sec time_t
- tv_nsec int64
+ Fit_interval struct {
+ Ftv_sec time_t
+ Ftv_nsec int64
}
- it_value struct {
- tv_sec time_t
- tv_nsec int64
+ Fit_value struct {
+ Ftv_sec time_t
+ Ftv_nsec int64
}
} /* time.h:80:1 */
type __ptcb = struct {
- __f uintptr
- __x uintptr
- __next uintptr
+ F__f uintptr
+ F__x uintptr
+ F__next uintptr
} /* pthread.h:206:1 */
type useconds_t = uint32 /* alltypes.h:260:18 */
@@ -5213,10 +2571,10 @@ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintpt
}
if hint != 0 {
- family = (*addrinfo)(unsafe.Pointer(hint)).ai_family
- flags = (*addrinfo)(unsafe.Pointer(hint)).ai_flags
- proto = (*addrinfo)(unsafe.Pointer(hint)).ai_protocol
- socktype = (*addrinfo)(unsafe.Pointer(hint)).ai_socktype
+ family = (*addrinfo)(unsafe.Pointer(hint)).Fai_family
+ flags = (*addrinfo)(unsafe.Pointer(hint)).Fai_flags
+ proto = (*addrinfo)(unsafe.Pointer(hint)).Fai_protocol
+ socktype = (*addrinfo)(unsafe.Pointer(hint)).Fai_socktype
var mask int32 = 0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x400
if flags&mask != flags {
@@ -5312,7 +2670,7 @@ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintpt
goto __3
}
{
- (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).slot = int16(k)
+ (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).Fslot = int16(k)
//TODO out[k].ai = (struct addrinfo){
//TODO .ai_family = addrs[i].family,
//TODO .ai_socktype = ports[j].socktype,
@@ -5322,30 +2680,30 @@ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintpt
//TODO : sizeof(struct sockaddr_in6),
//TODO .ai_addr = (void *)&out[k].sa,
//TODO .ai_canonname = outcanon };
- (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_family = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family
- (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_socktype = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).socktype)
- (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_protocol = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).proto)
- (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_addrlen = func() uint32 {
- if (*address)(unsafe.Pointer(bp+8+uintptr(i)*28)).family == 2 {
+ (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).Fai.Fai_family = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).Ffamily
+ (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).Fai.Fai_socktype = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).Fsocktype)
+ (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).Fai.Fai_protocol = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).Fproto)
+ (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).Fai.Fai_addrlen = func() uint32 {
+ if (*address)(unsafe.Pointer(bp+8+uintptr(i)*28)).Ffamily == 2 {
return uint32(unsafe.Sizeof(sockaddr_in{}))
}
return uint32(unsafe.Sizeof(sockaddr_in6{}))
}()
- (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_addr = out + uintptr(k)*88 + 48
- (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_canonname = outcanon
+ (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).Fai.Fai_addr = out + uintptr(k)*88 + 48
+ (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).Fai.Fai_canonname = outcanon
if k != 0 {
- (*aibuf)(unsafe.Pointer(out + uintptr(k-1)*88)).ai.ai_next = out + uintptr(k)*88
+ (*aibuf)(unsafe.Pointer(out + uintptr(k-1)*88)).Fai.Fai_next = out + uintptr(k)*88
}
- switch (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family {
+ switch (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).Ffamily {
case 2:
- (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin_family = sa_family_t(2)
- (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port)
+ (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48)).Fsin_family = sa_family_t(2)
+ (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48)).Fsin_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).Fport)
Xmemcpy(tls, out+uintptr(k)*88+48+4, bp+8+uintptr(i)*28+8, uint64(4))
break
case 10:
- (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_family = sa_family_t(10)
- (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port)
- (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_scope_id = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).scopeid
+ (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).Fsin6_family = sa_family_t(10)
+ (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).Fsin6_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).Fport)
+ (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).Fsin6_scope_id = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).Fscopeid
Xmemcpy(tls, out+uintptr(k)*88+48+8, bp+8+uintptr(i)*28+8, uint64(16))
break
}
@@ -5359,33 +2717,33 @@ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintpt
goto __3
__3:
}
- (*aibuf)(unsafe.Pointer(out)).ref = int16(nais)
+ (*aibuf)(unsafe.Pointer(out)).Fref = int16(nais)
*(*uintptr)(unsafe.Pointer(res)) = out
return 0
}
type ucred = struct {
- pid pid_t
- uid uid_t
- gid gid_t
+ Fpid pid_t
+ Fuid uid_t
+ Fgid gid_t
} /* socket.h:57:1 */
type mmsghdr = struct {
- msg_hdr struct {
- msg_name uintptr
- msg_namelen socklen_t
- _ [4]byte
- msg_iov uintptr
- msg_iovlen int32
- __pad1 int32
- msg_control uintptr
- msg_controllen socklen_t
- __pad2 int32
- msg_flags int32
- _ [4]byte
- }
- msg_len uint32
- _ [4]byte
+ Fmsg_hdr struct {
+ Fmsg_name uintptr
+ Fmsg_namelen socklen_t
+ F__ccgo_pad1 [4]byte
+ Fmsg_iov uintptr
+ Fmsg_iovlen int32
+ F__pad1 int32
+ Fmsg_control uintptr
+ Fmsg_controllen socklen_t
+ F__pad2 int32
+ Fmsg_flags int32
+ F__ccgo_pad2 [4]byte
+ }
+ Fmsg_len uint32
+ F__ccgo_pad1 [4]byte
} /* socket.h:63:1 */
func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* gethostbyaddr.c:7:16: */
@@ -5483,8 +2841,8 @@ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr,
}
}
- (*hostent)(unsafe.Pointer(h)).h_addrtype = af
- (*hostent)(unsafe.Pointer(h)).h_length = func() int32 {
+ (*hostent)(unsafe.Pointer(h)).Fh_addrtype = af
+ (*hostent)(unsafe.Pointer(h)).Fh_length = func() int32 {
if af == 10 {
return 16
}
@@ -5495,7 +2853,7 @@ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr,
align = -uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1))
need = uint64(4) * uint64(unsafe.Sizeof(uintptr(0)))
- need = need + uint64(cnt+1)*(uint64(unsafe.Sizeof(uintptr(0)))+uint64((*hostent)(unsafe.Pointer(h)).h_length))
+ need = need + uint64(cnt+1)*(uint64(unsafe.Sizeof(uintptr(0)))+uint64((*hostent)(unsafe.Pointer(h)).Fh_length))
need = need + (Xstrlen(tls, name) + uint64(1))
need = need + (Xstrlen(tls, bp+1344) + uint64(1))
need = need + align
@@ -5505,117 +2863,117 @@ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr,
}
buf += uintptr(align)
- (*hostent)(unsafe.Pointer(h)).h_aliases = buf
+ (*hostent)(unsafe.Pointer(h)).Fh_aliases = buf
buf += uintptr(uint64(3) * uint64(unsafe.Sizeof(uintptr(0))))
- (*hostent)(unsafe.Pointer(h)).h_addr_list = buf
+ (*hostent)(unsafe.Pointer(h)).Fh_addr_list = buf
buf += uintptr(uint64(cnt+1) * uint64(unsafe.Sizeof(uintptr(0))))
for i = 0; i < cnt; i++ {
- *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)) = buf
- buf += uintptr((*hostent)(unsafe.Pointer(h)).h_length)
- Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, uint64((*hostent)(unsafe.Pointer(h)).h_length))
+ *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = buf
+ buf += uintptr((*hostent)(unsafe.Pointer(h)).Fh_length)
+ Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, uint64((*hostent)(unsafe.Pointer(h)).Fh_length))
}
- *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)) = uintptr(0)
+ *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).Fh_addr_list + uintptr(i)*8)) = uintptr(0)
- (*hostent)(unsafe.Pointer(h)).h_name = AssignPtrUintptr((*hostent)(unsafe.Pointer(h)).h_aliases, buf)
- Xstrcpy(tls, (*hostent)(unsafe.Pointer(h)).h_name, bp+1344)
- buf += uintptr(Xstrlen(tls, (*hostent)(unsafe.Pointer(h)).h_name) + uint64(1))
+ (*hostent)(unsafe.Pointer(h)).Fh_name = AssignPtrUintptr((*hostent)(unsafe.Pointer(h)).Fh_aliases, buf)
+ Xstrcpy(tls, (*hostent)(unsafe.Pointer(h)).Fh_name, bp+1344)
+ buf += uintptr(Xstrlen(tls, (*hostent)(unsafe.Pointer(h)).Fh_name) + uint64(1))
- if Xstrcmp(tls, (*hostent)(unsafe.Pointer(h)).h_name, name) != 0 {
- *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = buf
- Xstrcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)), name)
- buf += uintptr(Xstrlen(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8))) + uint64(1))
+ if Xstrcmp(tls, (*hostent)(unsafe.Pointer(h)).Fh_name, name) != 0 {
+ *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = buf
+ Xstrcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)), name)
+ buf += uintptr(Xstrlen(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).Fh_aliases + 1*8))) + uint64(1))
} else {
- *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = uintptr(0)
+ *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).Fh_aliases + 1*8)) = uintptr(0)
}
- *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 2*8)) = uintptr(0)
+ *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).Fh_aliases + 2*8)) = uintptr(0)
*(*uintptr)(unsafe.Pointer(res)) = h
return 0
}
type if_nameindex = struct {
- if_index uint32
- _ [4]byte
- if_name uintptr
+ Fif_index uint32
+ F__ccgo_pad1 [4]byte
+ Fif_name uintptr
} /* if.h:12:1 */
type ifaddr = struct {
- ifa_addr struct {
- sa_family sa_family_t
- sa_data [14]int8
+ Fifa_addr struct {
+ Fsa_family sa_family_t
+ Fsa_data [14]int8
}
- ifa_ifu struct {
- ifu_broadaddr struct {
- sa_family sa_family_t
- sa_data [14]int8
+ Fifa_ifu struct {
+ Fifu_broadaddr struct {
+ Fsa_family sa_family_t
+ Fsa_data [14]int8
}
}
- ifa_ifp uintptr
- ifa_next uintptr
+ Fifa_ifp uintptr
+ Fifa_next uintptr
} /* if.h:51:1 */
type ifmap = struct {
- mem_start uint64
- mem_end uint64
- base_addr uint16
- irq uint8
- dma uint8
- port uint8
- _ [3]byte
+ Fmem_start uint64
+ Fmem_end uint64
+ Fbase_addr uint16
+ Firq uint8
+ Fdma uint8
+ Fport uint8
+ F__ccgo_pad1 [3]byte
} /* if.h:64:1 */
type ifreq = struct {
- ifr_ifrn struct{ ifrn_name [16]int8 }
- ifr_ifru struct {
- _ [0]uint64
- ifru_addr struct {
- sa_family sa_family_t
- sa_data [14]int8
+ Fifr_ifrn struct{ Fifrn_name [16]int8 }
+ Fifr_ifru struct {
+ F__ccgo_pad1 [0]uint64
+ Fifru_addr struct {
+ Fsa_family sa_family_t
+ Fsa_data [14]int8
}
- _ [8]byte
+ F__ccgo_pad2 [8]byte
}
} /* if.h:76:1 */
type ifconf = struct {
- ifc_len int32
- _ [4]byte
- ifc_ifcu struct{ ifcu_buf uintptr }
+ Fifc_len int32
+ F__ccgo_pad1 [4]byte
+ Fifc_ifcu struct{ Fifcu_buf uintptr }
} /* if.h:116:1 */
type ns_sect = uint32 /* nameser.h:37:3 */
type __ns_msg = struct {
- _msg uintptr
- _eom uintptr
- _id uint16_t
- _flags uint16_t
- _counts [4]uint16_t
- _ [4]byte
- _sections [4]uintptr
- _sect ns_sect
- _rrnum int32
- _msg_ptr uintptr
+ F_msg uintptr
+ F_eom uintptr
+ F_id uint16_t
+ F_flags uint16_t
+ F_counts [4]uint16_t
+ F__ccgo_pad1 [4]byte
+ F_sections [4]uintptr
+ F_sect ns_sect
+ F_rrnum int32
+ F_msg_ptr uintptr
} /* nameser.h:39:9 */
type ns_msg = __ns_msg /* nameser.h:46:3 */
type _ns_flagdata = struct {
- mask int32
- shift int32
+ Fmask int32
+ Fshift int32
} /* nameser.h:48:1 */
type __ns_rr = struct {
- name [1025]int8
- _ [1]byte
- __type uint16_t
- rr_class uint16_t
- _ [2]byte
- ttl uint32_t
- rdlength uint16_t
- _ [2]byte
- rdata uintptr
+ Fname [1025]int8
+ F__ccgo_pad1 [1]byte
+ Ftype uint16_t
+ Frr_class uint16_t
+ F__ccgo_pad2 [2]byte
+ Fttl uint32_t
+ Frdlength uint16_t
+ F__ccgo_pad3 [2]byte
+ Frdata uintptr
} /* nameser.h:59:9 */
type ns_rr = __ns_rr /* nameser.h:66:3 */
@@ -5629,24 +2987,24 @@ type ns_rcode = uint32 /* nameser.h:115:3 */
type ns_update_operation = uint32 /* nameser.h:121:3 */
type ns_tsig_key1 = struct {
- name [1025]int8
- alg [1025]int8
- _ [6]byte
- data uintptr
- len int32
- _ [4]byte
+ Fname [1025]int8
+ Falg [1025]int8
+ F__ccgo_pad1 [6]byte
+ Fdata uintptr
+ Flen int32
+ F__ccgo_pad2 [4]byte
} /* nameser.h:123:1 */
type ns_tsig_key = ns_tsig_key1 /* nameser.h:128:28 */
type ns_tcp_tsig_state1 = struct {
- counter int32
- _ [4]byte
- key uintptr
- ctx uintptr
- sig [512]uint8
- siglen int32
- _ [4]byte
+ Fcounter int32
+ F__ccgo_pad1 [4]byte
+ Fkey uintptr
+ Fctx uintptr
+ Fsig [512]uint8
+ Fsiglen int32
+ F__ccgo_pad2 [4]byte
} /* nameser.h:130:1 */
type ns_tcp_tsig_state = ns_tcp_tsig_state1 /* nameser.h:137:34 */
@@ -5660,45 +3018,45 @@ type ns_key_types = uint32 /* nameser.h:226:3 */
type ns_cert_types = uint32 /* nameser.h:234:3 */
type HEADER = struct {
- _ [0]uint32
- id uint32 /* unsigned id: 16, unsigned rd: 1, unsigned tc: 1, unsigned aa: 1, unsigned opcode: 4, unsigned qr: 1, unsigned rcode: 4, unsigned cd: 1, unsigned ad: 1, unsigned unused: 1, unsigned ra: 1 */
- qdcount uint32 /* unsigned qdcount: 16, unsigned ancount: 16 */
- nscount uint32 /* unsigned nscount: 16, unsigned arcount: 16 */
+ F__ccgo_pad1 [0]uint32
+ Fid uint32 /* unsigned id: 16, unsigned rd: 1, unsigned tc: 1, unsigned aa: 1, unsigned opcode: 4, unsigned qr: 1, unsigned rcode: 4, unsigned cd: 1, unsigned ad: 1, unsigned unused: 1, unsigned ra: 1 */
+ Fqdcount uint32 /* unsigned qdcount: 16, unsigned ancount: 16 */
+ Fnscount uint32 /* unsigned nscount: 16, unsigned arcount: 16 */
} /* nameser.h:353:3 */
// unused; purely for broken apps
type __res_state = struct {
- retrans int32
- retry int32
- options uint64
- nscount int32
- nsaddr_list [3]struct {
- sin_family sa_family_t
- sin_port in_port_t
- sin_addr struct{ s_addr in_addr_t }
- sin_zero [8]uint8_t
- }
- id uint16
- _ [2]byte
- dnsrch [7]uintptr
- defdname [256]int8
- pfcode uint64
- ndots uint32 /* unsigned ndots: 4, unsigned nsort: 4, unsigned ipv6_unavail: 1, unsigned unused: 23 */
- _ [4]byte
- sort_list [10]struct {
- addr struct{ s_addr in_addr_t }
- mask uint32_t
- }
- qhook uintptr
- rhook uintptr
- res_h_errno int32
- _vcsock int32
- _flags uint32
- _ [4]byte
- _u struct {
- _ [0]uint64
- pad [52]int8
- _ [4]byte
+ Fretrans int32
+ Fretry int32
+ Foptions uint64
+ Fnscount int32
+ Fnsaddr_list [3]struct {
+ Fsin_family sa_family_t
+ Fsin_port in_port_t
+ Fsin_addr struct{ Fs_addr in_addr_t }
+ Fsin_zero [8]uint8_t
+ }
+ Fid uint16
+ F__ccgo_pad1 [2]byte
+ Fdnsrch [7]uintptr
+ Fdefdname [256]int8
+ Fpfcode uint64
+ Fndots uint32 /* unsigned ndots: 4, unsigned nsort: 4, unsigned ipv6_unavail: 1, unsigned unused: 23 */
+ F__ccgo_pad2 [4]byte
+ Fsort_list [10]struct {
+ Faddr struct{ Fs_addr in_addr_t }
+ Fmask uint32_t
+ }
+ Fqhook uintptr
+ Frhook uintptr
+ Fres_h_errno int32
+ F_vcsock int32
+ F_flags uint32
+ F__ccgo_pad3 [4]byte
+ F_u struct {
+ F__ccgo_pad1 [0]uint64
+ Fpad [52]int8
+ F__ccgo_pad2 [4]byte
}
} /* resolv.h:26:9 */
@@ -5706,10 +3064,10 @@ type __res_state = struct {
type res_state = uintptr /* resolv.h:62:3 */
type res_sym = struct {
- number int32
- _ [4]byte
- name uintptr
- humanname uintptr
+ Fnumber int32
+ F__ccgo_pad1 [4]byte
+ Fname uintptr
+ Fhumanname uintptr
} /* resolv.h:70:1 */
func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */
@@ -5726,7 +3084,7 @@ func mkptr4(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:28:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
- Xsprintf(tls, s, ts+64,
+ Xsprintf(tls, s, ts+23,
VaList(bp, int32(*(*uint8)(unsafe.Pointer(ip + 3))), int32(*(*uint8)(unsafe.Pointer(ip + 2))), int32(*(*uint8)(unsafe.Pointer(ip + 1))), int32(*(*uint8)(unsafe.Pointer(ip)))))
}
@@ -5738,10 +3096,10 @@ func mkptr6(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:34:13: */
*(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))>>4]
*(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = int8('.')
}
- Xstrcpy(tls, s, ts+89)
+ Xstrcpy(tls, s, ts+48)
}
-var _sxdigits = *(*[17]int8)(unsafe.Pointer(ts + 98)) /* getnameinfo.c:36:20 */
+var _sxdigits = *(*[17]int8)(unsafe.Pointer(ts + 57)) /* getnameinfo.c:36:20 */
func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { /* getnameinfo.c:45:13: */
bp := tls.Alloc(556)
@@ -5758,13 +3116,13 @@ func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int3
// var iplit address at bp+528, 28
//TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf);
- var f uintptr = Xfopen(tls, ts+115, ts+126)
+ var f uintptr = Xfopen(tls, ts+74, ts+85)
if !(f != 0) {
return
}
if family == 2 {
Xmemcpy(tls, bp+uintptr(12), a, uint64(4))
- Xmemcpy(tls, bp, ts+129, uint64(12))
+ Xmemcpy(tls, bp, ts+88, uint64(12))
a = bp /* &atmp[0] */
}
for Xfgets(tls, bp+16, int32(unsafe.Sizeof([512]int8{})), f) != 0 {
@@ -5780,13 +3138,13 @@ func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int3
continue
}
- if (*address)(unsafe.Pointer(bp+528)).family == 2 {
+ if (*address)(unsafe.Pointer(bp+528)).Ffamily == 2 {
Xmemcpy(tls, bp+528+8+uintptr(12), bp+528+8, uint64(4))
- Xmemcpy(tls, bp+528+8, ts+129, uint64(12))
- (*address)(unsafe.Pointer(bp + 528 /* &iplit */)).scopeid = uint32(0)
+ Xmemcpy(tls, bp+528+8, ts+88, uint64(12))
+ (*address)(unsafe.Pointer(bp + 528 /* &iplit */)).Fscopeid = uint32(0)
}
- if Xmemcmp(tls, a, bp+528+8, uint64(16)) != 0 || (*address)(unsafe.Pointer(bp+528)).scopeid != scopeid {
+ if Xmemcmp(tls, a, bp+528+8, uint64(16)) != 0 || (*address)(unsafe.Pointer(bp+528)).Fscopeid != scopeid {
continue
}
@@ -5900,21 +3258,21 @@ func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr
switch af {
case 2:
- if socklen_t(Xsnprintf(tls, s, uint64(l), ts+142, VaList(bp, int32(*(*uint8)(unsafe.Pointer(a))), int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(*(*uint8)(unsafe.Pointer(a + 2))), int32(*(*uint8)(unsafe.Pointer(a + 3)))))) < l {
+ if socklen_t(Xsnprintf(tls, s, uint64(l), ts+101, VaList(bp, int32(*(*uint8)(unsafe.Pointer(a))), int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(*(*uint8)(unsafe.Pointer(a + 2))), int32(*(*uint8)(unsafe.Pointer(a + 3)))))) < l {
return s
}
break
case 10:
- if Xmemcmp(tls, a, ts+129, uint64(12)) != 0 {
+ if Xmemcmp(tls, a, ts+88, uint64(12)) != 0 {
Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]int8{})),
- ts+154,
+ ts+113,
VaList(bp+32, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))),
256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))),
256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))),
256*int32(*(*uint8)(unsafe.Pointer(a + 12)))+int32(*(*uint8)(unsafe.Pointer(a + 13))), 256*int32(*(*uint8)(unsafe.Pointer(a + 14)))+int32(*(*uint8)(unsafe.Pointer(a + 15)))))
} else {
Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]int8{})),
- ts+178,
+ ts+137,
VaList(bp+96, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))),
256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))),
256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))),
@@ -5927,7 +3285,7 @@ func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr
if i != 0 && int32(*(*int8)(unsafe.Pointer(bp + 176 + uintptr(i)))) != ':' {
continue
}
- j = int32(Xstrspn(tls, bp+176+uintptr(i), ts+208))
+ j = int32(Xstrspn(tls, bp+176+uintptr(i), ts+167))
if j > max {
best = i
max = j
@@ -6071,8 +3429,8 @@ func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int3
return -2
}
Xmemcpy(tls, buf+8, bp, uint64(unsafe.Sizeof(in_addr{})))
- (*address)(unsafe.Pointer(buf)).family = 2
- (*address)(unsafe.Pointer(buf)).scopeid = uint32(0)
+ (*address)(unsafe.Pointer(buf)).Ffamily = 2
+ (*address)(unsafe.Pointer(buf)).Fscopeid = uint32(0)
return 1
}
// var tmp [64]int8 at bp+4, 64
@@ -6095,7 +3453,7 @@ func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int3
}
Xmemcpy(tls, buf+8, bp+68, uint64(unsafe.Sizeof(in6_addr{})))
- (*address)(unsafe.Pointer(buf)).family = 10
+ (*address)(unsafe.Pointer(buf)).Ffamily = 10
if p != 0 {
if func() int32 {
if 0 != 0 {
@@ -6119,20 +3477,20 @@ func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int3
return -2
}
}
- (*address)(unsafe.Pointer(buf)).scopeid = uint32(scopeid)
+ (*address)(unsafe.Pointer(buf)).Fscopeid = uint32(scopeid)
return 1
}
type mode_t = uint32 /* alltypes.h:152:18 */
type flock = struct {
- l_type int16
- l_whence int16
- _ [4]byte
- l_start off_t
- l_len off_t
- l_pid pid_t
- _ [4]byte
+ Fl_type int16
+ Fl_whence int16
+ F__ccgo_pad1 [4]byte
+ Fl_start off_t
+ Fl_len off_t
+ Fl_pid pid_t
+ F__ccgo_pad2 [4]byte
} /* fcntl.h:24:1 */
func is_valid_hostname(tls *TLS, host uintptr) int32 { /* lookup_name.c:18:12: */
@@ -6158,14 +3516,14 @@ func name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int
//TODO buf[cnt++] = (struct address){ .family = AF_INET };
if family != 10 {
var x = Xzero_struct_address
- x.family = 2
+ x.Ffamily = 2
*(*address)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*28)) = x
}
//TODO if (family != AF_INET)
//TODO buf[cnt++] = (struct address){ .family = AF_INET6 };
if family != 2 {
var x = Xzero_struct_address
- x.family = 10
+ x.Ffamily = 10
*(*address)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*28)) = x
}
} else {
@@ -6196,7 +3554,7 @@ func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family
//TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf);
var _f FILE
_ = _f
- var f uintptr = Xfopen(tls, ts+115, ts+126)
+ var f uintptr = Xfopen(tls, ts+74, ts+85)
if !(f != 0) {
switch *(*int32)(unsafe.Pointer(X___errno_location(tls))) {
case 2:
@@ -6258,10 +3616,10 @@ func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family
}
type dpc_ctx = struct {
- addrs uintptr
- canon uintptr
- cnt int32
- _ [4]byte
+ Faddrs uintptr
+ Fcanon uintptr
+ Fcnt int32
+ F__ccgo_pad1 [4]byte
} /* lookup_name.c:112:1 */
func name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32) int32 { /* lookup_name.c:191:12: */
@@ -6311,31 +3669,31 @@ func name_from_dns_search(tls *TLS, buf uintptr, canon uintptr, name uintptr, fa
}
type policy = struct {
- addr [16]uint8
- len uint8
- mask uint8
- prec uint8
- label uint8
+ Faddr [16]uint8
+ Flen uint8
+ Fmask uint8
+ Fprec uint8
+ Flabel uint8
} /* lookup_name.c:237:14 */
var defpolicy = [6]policy{
- {addr: *(*[16]uint8)(unsafe.Pointer(ts + 211)), len: uint8(15), mask: uint8(0xff), prec: uint8(50)},
- {addr: *(*[16]uint8)(unsafe.Pointer(ts + 228)), len: uint8(11), mask: uint8(0xff), prec: uint8(35), label: uint8(4)},
- {addr: *(*[16]uint8)(unsafe.Pointer(ts + 244)), len: uint8(1), mask: uint8(0xff), prec: uint8(30), label: uint8(2)},
- {addr: *(*[16]uint8)(unsafe.Pointer(ts + 260)), len: uint8(3), mask: uint8(0xff), prec: uint8(5), label: uint8(5)},
- {addr: *(*[16]uint8)(unsafe.Pointer(ts + 276)), mask: uint8(0xfe), prec: uint8(3), label: uint8(13)},
+ {Faddr: *(*[16]uint8)(unsafe.Pointer(ts + 170)), Flen: uint8(15), Fmask: uint8(0xff), Fprec: uint8(50)},
+ {Faddr: *(*[16]uint8)(unsafe.Pointer(ts + 187)), Flen: uint8(11), Fmask: uint8(0xff), Fprec: uint8(35), Flabel: uint8(4)},
+ {Faddr: *(*[16]uint8)(unsafe.Pointer(ts + 203)), Flen: uint8(1), Fmask: uint8(0xff), Fprec: uint8(30), Flabel: uint8(2)},
+ {Faddr: *(*[16]uint8)(unsafe.Pointer(ts + 219)), Flen: uint8(3), Fmask: uint8(0xff), Fprec: uint8(5), Flabel: uint8(5)},
+ {Faddr: *(*[16]uint8)(unsafe.Pointer(ts + 235)), Fmask: uint8(0xfe), Fprec: uint8(3), Flabel: uint8(13)},
// Last rule must match all addresses to stop loop.
- {addr: *(*[16]uint8)(unsafe.Pointer(ts + 292)), prec: uint8(40), label: uint8(1)},
+ {Faddr: *(*[16]uint8)(unsafe.Pointer(ts + 251)), Fprec: uint8(40), Flabel: uint8(1)},
} /* lookup_name.c:241:3 */
func policyof(tls *TLS, a uintptr) uintptr { /* lookup_name.c:259:28: */
var i int32
for i = 0; ; i++ {
- if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&defpolicy))+uintptr(i)*20, uint64(defpolicy[i].len)) != 0 {
+ if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&defpolicy))+uintptr(i)*20, uint64(defpolicy[i].Flen)) != 0 {
continue
}
- if int32(*(*uint8_t)(unsafe.Pointer(a + uintptr(defpolicy[i].len))))&int32(defpolicy[i].mask) !=
- int32(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 + uintptr(defpolicy[i].len)))) {
+ if int32(*(*uint8_t)(unsafe.Pointer(a + uintptr(defpolicy[i].Flen))))&int32(defpolicy[i].Fmask) !=
+ int32(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 + uintptr(defpolicy[i].Flen)))) {
continue
}
return uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20
@@ -6344,7 +3702,7 @@ func policyof(tls *TLS, a uintptr) uintptr { /* lookup_name.c:259:28: */
}
func labelof(tls *TLS, a uintptr) int32 { /* lookup_name.c:272:12: */
- return int32((*policy)(unsafe.Pointer(policyof(tls, a))).label)
+ return int32((*policy)(unsafe.Pointer(policyof(tls, a))).Flabel)
}
func scopeof(tls *TLS, a uintptr) int32 { /* lookup_name.c:277:12: */
@@ -6377,7 +3735,7 @@ func prefixmatch(tls *TLS, s uintptr, d uintptr) int32 { /* lookup_name.c:286:12
func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: */
var a uintptr = _a
var b uintptr = _b
- return (*address)(unsafe.Pointer(b)).sortkey - (*address)(unsafe.Pointer(a)).sortkey
+ return (*address)(unsafe.Pointer(b)).Fsortkey - (*address)(unsafe.Pointer(a)).Fsortkey
}
func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */
@@ -6457,7 +3815,7 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
return cnt
}
for i = 0; i < cnt; i++ {
- if (*address)(unsafe.Pointer(buf+uintptr(i)*28)).family != 2 {
+ if (*address)(unsafe.Pointer(buf+uintptr(i)*28)).Ffamily != 2 {
break
}
}
@@ -6474,12 +3832,12 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
// excessive runtime and code size cost and dubious benefit.
// So far the label/precedence table cannot be customized.
for i = 0; i < cnt; i++ {
- var family int32 = (*address)(unsafe.Pointer(buf + uintptr(i)*28)).family
+ var family int32 = (*address)(unsafe.Pointer(buf + uintptr(i)*28)).Ffamily
var key int32 = 0
*(*sockaddr_in6)(unsafe.Pointer(bp + 28 /* sa6 */)) = sockaddr_in6{}
- *(*sockaddr_in6)(unsafe.Pointer(bp /* da6 */)) = sockaddr_in6{sin6_family: sa_family_t(10), sin6_port: in_port_t(65535), sin6_scope_id: (*address)(unsafe.Pointer(buf + uintptr(i)*28)).scopeid}
+ *(*sockaddr_in6)(unsafe.Pointer(bp /* da6 */)) = sockaddr_in6{Fsin6_family: sa_family_t(10), Fsin6_port: in_port_t(65535), Fsin6_scope_id: (*address)(unsafe.Pointer(buf + uintptr(i)*28)).Fscopeid}
*(*sockaddr_in)(unsafe.Pointer(bp + 72 /* sa4 */)) = sockaddr_in{}
- *(*sockaddr_in)(unsafe.Pointer(bp + 56 /* da4 */)) = sockaddr_in{sin_family: sa_family_t(2), sin_port: in_port_t(65535)}
+ *(*sockaddr_in)(unsafe.Pointer(bp + 56 /* da4 */)) = sockaddr_in{Fsin_family: sa_family_t(2), Fsin_port: in_port_t(65535)}
var sa1 uintptr
var da uintptr
// var salen socklen_t at bp+88, 4
@@ -6493,10 +3851,10 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
*(*socklen_t)(unsafe.Pointer(bp + 88 /* salen */)) = socklen_t(unsafe.Sizeof(sockaddr_in6{}))
} else {
Xmemcpy(tls, bp+28+8,
- ts+129, uint64(12))
+ ts+88, uint64(12))
Xmemcpy(tls, bp+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4))
Xmemcpy(tls, bp+8,
- ts+129, uint64(12))
+ ts+88, uint64(12))
Xmemcpy(tls, bp+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4))
Xmemcpy(tls, bp+56+4, buf+uintptr(i)*28+8, uint64(4))
da = bp + 56 /* &da4 */
@@ -6506,8 +3864,8 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
}
var dpolicy uintptr = policyof(tls, bp+8)
var dscope int32 = scopeof(tls, bp+8)
- var dlabel int32 = int32((*policy)(unsafe.Pointer(dpolicy)).label)
- var dprec int32 = int32((*policy)(unsafe.Pointer(dpolicy)).prec)
+ var dlabel int32 = int32((*policy)(unsafe.Pointer(dpolicy)).Flabel)
+ var dprec int32 = int32((*policy)(unsafe.Pointer(dpolicy)).Fprec)
var prefixlen int32 = 0
var fd int32 = Xsocket(tls, family, 2|02000000, 17)
if fd >= 0 {
@@ -6535,7 +3893,7 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
key = key | (15-dscope)<<16
key = key | prefixlen<<8
key = key | (48-i)<<0
- (*address)(unsafe.Pointer(buf + uintptr(i)*28)).sortkey = key
+ (*address)(unsafe.Pointer(buf + uintptr(i)*28)).Fsortkey = key
}
Xqsort(tls, buf, uint64(cnt), uint64(unsafe.Sizeof(address{})), *(*uintptr)(unsafe.Pointer(&struct {
f func(*TLS, uintptr, uintptr) int32
@@ -6555,7 +3913,7 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i
var cnt int32 = 0
var p uintptr
_ = p
- *(*uintptr)(unsafe.Pointer(bp /* z */)) = ts + 54 /* "" */
+ *(*uintptr)(unsafe.Pointer(bp /* z */)) = ts + 13 /* "" */
var port uint64 = uint64(0)
switch socktype {
@@ -6587,9 +3945,9 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i
if name != 0 {
return -8
}
- (*service)(unsafe.Pointer(buf)).port = uint16_t(0)
- (*service)(unsafe.Pointer(buf)).proto = uint8(proto)
- (*service)(unsafe.Pointer(buf)).socktype = uint8(socktype)
+ (*service)(unsafe.Pointer(buf)).Fport = uint16_t(0)
+ (*service)(unsafe.Pointer(buf)).Fproto = uint8(proto)
+ (*service)(unsafe.Pointer(buf)).Fsocktype = uint8(socktype)
return 1
}
@@ -6604,14 +3962,14 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i
return -8
}
if proto != 17 {
- (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).port = uint16_t(port)
- (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).socktype = uint8(1)
- (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).proto = uint8(6)
+ (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).Fport = uint16_t(port)
+ (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).Fsocktype = uint8(1)
+ (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).Fproto = uint8(6)
}
if proto != 6 {
- (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).port = uint16_t(port)
- (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).socktype = uint8(2)
- (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).proto = uint8(17)
+ (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).Fport = uint16_t(port)
+ (*service)(unsafe.Pointer(buf + uintptr(cnt)*4)).Fsocktype = uint8(2)
+ (*service)(unsafe.Pointer(buf + uintptr(PostIncInt32(&cnt, 1))*4)).Fproto = uint8(17)
}
return cnt
}
@@ -6672,19 +4030,19 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i
}
func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */
- *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).mode - 1
- if (*FILE)(unsafe.Pointer(f)).wpos != (*FILE)(unsafe.Pointer(f)).wbase {
+ *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE)(unsafe.Pointer(f)).Fmode - 1
+ if (*FILE)(unsafe.Pointer(f)).Fwpos != (*FILE)(unsafe.Pointer(f)).Fwbase {
(*struct {
f func(*TLS, uintptr, uintptr, size_t) size_t
- })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).write})).f(tls, f, uintptr(0), uint64(0))
+ })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).Fwrite})).f(tls, f, uintptr(0), uint64(0))
}
- (*FILE)(unsafe.Pointer(f)).wpos = AssignPtrUintptr(f+56, AssignPtrUintptr(f+32, uintptr(0)))
- if (*FILE)(unsafe.Pointer(f)).flags&uint32(4) != 0 {
+ (*FILE)(unsafe.Pointer(f)).Fwpos = AssignPtrUintptr(f+56, AssignPtrUintptr(f+32, uintptr(0)))
+ if (*FILE)(unsafe.Pointer(f)).Fflags&uint32(4) != 0 {
*(*uint32)(unsafe.Pointer(f)) |= uint32(32)
return -1
}
- (*FILE)(unsafe.Pointer(f)).rpos = AssignPtrUintptr(f+16, (*FILE)(unsafe.Pointer(f)).buf+uintptr((*FILE)(unsafe.Pointer(f)).buf_size))
- if (*FILE)(unsafe.Pointer(f)).flags&uint32(16) != 0 {
+ (*FILE)(unsafe.Pointer(f)).Frpos = AssignPtrUintptr(f+16, (*FILE)(unsafe.Pointer(f)).Fbuf+uintptr((*FILE)(unsafe.Pointer(f)).Fbuf_size))
+ if (*FILE)(unsafe.Pointer(f)).Fflags&uint32(16) != 0 {
return -1
}
return 0
@@ -6706,7 +4064,7 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */
if !(X__toread(tls, f) != 0) && (*struct {
f func(*TLS, uintptr, uintptr, size_t) size_t
- })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).read})).f(tls, f, bp, uint64(1)) == uint64(1) {
+ })(unsafe.Pointer(&struct{ uintptr }{(*FILE)(unsafe.Pointer(f)).Fread})).f(tls, f, bp, uint64(1)) == uint64(1) {
return int32(*(*uint8)(unsafe.Pointer(bp)))
}
return -1
@@ -6738,11 +4096,11 @@ func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:
// var f FILE at bp, 232
- (*FILE)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+8, s)
- (*FILE)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1)
+ (*FILE)(unsafe.Pointer(bp)).Fbuf = AssignPtrUintptr(bp+8, s)
+ (*FILE)(unsafe.Pointer(bp)).Frend = UintptrFromInt32(-1)
X__shlim(tls, bp, int64(0))
var y float64 = X__floatscan(tls, bp, prec, 1)
- var cnt off_t = (*FILE)(unsafe.Pointer(bp)).shcnt + (int64((*FILE)(unsafe.Pointer(bp)).rpos)-int64((*FILE)(unsafe.Pointer(bp)).buf))/1
+ var cnt off_t = (*FILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*FILE)(unsafe.Pointer(bp)).Frpos)-int64((*FILE)(unsafe.Pointer(bp)).Fbuf))/1
if p != 0 {
*(*uintptr)(unsafe.Pointer(p)) = func() uintptr {
if cnt != 0 {
@@ -6772,12 +4130,12 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /*
// var f FILE at bp, 232
- (*FILE)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+8, s)
- (*FILE)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1)
+ (*FILE)(unsafe.Pointer(bp)).Fbuf = AssignPtrUintptr(bp+8, s)
+ (*FILE)(unsafe.Pointer(bp)).Frend = UintptrFromInt32(-1)
X__shlim(tls, bp, int64(0))
var y uint64 = X__intscan(tls, bp, uint32(base), 1, lim)
if p != 0 {
- var cnt size_t = size_t((*FILE)(unsafe.Pointer(bp)).shcnt + (int64((*FILE)(unsafe.Pointer(bp)).rpos)-int64((*FILE)(unsafe.Pointer(bp)).buf))/1)
+ var cnt size_t = size_t((*FILE)(unsafe.Pointer(bp)).Fshcnt + (int64((*FILE)(unsafe.Pointer(bp)).Frpos)-int64((*FILE)(unsafe.Pointer(bp)).Fbuf))/1)
*(*uintptr)(unsafe.Pointer(p)) = s + uintptr(cnt)
}
return y
@@ -6848,8 +4206,8 @@ func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */
}
func init() {
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&X_CurrentRuneLocale)) + 0)) = uintptr(unsafe.Pointer(&X_DefaultRuneLocale)) // table.cpp.c:4092:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&X_ctype_)) + 0)) = uintptr(unsafe.Pointer(&X_C_ctype_)) // ctype_.c:319:23:
}
-var ts1 = "RuneMagi\x00NONE\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00infinity\x00nan\x00\x00\x00\x01\x02\x04\a\x03\x06\x05\x00%d.%d.%d.%d.in-addr.arpa\x00ip6.arpa\x000123456789abcdef\x00/etc/hosts\x00rb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00%d.%d.%d.%d\x00%x:%x:%x:%x:%x:%x:%x:%x\x00%x:%x:%x:%x:%x:%x:%d.%d.%d.%d\x00:0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x00\x00 \x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 \x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
+var ts1 = "infinity\x00nan\x00\x00\x00\x01\x02\x04\a\x03\x06\x05\x00%d.%d.%d.%d.in-addr.arpa\x00ip6.arpa\x000123456789abcdef\x00/etc/hosts\x00rb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00%d.%d.%d.%d\x00%x:%x:%x:%x:%x:%x:%x:%x\x00%x:%x:%x:%x:%x:%x:%d.%d.%d.%d\x00:0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x00\x00 \x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 \x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data