Update dependencies
This commit is contained in:
226
vendor/modernc.org/libc/musl_linux_arm64.go
generated
vendored
226
vendor/modernc.org/libc/musl_linux_arm64.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_arm64.go -pkgname libc -static-locals-prefix _s -Iarch/aarch64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.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/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c', DO NOT EDIT.
|
||||
// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_arm64.go -pkgname libc -static-locals-prefix _s -Iarch/aarch64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.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/gethostbyname_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/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT.
|
||||
|
||||
package libc
|
||||
|
||||
@ -1899,6 +1899,34 @@ func Xnanf(tls *TLS, s uintptr) float32 { /* nanf.c:3:7: */
|
||||
return X__builtin_nanf(tls, ts+13 /* "" */)
|
||||
}
|
||||
|
||||
var toint double_t = (float64(float64(1)) / 2.22044604925031308085e-16) /* rint.c:10:23 */
|
||||
|
||||
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 /* u */)) = struct{ f float64 }{f: x}
|
||||
var e int32 = (int32((*(*uint64_t)(unsafe.Pointer(bp /* &u */)) >> 52) & uint64(0x7ff)))
|
||||
var s int32 = (int32(*(*uint64_t)(unsafe.Pointer(bp /* &u */)) >> 63))
|
||||
var y double_t
|
||||
|
||||
if e >= (0x3ff + 52) {
|
||||
return x
|
||||
}
|
||||
if s != 0 {
|
||||
y = ((x - toint) + toint)
|
||||
} else {
|
||||
y = ((x + toint) - toint)
|
||||
}
|
||||
if y == float64(0) {
|
||||
if s != 0 {
|
||||
return -Float64FromFloat64(0.0)
|
||||
}
|
||||
return float64(0)
|
||||
}
|
||||
return y
|
||||
}
|
||||
|
||||
func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */
|
||||
bp := tls.Alloc(8)
|
||||
defer tls.Free(8)
|
||||
@ -2356,10 +2384,10 @@ func a_or_64(tls *TLS, p uintptr, v uint64_t) { /* atomic.h:220:20: */
|
||||
}
|
||||
|
||||
func a_ctz_32(tls *TLS, x uint32_t) int32 { /* atomic.h:256:19: */
|
||||
return int32(_sdebruijn322[(((x & -x) * uint32_t(0x076be629)) >> 27)])
|
||||
return int32(_sdebruijn328[(((x & -x) * uint32_t(0x076be629)) >> 27)])
|
||||
}
|
||||
|
||||
var _sdebruijn322 = [32]int8{
|
||||
var _sdebruijn328 = [32]int8{
|
||||
int8(0), int8(1), int8(23), int8(2), int8(29), int8(24), int8(19), int8(3), int8(30), int8(27), int8(25), int8(11), int8(20), int8(8), int8(4), int8(13),
|
||||
int8(31), int8(22), int8(28), int8(18), int8(26), int8(10), int8(7), int8(12), int8(21), int8(17), int8(9), int8(6), int8(16), int8(5), int8(15), int8(14),
|
||||
} /* atomic.h:261:20 */
|
||||
@ -4279,6 +4307,10 @@ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr,
|
||||
return 0
|
||||
}
|
||||
|
||||
func Xgethostbyname_r(tls *TLS, name uintptr, h uintptr, buf uintptr, buflen size_t, res uintptr, err uintptr) int32 { /* gethostbyname_r.c:6:5: */
|
||||
return Xgethostbyname2_r(tls, name, 2, h, buf, buflen, res, err)
|
||||
}
|
||||
|
||||
type if_nameindex = struct {
|
||||
if_index uint32
|
||||
_ [4]byte
|
||||
@ -4428,11 +4460,11 @@ type __res_state = struct {
|
||||
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
|
||||
}
|
||||
_ [4]byte
|
||||
qhook uintptr
|
||||
rhook uintptr
|
||||
res_h_errno int32
|
||||
@ -4710,15 +4742,15 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5
|
||||
switch i {
|
||||
case 0:
|
||||
*(*uint64)(unsafe.Pointer(bp /* &a[0] */ + 1*8)) = (*(*uint64)(unsafe.Pointer(bp /* &a[0] */)) & uint64(0xffffff))
|
||||
AssignShrPtrUint64(bp /* &a */, int(uint64(24)))
|
||||
AssignShrPtrUint64(bp /* &a */, int(24))
|
||||
fallthrough
|
||||
case 1:
|
||||
*(*uint64)(unsafe.Pointer(bp /* &a[0] */ + 2*8)) = (*(*uint64)(unsafe.Pointer(bp /* &a[0] */ + 1*8)) & uint64(0xffff))
|
||||
AssignShrPtrUint64(bp /* &a */ +1*8, int(uint64(16)))
|
||||
AssignShrPtrUint64(bp /* &a */ +1*8, int(16))
|
||||
fallthrough
|
||||
case 2:
|
||||
*(*uint64)(unsafe.Pointer(bp /* &a[0] */ + 3*8)) = (*(*uint64)(unsafe.Pointer(bp /* &a[0] */ + 2*8)) & uint64(0xff))
|
||||
AssignShrPtrUint64(bp /* &a */ +2*8, int(uint64(8)))
|
||||
AssignShrPtrUint64(bp /* &a */ +2*8, int(8))
|
||||
}
|
||||
for i = 0; i < 4; i++ {
|
||||
if *(*uint64)(unsafe.Pointer(bp /* &a[0] */ + uintptr(i)*8)) > uint64(255) {
|
||||
@ -6767,5 +6799,185 @@ func Xstrtok(tls *TLS, s uintptr, sep uintptr) uintptr { /* strtok.c:3:6: */
|
||||
|
||||
var _sp uintptr /* strtok.c:5:14: */
|
||||
|
||||
func X__ccgo_pthreadAttrGetDetachState(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:3:5: */
|
||||
return *(*int32)(unsafe.Pointer((a /* &.__u */ /* &.__i */) + 6*4))
|
||||
}
|
||||
|
||||
func Xpthread_attr_getdetachstate(tls *TLS, a uintptr, state uintptr) int32 { /* pthread_attr_get.c:7:5: */
|
||||
*(*int32)(unsafe.Pointer(state)) = *(*int32)(unsafe.Pointer((a /* &.__u */ /* &.__i */) + 6*4))
|
||||
return 0
|
||||
}
|
||||
|
||||
//
|
||||
// int pthread_attr_getguardsize(const pthread_attr_t *restrict a, size_t *restrict size)
|
||||
// {
|
||||
// *size = a->_a_guardsize;
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int pthread_attr_getinheritsched(const pthread_attr_t *restrict a, int *restrict inherit)
|
||||
// {
|
||||
// *inherit = a->_a_sched;
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int pthread_attr_getschedparam(const pthread_attr_t *restrict a, struct sched_param *restrict param)
|
||||
// {
|
||||
// param->sched_priority = a->_a_prio;
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int pthread_attr_getschedpolicy(const pthread_attr_t *restrict a, int *restrict policy)
|
||||
// {
|
||||
// *policy = a->_a_policy;
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int pthread_attr_getscope(const pthread_attr_t *restrict a, int *restrict scope)
|
||||
// {
|
||||
// *scope = PTHREAD_SCOPE_SYSTEM;
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int pthread_attr_getstack(const pthread_attr_t *restrict a, void **restrict addr, size_t *restrict size)
|
||||
// {
|
||||
// if (!a->_a_stackaddr)
|
||||
// return EINVAL;
|
||||
// *size = a->_a_stacksize;
|
||||
// *addr = (void *)(a->_a_stackaddr - *size);
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int pthread_attr_getstacksize(const pthread_attr_t *restrict a, size_t *restrict size)
|
||||
// {
|
||||
// *size = a->_a_stacksize;
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int pthread_barrierattr_getpshared(const pthread_barrierattr_t *restrict a, int *restrict pshared)
|
||||
// {
|
||||
// *pshared = !!a->__attr;
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int pthread_condattr_getclock(const pthread_condattr_t *restrict a, clockid_t *restrict clk)
|
||||
// {
|
||||
// *clk = a->__attr & 0x7fffffff;
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int pthread_condattr_getpshared(const pthread_condattr_t *restrict a, int *restrict pshared)
|
||||
// {
|
||||
// *pshared = a->__attr>>31;
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *restrict a, int *restrict protocol)
|
||||
// {
|
||||
// *protocol = PTHREAD_PRIO_NONE;
|
||||
// return 0;
|
||||
// }
|
||||
// int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared)
|
||||
// {
|
||||
// *pshared = a->__attr / 128U % 2;
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int pthread_mutexattr_getrobust(const pthread_mutexattr_t *restrict a, int *restrict robust)
|
||||
// {
|
||||
// *robust = a->__attr / 4U % 2;
|
||||
// return 0;
|
||||
// }
|
||||
|
||||
func X__ccgo_pthreadMutexattrGettype(tls *TLS, a uintptr) int32 { /* pthread_attr_get.c:93:5: */
|
||||
return (int32((*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr & uint32(3)))
|
||||
}
|
||||
|
||||
// int pthread_mutexattr_gettype(const pthread_mutexattr_t *restrict a, int *restrict type)
|
||||
// {
|
||||
// *type = a->__attr & 3;
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *restrict a, int *restrict pshared)
|
||||
// {
|
||||
// *pshared = a->__attr[0];
|
||||
// return 0;
|
||||
// }
|
||||
|
||||
func Xpthread_attr_setdetachstate(tls *TLS, a uintptr, state int32) int32 { /* pthread_attr_setdetachstate.c:3:5: */
|
||||
if uint32(state) > 1 {
|
||||
return 22
|
||||
}
|
||||
*(*int32)(unsafe.Pointer((a /* &.__u */ /* &.__i */) + 6*4)) = state
|
||||
return 0
|
||||
}
|
||||
|
||||
func X__ccgo_getMutexType(tls *TLS, m uintptr) int32 { /* pthread_mutex_lock.c:3:5: */
|
||||
return (*(*int32)(unsafe.Pointer((m /* &.__u */ /* &.__i */))) & 15)
|
||||
}
|
||||
|
||||
// int __pthread_mutex_lock(pthread_mutex_t *m)
|
||||
// {
|
||||
// if ((m->_m_type&15) == PTHREAD_MUTEX_NORMAL
|
||||
// && !a_cas(&m->_m_lock, 0, EBUSY))
|
||||
// return 0;
|
||||
//
|
||||
// return __pthread_mutex_timedlock(m, 0);
|
||||
// }
|
||||
//
|
||||
// weak_alias(__pthread_mutex_lock, pthread_mutex_lock);
|
||||
|
||||
func Xpthread_mutexattr_destroy(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_destroy.c:3:5: */
|
||||
return 0
|
||||
}
|
||||
|
||||
func Xpthread_mutexattr_init(tls *TLS, a uintptr) int32 { /* pthread_mutexattr_init.c:3:5: */
|
||||
*(*pthread_mutexattr_t)(unsafe.Pointer(a)) = pthread_mutexattr_t{}
|
||||
return 0
|
||||
}
|
||||
|
||||
func Xpthread_mutexattr_settype(tls *TLS, a uintptr, type1 int32) int32 { /* pthread_mutexattr_settype.c:3:5: */
|
||||
if uint32(type1) > uint32(2) {
|
||||
return 22
|
||||
}
|
||||
(*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr = (((*pthread_mutexattr_t)(unsafe.Pointer(a)).__attr & Uint32FromInt32(CplInt32(3))) | uint32(type1))
|
||||
return 0
|
||||
}
|
||||
|
||||
var __ctype_b_table = [...]uint16{ //TODO use symbolic constants
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002,
|
||||
0x0002, 0x2003, 0x2002, 0x2002, 0x2002, 0x2002, 0x0002, 0x0002,
|
||||
0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002,
|
||||
0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002,
|
||||
0x6001, 0xc004, 0xc004, 0xc004, 0xc004, 0xc004, 0xc004, 0xc004,
|
||||
0xc004, 0xc004, 0xc004, 0xc004, 0xc004, 0xc004, 0xc004, 0xc004,
|
||||
0xd808, 0xd808, 0xd808, 0xd808, 0xd808, 0xd808, 0xd808, 0xd808,
|
||||
0xd808, 0xd808, 0xc004, 0xc004, 0xc004, 0xc004, 0xc004, 0xc004,
|
||||
0xc004, 0xd508, 0xd508, 0xd508, 0xd508, 0xd508, 0xd508, 0xc508,
|
||||
0xc508, 0xc508, 0xc508, 0xc508, 0xc508, 0xc508, 0xc508, 0xc508,
|
||||
0xc508, 0xc508, 0xc508, 0xc508, 0xc508, 0xc508, 0xc508, 0xc508,
|
||||
0xc508, 0xc508, 0xc508, 0xc004, 0xc004, 0xc004, 0xc004, 0xc004,
|
||||
0xc004, 0xd608, 0xd608, 0xd608, 0xd608, 0xd608, 0xd608, 0xc608,
|
||||
0xc608, 0xc608, 0xc608, 0xc608, 0xc608, 0xc608, 0xc608, 0xc608,
|
||||
0xc608, 0xc608, 0xc608, 0xc608, 0xc608, 0xc608, 0xc608, 0xc608,
|
||||
0xc608, 0xc608, 0xc608, 0xc004, 0xc004, 0xc004, 0xc004, 0x0002,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
}
|
||||
|
||||
var ptable = uintptr(unsafe.Pointer(&__ctype_b_table[128]))
|
||||
|
||||
// const unsigned short * * __ctype_b_loc (void);
|
||||
func X__ctype_b_loc(t *TLS) uintptr {
|
||||
return uintptr(unsafe.Pointer(&ptable))
|
||||
}
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user