where is the system call code
Carlos O'Donell
carlos@systemhalted.org
Sat May 1 20:02:00 GMT 2010
On Sat, May 1, 2010 at 7:08 AM, Sasha Sirotkin > I should have
probably found it myself, but I think that after I spent
> a few hours digging through the code it is OK to ask this on the
> mailing list - how can one add an architecture-specfic system call C
> implementation, for instance something like
> ports/sysdeps/unix/sysv/linux/mips/mips64/recv.c for ARM ?
The build system searches for SYSCALL.c and SYSCALL.S files before
processing the results of the syscalls.list.
IIRC you only need to provide a SYSCALL.[cS] file in any ARM system
dependency directory to override the default. Where SYSCALL is the
syscall name. The new file will be used instead of the default
automatically generated version. This is all part of the automatic
scanning the build system does.
Please feel free to ask any questions on libc-help. The purpose of
this list is to mentor new C library developers :-)
Cheers,
Carlos.
More information about the Libc-help
mailing list