Blame
Date:
Wed Feb 16 18:28:23 2022 UTC
Message:
initial commit
01
2022-02-16
op
/* $OpenBSD: log.h,v 1.2 2021/12/13 18:28:40 deraadt Exp $ */
02
2022-02-16
op
03
2022-02-16
op
/*
04
2022-02-16
op
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
05
2022-02-16
op
*
06
2022-02-16
op
* Permission to use, copy, modify, and distribute this software for any
07
2022-02-16
op
* purpose with or without fee is hereby granted, provided that the above
08
2022-02-16
op
* copyright notice and this permission notice appear in all copies.
09
2022-02-16
op
*
10
2022-02-16
op
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
2022-02-16
op
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
2022-02-16
op
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
2022-02-16
op
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
2022-02-16
op
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
2022-02-16
op
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
2022-02-16
op
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
2022-02-16
op
*/
18
2022-02-16
op
19
2022-02-16
op
#ifndef LOG_H
20
2022-02-16
op
#define LOG_H
21
2022-02-16
op
22
2022-02-16
op
#include <stdarg.h>
23
2022-02-16
op
24
2022-02-16
op
void log_init(int, int);
25
2022-02-16
op
void log_procinit(const char *);
26
2022-02-16
op
void log_setverbose(int);
27
2022-02-16
op
int log_getverbose(void);
28
2022-02-16
op
void log_warn(const char *, ...)
29
2022-02-16
op
__attribute__((__format__ (printf, 1, 2)));
30
2022-02-16
op
void log_warnx(const char *, ...)
31
2022-02-16
op
__attribute__((__format__ (printf, 1, 2)));
32
2022-02-16
op
void log_info(const char *, ...)
33
2022-02-16
op
__attribute__((__format__ (printf, 1, 2)));
34
2022-02-16
op
void log_debug(const char *, ...)
35
2022-02-16
op
__attribute__((__format__ (printf, 1, 2)));
36
2022-02-16
op
void logit(int, const char *, ...)
37
2022-02-16
op
__attribute__((__format__ (printf, 2, 3)));
38
2022-02-16
op
void vlog(int, const char *, va_list)
39
2022-02-16
op
__attribute__((__format__ (printf, 2, 0)));
40
2022-02-16
op
__dead void fatal(const char *, ...)
41
2022-02-16
op
__attribute__((__format__ (printf, 1, 2)));
42
2022-02-16
op
__dead void fatalx(const char *, ...)
43
2022-02-16
op
__attribute__((__format__ (printf, 1, 2)));
44
2022-02-16
op
45
2022-02-16
op
#endif /* LOG_H */
Omar Polo