How to make glibc support custom syscalls

Mike Frysinger vapier@gentoo.org
Sun May 7 08:47:00 GMT 2006


On Saturday 06 May 2006 20:04, Matt McCutchen wrote:
> Do I need to add implementations of lchmod and lutimes to the glibc
> source?  If so, could someone help me?  The innards of glibc look
> terribly complex, and though I bet adding a wrapper for a syscall takes
> only a few lines, I don't know what those lines would be.

if your versions have the same API as the current chmod/utimes, then you 
should just be able to update the sysdeps/unix/sysv/linux/syscalls.list

add two lines to that file ... see the sysdeps/unix/syscalls.list file to see 
what sort of two lines by looking at the existing chmod/utimes lines
-mike



More information about the Libc-alpha mailing list