develooper Front page | perl.perl5.porters | Postings from February 2000

Re: fixing Sys::Hostname

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
February 7, 2000 14:48
Subject:
Re: fixing Sys::Hostname
Message ID:
4.3.0.33.0.20000207175053.02576a20@24.8.96.48
At 02:42 PM 2/7/00 -0800, Russ Allbery wrote:
>Ilya Zakharevich <ilya@math.ohio-state.edu> writes:
>
> > But what will it return?  What *is* a host name?
>
>How about returning the result of gethostname in libc or throwing an
>exception if gethostname isn't implemented on that platform, just like
>symlink and the other core functions that aren't available on some OSes?
>And then if the VMS and Windows ports want to add their own native
>implementations (assuming they don't have gethostname), they can.

It's not a problem for VMS. Five minutes work to get the test in to be 
sure--all I need to know is the config.sh name of the symbol. (I presume 
d_gethostname, but...)


					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About