Email List: Xaustin-review-lX
[All Lists]

Defect in XBD gethostid

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XBD gethostid
From: yyyyyyyy@xxxxxxxxxxx
Date: Tue, 27 Jul 2004 14:11:25 +0100 (BST)
        Defect report from : Dimitri Papadopoulos , Commissariat a l'Energie 
Atomique

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 0 line 0 section gethostid editorial {1}

Problem:

Edition of Specification (Year): 2004

Defect code :  1. Error

See:
http://www.opengroup.org/onlinepubs/009695399/functions/gethostid.html

The gethostid() function returns a long.

The description states:
        The gethostid() function shall retrieve
        a 32-bit identifier for the current host.

On 64-bit systems 'long' is 64-bit, not 32-bit.


Action:

The documentation some clarification. A 32-bit integer does fit into a 64-bit 
integer, but then the standard could specify whether the upper or lower bits 
are filled in.

<Prev in Thread] Current Thread [Next in Thread>
  • Defect in XBD gethostid, papadopo <=