unsigned < 0 test ?

Herb Lewis herb at sgi.com
Tue Sep 25 13:52:02 GMT 2001


andreas moroder wrote:
> 
> I hope I am not wrong, but gid and uid are unsigned variables ( on linux ) .
> If this is true the <0 condition is allways false and not necessary.
> Are there systems around where the type uid_t is signed ?
> 

Well in 64 bit IRIX versions it is defined as

typedef __int32_t       uid_t;
typedef __int32_t       gid_t;
-- 
======================================================================
Herb Lewis                               Silicon Graphics 
Networking Engineer                      1600 Amphitheatre Pkwy MS-510
Strategic Software Organization          Mountain View, CA  94043-1351
herb at sgi.com                             Tel: 650-933-2177
http://www.sgi.com                       Fax: 650-932-2177          
======================================================================




More information about the samba-technical mailing list