"Fossies" - the Fresh Open Source Software Archive
Member "leafnode-1.12.0/syslog.c" (28 Dec 2021, 1120 Bytes) of package /linux/misc/leafnode-1.12.0.tar.xz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard
) with prefixed line numbers and code folding
Alternatively you can here view
the uninterpreted source code file.
For more information about "syslog.c" see the Fossies "Dox" file reference
documentation and the latest Fossies "Diffs"
side-by-side code changes report: 1.11.12_vs_1.12.0
1 /* syslog.c -- wrapper around openlog() to support legacy interfaces
2 * (C) 2000 - 2010 by Matthias Andree <email@example.com>
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.
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.
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
20 #include "leafnode.h"
21 #include <syslog.h>
24 myopenlog(const char *ident)
26 #ifdef HAVE_OLD_SYSLOG
27 /* support legacy syslog interface */
28 openlog(ident, LOG_PID);
30 openlog(ident, LOG_PID | LOG_CONS, LOG_NEWS);