tech-kern archive

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

Re: fixing compat_12 getdents



On Mon, Dec 10, 2012 at 09:23:15PM +0000, David Laight wrote:
> 
> Then people get upset because they say "function foo() isn't allowed
> to set errno to 'bar'".
> It is rather a shame that posix tries to list all errno a function
> can return, not just those for explicit 'likely' (ie normal)
> non-success returns froma function.
> 

Then how do you sanely write error handling routines?  The error returns
form part of the interface and should be documented as such.

-- 
Brett Lymn
"Warning:
The information contained in this email and any attached files is
confidential to BAE Systems Australia. If you are not the intended
recipient, any use, disclosure or copying of this email or any
attachments is expressly prohibited.  If you have received this email
in error, please notify us immediately. VIRUS: Every care has been
taken to ensure this email and its attachments are virus free,
however, any loss or damage incurred in using this email is not the
sender's responsibility.  It is your responsibility to ensure virus
checks are completed before installing any data sent in this email to
your computer."




Home | Main Index | Thread Index | Old Index