Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 667 for minval (0.65 sec)

  1. 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)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_bsd.go

    		return nil, 0, EINVAL
    	}
    	sa.raw.Len = byte(3 + n) // 2 for Family, Len; 1 for NUL
    	sa.raw.Family = AF_UNIX
    	for i := 0; i < n; i++ {
    		sa.raw.Path[i] = int8(name[i])
    	}
    	return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil
    }
    
    func (sa *SockaddrDatalink) sockaddr() (unsafe.Pointer, _Socklen, error) {
    	if sa.Index == 0 {
    		return nil, 0, EINVAL
    	}
    	sa.raw.Len = sa.Len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 15K bytes
    - Viewed (0)
  3. src/internal/poll/sendfile_bsd.go

    		if n > 0 {
    			pos += int64(n)
    			written += int64(n)
    			remain -= int64(n)
    		}
    		if err == syscall.EINTR {
    			continue
    		}
    		// 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.
    		if err != syscall.EAGAIN {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/syscall/fs_wasip1.go

    func Stat(path string, st *Stat_t) error {
    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	errno := path_filestat_get(dirFd, LOOKUP_SYMLINK_FOLLOW, pathPtr, pathLen, unsafe.Pointer(st))
    	setDefaultMode(st)
    	return errnoErr(errno)
    }
    
    func Lstat(path string, st *Stat_t) error {
    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K 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/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)
  7. src/syscall/exec_windows.go

    // Last bytes are two UCS-2 NULs, or four NUL bytes.
    // If any string contains a NUL, it returns (nil, EINVAL).
    func createEnvBlock(envv []string) ([]uint16, error) {
    	if len(envv) == 0 {
    		return utf16.Encode([]rune("\x00\x00")), nil
    	}
    	var length int
    	for _, s := range envv {
    		if bytealg.IndexByteString(s, 0) != -1 {
    			return nil, EINVAL
    		}
    		length += len(s) + 1
    	}
    	length += 1
    
    	b := make([]uint16, 0, length)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 18:29:48 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  8. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/SearchUtil.java

                    int low = 0;
                    int high = size - 1;
    
                    while (low <= high) {
                        int mid = (low + high) >>> 1;
                        T midVal = sortedElements.get(mid);
                        int cmp = key.compareTo(midVal);
    
                        if (cmp > 0) {
                            low = mid + 1;
                        } else if (cmp < 0) {
                            high = mid - 1;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/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 Nov 29 21:28:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  10. 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)
Back to top