glibc maintainers discuss adding system-call wrappers to GNU C Library
glibc maintainers are evaluating ways to provide official wrappers for Linux system calls that currently require direct syscall() invocation.
Summary
During the Linux Plumbers Conference, glibc maintainers Carlos O'Donell and Florian Weimer presented an update regarding the implementation of system-call wrappers. Currently, many Linux kernel system calls lack direct support within the GNU C Library, forcing developers to use the generic syscall() function to interact with the kernel.
This discussion aims to address the technical debt and potential safety issues associated with bypassing the standard library. The maintainers are seeking feedback from the developer community to determine which specific system calls are most needed and how to implement them without compromising the library's stability or architecture.
Addressing the gap between kernel and glibc
- Current Limitation: Many modern Linux system calls are only accessible to developers through the generic syscall() interface because glibc lacks dedicated wrapper functions.
- Maintainer Collaboration: The initiative involves glibc maintainers Carlos O'Donell and Florian Weimer working to identify high-priority system calls for formal integration.
- Development Goal: The project seeks to move away from manual syscall invocation toward standardized, library-provided interfaces that can handle architecture-specific nuances.
Why it matters
Providing official wrappers improves software portability and security by allowing glibc to manage system-call arguments and error handling. This change benefits systems programmers and developers who rely on the GNU C Library as the foundational interface between user-space applications and the Linux kernel.
Original reference: lwn.net →