- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for wrapSyscallError (0.77 sec)
-
src/net/error_posix.go
//go:build unix || js || wasip1 || windows package net import ( "os" "syscall" ) // wrapSyscallError takes an error and a syscall name. If the error is // a syscall.Errno, it wraps it in an os.SyscallError using the syscall name. func wrapSyscallError(name string, err error) error { if _, ok := err.(syscall.Errno); ok { err = os.NewSyscallError(name, err) } return err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 543 bytes - Viewed (0) -
src/net/sockoptip_linux.go
runtime.KeepAlive(fd) return wrapSyscallError("setsockopt", err) } func setIPv4MulticastLoopback(fd *netFD, v bool) error { err := fd.pfd.SetsockoptInt(syscall.IPPROTO_IP, syscall.IP_MULTICAST_LOOP, boolint(v)) runtime.KeepAlive(fd) return wrapSyscallError("setsockopt", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 13 18:36:28 UTC 2017 - 735 bytes - Viewed (0) -
src/net/tcpsockopt_posix.go
import ( "runtime" "syscall" ) func setNoDelay(fd *netFD, noDelay bool) error { err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, syscall.TCP_NODELAY, boolint(noDelay)) runtime.KeepAlive(fd) return wrapSyscallError("setsockopt", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 442 bytes - Viewed (0) -
src/net/splice_linux.go
return 0, nil, false } s = v.fd default: return 0, nil, false } written, handled, err = pollSplice(&c.pfd, &s.pfd, remain) if lr != nil { lr.N -= written } return written, wrapSyscallError("splice", err), handled } // spliceTo transfers data from c to w using the splice system call to minimize // copies from and to userspace. c must be a TCP connection.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 1.7K bytes - Viewed (0) -
src/net/writev_unix.go
} return n, nil } func (fd *netFD) writeBuffers(v *Buffers) (n int64, err error) { n, err = fd.pfd.Writev((*[][]byte)(v)) runtime.KeepAlive(fd) return n, wrapSyscallError("writev", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 07 16:48:35 UTC 2022 - 666 bytes - Viewed (0) -
src/net/fd_windows.go
n, err := fd.pfd.Writev((*[][]byte)(buf)) runtime.KeepAlive(fd) return n, wrapSyscallError("wsasend", err) } func (fd *netFD) accept() (*netFD, error) { s, rawsa, rsan, errcall, err := fd.pfd.Accept(func() (syscall.Handle, error) { return sysSocket(fd.family, fd.sotype, 0) }) if err != nil { if errcall != "" { err = wrapSyscallError(errcall, err) } return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 16:46:10 UTC 2024 - 6.2K bytes - Viewed (0) -
src/net/sendfile_linux.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 1.2K bytes - Viewed (0) -
src/net/sendfile_windows.go
return 0, nil, true } } f, ok := r.(*os.File) if !ok { return 0, nil, false } written, err = poll.SendFile(&fd.pfd, syscall.Handle(f.Fd()), n) if err != nil { err = wrapSyscallError("transmitfile", err) } // If any byte was copied, regardless of any error // encountered mid-way, handled must be set to true. handled = written > 0 return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 1.1K bytes - Viewed (0) -
src/net/sendfile_unix_alt.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 2.3K bytes - Viewed (0) -
src/net/fd_unix.go
} runtime.KeepAlive(fd) } } func (fd *netFD) accept() (netfd *netFD, err error) { d, rsa, errcall, err := fd.pfd.Accept() if err != nil { if errcall != "" { err = wrapSyscallError(errcall, err) } return nil, err } if netfd, err = newFD(d, fd.family, fd.sotype, fd.net); err != nil { poll.CloseFunc(d) return nil, err } if err = netfd.init(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 20:19:46 UTC 2023 - 5.4K bytes - Viewed (0)