This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Referring to syscall numbers in .S files
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 25 Mar 2015 14:20:35 -0700 (PDT)
- Subject: Re: Referring to syscall numbers in .S files
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1503251619190 dot 17966 at digraph dot polyomino dot org dot uk>
I think using __NR_* directly makes the most sense. The whole SYS_*
convention was only ever there as API compatibility with BSD (for assembly
and the syscall function). I don't see any reason that Linux-specific
implementation code shouldn't just use the kernel-supplied names.