Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for EINVAL (0.09 sec)

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

    		return utimensat(dirfd, path, nil, flags)
    	}
    	if len(ts) != 2 {
    		return EINVAL
    	}
    	return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags)
    }
    
    func Futimesat(dirfd int, path string, tv []Timeval) error {
    	if tv == nil {
    		return futimesat(dirfd, path, nil)
    	}
    	if len(tv) != 2 {
    		return EINVAL
    	}
    	return futimesat(dirfd, path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  2. 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)
  3. src/syscall/syscall_windows.go

    // s, with a terminating NUL added. If s contains a NUL byte at any
    // location, it returns (nil, [EINVAL]). Unpaired surrogates
    // are encoded using WTF-8.
    func UTF16FromString(s string) ([]uint16, error) {
    	if bytealg.IndexByteString(s, 0) != -1 {
    		return nil, EINVAL
    	}
    	// Valid UTF-8 characters between 1 and 3 bytes require one uint16.
    	// Valid UTF-8 characters of 4 bytes require two uint16.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    }
    
    func Pipe(p []Handle) (err error) {
    	if len(p) != 2 {
    		return syscall.EINVAL
    	}
    	var r, w Handle
    	e := CreatePipe(&r, &w, makeInheritSa(), 0)
    	if e != nil {
    		return e
    	}
    	p[0] = r
    	p[1] = w
    	return nil
    }
    
    func Utimes(path string, tv []Timeval) (err error) {
    	if len(tv) != 2 {
    		return syscall.EINVAL
    	}
    	pathp, e := UTF16PtrFromString(path)
    	if e != nil {
    		return e
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/windows/security_windows.go

    // IsRestricted reports whether the access token t is a restricted token.
    func (t Token) IsRestricted() (isRestricted bool, err error) {
    	isRestricted, err = isTokenRestricted(t)
    	if !isRestricted && err == syscall.EINVAL {
    		// If err is EINVAL, this returned ERROR_SUCCESS indicating a non-restricted token.
    		err = nil
    	}
    	return
    }
    
    const (
    	WTS_CONSOLE_CONNECT        = 0x1
    	WTS_CONSOLE_DISCONNECT     = 0x2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  6. src/syscall/zerrors_solaris_amd64.go

    	EHOSTDOWN       = Errno(0x93)
    	EHOSTUNREACH    = Errno(0x94)
    	EIDRM           = Errno(0x24)
    	EILSEQ          = Errno(0x58)
    	EINPROGRESS     = Errno(0x96)
    	EINTR           = Errno(0x4)
    	EINVAL          = Errno(0x16)
    	EIO             = Errno(0x5)
    	EISCONN         = Errno(0x85)
    	EISDIR          = Errno(0x15)
    	EL2HLT          = Errno(0x2c)
    	EL2NSYNC        = Errno(0x26)
    	EL3HLT          = Errno(0x27)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 50.8K bytes
    - Viewed (0)
  7. src/syscall/zsyscall_windows.go

    // Do the interface allocations only once for common
    // Errno values.
    const (
    	errnoERROR_IO_PENDING = 997
    )
    
    var (
    	errERROR_IO_PENDING error = Errno(errnoERROR_IO_PENDING)
    	errERROR_EINVAL     error = EINVAL
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    func errnoErr(e Errno) error {
    	switch e {
    	case 0:
    		return errERROR_EINVAL
    	case errnoERROR_IO_PENDING:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 56.3K bytes
    - Viewed (0)
  8. src/os/os_test.go

    		{0, io.SeekCurrent, 2<<32 - 1},
    	}
    	for i, tt := range tests {
    		off, err := f.Seek(tt.in, tt.whence)
    		if off != tt.out || err != nil {
    			if e, ok := err.(*PathError); ok && e.Err == syscall.EINVAL && tt.out > 1<<32 && runtime.GOOS == "linux" {
    				mounts, _ := ReadFile("/proc/mounts")
    				if strings.Contains(string(mounts), "reiserfs") {
    					// Reiserfs rejects the big seeks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
Back to top