Use .Va for errno.
[dragonfly/vkernel-mp.git] / usr.sbin / clog / clog.h
blobb881691d7129cb331fb4266c61e895d96cc502e2
1 /*-
2 * Copyright (c) 2001
3 * Jeff Wheelhouse (jdw@wwwi.com)
5 * This code was originally developed by Jeff Wheelhouse (jdw@wwwi.com).
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistribution of source code must retail the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
16 * THIS SOFTWARE IS PROVIDED BY JEFF WHEELHOUSE ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
19 * NO EVENT SHALL JEFF WHEELHOUSE BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
21 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
25 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 * $Id: clog.h,v 1.2 2001/10/02 04:43:52 jdw Exp $
28 * $DragonFly: src/usr.sbin/clog/clog.h,v 1.1 2004/10/30 22:26:46 dillon Exp $
32 #ifndef _CLOG_H_
33 #define _CLOG_H_
36 * This magic constant is used to identify a valid circular log file.
37 * syslogd will ignore any circular log file that doesn't have this constant.
40 const char MAGIC_CONST[4] = "CLOG";
43 struct clog_footer {
44 uint32_t cf_magic;
45 uint32_t cf_wrap;
46 uint32_t cf_next;
47 uint32_t cf_max;
48 uint32_t cf_lock;
52 #endif /* _CLOG_H_ */