|
@@ -39,13 +39,13 @@
|
|
|
|
|
|
/* Just like INLINE_SYSCALL(), but take a non-constant syscall (NCS) argument */
|
|
/* Just like INLINE_SYSCALL(), but take a non-constant syscall (NCS) argument */
|
|
#ifndef INLINE_SYSCALL_NCS
|
|
#ifndef INLINE_SYSCALL_NCS
|
|
-# define INLINE_SYSCALL_NCS(name, nr, args...) \
|
|
|
|
|
|
+# define INLINE_SYSCALL_NCS(num, nr, args...) \
|
|
(__extension__ \
|
|
(__extension__ \
|
|
({ \
|
|
({ \
|
|
INTERNAL_SYSCALL_DECL(__err); \
|
|
INTERNAL_SYSCALL_DECL(__err); \
|
|
(__extension__ \
|
|
(__extension__ \
|
|
({ \
|
|
({ \
|
|
- long __res = INTERNAL_SYSCALL_NCS(name, __err, nr, args); \
|
|
|
|
|
|
+ long __res = INTERNAL_SYSCALL_NCS(num, __err, nr, args); \
|
|
if (unlikely(INTERNAL_SYSCALL_ERROR_P(__res, __err))) { \
|
|
if (unlikely(INTERNAL_SYSCALL_ERROR_P(__res, __err))) { \
|
|
__set_errno(INTERNAL_SYSCALL_ERRNO(__res, __err)); \
|
|
__set_errno(INTERNAL_SYSCALL_ERRNO(__res, __err)); \
|
|
__res = -1L; \
|
|
__res = -1L; \
|
|
@@ -57,10 +57,10 @@
|
|
)
|
|
)
|
|
#endif
|
|
#endif
|
|
#ifndef INLINE_SYSCALL_NOERR_NCS
|
|
#ifndef INLINE_SYSCALL_NOERR_NCS
|
|
-# define INLINE_SYSCALL_NOERR_NCS(name, nr, args...) \
|
|
|
|
|
|
+# define INLINE_SYSCALL_NOERR_NCS(num, nr, args...) \
|
|
({ \
|
|
({ \
|
|
INTERNAL_SYSCALL_DECL(__err); \
|
|
INTERNAL_SYSCALL_DECL(__err); \
|
|
- long __res = INTERNAL_SYSCALL_NCS(name, __err, nr, args); \
|
|
|
|
|
|
+ long __res = INTERNAL_SYSCALL_NCS(num, __err, nr, args); \
|
|
__res; \
|
|
__res; \
|
|
})
|
|
})
|
|
#endif
|
|
#endif
|