diff options
author | 2025-02-14 16:54:10 +0000 | |
---|---|---|
committer | 2025-02-14 16:54:10 +0000 | |
commit | ebbdeee0bb91d5008a405e43114f1653ecdf8ce8 (patch) | |
tree | d9b1c087a34e6f5947d553f7cb04503b3c411e93 /vendor/modernc.org/libc/libc_illumos.go | |
parent | [bugfix] Drop status indices AFTER updating visibility (#3795) (diff) | |
download | gotosocial-ebbdeee0bb91d5008a405e43114f1653ecdf8ce8.tar.xz |
bump modernc.org/sqlite to v1.35.0-concurrency-workaround (#3797)
Diffstat (limited to 'vendor/modernc.org/libc/libc_illumos.go')
-rw-r--r-- | vendor/modernc.org/libc/libc_illumos.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vendor/modernc.org/libc/libc_illumos.go b/vendor/modernc.org/libc/libc_illumos.go index 5224f4722..390012810 100644 --- a/vendor/modernc.org/libc/libc_illumos.go +++ b/vendor/modernc.org/libc/libc_illumos.go @@ -13,7 +13,6 @@ import ( "path/filepath" "runtime" // "runtime/debug" - "syscall" "time" "unsafe" @@ -49,8 +48,9 @@ var ( ) type ( - long = int - ulong = uint + syscallErrno = unix.Errno + long = int + ulong = uint ) type file uintptr @@ -427,7 +427,7 @@ func Xwrite(t *TLS, fd int32, buf uintptr, count types.Size_t) types.Ssize_t { } panic(todo("")) // const retry = 5 - // var err syscall.Errno + // var err syscallErrno // for i := 0; i < retry; i++ { // var n uintptr // switch n, _, err = unix.Syscall(unix.SYS_WRITE, uintptr(fd), buf, uintptr(count)); err { @@ -937,7 +937,7 @@ func Xfileno(t *TLS, stream uintptr) int32 { // return -1 } -func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) (r *fts.FTSENT) { +func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) (r *fts.FTSENT) { panic(todo("")) // var statp uintptr // if stat != nil { @@ -962,7 +962,7 @@ func newFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Err // } } -func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscall.Errno) uintptr { +func newCFtsent(t *TLS, info int, path string, stat *unix.Stat_t, err syscallErrno) uintptr { p := Xcalloc(t, 1, types.Size_t(unsafe.Sizeof(fts.FTSENT{}))) if p == 0 { panic("OOM") @@ -1370,7 +1370,7 @@ func Xabort(t *TLS) { // } // Xsigaction(t, signal.SIGABRT, p, 0) // Xfree(t, p) - // unix.Kill(unix.Getpid(), syscall.Signal(signal.SIGABRT)) + // unix.Kill(unix.Getpid(), unix.Signal(signal.SIGABRT)) // panic(todo("unrechable")) } @@ -1614,7 +1614,7 @@ func Xreaddir64(t *TLS, dir uintptr) uintptr { return Xreaddir(t, dir) } -func __syscall(r, _ uintptr, errno syscall.Errno) long { +func __syscall(r, _ uintptr, errno syscallErrno) long { if errno != 0 { return long(-errno) } |