From owner-freebsd-hackers Sun Jul 5 23:46:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA13845 for freebsd-hackers-outgoing; Sun, 5 Jul 1998 23:46:58 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp04.primenet.com (daemon@smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA13833 for ; Sun, 5 Jul 1998 23:46:56 -0700 (PDT) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id XAA17441; Sun, 5 Jul 1998 23:46:50 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp04.primenet.com, id smtpd017404; Sun Jul 5 23:46:40 1998 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id XAA21779; Sun, 5 Jul 1998 23:46:21 -0700 (MST) From: Terry Lambert Message-Id: <199807060646.XAA21779@usr02.primenet.com> Subject: Re: adding to sysctl env. To: wjw@digiware.nl Date: Mon, 6 Jul 1998 06:46:20 +0000 (GMT) Cc: mike@smith.net.au, terry@lambert.org, hackers@FreeBSD.ORG In-Reply-To: <199807052039.UAA10241@digi.digiware.nl> from "Willem Jan Withagen" at Jul 5, 98 10:39:30 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > If an include file requires another include file. > eg. sys/sysctl.h requires sys/kernel.h > > Does the include for kernel.h go into sysctl.h? No. If it compiles without it, it's not "required". In general, this is so you can put things that are in the kernel.h namespace (like your own functions with the same name) and still include sysctl.h. Admittedly, the dependency you describe seems like an organizational bug. At the very least, it should have #warn'ed you. > Reason I ask, is that there were no errors when I compiled without > the inclusion, but that was the problem I could not see the > debug.vlinkxlate in sysctl. :-( You need to look into why there were no errors. At a minimum, there should have been a linktime error, if a macro was confused as an external function reference. The man page is useful, but the inclusion of the kernel.h was probably for some other prototype, not the sysctl prototype, IMO. You need to narrow down your problem to make sure you aren't documenting an #include that is necessary for your implementation, and not for sysctl's in general. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message