Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Sep 1998 11:10:38 +0100
From:      Niall Smart <nialls@euristix.ie>
To:        hackers@FreeBSD.ORG
Cc:        nialls@euristix.ie
Subject:   Quick code style question.
Message-ID:  <98Sep23.123042bst.19713@gateway.euristix.ie>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98Sep23.123042bst.19713>