This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Deprecate and remove SYS_ system call numbers?
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 8 Aug 2016 21:36:59 +0200
- Subject: Deprecate and remove SYS_ system call numbers?
- Authentication-results: sourceware.org; auth=none
Do you think it would be worthwhile to deprecate the SYS_ re-defines of
the __NR_ system call numbers?
The primary use of these macros is the syscall function, which allows
you to do perform system calls without glibc wrappers. The __NR_ macros
come from the kernel headers, the SYS_ macros are synthesized from the
kernel headers at glibc build time. Programmers may not be aware of the
difference and use the SYS_ macros for writing fallback code, unaware
that older glibc releases may not have them.
Removing the SYS_ macros would eliminate this source of confusion.
Thoughts?
Florian