- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 106 for errnoErr2 (0.21 sec)
-
src/syscall/net_wasip1.go
} func Listen(fd int, backlog int) error { return ENOSYS } func Accept(fd int) (int, Sockaddr, error) { var newfd int32 errno := sock_accept(int32(fd), 0, unsafe.Pointer(&newfd)) return int(newfd), nil, errnoErr(errno) } func Connect(fd int, sa Sockaddr) error { return ENOSYS } func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) { return 0, nil, ENOSYS }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:12:41 UTC 2023 - 1.8K bytes - Viewed (0) -
src/internal/syscall/windows/registry/zsyscall_windows.go
const ( errnoERROR_IO_PENDING = 997 ) var ( errERROR_IO_PENDING error = syscall.Errno(errnoERROR_IO_PENDING) errERROR_EINVAL error = syscall.EINVAL ) // errnoErr returns common boxed Errno values, to prevent // allocations at runtime. func errnoErr(e syscall.Errno) error { switch e { case 0: return errERROR_EINVAL case errnoERROR_IO_PENDING: return errERROR_IO_PENDING }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 02 15:41:00 UTC 2020 - 4K bytes - Viewed (0) -
src/syscall/syscall_linux.go
err = errnoErr(Errno(ret)) } return } var cgo_libc_setuid unsafe.Pointer // non-nil if cgo linked. func Setuid(uid int) (err error) { if cgo_libc_setuid == nil { if _, _, e1 := AllThreadsSyscall(sys_SETUID, uintptr(uid), 0, 0); e1 != 0 { err = errnoErr(e1) } } else if ret := cgocaller(cgo_libc_setuid, uintptr(uid)); ret != 0 { err = errnoErr(Errno(ret)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:12:46 UTC 2024 - 35.7K bytes - Viewed (0) -
src/syscall/flock_aix.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 570 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
if e != 0 { err = errnoErr(e) } return } func Statfs(path string, buf *Statfs_t) (err error) { p, err := BytePtrFromString(path) if err != nil { return err } _, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(p)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) if e != 0 { err = errnoErr(e) } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 5.8K bytes - Viewed (0) -
src/syscall/tables_wasip1.go
} // Do the interface allocations only once for common // Errno values. var ( errEAGAIN error = EAGAIN errEINVAL error = EINVAL errENOENT error = ENOENT ) // errnoErr returns common boxed Errno values, to prevent // allocations at runtime. // // We set both noinline and nosplit to reduce code size, this function has many
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 06 20:58:35 UTC 2023 - 6.5K bytes - Viewed (0) -
src/syscall/syscall_linux_mipsx.go
if e != 0 { err = errnoErr(e) } return } func Statfs(path string, buf *Statfs_t) (err error) { p, err := BytePtrFromString(path) if err != nil { return err } _, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(p)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) if e != 0 { err = errnoErr(e) } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 22:23:07 UTC 2023 - 6.8K bytes - Viewed (0) -
src/syscall/fs_js.go
newPos = f.pos + offset case 2: var st Stat_t if err := Fstat(fd, &st); err != nil { return 0, err } newPos = st.Size + offset default: return 0, errnoErr(EINVAL) } if newPos < 0 { return 0, errnoErr(EINVAL) } f.seeked = true f.dirIdx = 0 // Reset directory read position. See issue 35767. f.pos = newPos return newPos, nil } func Dup(fd int) (int, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 11 18:19:17 UTC 2023 - 10.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/affinity_linux.go
type CPUSet [cpuSetSize]cpuMask func schedAffinity(trap uintptr, pid int, set *CPUSet) error { _, _, e := RawSyscall(trap, uintptr(pid), uintptr(unsafe.Sizeof(*set)), uintptr(unsafe.Pointer(set))) if e != 0 { return errnoErr(e) } return nil } // SchedGetaffinity gets the CPU affinity mask of the thread specified by pid. // If pid is 0 the calling thread is used. func SchedGetaffinity(pid int, set *CPUSet) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 19 21:26:10 UTC 2020 - 1.9K bytes - Viewed (0) -
src/syscall/syscall_darwin.go
func init() { execveDarwin = execve } func fdopendir(fd int) (dir uintptr, err error) { r0, _, e1 := syscallPtr(abi.FuncPCABI0(libc_fdopendir_trampoline), uintptr(fd), 0, 0) dir = r0 if e1 != 0 { err = errnoErr(e1) } return } func libc_fdopendir_trampoline() //go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib" func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:50 UTC 2024 - 11K bytes - Viewed (0)