Date: Mon, 10 Jun 1996 09:38:18 +0200 From: "Philippe Charnier" <charnier@lirmm.fr> To: current@freebsd.org Subject: missing include in sysctl.3 Message-ID: <199606100738.JAA22246@lirmm.lirmm.fr>
next in thread | raw e-mail | index | archive | help
Hi,
The following program fails
#include <sys/sysctl.h>
void main()
{
}
The error is: /usr/include/sys/sysctl.h:385: parse error before `u_int'
Functions that need sysctl.h to be included already ask to
include sys/param.h as well (kvm_getprocs.3, kvm_getenvv.3, kvm_getargv.3).
But sysctl.3 don't.
Index: sysctl.3
===================================================================
RCS file: /home2h/FreeBSD.cvsroot/src/lib/libc/gen/sysctl.3,v
retrieving revision 1.6
diff -u -r1.6 sysctl.3
--- sysctl.3 1996/03/11 03:08:51 1.6
+++ sysctl.3 1996/03/12 19:47:28
@@ -38,6 +38,7 @@
.Nm sysctl
.Nd get or set system information
.Sh SYNOPSIS
+.Fd #include <sys/param.h>
.Fd #include <sys/sysctl.h>
.Ft int
.Fn sysctl "int *name" "u_int namelen" "void *oldp" "size_t *oldlenp" "void *newp" "size_t newlen"
-------- --------
Philippe Charnier charnier@lirmm.fr
LIRMM, 161 rue Ada, 34392 Montpellier cedex 5 -- France
------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606100738.JAA22246>
