From owner-cvs-all Fri Sep 7 9:58:47 2001 Delivered-To: cvs-all@freebsd.org Received: from heechee.tobez.org (254.adsl0.ryv.worldonline.dk [213.237.10.254]) by hub.freebsd.org (Postfix) with ESMTP id 5D2EA37B405; Fri, 7 Sep 2001 09:58:41 -0700 (PDT) Received: by heechee.tobez.org (Postfix, from userid 1001) id 506C4541D; Fri, 7 Sep 2001 18:58:35 +0200 (CEST) Date: Fri, 7 Sep 2001 18:58:35 +0200 From: Anton Berezin To: Garrett Wollman Cc: Josef Karthauser , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: CVSROOT cfg.pm Message-ID: <20010907185835.A51811@heechee.tobez.org> References: <200109071627.f87GRX895895@freefall.freebsd.org> <200109071650.f87GoIM72872@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200109071650.f87GoIM72872@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Fri, Sep 07, 2001 at 12:50:18PM -0400 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Sep 07, 2001 at 12:50:18PM -0400, Garrett Wollman wrote: > < said: > > > Replace Sys::Hostname::hostname with a direct call to /bin/hostname, > > POSIX::gethostname, anyone? It might actually be useful, though the idea behind Sys::Hostname module was to provide a system-independant way of doing just that. On Unix systems, Sys::Hostname::hostname tries several methods to determine the host name. It even tries gethostname() as such, without any luck on FreeBSD, since it tries to find a syscall gethostname, not a library function. All this is irrelevant though, since 5.005_03 has a bug which prevents Sys::Hostname module from being useful in all situations. +Anton. -- May the tuna salad be with you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message