- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 205 for EINVAL (0.11 sec)
-
src/net/unixsock.go
func (c *UnixConn) SyscallConn() (syscall.RawConn, error) { if !c.ok() { return nil, syscall.EINVAL } return newRawConn(c.fd), nil } // CloseRead shuts down the reading side of the Unix domain connection. // Most callers should just use Close. func (c *UnixConn) CloseRead() error { if !c.ok() { return syscall.EINVAL } if err := c.fd.closeRead(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 10.1K bytes - Viewed (0) -
src/net/rawconn.go
if !c.ok() { return syscall.EINVAL } err := c.fd.pfd.RawControl(f) runtime.KeepAlive(c.fd) if err != nil { err = &OpError{Op: "raw-control", Net: c.fd.net, Source: nil, Addr: c.fd.laddr, Err: err} } return err } func (c *rawConn) Read(f func(uintptr) bool) error { if !c.ok() { return syscall.EINVAL } err := c.fd.pfd.RawRead(f) runtime.KeepAlive(c.fd)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 2.7K bytes - Viewed (0) -
src/net/iprawsock.go
func (c *IPConn) SyscallConn() (syscall.RawConn, error) { if !c.ok() { return nil, syscall.EINVAL } return newRawConn(c.fd), nil } // ReadFromIP acts like ReadFrom but returns an IPAddr. func (c *IPConn) ReadFromIP(b []byte) (int, *IPAddr, error) { if !c.ok() { return 0, nil, syscall.EINVAL } n, addr, err := c.readFrom(b) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 7.1K bytes - Viewed (0) -
src/cmd/link/internal/ld/outbuf_freebsd.go
"syscall" ) func (out *OutBuf) fallocate(size uint64) error { err := unix.PosixFallocate(int(out.f.Fd()), 0, int64(size)) // ZFS on FreeBSD does not support posix_fallocate and returns EINVAL in that case. if err == syscall.EINVAL { return errNoFallocate } return err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 05 14:17:36 UTC 2023 - 515 bytes - Viewed (0) -
src/net/error_posix_test.go
{&OpError{Op: "op", Err: &os.SyscallError{Syscall: "syscall", Err: syscall.EADDRNOTAVAIL}}, true}, {syscall.EINVAL, false}, {&os.SyscallError{Syscall: "syscall", Err: syscall.EINVAL}, false}, {&OpError{Op: "op", Err: syscall.EINVAL}, false}, {&OpError{Op: "op", Err: &os.SyscallError{Syscall: "syscall", Err: syscall.EINVAL}}, false}, } { if ok := spuriousENOTAVAIL(tt.error); ok != tt.ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 981 bytes - Viewed (0) -
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: return errENOENT } return e
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:12:40 UTC 2023 - 696 bytes - Viewed (0) -
src/syscall/netlink_linux.go
return nil, err } lsanl, ok := lsa.(*SockaddrNetlink) if !ok { return nil, EINVAL } var tab []byte rbNew := pageBufPool.Get().(*[]byte) defer pageBufPool.Put(rbNew) done: for { rb := *rbNew nr, _, err := Recvfrom(s, rb, 0) if err != nil { return nil, err } if nr < NLMSG_HDRLEN { return nil, EINVAL } rb = rb[:nr] tab = append(tab, rb...)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 20:01:34 UTC 2023 - 4.8K bytes - Viewed (0) -
src/syscall/route_bsd.go
case AF_INET: if len(b) < SizeofSockaddrInet4 { return nil, EINVAL } rsa := (*RawSockaddrAny)(unsafe.Pointer(&b[0])) return anyToSockaddr(rsa) case AF_INET6: if len(b) < SizeofSockaddrInet6 { return nil, EINVAL } rsa := (*RawSockaddrAny)(unsafe.Pointer(&b[0])) return anyToSockaddr(rsa) default: return nil, EINVAL } } const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 9.1K bytes - Viewed (0) -
src/runtime/runtime_linux_test.go
} } // Test that error values are negative. // Use a misaligned pointer to get -EINVAL. func TestMincoreErrorSign(t *testing.T) { var dst byte v := Mincore(unsafe.Add(unsafe.Pointer(new(int32)), 1), 1, &dst) const EINVAL = 0x16 if v != -EINVAL { t.Errorf("mincore = %v, want %v", v, -EINVAL) } } func TestKernelStructSize(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 20:20:01 UTC 2023 - 1.8K bytes - Viewed (0) -
src/runtime/cgo_sigaction.go
systemstack(func() { ret = callCgoSigaction(uintptr(sig), new, old) }) } const EINVAL = 22 if ret == EINVAL { // libc reserves certain signals — normally 32-33 — for pthreads, and // returns EINVAL for sigaction calls on those signals. If we get EINVAL, // fall back to making the syscall directly. sysSigaction(sig, new, old) } } if msanenabled && old != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 3.3K bytes - Viewed (0)