MCPcopy Index your code
hub / github.com/subtrace/subtrace / Errno

Method Errno

cmd/run/socket/socket.go:482–494  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

480}
481
482func (s *Socket) Errno() unix.Errno {
483 if !s.FD.IncRef() {
484 return unix.EBADF
485 }
486 defer s.FD.DecRef()
487
488 switch cur := s.Inode.state.Load(); cur.state {
489 case StatePassive:
490 return cur.passive.errno
491 default:
492 return 0
493 }
494}
495
496func (s *Socket) Listen(backlog int) (syscall.Errno, error) {
497 if !s.FD.IncRef() {

Callers 1

handleGetsockoptMethod · 0.80

Calls 3

IncRefMethod · 0.80
DecRefMethod · 0.80
LoadMethod · 0.80

Tested by

no test coverage detected