Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 57 for EINVAL (0.1 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/syscall/syscall_openbsd.go

    			return sysctlMib[idx].ctloid, nil
    		case name > sysctlMib[idx].ctlname:
    			left = idx + 1
    		default:
    			right = idx - 1
    		}
    		if left > right {
    			break
    		}
    	}
    	return nil, EINVAL
    }
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 10:34:00 UTC 2023
    - 7K bytes
    - Viewed (0)
  5. src/internal/syscall/windows/security_windows.go

    	if ret == 0 {
    		// AdjustTokenPrivileges call failed
    		return err
    	}
    	// AdjustTokenPrivileges call succeeded
    	if err == syscall.EINVAL {
    		// GetLastError returned ERROR_SUCCESS
    		return nil
    	}
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 07:21:38 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. src/syscall/syscall_netbsd.go

    				if node.Name[i] != 0 {
    					n = append(n, byte(node.Name[i]))
    				}
    			}
    			if string(n) == part {
    				mib = append(mib, _C_int(node.Num))
    				break
    			}
    		}
    		if len(mib) != partno+1 {
    			return nil, EINVAL
    		}
    	}
    
    	return mib, nil
    }
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  7. 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)
  8. src/syscall/exec_unix.go

    // pointers to NUL-terminated byte arrays. If any string contains
    // a NUL byte, it returns (nil, [EINVAL]).
    func SlicePtrFromStrings(ss []string) ([]*byte, error) {
    	n := 0
    	for _, s := range ss {
    		if bytealg.IndexByteString(s, 0) != -1 {
    			return nil, EINVAL
    		}
    		n += len(s) + 1 // +1 for NUL
    	}
    	bb := make([]*byte, len(ss)+1)
    	b := make([]byte, n)
    	n = 0
    	for i, s := range ss {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. 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)
  10. src/syscall/syscall_dragonfly.go

    func Pipe(p []int) (err error) {
    	if len(p) != 2 {
    		return EINVAL
    	}
    	r, w, err := pipe()
    	if err == nil {
    		p[0], p[1] = r, w
    	}
    	return err
    }
    
    //sysnb	pipe2(p *[2]_C_int, flags int) (r int, w int, err error)
    
    func Pipe2(p []int, flags int) (err error) {
    	if len(p) != 2 {
    		return EINVAL
    	}
    	var pp [2]_C_int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top