Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 32 of 32 for EINVAL (0.07 sec)

  1. 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 (1)
  2. 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