Mail Archives: djgpp/1995/04/23/07:15:31
> port to DOS. I would suggest that the library should not contain a function
> called ioctl, rather it should contain both dos_ioctl and unix_ioctl. That
> way, someone porting code finds out at link time or earlier that ioctl is a
> problem which must be looked at carefully rather than getting strange
> failures when ioctl is called with arguments appropriate for another
> operating system. A simple #define then selects the desired variant.
In addition to that, each XXXX_ioctl() should be prototyped on a different
.h file, which will enable to #define it to be just ioctl() automagically.
- Raw text -