LWN: Comments on "System-call wrappers for glibc" https://lwn.net/Articles/799331/ This is a special feed containing comments posted to the individual LWN article titled "System-call wrappers for glibc". en-us Mon, 20 Oct 2025 21:08:00 +0000 Mon, 20 Oct 2025 21:08:00 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net linux-abi list: typo? https://lwn.net/Articles/800175/ https://lwn.net/Articles/800175/ corbet Yes, of course; it's been fixed. Fri, 20 Sep 2019 19:08:17 +0000 System-call wrappers for glibc https://lwn.net/Articles/800166/ https://lwn.net/Articles/800166/ fw <div class="FormattedComment"> I suspect that it's a side-effect that wiring up even completely architecture-independent system calls across all architectures used to be very complicated, so that system call additions tended to be spread across many kernel releases. With a multiplexer, you only have to go through the process once. Likewise for adding the system call wrapper to glibc.<br> <p> Truly problematic are only system calls for which the intended implementation uses va_list in some way. The increased type safety may be worthwhile for separate functions, and it generally increases source portability once rarely used types change (e.g. file offsets with fcntl, times with futex). But that seems to be difficult to predict.<br> </div> Fri, 20 Sep 2019 17:58:20 +0000 linux-abi list: typo? https://lwn.net/Articles/800165/ https://lwn.net/Articles/800165/ fw <div class="FormattedComment"> I assume that “linux-abi list” is a typo for “linux-api list”. (If not, that might explain something.)<br> </div> Fri, 20 Sep 2019 17:54:26 +0000 System-call wrappers for glibc https://lwn.net/Articles/800151/ https://lwn.net/Articles/800151/ hrw If you want to see how different system call numbers can be you can take a look at my <a href="https://fedora.juszkiewicz.com.pl/syscalls.html">syscalls table</a>. <p>I generate it around every -rc1 kernel release and often at final one. Fri, 20 Sep 2019 15:26:50 +0000 System-call wrappers for glibc https://lwn.net/Articles/800083/ https://lwn.net/Articles/800083/ jani <div class="FormattedComment"> FWIW, this is what we try to do in the graphics subsystem for uapi. The userspace part needs to be agreed on and basically ready to merge in the relevant userspace upstream projects before the kernel part lands.<br> <p> Details at <a href="https://www.kernel.org/doc/html/latest/gpu/drm-uapi.html#open-source-userspace-requirements">https://www.kernel.org/doc/html/latest/gpu/drm-uapi.html#...</a><br> <p> </div> Fri, 20 Sep 2019 07:58:25 +0000 System-call wrappers for glibc https://lwn.net/Articles/800075/ https://lwn.net/Articles/800075/ mfuzzey <div class="FormattedComment"> I would say the kernel and the glibc developers should work together *before* new syscalls are set in stone to, as far as possible, come up with a design that suites everyone and makes the wrappers simpler.<br> <p> That may not be possible in every case for technical reasons but I think up to recently it was more of lack of communication between the kernel and glibc developers that caused most problems rather than specific technical issues.<br> </div> Fri, 20 Sep 2019 06:47:05 +0000 System-call wrappers for glibc https://lwn.net/Articles/800074/ https://lwn.net/Articles/800074/ epa <div class="FormattedComment"> If the multiplex call is wrapped by the C library then you can have a separate C function for each mode, each one with a sane and type-safe interface. System calls are a finite resource but C library interfaces are not. However, if you take the view that the C library should provide exactly the interface given by the kernel, a messy system call will result in messy user code. <br> </div> Fri, 20 Sep 2019 06:31:34 +0000 System-call wrappers for glibc https://lwn.net/Articles/800073/ https://lwn.net/Articles/800073/ NHO <div class="FormattedComment"> Ain't we running out of syscall numbers?<br> </div> Fri, 20 Sep 2019 06:05:21 +0000 System-call wrappers for glibc https://lwn.net/Articles/800065/ https://lwn.net/Articles/800065/ pj <div class="FormattedComment"> Even with normal APIs, it's a design issue of whether to have one call with a boolean flag or two calls that ends up boiling down to aesthetics at some point.<br> </div> Fri, 20 Sep 2019 03:14:15 +0000 System-call wrappers for glibc https://lwn.net/Articles/800060/ https://lwn.net/Articles/800060/ quotemstr <div class="FormattedComment"> I've long been of the opinion that the kernel should avoid multiplexing system calls. I've said repeatedly on lkml that system calls are not expensive and that multiplexers are pointless. Maybe I'll finally get some traction now?<br> </div> Fri, 20 Sep 2019 00:41:35 +0000