François Revol wrote: >> Hi, >> >> What is the reason to the change of return -EIO (etc) to return >> RETERROR(EIO)? >> > > I already explained it I think, we have error codes defined as negative > values, as BeOS did. > see http://dev.haiku-os.org/browser/haiku/trunk/headers/os/support/Errors.h > I see. This approach was also used by Minix. For this reason OSS used such macro from the very first version. However it was replaced by return -Exxx recently. There were some nasty errors caused by use of the macro.
Might it be possible that the Haiku port doesn't include <errno.h> but "oss_haiku_errno.h" that defines the few errno codes used by OSS as positive numbers. This should be safe since the errno codes used by Haiku will probably never change. In this way the drivers don't need to be changed. Best regards, Hannu _______________________________________________ oss-devel mailing list oss-devel@mailman.opensound.com http://mailman.opensound.com/mailman/listinfo/oss-devel