This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Deprecate and remove SYS_ system call numbers?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]