ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/23/09:10:05

Date: Sun, 23 Apr 1995 08:02:57 -0400
From: dj (DJ Delorie)
To: babcock AT cfa DOT harvard DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: TTY Flags

> But ioctl is a standard DOS function.  If you write a unix version, please
> use a different name to avoid clashes.  I suggest unix_ioctl. ;-(

If we're real careful, we can write one function called ioctl() that
handles both cases, by looking at the arguments.  DOS's ioctl only
takes commands in the 0..255 range.  We can use values outside this
range to provide the POSIX.1 functionality.

The purpose of djgpp V2 is to improve POSIX compatibility.  This means
that, in a case like this, if I could NOT get the one function to do
both jobs, the POSIX definition wins and I add a different function to
do the dos version.  However, so far we've been able to avoid this, or
at least avoid having this cause problems.

I detect an edge of sarcasm in this part of your mail (although the
next paragraph marks it as a joke, it wasn't funny to me).  I don't
like pissing matches and I won't let this turn into one.  I know that
djgpp has to serve two purposes, and making decisions like this is
hard for us to do.  Maintaining a friendly character makes the job a
lot easier.

> A simple #define then selects the desired variant.

This is anti-POSIX.

DJ

- Raw text -


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