Displaying 2 results from an estimated 2 matches for "___syscall_num".
2020 Jul 28
2
[PATCH] Add syscall wrappers required by libkeyutils
...this using varadic macros. Let me play around with it a little bit.
>
This might actually work:
/*
* Not prototyped on purpose, as (...) isn't a valid prototype.
* __extension__ prevents erroring out due to lack of prototype.
*/
__extension__ extern long long ___syscall();
extern long ___syscall_num;
#define syscall(n, ...) \
(___syscall_num = (n), ___syscall(__VA_ARGS__))
... then have ___syscall() get the system call number from the memory variable
___syscall_num (If klibc were multithreaded it would have to be a thread-local
variable, of course) and call the common syscall handler c...
2020 Jul 28
2
[PATCH] Add syscall wrappers required by libkeyutils
On Mon, 2020-07-27 at 05:46 -0700, hpa at zytor.com wrote:
> On July 27, 2020 2:43:36 AM PDT, Christian Eggers <ceggers at arri.de> wrote:
> > On Saturday, 25 July 2020, 23:36:33 CEST, Ben Hutchings wrote:
> > > On Wed, 2020-07-08 at 08:37 +0200, Christian Eggers wrote:
> > > > ...
> > > > libkeyutils usually invokes syscall() directly. As syscall()