Ragnar Paulson wrote:

[...]

Our STREAMS drivers/modules have a long history and can be clearly shown to be derived works (ports) from older Unix drivers and we fully expect they are protected under the same copyrights as in those works. Nonetheless David's goal, that of allowing STREAMS drivers/modules to be ported without adding any "ifdef LINUX" constructs, must strengthen that claim.


The goal is Ok. Porting HP-UX drivers, I have noticed quite a few differences -- especially around the module init (qpair & folks) & ref-counting -- with HP-UX way of doing things. As of now, I use "#ifdef _LIS_STROPT_H" from within my code rather than "#ifdef __linux__". I would be pleased to have something documented such as "#ifdef _LIS" or "#ifdef __lis".


As to the original thread, of where to keep Linux'isms, it's always good coding practice to isolate the operating system/environment components as much as possible to one source such as linux-mdep.[ch].


Sure this is basic portability common-sense IMNSHO.


-- FiX



_______________________________________________
Linux-streams mailing list
[EMAIL PROTECTED]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

Reply via email to