]> Cypherpunks repositories - gostls13.git/commit
syslog: split Unix domain support from network support.
authorIan Lance Taylor <iant@golang.org>
Wed, 9 Mar 2011 21:15:46 +0000 (13:15 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 9 Mar 2011 21:15:46 +0000 (13:15 -0800)
commit8206cce1178717adec1d56abbb0e57ee708f862a
tree0743a5f6c19d3537bde66af925b4e28d0cd6c428
parentec5c4759190006261014c08aceccb6f99aa53d50
syslog: split Unix domain support from network support.

This is to make it easier to support Solaris syslog.  On
Solaris syslog messages are sent via STREAMS using putmsg to
/dev/conslog.  The putmsg call uses a a control buffer of type
log_cdtl and a data buffer which is the message, and it is in
general a big mess.  This CL just splits out the Unix domain
support so that Solaris can use a different mechanism.  I do
not propose to implement the Solaris support today.  This
split will make it possible for gccgo to just call the libc
function for now.

R=r, rsc
CC=golang-dev
https://golang.org/cl/4261061
src/pkg/syslog/Makefile
src/pkg/syslog/syslog.go
src/pkg/syslog/syslog_unix.go [new file with mode: 0644]