- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 667 for minval (0.14 sec)
-
src/runtime/syscall_aix.go
// The best way is to return EINVAL and let Golang handles its failure // If the syscall can't fail, this function can redirect it to a real syscall. // // This is exported via linkname to assembly in the syscall package. // //go:nosplit //go:linkname syscall_Syscall func syscall_Syscall(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) { return 0, 0, _EINVAL }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 6.3K bytes - Viewed (0) -
src/net/tcpsock.go
func (c *TCPConn) SyscallConn() (syscall.RawConn, error) { if !c.ok() { return nil, syscall.EINVAL } return newRawConn(c.fd), nil } // ReadFrom implements the [io.ReaderFrom] ReadFrom method. func (c *TCPConn) ReadFrom(r io.Reader) (int64, error) { if !c.ok() { return 0, syscall.EINVAL } n, err := c.readFrom(r) if err != nil && err != io.EOF {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 13.7K bytes - Viewed (0) -
src/net/iprawsock.go
func (c *IPConn) SyscallConn() (syscall.RawConn, error) { if !c.ok() { return nil, syscall.EINVAL } return newRawConn(c.fd), nil } // ReadFromIP acts like ReadFrom but returns an IPAddr. func (c *IPConn) ReadFromIP(b []byte) (int, *IPAddr, error) { if !c.ok() { return 0, nil, syscall.EINVAL } n, addr, err := c.readFrom(b) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 7.1K bytes - Viewed (0) -
src/net/net_fake.go
return os.NewSyscallError("setReadBuffer", syscall.EINVAL) } ffd.queue.setReadBuffer(bytes) return nil } func (ffd *fakeNetFD) setWriteBuffer(bytes int) error { return os.NewSyscallError("setWriteBuffer", syscall.ENOTSUP) } func (ffd *fakeNetFD) setLinger(sec int) error { if sec < 0 || ffd.peer == nil { return os.NewSyscallError("setLinger", syscall.EINVAL) } ffd.peer.queue.setLinger(sec > 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 19:24:21 UTC 2024 - 26.4K bytes - Viewed (0) -
src/cmd/link/internal/ld/outbuf_freebsd.go
"syscall" ) func (out *OutBuf) fallocate(size uint64) error { err := unix.PosixFallocate(int(out.f.Fd()), 0, int64(size)) // ZFS on FreeBSD does not support posix_fallocate and returns EINVAL in that case. if err == syscall.EINVAL { return errNoFallocate } return err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 05 14:17:36 UTC 2023 - 515 bytes - Viewed (0) -
src/runtime/race/testdata/finalizer_test.go
} var finVar struct { sync.Mutex cnt int } func TestNoRaceFinGlobal(t *testing.T) { c := make(chan bool) go func() { x := new(string) runtime.SetFinalizer(x, func(x *string) { finVar.Lock() finVar.cnt++ finVar.Unlock() }) c <- true }() <-c runtime.GC() time.Sleep(100 * time.Millisecond) finVar.Lock() finVar.cnt++ finVar.Unlock() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 03 22:09:38 UTC 2017 - 1K bytes - Viewed (0) -
src/net/file_unix.go
} fd.Close() return nil, syscall.EINVAL } func fileListener(f *os.File) (Listener, error) { fd, err := newFileFD(f) if err != nil { return nil, err } switch laddr := fd.laddr.(type) { case *TCPAddr: return &TCPListener{fd: fd}, nil case *UnixAddr: return &UnixListener{fd: fd, path: laddr.Name, unlink: false}, nil } fd.Close() return nil, syscall.EINVAL }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 2.5K bytes - Viewed (0) -
src/syscall/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: Mon Feb 26 21:03:59 UTC 2024 - 2.5K bytes - Viewed (0) -
src/go/constant/value.go
func (ratVal) implementsValue() {} func (intVal) implementsValue() {} func (floatVal) implementsValue() {} func (complexVal) implementsValue() {} func newInt() *big.Int { return new(big.Int) } func newRat() *big.Rat { return new(big.Rat) } func newFloat() *big.Float { return new(big.Float).SetPrec(prec) } func i64toi(x int64Val) intVal { return intVal{newInt().SetInt64(int64(x))} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
src/net/udpsock.go
if !c.ok() { return 0, syscall.EINVAL } n, err := c.writeToAddrPort(b, addr) if err != nil { err = &OpError{Op: "write", Net: c.fd.net, Source: c.fd.laddr, Addr: addrPortUDPAddr{addr}, Err: err} } return n, err } // WriteTo implements the PacketConn WriteTo method. func (c *UDPConn) WriteTo(b []byte, addr Addr) (int, error) { if !c.ok() { return 0, syscall.EINVAL } a, ok := addr.(*UDPAddr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 16:58:25 UTC 2023 - 11.8K bytes - Viewed (0)