- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 135 for CmsgLen (0.12 sec)
-
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) -
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) -
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) -
src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_linux.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: Tue Nov 09 20:10:21 UTC 2021 - 2.6K bytes - Viewed (0) -
src/syscall/sockcmsg_linux.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: Thu Oct 17 18:42:47 UTC 2019 - 1.1K bytes - Viewed (0) -
src/syscall/syscall_unix_test.go
{{}}, {{1, 2}, {3, 4, 5}, {}, {7}}, } for _, testCase := range testCases { b := []byte{} var n int for _, fds := range testCase { // Last assignment to n wins n = len(b) + syscall.CmsgLen(4*len(fds)) b = append(b, syscall.UnixRights(fds...)...) } // Truncate b b = b[:n] scms, err := syscall.ParseSocketControlMessage(b) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 9.4K bytes - Viewed (0) -
api/go1.2.txt
pkg syscall (freebsd-386-cgo), func Chroot(string) error pkg syscall (freebsd-386-cgo), func Close(int) error pkg syscall (freebsd-386-cgo), func CloseOnExec(int) pkg syscall (freebsd-386-cgo), func CmsgLen(int) int pkg syscall (freebsd-386-cgo), func CmsgSpace(int) int pkg syscall (freebsd-386-cgo), func Connect(int, Sockaddr) error pkg syscall (freebsd-386-cgo), func Dup(int) (int, error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 18 04:36:59 UTC 2013 - 1.9M bytes - Viewed (0) -
staging/src/k8s.io/api/autoscaling/v2/generated.pb.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 162.9K bytes - Viewed (0) -
staging/src/k8s.io/api/autoscaling/v1/generated.pb.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 153K bytes - Viewed (0) -
staging/src/k8s.io/api/batch/v1beta1/generated.pb.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 40.2K bytes - Viewed (0)