In article <x7r2u3inin....@ren.fdy2.co.uk>,
Robert Swindells  <r...@fdy2.co.uk> wrote:
>
>chris...@astron.com (Christos Zoulas) wrote:
>>In article <x7wp3xi6py....@ren.fdy2.co.uk>,
>>Robert Swindells  <r...@fdy2.co.uk> wrote:
>>>
>>>I wrote:
>>>>Does anyone know why we don't use the input 'optlen' parameter to the
>>>>getsockopt(2) syscall, we do write back to it on return.
>
>[snip]
>
>>Neither FreeBSD or OpenBSD copyin the value, but I think it is ok to
>>do so if it is useful to read the input to deduce the output. But that
>>would make the call asymetric, so let's examine the examples where this
>>is useful first.
>
>FreeBSD does copyin the value, but the code to do it is scattered around
>the kernel, search for sooptcopyin() in their tree.

Yes, aren't most of the in the sosetopt paths? I am looking for the sogetopt
paths... I have not looked carefully to see if there are any.

christos

Reply via email to