bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Workaround for hostid on Darwin 8/MacPPC


From: C. Speare
Subject: Re: Workaround for hostid on Darwin 8/MacPPC
Date: Fri, 4 May 2007 07:37:24 -0400 (EDT)

Ah, true. I'll lean on Apple to provide a non-broken gethostid(), since I can't think of a nice (clean, portable) way to handle this.

Thank you.

On Thu, 3 May 2007, John Cowan wrote:

C. Speare scripsit:

A possible (but weak)  workaround is to test for the case where id is 0.

It's fine to detect that case, but the whole idea of hostid is to
return the same value each time it's called on the same host,
so returning a random value is unhelpful.

--
Work hard,                                      John Cowan
play hard,                                      address@hidden
die young,                                      http://www.ccil.org/~cowan
rot quickly.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]