From owner-freebsd-hackers Wed Sep 23 04:32:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA07587 for freebsd-hackers-outgoing; Wed, 23 Sep 1998 04:32:33 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from relay.esat.net (relay.esat.net [192.111.39.11]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA07570 for ; Wed, 23 Sep 1998 04:32:26 -0700 (PDT) (envelope-from nialls@euristix.ie) Received: from (euristix.ie) [193.120.210.2] by relay.esat.net with esmtp id 0zLn9i-0005yo-00; Wed, 23 Sep 1998 12:32:22 +0100 Received: by gateway.euristix.ie id <19713>; Wed, 23 Sep 1998 12:30:42 +0100 Message-Id: <98Sep23.123042bst.19713@gateway.euristix.ie> Date: Wed, 23 Sep 1998 11:10:38 +0100 From: Niall Smart X-Mailer: Mozilla 4.05 [en] (WinNT; I) MIME-Version: 1.0 To: hackers@FreeBSD.ORG CC: nialls@euristix.ie Subject: Quick code style question. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I was adding support for an environment variable which specifies an alternate /etc/services file for getservent() et al when I noticed that netdb.h exports a private interface used internally in libc: /* * PRIVATE functions specific to the FreeBSD implementation */ /* DO NOT USE THESE, THEY ARE SUBJECT TO CHANGE AND ARE NOT PORTABLE!!! */ void _sethosthtent __P((int)); void _endhosthtent __P((void)); void _sethostdnsent __P((int)); [snip] Surely it would be much better if these were either protected by a _NETDB_INTERNAL_ macro or moved into a separate header in lib/libc/net. Which of these two is preferable? Regards, Niall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message