- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for SockaddrUnix (0.22 sec)
-
test/fixedbugs/bug467.dir/p1.go
package p1 type SockaddrUnix int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 01 18:06:52 UTC 2012 - 90 bytes - Viewed (0) -
test/fixedbugs/bug467.dir/p2.go
package p2 import "./p1"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 01 18:06:52 UTC 2012 - 86 bytes - Viewed (0) -
src/net/unixsock_posix.go
if s, ok := sa.(*syscall.SockaddrUnix); ok { return &UnixAddr{Name: s.Name, Net: "unix"} } return nil } func sockaddrToUnixgram(sa syscall.Sockaddr) Addr { if s, ok := sa.(*syscall.SockaddrUnix); ok { return &UnixAddr{Name: s.Name, Net: "unixgram"} } return nil } func sockaddrToUnixpacket(sa syscall.Sockaddr) Addr { if s, ok := sa.(*syscall.SockaddrUnix); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 6.6K bytes - Viewed (0) -
src/syscall/net_fake.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 883 bytes - Viewed (0) -
src/net/unixsock_linux_test.go
go func() { defer func() { off <- true }() s, err := syscall.Socket(syscall.AF_UNIX, syscall.SOCK_DGRAM, 0) if err != nil { t.Error(err) return } defer syscall.Close(s) rsa := &syscall.SockaddrUnix{Name: addr} if err := syscall.Sendto(s, data[:], 0, rsa); err != nil { t.Error(err) return } }() <-off b := make([]byte, 64) c.SetReadDeadline(time.Now().Add(100 * time.Millisecond))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 28 03:00:34 UTC 2017 - 2.3K bytes - Viewed (0) -
src/net/file_unix.go
rsa, _ := syscall.Getpeername(s) switch lsa.(type) { case *syscall.SockaddrInet4: family = syscall.AF_INET case *syscall.SockaddrInet6: family = syscall.AF_INET6 case *syscall.SockaddrUnix: family = syscall.AF_UNIX default: poll.CloseFunc(s) return nil, syscall.EPROTONOSUPPORT } fd, err := newFD(s, family, sotype, "") if err != nil { poll.CloseFunc(s) return nil, err }
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/syscall_bsd.go
p[0] = byte(sa.Port >> 8) p[1] = byte(sa.Port) sa.raw.Scope_id = sa.ZoneId sa.raw.Addr = sa.Addr return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil } func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { name := sa.Name n := len(name) if n >= len(sa.raw.Path) || n == 0 { return nil, 0, EINVAL } sa.raw.Len = byte(3 + n) // 2 for Family, Len; 1 for NUL
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 10:34:48 UTC 2023 - 13.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_bsd.go
p[0] = byte(sa.Port >> 8) p[1] = byte(sa.Port) sa.raw.Scope_id = sa.ZoneId sa.raw.Addr = sa.Addr return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil } func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { name := sa.Name n := len(name) if n >= len(sa.raw.Path) || n == 0 { return nil, 0, EINVAL } sa.raw.Len = byte(3 + n) // 2 for Family, Len; 1 for NUL
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 21:28:33 UTC 2023 - 15K bytes - Viewed (0) -
src/syscall/syscall_aix.go
sa.raw.Addr = sa.Addr return unsafe.Pointer(&sa.raw), SizeofSockaddrInet6, nil } func (sa *RawSockaddrUnix) setLen(n int) { sa.Len = uint8(3 + n) // 2 for Family, Len; 1 for NUL. } func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { name := sa.Name n := len(name) if n > len(sa.raw.Path) { return nil, 0, EINVAL } sa.raw.Family = AF_UNIX sa.raw.setLen(n)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:50:55 UTC 2024 - 17.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_unix.go
type SockaddrInet6 struct { Port int ZoneId uint32 Addr [16]byte raw RawSockaddrInet6 } // SockaddrUnix implements the Sockaddr interface for AF_UNIX type sockets. type SockaddrUnix struct { Name string raw RawSockaddrUnix } func Bind(fd int, sa Sockaddr) (err error) { ptr, n, err := sa.sockaddr() if err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 16.5K bytes - Viewed (0)