]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: replace fprintf(stderr, ...) with fatalf(...) for linux/android
authorDavid Crawshaw <david.crawshaw@zentus.com>
Fri, 4 Jul 2014 01:04:48 +0000 (21:04 -0400)
committerDavid Crawshaw <david.crawshaw@zentus.com>
Fri, 4 Jul 2014 01:04:48 +0000 (21:04 -0400)
commit72faffbc704f08273b258d8ff868c61b2f1bef7c
treee3f6ac3d5173a2cfb00da57668caf1f3cdc27e3e
parent822b2cbb33c5e15c429598840310cfd8c14a4f5f
runtime/cgo: replace fprintf(stderr, ...) with fatalf(...) for linux/android

Both stdout and stderr are sent to /dev/null in android
apps. Introducing fatalf allows android to implement its
own copy that sends fatal errors to __android_log_print.

LGTM=minux, dave
R=minux, dave
CC=golang-codereviews
https://golang.org/cl/108400045
src/pkg/runtime/cgo/gcc_android.c [new file with mode: 0644]
src/pkg/runtime/cgo/gcc_android_arm.c
src/pkg/runtime/cgo/gcc_fatalf.c [new file with mode: 0644]
src/pkg/runtime/cgo/gcc_linux_386.c
src/pkg/runtime/cgo/gcc_linux_amd64.c
src/pkg/runtime/cgo/gcc_linux_arm.c
src/pkg/runtime/cgo/libcgo.h