summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/libc/libc_darwin.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-08-16 16:09:50 +0100
committerLibravatar GitHub <noreply@github.com>2023-08-16 16:09:50 +0100
commit8f4b779b2d5876a1b667010f26eff76a7b3dbbae (patch)
tree57e98f9c604e5afd69505ce2c472bff5efe03760 /vendor/modernc.org/libc/libc_darwin.go
parent[feature] Add snapshot binary builds + uploads (#2119) (diff)
downloadgotosocial-8f4b779b2d5876a1b667010f26eff76a7b3dbbae.tar.xz
[chore]: Bump modernc.org/sqlite from 1.24.0 to 1.25.0 (#2114)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/modernc.org/libc/libc_darwin.go')
-rw-r--r--vendor/modernc.org/libc/libc_darwin.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/vendor/modernc.org/libc/libc_darwin.go b/vendor/modernc.org/libc/libc_darwin.go
index 0ddc96e79..334bf8fe1 100644
--- a/vendor/modernc.org/libc/libc_darwin.go
+++ b/vendor/modernc.org/libc/libc_darwin.go
@@ -1526,33 +1526,6 @@ func fcntlCmdStr(cmd int32) string {
// panic(todo(""))
// }
-// ssize_t pread(int fd, void *buf, size_t count, off_t offset);
-func Xpread(t *TLS, fd int32, buf uintptr, count types.Size_t, offset types.Off_t) types.Ssize_t {
- var n int
- var err error
- switch {
- case count == 0:
- n, err = unix.Pread(int(fd), nil, int64(offset))
- default:
- n, err = unix.Pread(int(fd), (*RawMem)(unsafe.Pointer(buf))[:count:count], int64(offset))
- if dmesgs && err == nil {
- dmesg("%v: fd %v, off %#x, count %#x, n %#x\n%s", origin(1), fd, offset, count, n, hex.Dump((*RawMem)(unsafe.Pointer(buf))[:n:n]))
- }
- }
- if err != nil {
- if dmesgs {
- dmesg("%v: %v FAIL", origin(1), err)
- }
- t.setErrno(err)
- return -1
- }
-
- if dmesgs {
- dmesg("%v: ok", origin(1))
- }
- return types.Ssize_t(n)
-}
-
// ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset);
func Xpwrite(t *TLS, fd int32, buf uintptr, count types.Size_t, offset types.Off_t) types.Ssize_t {
var n int