jit: document union types
[official-gcc.git] / libgo / go / log / syslog / syslog_c.c
blob5b33d78288b95ee4d34c8beef1541d8987906b2f
1 /* syslog_c.c -- call syslog for Go.
3 Copyright 2011 The Go Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file. */
7 #include <syslog.h>
9 #include "runtime.h"
11 /* We need to use a C function to call the syslog function, because we
12 can't represent a C varargs function in Go. */
14 void syslog_c(intgo, const char*)
15 __asm__ (GOSYM_PREFIX "log_syslog.syslog_c");
17 void
18 syslog_c (intgo priority, const char *msg)
20 syslog (priority, "%s", msg);