delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/16/12:00:39

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <39EB24BB.4911D7B5@cygnus.com>
Date: Mon, 16 Oct 2000 17:54:35 +0200
From: Corinna Vinschen <vinschen AT cygnus DOT com>
Reply-To: cygwin <cygwin AT sources DOT redhat DOT com>
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: cygwin <cygwin AT sources DOT redhat DOT com>
Subject: Re: RFC: linux compatibility
References: <80575AFA5F0DD31197CE00805F650D7602CDD0 AT wilber DOT adroit DOT com> <20001013204948 DOT C3048 AT cygnus DOT com> <39E82265 DOT FE4FC001 AT cygnus DOT com> <OE39T6Z3LstPGtPrPrv00001914 AT hotmail DOT com>

Tom Hutto wrote:
> 
> Hmm,  back in the 'good old days' we used to write "self modifying"
> assembler code to take care of this kind of problem.  Guess you could do
> the same in C; just copy the appropriate struct into the exports area?
> 
> ----- Original Message -----
> From: "Corinna Vinschen" <vinschen AT cygnus DOT com>
> | extern time_t _timezone __declspec(dllimport);
> |
> | #if defined (LINUX_PERSONALITY)
> | #define timezone _timezone
> | #elif defined (HODGE_PODGE_PERSONALITY)
> | char *_EXFUN(timezone, (void));
> | #endif

I just recalled another way of dealing with that. Does anybody remember
good ol' days when some vendors had so called `universes' in their UNIX
system? The user could change between them by universe(1):

	universe att

or

	universe bsd

or (on Siemens systems)

	universe sie

which started a new shell in the corresponding universe. So we define

	universe lin

and

	universe cyg

and all our problems will disappear at once! :-)

Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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