OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [log/] [syslog/] [syslog_c.c] - Blame information for rev 747

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
/* syslog_c.c -- call syslog for Go.
2
 
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.  */
6
 
7
#include <syslog.h>
8
 
9
/* We need to use a C function to call the syslog function, because we
10
   can't represent a C varargs function in Go.  */
11
 
12
void syslog_c(int, const char*)
13
  asm ("libgo_log.syslog.syslog_c");
14
 
15
void
16
syslog_c (int priority, const char *msg)
17
{
18
  syslog (priority, "%s", msg);
19
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.