- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for errnoErr (0.17 sec)
-
src/internal/poll/errno_unix.go
// Errno values. var ( errEAGAIN error = syscall.EAGAIN errEINVAL error = syscall.EINVAL errENOENT error = syscall.ENOENT ) // errnoErr returns common boxed Errno values, to prevent // allocations at runtime. func errnoErr(e syscall.Errno) error { switch e { case 0: return nil case syscall.EAGAIN: return errEAGAIN case syscall.EINVAL: return errEINVAL case syscall.ENOENT:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:12:40 UTC 2023 - 696 bytes - Viewed (0) -
src/internal/poll/errno_windows.go
// Do the interface allocations only once for common // Errno values. var ( errERROR_IO_PENDING error = syscall.Errno(syscall.ERROR_IO_PENDING) ) // errnoErr returns common boxed Errno values, to prevent // allocations at runtime. func errnoErr(e syscall.Errno) error { switch e { case 0: return nil case syscall.ERROR_IO_PENDING: return errERROR_IO_PENDING }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 16:39:12 UTC 2022 - 725 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go
if len(iovs) > 0 { _p0 = &iovs[0] } r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0) n = int(r0) if e1 != 0 { err = errnoErr(e1) } return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func preadv(fd int, iovs []Iovec, off int64) (n int, err error) { var _p0 *Iovec if len(iovs) > 0 { _p0 = &iovs[0]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.6K bytes - Viewed (0) -
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/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/internal/poll/fd_poll_runtime.go
runtimeCtx uintptr } var serverInit sync.Once func (pd *pollDesc) init(fd *FD) error { serverInit.Do(runtime_pollServerInit) ctx, errno := runtime_pollOpen(uintptr(fd.Sysfd)) if errno != 0 { return errnoErr(syscall.Errno(errno)) } pd.runtimeCtx = ctx return nil } func (pd *pollDesc) close() { if pd.runtimeCtx == 0 { return } runtime_pollClose(pd.runtimeCtx) pd.runtimeCtx = 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:59 UTC 2024 - 4.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
_, _, e1 := Syscall6(SYS_ARM_FADVISE64_64, uintptr(fd), uintptr(advice), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32)) if e1 != 0 { err = errnoErr(e1) } return } //sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) func Fstatfs(fd int, buf *Statfs_t) (err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 6.9K bytes - Viewed (0)