Re: Tinderbox tyrant (wv issues)

Subject: Re: Tinderbox tyrant (wv issues)
From: Dom Lachowicz (
Date: Fri Oct 13 2000 - 11:44:01 CDT

I'll fix the getopt thing again. I un-commented it out when wv separated.
And like I said, I'll cahnge the mkstemp thing. It's in stdlib.h so I
thought that maybe, just maybe it'd be defined across platforms as some sort
of C standard. Silly me...


>From: Thomas Fletcher <>
>Subject: Tinderbox tyrant (wv issues)
>Date: Fri, 13 Oct 2000 08:43:20 -0400
>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?
> 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).
> 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).
> Thomas
>Thomas (toe-mah) Fletcher QNX Software Systems
> Neutrino Development Group

Get Your Private, Free E-mail from MSN Hotmail at

Share information about yourself, create your own public profile at

This archive was generated by hypermail 2b25 : Fri Oct 13 2000 - 11:44:03 CDT