- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 47 for EINVAL (0.08 sec)
-
src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
if tcpStats != nil { return nil, errnoErr(EINVAL) } tcpStats = (*nwmTCPStatsEntry)(unsafe.Pointer(ptr)) case nwmIPStatsIdentifier: case nwmIPGStatsIdentifier: case nwmUDPStatsIdentifier: case nwmICMPGStatsEntry: case nwmICMPTStatsEntry: default: return nil, errnoErr(EINVAL) } } if tcpStats == nil { return nil, errnoErr(EINVAL) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 84.4K bytes - Viewed (0) -
src/net/tcpsock_unix.go
package net import "syscall" // SetKeepAliveConfig configures keep-alive messages sent by the operating system. func (c *TCPConn) SetKeepAliveConfig(config KeepAliveConfig) error { if !c.ok() { return syscall.EINVAL } if err := setKeepAlive(c.fd, config.Enable); err != nil { return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err} } if err := setKeepAliveIdle(c.fd, config.Idle); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 1.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/sysvshm_unix.go
} // SysvShmDetach unmaps the shared memory slice returned from SysvShmAttach. // // It is not safe to use the slice after calling this function. func SysvShmDetach(data []byte) error { if len(data) == 0 { return EINVAL } return shmdt(uintptr(unsafe.Pointer(&data[0]))) } // SysvShmGet returns the Sysv shared memory identifier associated with key. // If the IPC_CREAT flag is specified a new segment is created.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 1.4K bytes - Viewed (0) -
src/syscall/syscall_aix.go
func Utimes(path string, tv []Timeval) error { if len(tv) != 2 { return EINVAL } return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) } //sys utimensat(dirfd int, path string, times *[2]Timespec, flag int) (err error) func UtimesNano(path string, ts []Timespec) error { if len(ts) != 2 { return EINVAL } return utimensat(_AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:50:55 UTC 2024 - 17.9K bytes - Viewed (0) -
src/net/tcpsock_solaris.go
"syscall" ) // SetKeepAliveConfig configures keep-alive messages sent by the operating system. func (c *TCPConn) SetKeepAliveConfig(config KeepAliveConfig) error { if !c.ok() { return syscall.EINVAL } if err := setKeepAlive(c.fd, config.Enable); err != nil { return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err} } if unix.SupportTCPKeepAliveIdleIntvlCNT() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 1.3K bytes - Viewed (0) -
src/internal/syscall/unix/kernel_version_solaris_test.go
s, err := syscall.Socket(syscall.AF_INET, syscall.SOCK_STREAM|syscall.SOCK_NONBLOCK|syscall.SOCK_CLOEXEC, 0) if err == nil { syscall.Close(s) } wantSock := err != syscall.EPROTONOSUPPORT && err != syscall.EINVAL gotSock := unix.SupportSockNonblockCloexec() if wantSock != gotSock { t.Fatalf("SupportSockNonblockCloexec, got %t; want %t", gotSock, wantSock) } // Test that SupportAccept4 returns true if accept4 is available.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:25 UTC 2024 - 2.2K bytes - Viewed (0) -
src/net/net.go
if !c.ok() { return 0, syscall.EINVAL } n, err := c.fd.Read(b) if err != nil && err != io.EOF { err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err} } return n, err } // Write implements the Conn Write method. func (c *conn) Write(b []byte) (int, error) { if !c.ok() { return 0, syscall.EINVAL } n, err := c.fd.Write(b) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 26.8K bytes - Viewed (0) -
src/os/exec_unix_test.go
// being used is extremely unlikely. pid := math.MaxInt32 if runtime.GOOS == "solaris" || runtime.GOOS == "illumos" { // Solaris/Illumos have a lower limit, above which wait returns // EINVAL (see waitid in usr/src/uts/common/os/exit.c in // illumos). This is configurable via sysconf(_SC_MAXPID), but // we'll just take the default. pid = 30000-1 } p, err := FindProcess(pid) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 18:08:44 UTC 2024 - 2K bytes - Viewed (0) -
src/internal/syscall/unix/kernel_version_solaris.go
s, err := syscall.Socket(syscall.AF_INET, syscall.SOCK_STREAM|syscall.SOCK_NONBLOCK|syscall.SOCK_CLOEXEC, 0) if err == nil { syscall.Close(s) return true } if err != syscall.EPROTONOSUPPORT && err != syscall.EINVAL { // Something wrong with socket(), fall back to checking the kernel version. major, minor := KernelVersion() if runtime.GOOS == "illumos" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 3.1K bytes - Viewed (0) -
src/os/exec_unix.go
// // Checking for statusDone here would not be a complete fix, as the PID // could still be waited on and reused prior to blockUntilWaitable. switch p.pidStatus() { case statusReleased: return nil, syscall.EINVAL } // If we can block until Wait4 will succeed immediately, do so. ready, err := p.blockUntilWaitable() if err != nil { return nil, err } if ready {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 4.1K bytes - Viewed (0)