Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 106 for errnoErr2 (0.14 sec)

  1. src/syscall/syscall_unix.go

    // Errno values.
    var (
    	errEAGAIN error = EAGAIN
    	errEINVAL error = EINVAL
    	errENOENT error = ENOENT
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    func errnoErr(e Errno) error {
    	switch e {
    	case 0:
    		return nil
    	case EAGAIN:
    		return errEAGAIN
    	case EINVAL:
    		return errEINVAL
    	case ENOENT:
    		return errENOENT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. src/internal/syscall/windows/syscall_windows.go

    	if r1 == socket_error {
    		if e1 != 0 {
    			err = errnoErr(e1)
    		} else {
    			err = syscall.EINVAL
    		}
    	}
    	return err
    }
    
    func WSARecvMsg(fd syscall.Handle, msg *WSAMsg, bytesReceived *uint32, overlapped *syscall.Overlapped, croutine *byte) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. src/internal/poll/fd_poll_runtime.go

    	runtimeCtx uintptr
    }
    
    var serverInit sync.Once
    
    func (pd *pollDesc) init(fd *FD) error {
    	serverInit.Do(runtime_pollServerInit)
    	ctx, errno := runtime_pollOpen(uintptr(fd.Sysfd))
    	if errno != 0 {
    		return errnoErr(syscall.Errno(errno))
    	}
    	pd.runtimeCtx = ctx
    	return nil
    }
    
    func (pd *pollDesc) close() {
    	if pd.runtimeCtx == 0 {
    		return
    	}
    	runtime_pollClose(pd.runtimeCtx)
    	pd.runtimeCtx = 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:59 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/syscall/tables_js.go

    // Errno values.
    var (
    	errEAGAIN error = EAGAIN
    	errEINVAL error = EINVAL
    	errENOENT error = ENOENT
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    func errnoErr(e Errno) error {
    	switch e {
    	case 0:
    		return nil
    	case EAGAIN:
    		return errEAGAIN
    	case EINVAL:
    		return errEINVAL
    	case ENOENT:
    		return errENOENT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 19.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_arm.go

    	_, _, e1 := Syscall6(SYS_ARM_FADVISE64_64, uintptr(fd), uintptr(advice), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32))
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    //sys	mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error)
    
    func Fstatfs(fd int, buf *Statfs_t) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go

    	_, _, e1 := Syscall6(SYS_FADVISE64_64, uintptr(fd), uintptr(advice), uintptr(offset>>32), uintptr(offset), uintptr(length>>32), uintptr(length))
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
    	var newoffset int64
    	offsetLow := uint32(offset & 0xffffffff)
    	offsetHigh := uint32((offset >> 32) & 0xffffffff)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  7. src/syscall/mksyscall_libc.pl

    		$text .= "\t$call\n";
    	} else {
    		$text .= "\t$ret[0], $ret[1], $ret[2] := $call\n";
    	}
    	$text .= $body;
    
    	if ($do_errno) {
    		$text .= "\tif e1 != 0 {\n";
    		$text .= "\t\terr = errnoErr(e1)\n";
    		$text .= "\t}\n";
    	}
    	$text .= "\treturn\n";
    	$text .= "}\n";
    }
    
    if($errors) {
    	exit 1;
    }
    
    # TODO: this assumes tags are just simply comma separated. For now this is all the uses.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 11:28:51 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_unix.go

    	errEINVAL error = syscall.EINVAL
    	errENOENT error = syscall.ENOENT
    )
    
    var (
    	signalNameMapOnce sync.Once
    	signalNameMap     map[string]syscall.Signal
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    func errnoErr(e syscall.Errno) error {
    	switch e {
    	case 0:
    		return nil
    	case EAGAIN:
    		return errEAGAIN
    	case EINVAL:
    		return errEINVAL
    	case ENOENT:
    		return errENOENT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go

    	mmap_args := [6]uintptr{addr, length, uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)}
    	r0, _, e1 := Syscall(SYS_MMAP, uintptr(unsafe.Pointer(&mmap_args[0])), 0, 0)
    	xaddr = uintptr(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // On s390x Linux, all the socket calls go through an extra indirection.
    // The arguments to the underlying system call (SYS_SOCKETCALL) are the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  10. src/syscall/syscall_wasip1.go

    	if err != nil {
    		return err
    	}
    	if nonblocking {
    		flags |= FDFLAG_NONBLOCK
    	} else {
    		flags &^= FDFLAG_NONBLOCK
    	}
    	errno := fd_fdstat_set_flags(int32(fd), flags)
    	return errnoErr(errno)
    }
    
    type Rlimit struct {
    	Cur uint64
    	Max uint64
    }
    
    const (
    	RLIMIT_NOFILE = iota
    )
    
    func Getrlimit(which int, lim *Rlimit) error {
    	return ENOSYS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top