From e5a17382917995fb224c21d89a567831fe2f5369 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 12 Jun 2021 10:31:30 +0200 Subject: [PATCH] syslog.2: Use syscall(SYS_...); for raw system calls Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man2/syslog.2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/man2/syslog.2 b/man2/syslog.2 index b3b205172..46928df49 100644 --- a/man2/syslog.2 +++ b/man2/syslog.2 @@ -35,10 +35,14 @@ syslog, klogctl \- read and/or clear kernel message ring buffer; set console_loglevel .SH SYNOPSIS .nf -.BI "int syslog(int " type ", char *" bufp ", int " len ); +.BR "#include " " /* Definition of " SYSLOG_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include +.PP +.BI "int syscall(SYS_syslog, int " type ", char *" bufp ", int " len ); .PP /* The glibc interface */ -.B "#include " +.B #include .PP .BI "int klogctl(int " type ", char *" bufp ", int " len ); .fi