This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: where is the system call code


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]