Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for EINVAL (0.14 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/syscall.go

    // location, it returns (nil, EINVAL).
    func ByteSliceFromString(s string) ([]byte, error) {
    	if strings.IndexByte(s, 0) != -1 {
    		return nil, EINVAL
    	}
    	a := make([]byte, len(s)+1)
    	copy(a, s)
    	return a, nil
    }
    
    // BytePtrFromString returns a pointer to a NUL-terminated array of
    // bytes containing the text of s. If s contains a NUL byte at any
    // location, it returns (nil, EINVAL).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/mremap.go

    	if newLength <= 0 || len(oldData) == 0 || len(oldData) != cap(oldData) || flags&mremapFixed != 0 {
    		return nil, EINVAL
    	}
    
    	pOld := &oldData[cap(oldData)-1]
    	m.Lock()
    	defer m.Unlock()
    	bOld := m.active[pOld]
    	if bOld == nil || &bOld[0] != &oldData[0] {
    		return nil, EINVAL
    	}
    	newAddr, errno := m.mremap(uintptr(unsafe.Pointer(&bOld[0])), uintptr(len(bOld)), uintptr(newLength), flags, 0)
    	if errno != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/syscall/syscall_linux_arm.go

    		rl.Cur = rlimInf32
    	} else if rlim.Cur < uint64(rlimInf32) {
    		rl.Cur = uint32(rlim.Cur)
    	} else {
    		return EINVAL
    	}
    	if rlim.Max == rlimInf64 {
    		rl.Max = rlimInf32
    	} else if rlim.Max < uint64(rlimInf32) {
    		rl.Max = uint32(rlim.Max)
    	} else {
    		return EINVAL
    	}
    
    	return setrlimit1(resource, &rl)
    }
    
    //go:nosplit
    func rawSetrlimit(resource int, rlim *Rlimit) Errno {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. src/internal/poll/sendfile_linux.go

    		if n > 0 {
    			written += int64(n)
    			remain -= int64(n)
    			continue
    		} else if err != syscall.EAGAIN && err != syscall.EINTR {
    			// This includes syscall.ENOSYS (no kernel
    			// support) and syscall.EINVAL (fd types which
    			// don't implement sendfile), and other errors.
    			// We should end the loop when there is no error
    			// returned from sendfile(2) or it is not a retryable error.
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_zos.go

    // SO_PASSCRED option must be enabled on the socket.
    func ParseUnixCredentials(m *SocketControlMessage) (*Ucred, error) {
    	if m.Header.Level != SOL_SOCKET {
    		return nil, EINVAL
    	}
    	if m.Header.Type != SCM_CREDENTIALS {
    		return nil, EINVAL
    	}
    	ucred := *(*Ucred)(unsafe.Pointer(&m.Data[0]))
    	return &ucred, nil
    }
    
    // PktInfo4 encodes Inet4Pktinfo into a socket control message of type IP_PKTINFO.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. src/syscall/syscall_linux_mipsx.go

    		rl.Cur = rlimInf32
    	} else if rlim.Cur < uint64(rlimInf32) {
    		rl.Cur = uint32(rlim.Cur)
    	} else {
    		return EINVAL
    	}
    	if rlim.Max == rlimInf64 {
    		rl.Max = rlimInf32
    	} else if rlim.Max < uint64(rlimInf32) {
    		rl.Max = uint32(rlim.Max)
    	} else {
    		return EINVAL
    	}
    
    	return setrlimit1(resource, &rl)
    }
    
    //go:nosplit
    func rawSetrlimit(resource int, rlim *Rlimit) Errno {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/plan9/syscall.go

    // location, it returns (nil, EINVAL).
    func ByteSliceFromString(s string) ([]byte, error) {
    	if strings.IndexByte(s, 0) != -1 {
    		return nil, EINVAL
    	}
    	a := make([]byte, len(s)+1)
    	copy(a, s)
    	return a, nil
    }
    
    // BytePtrFromString returns a pointer to a NUL-terminated array of
    // bytes containing the text of s. If s contains a NUL byte at any
    // location, it returns (nil, EINVAL).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/syscall.go

    )
    
    // ByteSliceFromString returns a NUL-terminated slice of bytes
    // containing the text of s. If s contains a NUL byte at any
    // location, it returns (nil, syscall.EINVAL).
    func ByteSliceFromString(s string) ([]byte, error) {
    	if strings.IndexByte(s, 0) != -1 {
    		return nil, syscall.EINVAL
    	}
    	a := make([]byte, len(s)+1)
    	copy(a, s)
    	return a, nil
    }
    
    // BytePtrFromString returns a pointer to a NUL-terminated array of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. src/os/exec_test.go

    	}
    	if err := p.Release(); err != nil {
    		t.Fatalf("first Release: got err %v, want nil", err)
    	}
    
    	err = p.Release()
    
    	// We want EINVAL from a second Release call only on Windows.
    	var want error
    	if runtime.GOOS == "windows" {
    		want = syscall.EINVAL
    	}
    
    	if err != want {
    		t.Fatalf("second Release: got err %v, want %v", err, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. src/internal/poll/sendfile_solaris.go

    			pos += int64(n)
    			written += int64(n)
    			remain -= int64(n)
    			continue
    		} else if err != syscall.EAGAIN && err != syscall.EINTR {
    			// This includes syscall.ENOSYS (no kernel
    			// support) and syscall.EINVAL (fd types which
    			// don't implement sendfile), and other errors.
    			// We should end the loop when there is no error
    			// returned from sendfile(2) or it is not a retryable error.
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top