diff options
author | Wim <wim@42.be> | 2023-03-09 22:48:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 22:48:00 +0100 |
commit | 08779c29099e8940493df56d28d8aa131ac8342e (patch) | |
tree | 7ad8ce25cf371e582137e1706dd671a6bf4342d0 /vendor/modernc.org/libc | |
parent | d5f9cdf912d43cd2a5cb243e086fbdab9a9073b0 (diff) | |
download | matterbridge-msglm-08779c29099e8940493df56d28d8aa131ac8342e.tar.gz matterbridge-msglm-08779c29099e8940493df56d28d8aa131ac8342e.tar.bz2 matterbridge-msglm-08779c29099e8940493df56d28d8aa131ac8342e.zip |
Update dependencies (#2007)
* Update dependencies
Diffstat (limited to 'vendor/modernc.org/libc')
24 files changed, 37 insertions, 1 deletions
diff --git a/vendor/modernc.org/libc/Makefile b/vendor/modernc.org/libc/Makefile index e9c5b256..8664cd6d 100644 --- a/vendor/modernc.org/libc/Makefile +++ b/vendor/modernc.org/libc/Makefile @@ -167,7 +167,7 @@ edit: @if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile *.go & fi editor: - go generate 2>&1 | tee log + # go generate 2>&1 | tee log gofmt -l -s -w *.go go test -short 2>&1 | tee -a log go install -v ./... diff --git a/vendor/modernc.org/libc/capi_darwin_amd64.go b/vendor/modernc.org/libc/capi_darwin_amd64.go index ab794096..12cddf4b 100644 --- a/vendor/modernc.org/libc/capi_darwin_amd64.go +++ b/vendor/modernc.org/libc/capi_darwin_amd64.go @@ -319,6 +319,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_darwin_arm64.go b/vendor/modernc.org/libc/capi_darwin_arm64.go index ab794096..12cddf4b 100644 --- a/vendor/modernc.org/libc/capi_darwin_arm64.go +++ b/vendor/modernc.org/libc/capi_darwin_arm64.go @@ -319,6 +319,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_freebsd_386.go b/vendor/modernc.org/libc/capi_freebsd_386.go index 006e0c71..fb198405 100644 --- a/vendor/modernc.org/libc/capi_freebsd_386.go +++ b/vendor/modernc.org/libc/capi_freebsd_386.go @@ -299,6 +299,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_freebsd_amd64.go b/vendor/modernc.org/libc/capi_freebsd_amd64.go index 006e0c71..fb198405 100644 --- a/vendor/modernc.org/libc/capi_freebsd_amd64.go +++ b/vendor/modernc.org/libc/capi_freebsd_amd64.go @@ -299,6 +299,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_freebsd_arm.go b/vendor/modernc.org/libc/capi_freebsd_arm.go index 006e0c71..fb198405 100644 --- a/vendor/modernc.org/libc/capi_freebsd_arm.go +++ b/vendor/modernc.org/libc/capi_freebsd_arm.go @@ -299,6 +299,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_freebsd_arm64.go b/vendor/modernc.org/libc/capi_freebsd_arm64.go index 006e0c71..fb198405 100644 --- a/vendor/modernc.org/libc/capi_freebsd_arm64.go +++ b/vendor/modernc.org/libc/capi_freebsd_arm64.go @@ -299,6 +299,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_linux_386.go b/vendor/modernc.org/libc/capi_linux_386.go index 7ec37f1d..47cef2b5 100644 --- a/vendor/modernc.org/libc/capi_linux_386.go +++ b/vendor/modernc.org/libc/capi_linux_386.go @@ -288,6 +288,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -320,6 +321,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, diff --git a/vendor/modernc.org/libc/capi_linux_amd64.go b/vendor/modernc.org/libc/capi_linux_amd64.go index b5b36631..3741ba1f 100644 --- a/vendor/modernc.org/libc/capi_linux_amd64.go +++ b/vendor/modernc.org/libc/capi_linux_amd64.go @@ -295,6 +295,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -329,6 +330,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, diff --git a/vendor/modernc.org/libc/capi_linux_arm.go b/vendor/modernc.org/libc/capi_linux_arm.go index 7ec37f1d..47cef2b5 100644 --- a/vendor/modernc.org/libc/capi_linux_arm.go +++ b/vendor/modernc.org/libc/capi_linux_arm.go @@ -288,6 +288,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -320,6 +321,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, diff --git a/vendor/modernc.org/libc/capi_linux_arm64.go b/vendor/modernc.org/libc/capi_linux_arm64.go index 7ec37f1d..47cef2b5 100644 --- a/vendor/modernc.org/libc/capi_linux_arm64.go +++ b/vendor/modernc.org/libc/capi_linux_arm64.go @@ -288,6 +288,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -320,6 +321,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, diff --git a/vendor/modernc.org/libc/capi_linux_ppc64le.go b/vendor/modernc.org/libc/capi_linux_ppc64le.go index b5b36631..3741ba1f 100644 --- a/vendor/modernc.org/libc/capi_linux_ppc64le.go +++ b/vendor/modernc.org/libc/capi_linux_ppc64le.go @@ -295,6 +295,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -329,6 +330,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, diff --git a/vendor/modernc.org/libc/capi_linux_riscv64.go b/vendor/modernc.org/libc/capi_linux_riscv64.go index 29fb7d4e..6defbe83 100644 --- a/vendor/modernc.org/libc/capi_linux_riscv64.go +++ b/vendor/modernc.org/libc/capi_linux_riscv64.go @@ -290,6 +290,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -322,6 +323,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, diff --git a/vendor/modernc.org/libc/capi_linux_s390x.go b/vendor/modernc.org/libc/capi_linux_s390x.go index 7ec37f1d..47cef2b5 100644 --- a/vendor/modernc.org/libc/capi_linux_s390x.go +++ b/vendor/modernc.org/libc/capi_linux_s390x.go @@ -288,6 +288,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, @@ -320,6 +321,7 @@ var CAPI = map[string]struct{}{ "mremap": {}, "munmap": {}, "nanf": {}, + "nanosleep": {}, "nl_langinfo": {}, "ntohs": {}, "obstack_free": {}, diff --git a/vendor/modernc.org/libc/capi_netbsd_amd64.go b/vendor/modernc.org/libc/capi_netbsd_amd64.go index 8876e9b4..680fd730 100644 --- a/vendor/modernc.org/libc/capi_netbsd_amd64.go +++ b/vendor/modernc.org/libc/capi_netbsd_amd64.go @@ -294,6 +294,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_netbsd_arm.go b/vendor/modernc.org/libc/capi_netbsd_arm.go index 8876e9b4..680fd730 100644 --- a/vendor/modernc.org/libc/capi_netbsd_arm.go +++ b/vendor/modernc.org/libc/capi_netbsd_arm.go @@ -294,6 +294,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_openbsd_386.go b/vendor/modernc.org/libc/capi_openbsd_386.go index dbcc423b..ea4fbda9 100644 --- a/vendor/modernc.org/libc/capi_openbsd_386.go +++ b/vendor/modernc.org/libc/capi_openbsd_386.go @@ -305,6 +305,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_openbsd_amd64.go b/vendor/modernc.org/libc/capi_openbsd_amd64.go index 7ba9c55d..1c9327fc 100644 --- a/vendor/modernc.org/libc/capi_openbsd_amd64.go +++ b/vendor/modernc.org/libc/capi_openbsd_amd64.go @@ -306,6 +306,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_openbsd_arm64.go b/vendor/modernc.org/libc/capi_openbsd_arm64.go index 7ba9c55d..1c9327fc 100644 --- a/vendor/modernc.org/libc/capi_openbsd_arm64.go +++ b/vendor/modernc.org/libc/capi_openbsd_arm64.go @@ -306,6 +306,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lrand48": {}, "lseek": {}, diff --git a/vendor/modernc.org/libc/capi_windows_386.go b/vendor/modernc.org/libc/capi_windows_386.go index fc04042f..e44b80e8 100644 --- a/vendor/modernc.org/libc/capi_windows_386.go +++ b/vendor/modernc.org/libc/capi_windows_386.go @@ -574,6 +574,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lseek": {}, "lseek64": {}, diff --git a/vendor/modernc.org/libc/capi_windows_amd64.go b/vendor/modernc.org/libc/capi_windows_amd64.go index 7fa708d6..8c823a50 100644 --- a/vendor/modernc.org/libc/capi_windows_amd64.go +++ b/vendor/modernc.org/libc/capi_windows_amd64.go @@ -554,6 +554,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lseek": {}, "lseek64": {}, diff --git a/vendor/modernc.org/libc/capi_windows_arm64.go b/vendor/modernc.org/libc/capi_windows_arm64.go index f26fc8c5..0df635dd 100644 --- a/vendor/modernc.org/libc/capi_windows_arm64.go +++ b/vendor/modernc.org/libc/capi_windows_arm64.go @@ -569,6 +569,7 @@ var CAPI = map[string]struct{}{ "localtime_r": {}, "log": {}, "log10": {}, + "log2": {}, "longjmp": {}, "lseek": {}, "lseek64": {}, diff --git a/vendor/modernc.org/libc/libc.go b/vendor/modernc.org/libc/libc.go index 1cd63db7..e1c00b0f 100644 --- a/vendor/modernc.org/libc/libc.go +++ b/vendor/modernc.org/libc/libc.go @@ -611,6 +611,7 @@ func Xisnanl(t *TLS, x float64) int32 { return Bool32(math.IsNaN(x)) func Xldexp(t *TLS, x float64, exp int32) float64 { return math.Ldexp(x, int(exp)) } func Xlog(t *TLS, x float64) float64 { return math.Log(x) } func Xlog10(t *TLS, x float64) float64 { return math.Log10(x) } +func Xlog2(t *TLS, x float64) float64 { return math.Log2(x) } func Xround(t *TLS, x float64) float64 { return math.Round(x) } func Xsin(t *TLS, x float64) float64 { return math.Sin(x) } func Xsinf(t *TLS, x float32) float32 { return float32(math.Sin(float64(x))) } diff --git a/vendor/modernc.org/libc/libc_linux.go b/vendor/modernc.org/libc/libc_linux.go index b2910d9e..1c2f4826 100644 --- a/vendor/modernc.org/libc/libc_linux.go +++ b/vendor/modernc.org/libc/libc_linux.go @@ -1592,3 +1592,10 @@ func Xreadlinkat(t *TLS, dirfd int32, pathname, buf uintptr, bufsiz types.Size_t return types.Ssize_t(n) } + +// int nanosleep(const struct timespec *req, struct timespec *rem); +func Xnanosleep(t *TLS, req, rem uintptr) int32 { + v := *(*ctime.Timespec)(unsafe.Pointer(req)) + time.Sleep(time.Second*time.Duration(v.Ftv_sec) + time.Duration(v.Ftv_nsec)) + return 0 +} |