delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/23/07:15:31

Date: Sun, 23 Apr 1995 13:04:43 +0300
From: eliz AT is DOT elta DOT co DOT il. (Eli Zaretskii)
To: babcock AT cfa DOT harvard DOT edu
Subject: Re: TTY Flags
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019