diff options
author | 2025-03-09 17:47:56 +0100 | |
---|---|---|
committer | 2025-03-10 01:59:49 +0100 | |
commit | 3ac1ee16f377d31a0fb80c8dae28b6239ac4229e (patch) | |
tree | f61faa581feaaeaba2542b9f2b8234a590684413 /vendor/modernc.org/libc/libc_musl_linux_arm64.go | |
parent | [chore] update URLs to forked source (diff) | |
download | gotosocial-3ac1ee16f377d31a0fb80c8dae28b6239ac4229e.tar.xz |
[chore] remove vendor
Diffstat (limited to 'vendor/modernc.org/libc/libc_musl_linux_arm64.go')
-rw-r--r-- | vendor/modernc.org/libc/libc_musl_linux_arm64.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/vendor/modernc.org/libc/libc_musl_linux_arm64.go b/vendor/modernc.org/libc/libc_musl_linux_arm64.go deleted file mode 100644 index 784595d7b..000000000 --- a/vendor/modernc.org/libc/libc_musl_linux_arm64.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2023 The Libc Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package libc // import "modernc.org/libc" - -import ( - "golang.org/x/sys/unix" -) - -type long = int64 - -type ulong = uint64 - -// RawMem represents the biggest byte array the runtime can handle -type RawMem [1<<50 - 1]byte - -// int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags); -func Xrenameat2(t *TLS, olddirfd int32, oldpath uintptr, newdirfd int32, newpath uintptr, flags int32) int32 { - if __ccgo_strace { - trc("t=%v olddirfd=%v oldpath=%v newdirfd=%v newpath=%v flags=%v, (%v:)", t, olddirfd, oldpath, newdirfd, newpath, flags, origin(2)) - } - if _, _, err := unix.Syscall6(unix.SYS_RENAMEAT2, uintptr(olddirfd), oldpath, uintptr(newdirfd), newpath, uintptr(flags), 0); err != 0 { - t.setErrno(int32(err)) - return -1 - } - - return 0 -} |