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] - Rev 747

Compare with Previous | Blame | View Log

/* syslog_c.c -- call syslog for Go.
 
   Copyright 2011 The Go Authors. All rights reserved.
   Use of this source code is governed by a BSD-style
   license that can be found in the LICENSE file.  */
 
#include <syslog.h>
 
/* We need to use a C function to call the syslog function, because we
   can't represent a C varargs function in Go.  */
 
void syslog_c(int, const char*)
  asm ("libgo_log.syslog.syslog_c");
 
void
syslog_c (int priority, const char *msg)
{
  syslog (priority, "%s", msg);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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