All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] HPUX binary compatibility
@ 1999-06-20 17:40 Matthew Wilcox
  1999-06-20 19:45 ` Stan Sieler
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Matthew Wilcox @ 1999-06-20 17:40 UTC (permalink / raw)
  To: parisc-linux


How far do we want to or are we able to go with making constants identical
between HPUX and Linux?

Some syscalls are going to have to be different between the two OSes --
ioctl is the obvious example -- but it would be nice to have to do as
little work as possible.

I've just been through errno.h making the Linux error numbers the same as
the HPUX ones.  This seems pretty sane; I can't imagine that it will have
any negative effect on anything.  Where it gets a little more thorny is
in signal.h -- HPUX uses more than 32 signals.  Is it going to negatively
impact Linux at all to use more than 32?  I see there is space reserved
for them, but I'd like someone to reassure me.

The real thing which bothers me about this is that doing this means that
HPUX and Linux are then allocating from the same numberspace, so where
Linux has things which HPUX doesn't, HPUX might later allocate the same
number for a different extension.

(Of course, if HP want to add Linux binary compatibility to HPUX, now
would be a great time to mention it :-)

-- 
Matthew Wilcox <willy@bofh.ai>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: [parisc-linux] HPUX binary compatibility
@ 1999-06-21 18:20 Mike Hibler
  1999-06-21 20:49 ` Stan Sieler
  0 siblings, 1 reply; 25+ messages in thread
From: Mike Hibler @ 1999-06-21 18:20 UTC (permalink / raw)
  To: sieler; +Cc: Matthew.Wilcox, law, parisc-linux

> From: Stan Sieler <sieler@allegro.com>
> Subject: Re: [parisc-linux] HPUX binary compatibility
> To: Matthew.Wilcox@genedata.com (Matthew Wilcox)
> Date: Mon, 21 Jun 1999 10:23:17 -0700 (PDT)
> 
> Hi,
> 
> > > Just write translators on the hpux emulation side.
> > 
> > Yes, this is certainly what we'll do.  But if we can be clever and get a
> > bunch of compatibility for free, then we should.
> 
> The problem with translators is that they don't work in all cases.
> 
> The most important case is where you want to link some .o files
> together: some are compiled for Linux, some for HP-UX. 
> 
> *That's* why having different system call numbers is important.
> 
> -- 
> Stan Sieler                                          sieler@allegro.com
>                                          http://www.allegro.com/sieler/

Yow, that is an ambitious goal!  I can see the desirability of doing it
this way, but I am afraid it may not work.  No example comes to mind but
I worry about subtle assumptions in code written for HP-UX; i.e., merely
defining your structures and constants the same as HP-UX may not be enough.

Like Jeff said, we got by (and still do) by either building such applications
on an HP-UX box or using an emulated HP-UX environment to create real HP-UX
binaries.

Hmm...just read Stan's last message.  There seems to be some confusion about
what we do for compatibility.  When we exec a binary, it is identified as
either being HP-UX or "native" (BSD).  That determines which syscall mapping
is used.  There is no need to have distinct name spaces this way.

Does no other Linux port provide native OS compatibility?

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~1999-06-22 10:05 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-20 17:40 [parisc-linux] HPUX binary compatibility Matthew Wilcox
1999-06-20 19:45 ` Stan Sieler
1999-06-20 20:21 ` Jeffrey A Law
1999-06-21  8:50   ` Matthew Wilcox
1999-06-21 15:06     ` [parisc-linux] Assembly error: entry.S John David Anglin
1999-06-21 15:20       ` Matthew Wilcox
1999-06-21 15:27         ` John David Anglin
1999-06-21 15:42           ` Matthew Wilcox
1999-06-21 15:55             ` John David Anglin
1999-06-21 16:07               ` Matthew Wilcox
1999-06-21 16:16                 ` John David Anglin
1999-06-21 16:32             ` [parisc-linux] Hack to head.S John David Anglin
1999-06-21 17:23     ` [parisc-linux] HPUX binary compatibility Stan Sieler
1999-06-21 17:48       ` Jeffrey A Law
1999-06-21 18:07         ` Stan Sieler
1999-06-21 18:23           ` Jeffrey A Law
1999-06-20 21:05 ` Alan Cox
1999-06-21  8:41   ` Matthew Wilcox
1999-06-21 10:35     ` Alan Cox
1999-06-21 21:39 ` Larry Dwyer
1999-06-22  9:45   ` Matthew Wilcox
1999-06-22  9:49     ` Alan Cox
1999-06-22 10:05       ` Matthew Wilcox
  -- strict thread matches above, loose matches on Subject: below --
1999-06-21 18:20 Mike Hibler
1999-06-21 20:49 ` Stan Sieler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.