syslogd.h (293d1fc4a566508e6ea7578c5a5cef3f75a1bd53) syslogd.h (0ea5e3a571e3da934507bdd32924d11659c70704)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
23 * Use is subject to license terms.
25 *
24 */
25
26/*
26 * Copyright 1983,1984,1985,1986,1987,1988,1989 AT&T.
27 * All rights reserved.
28 *
29 * University Copyright- Copyright (c) 1982, 1986, 1988
30 * The Regents of the University of California
31 * All Rights Reserved
32 *
33 * University Acknowledgment- Portions of this document are derived from

--- 216 unchanged lines hidden (view full) ---

250static void init(void);
251static void conf_init(void);
252static void cfline(char *line, int lineno, struct filed *f);
253static int decode(char *name, struct code *codetab);
254static int ismyaddr(struct netbuf *nbp);
255static void getnets(void);
256static int addnet(struct netconfig *ncp, struct netbuf *nbp);
257static void bindnet(void);
27 * Copyright 1983,1984,1985,1986,1987,1988,1989 AT&T.
28 * All rights reserved.
29 *
30 * University Copyright- Copyright (c) 1982, 1986, 1988
31 * The Regents of the University of California
32 * All Rights Reserved
33 *
34 * University Acknowledgment- Portions of this document are derived from

--- 216 unchanged lines hidden (view full) ---

251static void init(void);
252static void conf_init(void);
253static void cfline(char *line, int lineno, struct filed *f);
254static int decode(char *name, struct code *codetab);
255static int ismyaddr(struct netbuf *nbp);
256static void getnets(void);
257static int addnet(struct netconfig *ncp, struct netbuf *nbp);
258static void bindnet(void);
258static int logforward(struct filed *f, char *ebuf);
259static int logforward(struct filed *f, char *ebuf, size_t elen);
259static int amiloghost(void);
260static int same_addr(struct netbuf *, struct netbuf *);
261static void prepare_sys_poll(void);
262static void *sys_poll(void *ap);
263static void getkmsg(int);
264static void *net_poll(void *ap);
265static log_message_t *new_msg(void);
266static void free_msg(log_message_t *lm);

--- 18 unchanged lines hidden (view full) ---

285static void delete_doorfiles(void);
286static void signull(int, siginfo_t *, void *);
287static int putctrlc(int, char **, size_t *, size_t);
288static size_t findnl_bkwd(const char *, const size_t);
289static size_t copynl_frwd(char *, const size_t, const char *, const size_t);
290static size_t copy_frwd(char *, const size_t, const char *, const size_t);
291static void logerror_format(const char *, char *, va_list);
292static int logerror_to_console(int, const char *);
260static int amiloghost(void);
261static int same_addr(struct netbuf *, struct netbuf *);
262static void prepare_sys_poll(void);
263static void *sys_poll(void *ap);
264static void getkmsg(int);
265static void *net_poll(void *ap);
266static log_message_t *new_msg(void);
267static void free_msg(log_message_t *lm);

--- 18 unchanged lines hidden (view full) ---

286static void delete_doorfiles(void);
287static void signull(int, siginfo_t *, void *);
288static int putctrlc(int, char **, size_t *, size_t);
289static size_t findnl_bkwd(const char *, const size_t);
290static size_t copynl_frwd(char *, const size_t, const char *, const size_t);
291static size_t copy_frwd(char *, const size_t, const char *, const size_t);
292static void logerror_format(const char *, char *, va_list);
293static int logerror_to_console(int, const char *);
293static void defaults(void);
294static void properties(void);
294static void shutdown_input(void);
295static void *hostname_lookup(void *);
296static void reconfigure(void);
297static void disable_errorlog(void);
298static void enable_errorlog(void);
299
300static void hnc_init(int);
301static host_list_t *hnc_lookup(struct netbuf *,

--- 12 unchanged lines hidden ---
295static void shutdown_input(void);
296static void *hostname_lookup(void *);
297static void reconfigure(void);
298static void disable_errorlog(void);
299static void enable_errorlog(void);
300
301static void hnc_init(int);
302static host_list_t *hnc_lookup(struct netbuf *,

--- 12 unchanged lines hidden ---