mirror of
https://github.com/golang/go
synced 2024-10-05 07:11:22 -06:00
3a87135754
In android-L, logging is done through the logd daemon. If logd daemon is available, send logging to logd. Otherwise, fallback to the legacy mechanism (/dev/log files). This change adds access/socket/connect calls to interact with the logd. Fixes golang/go#9398. Change-Id: I3c52b81b451f5862107d7c675f799fc85548486d Reviewed-on: https://go-review.googlesource.com/3350 Reviewed-by: David Crawshaw <crawshaw@golang.org>
11 lines
210 B
Go
11 lines
210 B
Go
package runtime
|
|
|
|
import "unsafe"
|
|
|
|
//go:noescape
|
|
func access(name *byte, mode int32) int32
|
|
|
|
func connect(fd uintptr, addr unsafe.Pointer, len int32) int32
|
|
|
|
func socket(domain int32, typ int32, prot int32) int32
|