The following is from glibc-1.05/sysdep/unix/sysdep.h:
Machine-dependent sysdep.h files are expected to define the macro
PSEUDO (function_name, syscall_name) to emit assembly code to define
the C-callable function FUNCTION_NAME to do system call SYSCALL_NAME.
For example, say we want the C function __signal to do the system call
signal.
My guess would be
.globl ___signal:
jbsr some_address
rts
Is this right, and how do I find the address for each system call?
Disassembling the original libc.a (signal.o) looks hard.
My system is a Plexus P/75 68020 running UNIX Sys5.2, gcc 2.3.3, gas
Many thanks,
Tim.
_________________________________________________________________
Tim Adam, 3rd Yr B.Sc.(Math)/B.E.(Elec), Melbourne Uni, Australia