> > #define PRIORITY_FAIL -1 > > > > It sounds like we can loads of haggling about the names there... The > > last one is to take out the dependency on errno being greater than > > zero. > > I would actually quite like to keep the possibility of returning an errno. > It gives the possibility of returning an appropriate error if something > strange happened (other than the hardware not being present).
How do you guarantuee that the errno is positive? Add an assert somewhere, like checking whether ENXIO >= PRIORITY_FAIL? Nick -- ISIS/STA, T.P.270, Joint Research Centre, 21020 Ispra, Italy To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message