1
0
mirror of https://github.com/golang/go synced 2024-10-03 08:11:27 -06:00
go/src/runtime/stubs_android.go
Hyang-Ah Hana Kim 3a87135754 runtime: support panic/print logging in android-L.
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>
2015-02-04 21:02:41 +00:00

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