Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for errnoErr (0.12 sec)

  1. src/internal/poll/errno_unix.go

    // Errno values.
    var (
    	errEAGAIN error = syscall.EAGAIN
    	errEINVAL error = syscall.EINVAL
    	errENOENT error = syscall.ENOENT
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    func errnoErr(e syscall.Errno) error {
    	switch e {
    	case 0:
    		return nil
    	case syscall.EAGAIN:
    		return errEAGAIN
    	case syscall.EINVAL:
    		return errEINVAL
    	case syscall.ENOENT:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:12:40 UTC 2023
    - 696 bytes
    - Viewed (0)
  2. src/internal/poll/errno_windows.go

    // Do the interface allocations only once for common
    // Errno values.
    
    var (
    	errERROR_IO_PENDING error = syscall.Errno(syscall.ERROR_IO_PENDING)
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    func errnoErr(e syscall.Errno) error {
    	switch e {
    	case 0:
    		return nil
    	case syscall.ERROR_IO_PENDING:
    		return errERROR_IO_PENDING
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 725 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go

    	if len(iovs) > 0 {
    		_p0 = &iovs[0]
    	}
    	r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
    	n = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func preadv(fd int, iovs []Iovec, off int64) (n int, err error) {
    	var _p0 *Iovec
    	if len(iovs) > 0 {
    		_p0 = &iovs[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. src/syscall/net_wasip1.go

    }
    
    func Listen(fd int, backlog int) error {
    	return ENOSYS
    }
    
    func Accept(fd int) (int, Sockaddr, error) {
    	var newfd int32
    	errno := sock_accept(int32(fd), 0, unsafe.Pointer(&newfd))
    	return int(newfd), nil, errnoErr(errno)
    }
    
    func Connect(fd int, sa Sockaddr) error {
    	return ENOSYS
    }
    
    func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
    	return 0, nil, ENOSYS
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:12:41 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. src/internal/syscall/windows/registry/zsyscall_windows.go

    const (
    	errnoERROR_IO_PENDING = 997
    )
    
    var (
    	errERROR_IO_PENDING error = syscall.Errno(errnoERROR_IO_PENDING)
    	errERROR_EINVAL     error = syscall.EINVAL
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    func errnoErr(e syscall.Errno) error {
    	switch e {
    	case 0:
    		return errERROR_EINVAL
    	case errnoERROR_IO_PENDING:
    		return errERROR_IO_PENDING
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 02 15:41:00 UTC 2020
    - 4K bytes
    - Viewed (0)
  6. src/syscall/flock_aix.go

    func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) (err error) {
    	_, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_fcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(unsafe.Pointer(lk)), 0, 0, 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 570 bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go

    	if e != 0 {
    		err = errnoErr(e)
    	}
    	return
    }
    
    func Statfs(path string, buf *Statfs_t) (err error) {
    	p, err := BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    	_, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(p)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
    	if e != 0 {
    		err = errnoErr(e)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  8. src/syscall/tables_wasip1.go

    }
    
    // Do the interface allocations only once for common
    // Errno values.
    var (
    	errEAGAIN error = EAGAIN
    	errEINVAL error = EINVAL
    	errENOENT error = ENOENT
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    //
    // We set both noinline and nosplit to reduce code size, this function has many
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 20:58:35 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux_mipsx.go

    	if e != 0 {
    		err = errnoErr(e)
    	}
    	return
    }
    
    func Statfs(path string, buf *Statfs_t) (err error) {
    	p, err := BytePtrFromString(path)
    	if err != nil {
    		return err
    	}
    	_, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(p)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
    	if e != 0 {
    		err = errnoErr(e)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/affinity_linux.go

    type CPUSet [cpuSetSize]cpuMask
    
    func schedAffinity(trap uintptr, pid int, set *CPUSet) error {
    	_, _, e := RawSyscall(trap, uintptr(pid), uintptr(unsafe.Sizeof(*set)), uintptr(unsafe.Pointer(set)))
    	if e != 0 {
    		return errnoErr(e)
    	}
    	return nil
    }
    
    // SchedGetaffinity gets the CPU affinity mask of the thread specified by pid.
    // If pid is 0 the calling thread is used.
    func SchedGetaffinity(pid int, set *CPUSet) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 21:26:10 UTC 2020
    - 1.9K bytes
    - Viewed (0)
Back to top