Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for CmsgLen (0.14 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_zos.go

    // authentication.
    func UnixCredentials(ucred *Ucred) []byte {
    	b := make([]byte, CmsgSpace(SizeofUcred))
    	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
    	h.Level = SOL_SOCKET
    	h.Type = SCM_CREDENTIALS
    	h.SetLen(CmsgLen(SizeofUcred))
    	*(*Ucred)(h.data(0)) = *ucred
    	return b
    }
    
    // ParseUnixCredentials decodes a socket control message that contains
    // credentials in a Ucred structure. To receive such a message, the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. src/syscall/sockcmsg_unix.go

    //go:build unix
    
    // Socket control messages
    
    package syscall
    
    import (
    	"unsafe"
    )
    
    // CmsgLen returns the value to store in the Len field of the [Cmsghdr]
    // structure, taking into account any necessary alignment.
    func CmsgLen(datalen int) int {
    	return cmsgAlignOf(SizeofCmsghdr) + datalen
    }
    
    // CmsgSpace returns the number of bytes an ancillary element with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix.go

    // Socket control messages
    
    package unix
    
    import (
    	"unsafe"
    )
    
    // CmsgLen returns the value to store in the Len field of the Cmsghdr
    // structure, taking into account any necessary alignment.
    func CmsgLen(datalen int) int {
    	return cmsgAlignOf(SizeofCmsghdr) + datalen
    }
    
    // CmsgSpace returns the number of bytes an ancillary element with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go

    	SizeofRtMsghdr         = 0x5c
    	SizeofRtMetrics        = 0x38
    )
    
    type ifMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Addrs   int32
    	Flags   int32
    	Index   uint16
    	_       uint16
    	Data    ifData
    }
    
    type IfMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Addrs   int32
    	Flags   int32
    	Index   uint16
    	Data    IfData
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go

    	SizeofRtMsghdr         = 0x98
    	SizeofRtMetrics        = 0x70
    )
    
    type ifMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Addrs   int32
    	Flags   int32
    	Index   uint16
    	_       uint16
    	Data    ifData
    }
    
    type IfMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Addrs   int32
    	Flags   int32
    	Index   uint16
    	Data    IfData
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go

    }
    
    type IfaMsghdr struct {
    	Msglen    uint16
    	Version   uint8
    	Type      uint8
    	Index     uint16
    	Flags     int32
    	Addrs     int32
    	Addrflags int32
    	Metric    int32
    }
    
    type IfmaMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Index   uint16
    	Flags   int32
    	Addrs   int32
    }
    
    type IfAnnounceMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go

    	SizeofRtMsghdr         = 0x98
    	SizeofRtMetrics        = 0x70
    )
    
    type ifMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Addrs   int32
    	Flags   int32
    	Index   uint16
    	_       uint16
    	Data    ifData
    }
    
    type IfMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Addrs   int32
    	Flags   int32
    	Index   uint16
    	Data    IfData
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go

    	SizeofRtMsghdr         = 0x5c
    	SizeofRtMetrics        = 0x38
    )
    
    type ifMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Addrs   int32
    	Flags   int32
    	Index   uint16
    	_       uint16
    	Data    ifData
    }
    
    type IfMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Addrs   int32
    	Flags   int32
    	Index   uint16
    	Data    IfData
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go

    	SizeofRtMsghdr         = 0x98
    	SizeofRtMetrics        = 0x70
    )
    
    type ifMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Addrs   int32
    	Flags   int32
    	Index   uint16
    	_       uint16
    	Data    ifData
    }
    
    type IfMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Addrs   int32
    	Flags   int32
    	Index   uint16
    	Data    IfData
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  10. src/syscall/ztypes_openbsd_ppc64.go

    	Capabilities uint32
    	Lastchange   Timeval
    }
    
    type IfaMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Hdrlen  uint16
    	Index   uint16
    	Tableid uint16
    	Pad1    uint8
    	Pad2    uint8
    	Addrs   int32
    	Flags   int32
    	Metric  int32
    }
    
    type IfAnnounceMsghdr struct {
    	Msglen  uint16
    	Version uint8
    	Type    uint8
    	Hdrlen  uint16
    	Index   uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 03:24:15 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top