On (08/02/07 11:20), James Carlson wrote: > Sowmini.Varadhan at Sun.COM 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. >
Good suggestion.. we'll make a note.. --Sowmini
