leafnode  1.12.0
About: Leafnode is a store & forward NNTP proxy for small (dialup) sites.
  Fossies Dox: leafnode-1.12.0.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

syslog.c
Go to the documentation of this file.
1/* syslog.c -- wrapper around openlog() to support legacy interfaces
2 * (C) 2000 - 2010 by Matthias Andree <matthias.andree@gmx.de>
3 *
4 * This library is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as
6 * published by the Free Software Foundation; either version 2 or 2.1 of
7 * the License. See the file COPYING.LGPL for details.
8 *
9 * This library is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17 * USA
18 */
19
20#include "leafnode.h"
21#include <syslog.h>
22
23void
24myopenlog(const char *ident)
25{
26#ifdef HAVE_OLD_SYSLOG
27 /* support legacy syslog interface */
28 openlog(ident, LOG_PID);
29#else
30 openlog(ident, LOG_PID | LOG_CONS, LOG_NEWS);
31#endif
32}
#define LOG_NEWS
Definition: leafnode.h:87
#define LOG_CONS
Definition: leafnode.h:91
void myopenlog(const char *ident)
Definition: syslog.c:24