Tinderbox tyrant (wv issues)


Subject: Tinderbox tyrant (wv issues)
From: Thomas Fletcher (thomasf@qnx.com)
Date: Fri Oct 13 2000 - 07:43:20 CDT


Geeze guys ... are we going to have to go through this
every couple of days =;^{

Sam's update of wv has broken every platform except for
Linux. Why?

Windows:
        int mkstemp(char *path)
Doesn't exist on the Windows platform, this is a
traditional unix command. What windows function can
we use to encapsulate the creation of a temporary file
returning an fd to the caller?

Windows heads (or just someone who can look up the
function behaviour so we can code a solution).

BSD/BeOS/QNX:
        evil getopt() prototype clashing
You'd think that we would have fixed this already given
the number of times that it has bitten us. Is there a
reason that we can't NOT PROTOTYPE getopt if config.h
declares HAVE_UNISTD_H ... this is the official location
for getopt() to be prototyped according to the Single
Unix Open Specification v 2 (ie XOPEN group). Otherwise
my suggestion is to:

-Always use the wv internal getopt() but don't even
try and call it getopt() but prefix it (and all of
the other global variables associated with it) with
wv_. This would solve our compatability/header problem
once and for all at the cost of a little bit of lack
of re-use of system getopt() calls (which aren't being
used anyway if you link in the getopt() object file).

Incidentally the code doesn't even use getopt() itself
anywhere, so why even bother with the prototype.

Dom, as the keeper of wv would you mind commenting on
these things for me (us).

Thanks,
  Thomas

-------------------------------------------------------------
Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com Neutrino Development Group
(613)-591-0931 http://www.qnx.com/~thomasf



This archive was generated by hypermail 2b25 : Fri Oct 13 2000 - 07:39:12 CDT