Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 92 for AF_UNIX (0.59 sec)

  1. src/syscall/syscall_solaris.go

    }
    
    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
    	for i := 0; i < n; i++ {
    		sa.raw.Path[i] = int8(name[i])
    	}
    	// length is family (uint16), name, NUL.
    	sl := _Socklen(2)
    	if n > 0 {
    		sl += _Socklen(n) + 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. src/net/unixsock_test.go

    	}
    	defer func() {
    		c.Close()
    		os.Remove(addr)
    	}()
    
    	off := make(chan bool)
    	data := [5]byte{1, 2, 3, 4, 5}
    	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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. src/syscall/types_windows.go

    	StandardDate Systemtime
    	StandardBias int32
    	DaylightName [32]uint16
    	DaylightDate Systemtime
    	DaylightBias int32
    }
    
    // Socket related.
    
    const (
    	AF_UNSPEC  = 0
    	AF_UNIX    = 1
    	AF_INET    = 2
    	AF_INET6   = 23
    	AF_NETBIOS = 17
    
    	SOCK_STREAM    = 1
    	SOCK_DGRAM     = 2
    	SOCK_RAW       = 3
    	SOCK_SEQPACKET = 5
    
    	IPPROTO_IP   = 0
    	IPPROTO_IPV6 = 0x29
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris.go

    }
    
    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
    	for i := 0; i < n; i++ {
    		sa.raw.Path[i] = int8(name[i])
    	}
    	// length is family (uint16), name, NUL.
    	sl := _Socklen(2)
    	if n > 0 {
    		sl += _Socklen(n) + 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 31.1K bytes
    - Viewed (0)
  5. 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)
  6. src/syscall/syscall_linux.go

    	name := sa.Name
    	n := len(name)
    	if n > len(sa.raw.Path) {
    		return nil, 0, EINVAL
    	}
    	if n == len(sa.raw.Path) && name[0] != '@' {
    		return nil, 0, EINVAL
    	}
    	sa.raw.Family = AF_UNIX
    	for i := 0; i < n; i++ {
    		sa.raw.Path[i] = int8(name[i])
    	}
    	// length is family (uint16), name, NUL.
    	sl := _Socklen(2)
    	if n > 0 {
    		sl += _Socklen(n) + 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh

    #include <sys/protosw.h>
    #include <sys/stropts.h>
    #include <sys/mman.h>
    #include <sys/poll.h>
    #include <sys/select.h>
    #include <sys/termio.h>
    #include <termios.h>
    #include <fcntl.h>
    
    #define AF_LOCAL AF_UNIX
    '
    
    includes_Darwin='
    #define _DARWIN_C_SOURCE
    #define KERNEL 1
    #define _DARWIN_USE_64_BIT_INODE
    #define __APPLE_USE_RFC_3542
    #include <stdint.h>
    #include <sys/attr.h>
    #include <sys/clonefile.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  8. src/syscall/zerrors_darwin_arm64.go

    	AF_RESERVED_36                    = 0x24
    	AF_ROUTE                          = 0x11
    	AF_SIP                            = 0x18
    	AF_SNA                            = 0xb
    	AF_SYSTEM                         = 0x20
    	AF_UNIX                           = 0x1
    	AF_UNSPEC                         = 0x0
    	AF_UTUN                           = 0x26
    	B0                                = 0x0
    	B110                              = 0x6e
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 55.8K bytes
    - Viewed (0)
  9. src/syscall/zerrors_aix_ppc64.go

    	AF_OSI                        = 0x7
    	AF_PUP                        = 0x4
    	AF_RIF                        = 0x15
    	AF_ROUTE                      = 0x11
    	AF_SNA                        = 0xb
    	AF_UNIX                       = 0x1
    	AF_UNSPEC                     = 0x0
    	ARPHRD_802_3                  = 0x6
    	ARPHRD_802_5                  = 0x6
    	ARPHRD_ETHER                  = 0x1
    	ARPHRD_FDDI                   = 0x1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 16:18:12 UTC 2019
    - 47.2K bytes
    - Viewed (0)
  10. src/syscall/zerrors_solaris_amd64.go

    	AF_POLICY                     = 0x1d
    	AF_PUP                        = 0x4
    	AF_ROUTE                      = 0x18
    	AF_SNA                        = 0xb
    	AF_TRILL                      = 0x1f
    	AF_UNIX                       = 0x1
    	AF_UNSPEC                     = 0x0
    	AF_X25                        = 0x14
    	ARPHRD_ARCNET                 = 0x7
    	ARPHRD_ATM                    = 0x10
    	ARPHRD_AX25                   = 0x3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 50.8K bytes
    - Viewed (0)
Back to top