Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 91 for EINVAL (0.44 sec)

  1. src/syscall/syscall_linux.go

    }
    
    func Utimes(path string, tv []Timeval) (err 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) (err 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 May 22 20:12:46 UTC 2024
    - 35.7K 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/internal/poll/copy_file_range_linux.go

    			return 0, false, nil
    		case syscall.EXDEV, syscall.EINVAL, syscall.EIO, syscall.EOPNOTSUPP, syscall.EPERM:
    			// Prior to Linux 5.3, it was not possible to
    			// copy_file_range across file systems. Similarly to
    			// the ENOSYS case above, if we see EXDEV, we have
    			// not transferred any data, and we can let the caller
    			// fall back to generic code.
    			//
    			// As for EINVAL, that is what we see if, for example,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 17:40:10 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/internal/poll/splice_linux.go

    		max := maxSpliceSize
    		if int64(max) > remain {
    			max = int(remain)
    		}
    		inPipe, err = spliceDrain(p.wfd, src, max)
    		// The operation is considered handled if splice returns no
    		// error, or an error other than EINVAL. An EINVAL means the
    		// kernel does not support splice for the socket type of src.
    		// The failed syscall does not consume any data so it is safe
    		// to fall back to a generic copy.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/net/tcpsock_unix.go

    package net
    
    import "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 err := setKeepAliveIdle(c.fd, config.Idle); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. src/syscall/syscall_unix.go

    	return b, nil
    }
    
    func (m *mmapper) Munmap(data []byte) (err error) {
    	if len(data) == 0 || len(data) != cap(data) {
    		return EINVAL
    	}
    
    	// Find the base of the mapping.
    	p := &data[cap(data)-1]
    	m.Lock()
    	defer m.Unlock()
    	b := m.active[p]
    	if b == nil || &b[0] != &data[0] {
    		return EINVAL
    	}
    
    	// Unmap the memory and update m.
    	if errno := m.munmap(uintptr(unsafe.Pointer(&b[0])), uintptr(len(b))); errno != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/sysvshm_unix.go

    }
    
    // SysvShmDetach unmaps the shared memory slice returned from SysvShmAttach.
    //
    // It is not safe to use the slice after calling this function.
    func SysvShmDetach(data []byte) error {
    	if len(data) == 0 {
    		return EINVAL
    	}
    
    	return shmdt(uintptr(unsafe.Pointer(&data[0])))
    }
    
    // SysvShmGet returns the Sysv shared memory identifier associated with key.
    // If the IPC_CREAT flag is specified a new segment is created.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. src/syscall/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 May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. src/net/tcpsock_windows.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}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:35 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. 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)
Back to top