mirror of https://github.com/hak5/openwrt.git
parent
841f0f23b3
commit
fa11e6e0d6
|
@ -0,0 +1,15 @@
|
|||
--- a/libc/sysdeps/linux/mips/bits/syscalls.h
|
||||
+++ b/libc/sysdeps/linux/mips/bits/syscalls.h
|
||||
@@ -29,6 +29,12 @@
|
||||
} \
|
||||
result_var; })
|
||||
|
||||
+#define INLINE_SYSCALL_NOERR(name, nr, args...) \
|
||||
+ ({ INTERNAL_SYSCALL_DECL(err); \
|
||||
+ long result_var = INTERNAL_SYSCALL(name, err, nr, args); \
|
||||
+ if (err) do { } while (0); \
|
||||
+ result_var; })
|
||||
+
|
||||
#define INTERNAL_SYSCALL_DECL(err) long err
|
||||
|
||||
#define INTERNAL_SYSCALL_ERROR_P(val, err) ((long) (err))
|
Loading…
Reference in New Issue