Re: unlinkat
Laurent Bercot <[email protected]> Fri, 23 Dec 2011 08:16:03 +0100
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
> Does glibc have an emulation for ENOSYS? > How would you even do that? > > Just adding those syscalls is trivial but since they are so new, I > wonder what the benefit would be. You could not rely on those syscalls > being there, so you'd have to keep the extra state anyway. Or am I > missing something? If I'm not mistaken, glibc checks the current kernel version (yes, the compiling machine's kernel version, but I believe you can work around that...) and compiles in the right set of syscalls for a given kernel. You could have a compile-time option saying whether or not to include the new syscalls into the diet libc. -- Laurent