- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 57 for EINVAL (0.08 sec)
-
src/os/pidfd_linux.go
// pidfdFind. Return ECHILD for consistency with what the wait // syscall would return. return nil, NewSyscallError("wait", syscall.ECHILD) case statusReleased: return nil, syscall.EINVAL } defer p.handleTransientRelease() var ( info unix.SiginfoChild rusage syscall.Rusage e syscall.Errno ) for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 18:08:44 UTC 2024 - 4.2K bytes - Viewed (0) -
src/syscall/bpf_bsd.go
var v BpfVersion err := ioctlPtr(fd, BIOCVERSION, unsafe.Pointer(&v)) if err != nil { return err } if v.Major != BPF_MAJOR_VERSION || v.Minor != BPF_MINOR_VERSION { return EINVAL } return nil } // Deprecated: Use golang.org/x/net/bpf instead. func BpfHeadercmpl(fd int) (int, error) { var f int err := ioctlPtr(fd, BIOCGHDRCMPLT, unsafe.Pointer(&f)) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 10:34:48 UTC 2023 - 4K bytes - Viewed (0) -
src/os/zero_copy_linux.go
// TODO(panjf2000): run some tests to see if we should unlock the non-streams for splice. // Streams benefit the most from the splice(2), non-streams are not even supported in old kernels // where splice(2) will just return EINVAL; newer kernels support non-streams like UDP, but I really // doubt that splice(2) could help non-streams, cuz they usually send small frames respectively // and one splice call would result in one frame.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 4.6K bytes - Viewed (0) -
internal/http/listener.go
select { case result, ok := <-listener.acceptCh: if ok { return result.conn, result.err } case <-listener.ctx.Done(): } return nil, syscall.EINVAL } // Close - closes underneath all TCP listeners. func (listener *httpListener) Close() (err error) { listener.ctxCanceler() for i := range listener.listeners { listener.listeners[i].Close() }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 5.5K bytes - Viewed (0) -
src/os/removeall_at.go
return nil } // The rmdir system call does not permit removing ".", // so we don't permit it either. if endsWithDot(path) { return &PathError{Op: "RemoveAll", Path: path, Err: syscall.EINVAL} } // Simple case: if Remove works, we're done. err := Remove(path) if err == nil || IsNotExist(err) { return nil } // RemoveAll recurses by deleting the path base from // its parent directory
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:09:26 UTC 2024 - 4.8K bytes - Viewed (0) -
src/runtime/mem_linux.go
// this call can fail with EAGAIN because it's best-effort. // Also, when it returns an error, it's only for the last // huge page in the region requested. // // It can also sometimes return EINVAL if the corresponding // region hasn't been backed by physical memory. This is // difficult to guarantee in general, and it also means // there's no way to distinguish whether this syscall is // actually available. Oops.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 5K bytes - Viewed (0) -
src/runtime/netpoll_kqueue.go
return gList{}, 0 } var tp *timespec var ts timespec if delay < 0 { tp = nil } else if delay == 0 { tp = &ts } else { ts.setNsec(delay) if ts.tv_sec > 1e6 { // Darwin returns EINVAL if the sleep time is too long. ts.tv_sec = 1e6 } tp = &ts } var events [64]keventt retry: n := kevent(kq, nil, 0, &events[0], int32(len(events)), tp) if n < 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 4.6K bytes - Viewed (0) -
src/runtime/syscall_aix.go
// as it's never used on AIX // TODO: remove r2 from zsyscall_aix_$GOARCH.go // Syscall is needed because some packages (like net) need it too. // The best way is to return EINVAL and let Golang handles its failure // If the syscall can't fail, this function can redirect it to a real syscall. // // This is exported via linkname to assembly in the syscall package. // //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 6.3K bytes - Viewed (0) -
cmd/storage-errors.go
} if isSysErrIO(err) { return errFaultyDisk } if isSysErrInvalidArg(err) { storageLogIf(context.Background(), err) // For some odd calls with O_DIRECT reads // filesystems can return EINVAL, handle // these as FileNotFound instead. return errFileNotFound } if isSysErrNoSpace(err) { return errDiskFull } return err
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 6.4K bytes - Viewed (0) -
src/net/fd_windows.go
} func (c *conn) writeBuffers(v *Buffers) (int64, error) { if !c.ok() { return 0, syscall.EINVAL } n, err := c.fd.writeBuffers(v) if err != nil { return n, &OpError{Op: "wsasend", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err} } return n, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 16:46:10 UTC 2024 - 6.2K bytes - Viewed (0)