Re: [HACKERS] Re: More on shared objects problem

Mark Hollomon <mhh@nortelnetworks.com>

From: "Mark Hollomon" <mhh@nortelnetworks.com>
To: pgsql-hackers@postgreSQL.org
Cc: Todd Vierling <tv@pobox.com>, current-users@netbsd.org
Date: 1999-07-27T18:35:13Z
Lists: pgsql-hackers
D'Arcy J.M. Cain wrote:
>  
> So how do we determine that a system is elf?  I don't see it in uname.  Do
> we just run file(1) on the kernel and see if the string "ELF" shows up?

The test I use is to compile a program that opens its own executable
and checks for the magic number.

\127ELF as I remember.

-- 

Mark Hollomon
mhh@nortelnetworks.com
ESN 451-9008 (302)454-9008