[EMAIL PROTECTED] writes:
>   http://opensolaris.org/os/project/brussels/files/brussels3.pdf

Instead of iterating in section 3.2.4 on buffer size, I'd suggest
copying out a value on error.  Have the caller write 0 into the first
'int' pointed to by pr_val, and if you fail and need to return
ENOBUFS, then copyout an 'int' with the actual size needed to the
first 'int' in pr_val.  That way, the caller can inspect the buffer
contents and determine what to do in at most two iterations.

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to