Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for cmsgAlignOf (0.13 sec)

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

    // 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
    // payload of the passed data length occupies.
    func CmsgSpace(datalen int) int {
    	return cmsgAlignOf(SizeofCmsghdr) + cmsgAlignOf(datalen)
    }
    
    func (h *Cmsghdr) data(offset uintptr) unsafe.Pointer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. src/syscall/sockcmsg_unix.go

    // 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
    // payload of the passed data length occupies.
    func CmsgSpace(datalen int) int {
    	return cmsgAlignOf(SizeofCmsghdr) + cmsgAlignOf(datalen)
    }
    
    func (h *Cmsghdr) data(offset uintptr) unsafe.Pointer {
    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/syscall/sockcmsg_unix_other.go

    package syscall
    
    import (
    	"runtime"
    )
    
    // Round the length of a raw sockaddr up to align it properly.
    func cmsgAlignOf(salen int) int {
    	salign := sizeofPtr
    
    	// dragonfly needs to check ABI version at runtime, see cmsgAlignOf in
    	// sockcmsg_dragonfly.go
    	switch runtime.GOOS {
    	case "aix":
    		// There is no alignment on AIX.
    		salign = 1
    	case "darwin", "ios", "illumos", "solaris":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go

    package unix
    
    import (
    	"runtime"
    )
    
    // Round the length of a raw sockaddr up to align it properly.
    func cmsgAlignOf(salen int) int {
    	salign := SizeofPtr
    
    	// dragonfly needs to check ABI version at runtime, see cmsgAlignOf in
    	// sockcmsg_dragonfly.go
    	switch runtime.GOOS {
    	case "aix":
    		// There is no alignment on AIX.
    		salign = 1
    	case "darwin", "ios", "illumos", "solaris":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package unix
    
    // Round the length of a raw sockaddr up to align it properly.
    func cmsgAlignOf(salen int) int {
    	salign := SizeofPtr
    	if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) {
    		// 64-bit Dragonfly before the September 2019 ABI changes still requires
    		// 32-bit aligned access to network subsystem.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 21:26:10 UTC 2020
    - 544 bytes
    - Viewed (0)
  6. src/syscall/sockcmsg_dragonfly.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package syscall
    
    // Round the length of a raw sockaddr up to align it properly.
    func cmsgAlignOf(salen int) int {
    	salign := sizeofPtr
    	if sizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) {
    		// 64-bit Dragonfly before the September 2019 ABI changes still requires
    		// 32-bit aligned access to network subsystem.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 20 19:33:07 UTC 2019
    - 547 bytes
    - Viewed (0)
Back to top