|
From: | Sam Steingold |
Subject: | Re: gethostname |
Date: | Tue, 12 Aug 2008 13:49:41 -0400 |
User-agent: | Thunderbird 2.0.0.14 (X11/20080506) |
Ben Pfaff wrote:
Sam Steingold <address@hidden> writes:Ben Pfaff wrote:Sam Steingold <address@hidden> writes:1. is this module ever needed on a unix system? i.e., are there any unix systems still in use that lack gethostname? 2. are there any unix systems still in use that lack uname?Among the platforms represented in Bruno Haible's collection of library symbols, only mingw and nsk-G06 lack either one (and they lack both of them). Solaris has gethostname in libnsl, BeOS has it in libnet, and other platforms have it in libc. BeoS has uname in libnet, and other platforms have it in libc.but this makes the gethostname module completely useless, doesn't it?To me, it looks like it has limited value: on mingw and nsk-G06 it provides a gethostname function that is otherwise missing. I don't think it will ever fall back on uname on the systems that we know about, though, except possibly on Solaris (because the m4 code doesn't check for gethostname in libnsl).
so the logical approach would be to either drop the C code altogether or implement it for nsk-G06 (whatever that might be).
note: woe32 does have gethostname, so mingw is fully covered.
Probably gethostname.m4 should check for gethostname in libnsl and in libnet?
sounds good.
[Prev in Thread] | Current Thread | [Next in Thread] |