- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 667 for minval (0.27 sec)
-
src/os/exec_windows.go
func (p *Process) release() error { // Drop the Process' reference and mark handle unusable for // future calls. // // The API on Windows expects EINVAL if Release is called multiple // times. if old := p.handlePersistentRelease(statusReleased); old == statusReleased { return syscall.EINVAL } // no need for a finalizer anymore runtime.SetFinalizer(p, nil) return nil } func (p *Process) closeHandle() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 5K bytes - Viewed (0) -
src/net/unixsock.go
func (c *UnixConn) SyscallConn() (syscall.RawConn, error) { if !c.ok() { return nil, syscall.EINVAL } return newRawConn(c.fd), nil } // CloseRead shuts down the reading side of the Unix domain connection. // Most callers should just use Close. func (c *UnixConn) CloseRead() error { if !c.ok() { return syscall.EINVAL } if err := c.fd.closeRead(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 10.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix.go
// integer array of open file descriptors from another process. func ParseUnixRights(m *SocketControlMessage) ([]int, error) { if m.Header.Level != SOL_SOCKET { return nil, EINVAL } if m.Header.Type != SCM_RIGHTS { return nil, EINVAL } fds := make([]int, len(m.Data)>>2) for i, j := 0, 0; i < len(m.Data); i += 4 { fds[j] = int(*(*int32)(unsafe.Pointer(&m.Data[i]))) j++ } return fds, nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 3.1K bytes - Viewed (0) -
src/net/fd_plan9.go
if !fd.ok() { return syscall.EINVAL } return syscall.EPLAN9 } func (fd *netFD) closeWrite() error { if !fd.ok() { return syscall.EINVAL } return syscall.EPLAN9 } func (fd *netFD) Close() error { if err := fd.pfd.Close(); err != nil { return err } if !fd.ok() { return syscall.EINVAL } if fd.net == "tcp" { // The following line is required to unblock Reads.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 04 16:01:50 UTC 2018 - 3.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall.go
// location, it returns (nil, EINVAL). func ByteSliceFromString(s string) ([]byte, error) { if strings.IndexByte(s, 0) != -1 { return nil, EINVAL } a := make([]byte, len(s)+1) copy(a, s) return a, nil } // BytePtrFromString returns a pointer to a NUL-terminated array of // bytes containing the text of s. If s contains a NUL byte at any // location, it returns (nil, EINVAL).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.8K bytes - Viewed (0) -
src/syscall/netlink_linux.go
return nil, err } lsanl, ok := lsa.(*SockaddrNetlink) if !ok { return nil, EINVAL } var tab []byte rbNew := pageBufPool.Get().(*[]byte) defer pageBufPool.Put(rbNew) done: for { rb := *rbNew nr, _, err := Recvfrom(s, rb, 0) if err != nil { return nil, err } if nr < NLMSG_HDRLEN { return nil, EINVAL } rb = rb[:nr] tab = append(tab, rb...)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 20:01:34 UTC 2023 - 4.8K bytes - Viewed (0) -
src/runtime/mem_linux.go
// this call can fail with EAGAIN because it's best-effort. // Also, when it returns an error, it's only for the last // huge page in the region requested. // // It can also sometimes return EINVAL if the corresponding // region hasn't been backed by physical memory. This is // difficult to guarantee in general, and it also means // there's no way to distinguish whether this syscall is // actually available. Oops.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 5K bytes - Viewed (0) -
src/syscall/tables_wasip1.go
EFAULT Errno = 21 EFBIG Errno = 22 EHOSTUNREACH Errno = 23 EIDRM Errno = 24 EILSEQ Errno = 25 EINPROGRESS Errno = 26 EINTR Errno = 27 EINVAL Errno = 28 EIO Errno = 29 EISCONN Errno = 30 EISDIR Errno = 31 ELOOP Errno = 32 EMFILE Errno = 33 EMLINK Errno = 34 EMSGSIZE Errno = 35
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 06 20:58:35 UTC 2023 - 6.5K bytes - Viewed (0) -
src/syscall/syscall_linux_arm.go
rl.Cur = rlimInf32 } else if rlim.Cur < uint64(rlimInf32) { rl.Cur = uint32(rlim.Cur) } else { return EINVAL } if rlim.Max == rlimInf64 { rl.Max = rlimInf32 } else if rlim.Max < uint64(rlimInf32) { rl.Max = uint32(rlim.Max) } else { return EINVAL } return setrlimit1(resource, &rl) } //go:nosplit func rawSetrlimit(resource int, rlim *Rlimit) Errno {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 22:23:07 UTC 2023 - 7.1K bytes - Viewed (0) -
src/runtime/runtime_linux_test.go
} } // Test that error values are negative. // Use a misaligned pointer to get -EINVAL. func TestMincoreErrorSign(t *testing.T) { var dst byte v := Mincore(unsafe.Add(unsafe.Pointer(new(int32)), 1), 1, &dst) const EINVAL = 0x16 if v != -EINVAL { t.Errorf("mincore = %v, want %v", v, -EINVAL) } } func TestKernelStructSize(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 20:20:01 UTC 2023 - 1.8K bytes - Viewed (0)