tech-kern archive

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

Re: setsockopt() compat issue



On Thu, Oct 16, 2008 at 04:55:13PM -0500, Bryce Simonds wrote:
> It should be noted that in the man page for setsockopt() and getsockopt()
> the option value said to be an "int", and does not specify a particular size
> of said int.  If on the Alpha platform the default size of an "int" is
> 64bits then (in my opinion) the functions should accept that platform's
> default integer size.  Any size of integer for this task should be fine for
> that matter.

No, on alpha sizeof(int) == 32. The issue here was that the application
was using a void* and not a int (and so was 64bits and not 32).


-- 
Manuel Bouyer, LIP6, Universite Paris VI.           
Manuel.Bouyer%lip6.fr@localhost
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index