diff options
author | 2014-07-10 09:08:39 +0000 | |
---|---|---|
committer | 2014-07-10 09:08:39 +0000 | |
commit | bc30470197a6b22bee66922253cb3064459b21df (patch) | |
tree | 2208412182c5ab28d77986ffcc9f2965b773c76c /lib | |
parent | check all memory allocations; ok miod@ guenther@ (diff) | |
download | wireguard-openbsd-bc30470197a6b22bee66922253cb3064459b21df.tar.xz wireguard-openbsd-bc30470197a6b22bee66922253cb3064459b21df.zip |
Don't document the guts of struct syslog_data. This man page only needs
to demonstrate to use it with syslog_r.
pointed out by millert
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/syslog.3 | 40 |
1 files changed, 2 insertions, 38 deletions
diff --git a/lib/libc/gen/syslog.3 b/lib/libc/gen/syslog.3 index aa5a9b6978b..31e15995923 100644 --- a/lib/libc/gen/syslog.3 +++ b/lib/libc/gen/syslog.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: syslog.3,v 1.31 2013/06/05 03:39:22 tedu Exp $ +.\" $OpenBSD: syslog.3,v 1.32 2014/07/10 09:08:39 deraadt Exp $ .\" .\" Copyright (c) 1985, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: June 5 2013 $ +.Dd $Mdocdate: July 10 2014 $ .Dt SYSLOG 3 .Os .Sh NAME @@ -65,20 +65,6 @@ .Fn setlogmask "int maskpri" .Ft int .Fn setlogmask_r "int maskpri" "struct syslog_data *data" -.Bd -literal - -struct syslog_data { - int log_file; - int connected; - int opened; - int log_stat; - const char *log_tag; - int log_fac; - int log_mask; -}; - -#define SYSLOG_DATA_INIT {-1, 0, 0, 0, NULL, LOG_USER, 0xff} -.Ed .Sh DESCRIPTION The .Fn syslog @@ -115,28 +101,6 @@ is called. The .Dv SYSLOG_DATA_INIT constant is used for this purpose. -The -.Fa syslog_data -structure is composed of the following elements: -.Bl -tag -width connected -.It Dv log_file -contains the file descriptor of the file where the message is logged -.It Dv connected -indicates if connect has been done -.It Dv opened -indicates if -.Fn openlog_r -has been called -.It Dv log_stat -status bits, set by -.Fn openlog_r -.It Dv log_tag -string to tag the entry with -.It Dv log_fac -facility code -.It Dv log_mask -mask of priorities to be logged -.El .Pp The .Fn vsyslog |