mirror of
https://github.com/systemd/systemd.git
synced 2026-07-20 14:30:45 +00:00
missing: always use __NR_ as prefix for syscall numbers
Apparently, both __NR_ and SYS_ are useful, but we mostly use __NR_ hence use it for these two cases too, so that we settle on __NR_ exclusively.
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
|
||||
#if !HAVE_PIVOT_ROOT
|
||||
static inline int missing_pivot_root(const char *new_root, const char *put_old) {
|
||||
return syscall(SYS_pivot_root, new_root, put_old);
|
||||
return syscall(__NR_pivot_root, new_root, put_old);
|
||||
}
|
||||
|
||||
# define pivot_root missing_pivot_root
|
||||
@@ -129,7 +129,7 @@ static inline int missing_getrandom(void *buffer, size_t count, unsigned flags)
|
||||
|
||||
#if !HAVE_GETTID
|
||||
static inline pid_t missing_gettid(void) {
|
||||
return (pid_t) syscall(SYS_gettid);
|
||||
return (pid_t) syscall(__NR_gettid);
|
||||
}
|
||||
|
||||
# define gettid missing_gettid
|
||||
|
||||
Reference in New Issue
Block a user