hostid patch
Earnie Boyd
earnie_boyd@yahoo.com
Wed Apr 16 12:24:00 GMT 2003
When patching w32api please keep in mind this reference:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdkintro/sdkintro/using_the_sdk_headers.asp
You must properly guard the declaration with the appropriate OS release
that it was designed for.
Earnie.
Christopher Faylor wrote:
> FWIW, I've taken the unusual step of checking this patch in since I
> suspect it just needs some tweaking. I won't build a snapshot with it
> yet, though, so that some unsuspecting person won't try to use it, run a
> configure script, and get a semi-working gethostid.
>
> cgf
>
> On Tue, Apr 15, 2003 at 10:56:54PM -0400, Christopher Faylor wrote:
>
>>On Tue, Apr 15, 2003 at 08:55:08PM +0100, Chris January wrote:
>>
>>>*Not* tested on anything other than Windows XP.
>>>
>>>Adds gethostid function to Cygwin. Three patches: one for Cygwin, one for
>>>newlib and one for w32api.
>>>If I've done anything wrong let me know and I'll try to fix it.
>>
>>I tried this on Windows XP and, when run repeatedly, I get two
>>different numbers:
>>
>>m:\test>gethostid
>>0xf9926a74
>>
>>m:\test>gethostid
>>0xdfd35415
>>
>>The highly sophisticated program that I'm using is below.
>>
>>I take it this doesn't happen to you, Chris?
>>
>>cgf
>>
>>#include <unistd.h>
>>
>>int
>>main (int argc, char **argv)
>>{
>> printf ("%p\n", gethostid ());
>> exit (0);
>>}
>
>
More information about the Cygwin-patches
mailing list