This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFC: linux compatibility


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@cygnus.com>
To: <cygwin@sources.redhat.com>
Sent: Saturday, October 14, 2000 4:07 AM
Subject: Re: RFC: linux compatibility


| Chris Faylor wrote:
| > Hmm.  Some OS's have a "personality" model.  We could actually adopt
| > something like that.  New code could default to the "linux
personality"
| > while older code could stil use the default "cygwin hodge-podge
personality".
| > This might not be feasible with some things like timezone, etc.
|
| That could be managed by the header file.
|
| extern time_t _timezone __declspec(dllimport);
|
| #if defined (LINUX_PERSONALITY)
| #define timezone _timezone
| #elif defined (HODGE_PODGE_PERSONALITY)
| char *_EXFUN(timezone, (void));
| #endif
|
| Corinna
|
| --
| Want to unsubscribe from this list?
| Send a message to cygwin-unsubscribe@sourceware.cygnus.com
|
|


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]