mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-27 20:36:31 -04:00
unix: support Linux NFC Subsystem
This adds the constants and types needed for the Linux NFC Subsystem. It also adds support for sockaddr_nfc and sockaddr_nfc_llcp to Connect. The Linux NFC Subsystem is documented in: https://www.kernel.org/doc/html/latest/networking/nfc.html. Change-Id: Ic6a79afdba85e9b154ec46f191f27714b4b38a57 Reviewed-on: https://go-review.googlesource.com/c/sys/+/323551 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
ebe580a85c
commit
9665404d36
@@ -129,6 +129,10 @@ func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint64(length)
|
||||
}
|
||||
|
||||
func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
|
||||
rsa.Service_name_len = uint64(length)
|
||||
}
|
||||
|
||||
// Linux on s390x uses the old mmap interface, which requires arguments to be passed in a struct.
|
||||
// mmap2 also requires arguments to be passed in a struct; it is currently not exposed in <asm/unistd.h>.
|
||||
func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
|
||||
|
||||
Reference in New Issue
Block a user