François Revol wrote: > Hi Hannu, > > I was pointed to http://mercurial.opensound.com/?rev/5b99c9e4a09e on > IRC. > Thanks for doing it, maybe it's clearer this way they are different, In this way it's at least easier to track which errno codes are used by OSS. I would like to get rid of <sys/errno.h> in kernel space code so that drivers don't acidently do try to use symbols like EIO (instead of OSS_EIO). Maybe oss_errno.h could be generated by the configure script so that the defines for OSS_Exxx give the negative value that corresponds to Exxx in <sys/errno.h>. > > though I think you missed some of it, there are occurences of return - > err and return -errno which will also cause problems in Minix and BeOS/ > I will take a look. > Haiku. There you'll have to use OSS_NEGATIVE_ERRNO() in the code > anyway. > Right. Haiku needs to have #define OSS_NEGATIVE_ERRNO(x) x in os_haiku.h (whatever) before including <oss_errno.h>.
Best regards, Hannu _______________________________________________ oss-devel mailing list oss-devel@mailman.opensound.com http://mailman.opensound.com/mailman/listinfo/oss-devel