On Wed, 26 Jun 2024, Bruno Haible wrote:

> The second patch makes the assumption that uid_t and gid_t are
> at least 32-bits wide. I had written the code that way because on some
> systems (SunOS 4 IIRC, older IRIX, and Linux [1]) uid_t and gid_t
> had been 'unsigned short', and thus a comparison of an 'unsigned short'
> with -1 always returned false. But nowadays, for more than 20 years,
> they are 32-bit.

OpenServer 5 uses 'unsigned short'.
...
tim@timosr5d 6% egrep 'gid_t|uid_t' /usr/include/sys/types.h
typedef unsigned short  uid_t;
typedef unsigned short  gid_t;
...

Still a current product.

> 
> Bruno
> 
> [1] https://docs.kernel.org/admin-guide/highuid.html
> [2] https://stackoverflow.com/questions/20533606/

-- 
Tim Rice                                Multitalents
t...@multitalents.net


Reply via email to