home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!mips!swrinde!news.dell.com!uudell!pensoft!mike
- From: mike@pencom.com (Mike Heath)
- Newsgroups: comp.unix.aix
- Subject: Re: AIX 3.2 equivalent of syscall(2) and <syscall.h>?
- Message-ID: <1992Jul24.001344.5789@pencom.com>
- Date: 24 Jul 92 00:13:44 GMT
- References: <1992Jul21.203837.9228@math.waterloo.edu>
- Sender: usenet@pencom.com (Usenet Psuedo User)
- Organization: Pencom Software, Austin, TX
- Lines: 19
-
-
- You could write your own syscall.h and syscall() routine. You would
- need to put it in it's own shared object and import the
- system calls from /lib/syscalls.exp. The body of the routine would
- just be a big switch statement on the first argument. You also
- want to statically link your application with the C library, but not
- the syscall() you've written. It will need to remain shared.
-
- The reason you need to do this is because your re-using the same
- symbol names. The statically bound segments will use your definition.
- The shared syscall() will use the real symbols from the kernel.
-
- This should be a good exercise in how to use ld.
-
- --
- Mike Heath Pencom ... We're not just headhunters anymore.
- Pencom Software
- Austin, TX
- mike@pencom.com
-