]> Cypherpunks repositories - gostls13.git/commit
runtime: support panic/print logging in android-L.
authorHyang-Ah Hana Kim <hyangah@gmail.com>
Sat, 24 Jan 2015 22:51:42 +0000 (17:51 -0500)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Wed, 4 Feb 2015 21:02:41 +0000 (21:02 +0000)
commit3a8713575499622dbe77d78e9871dbe2ae94b8bb
treeae7554028ee41e2ca551e626b21eb40fb10a565b
parent11c1227493f2661e34ad35f5dce0fd798a7e5927
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>
src/runtime/defs_linux_arm.go
src/runtime/print1_write_android.go
src/runtime/stubs_android.go [new file with mode: 0644]
src/runtime/sys_linux_arm.s