Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 216 for EINVAL (0.43 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/net/writev_unix.go

    //go:build unix
    
    package net
    
    import (
    	"runtime"
    	"syscall"
    )
    
    func (c *conn) writeBuffers(v *Buffers) (int64, error) {
    	if !c.ok() {
    		return 0, syscall.EINVAL
    	}
    	n, err := c.fd.writeBuffers(v)
    	if err != nil {
    		return n, &OpError{Op: "writev", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
    	}
    	return n, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 07 16:48:35 UTC 2022
    - 666 bytes
    - Viewed (0)
  3. src/os/file_open_wasip1.go

    //go:build wasip1
    
    package os
    
    import (
    	"internal/poll"
    	"syscall"
    )
    
    func open(filePath string, flag int, perm uint32) (int, poll.SysFile, error) {
    	if filePath == "" {
    		return -1, poll.SysFile{}, syscall.EINVAL
    	}
    	absPath := filePath
    	// os.(*File).Chdir is emulated by setting the working directory to the
    	// absolute path that this file was opened at, which is why we have to
    	// resolve and capture it here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 818 bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/vendor/golang.org/x/sys/plan9/errors_plan9.go

    	S_IFMT   = 0x1f000
    	S_IFIFO  = 0x1000
    	S_IFCHR  = 0x2000
    	S_IFDIR  = 0x4000
    	S_IFBLK  = 0x6000
    	S_IFREG  = 0x8000
    	S_IFLNK  = 0xa000
    	S_IFSOCK = 0xc000
    )
    
    // Errors
    var (
    	EINVAL       = syscall.NewError("bad arg in system call")
    	ENOTDIR      = syscall.NewError("not a directory")
    	EISDIR       = syscall.NewError("file is a directory")
    	ENOENT       = syscall.NewError("file does not exist")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  6. src/syscall/errors_plan9.go

    	S_IFMT   = 0x1f000
    	S_IFIFO  = 0x1000
    	S_IFCHR  = 0x2000
    	S_IFDIR  = 0x4000
    	S_IFBLK  = 0x6000
    	S_IFREG  = 0x8000
    	S_IFLNK  = 0xa000
    	S_IFSOCK = 0xc000
    )
    
    // Errors
    var (
    	EINVAL       = NewError("bad arg in system call")
    	ENOTDIR      = NewError("not a directory")
    	EISDIR       = NewError("file is a directory")
    	ENOENT       = NewError("file does not exist")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 22 13:31:24 UTC 2017
    - 1.6K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top