Skip to content

Instantly share code, notes, and snippets.

@steev
Created April 22, 2016 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steev/0e8cc3bc65331b64368850e4b80e8bde to your computer and use it in GitHub Desktop.
Save steev/0e8cc3bc65331b64368850e4b80e8bde to your computer and use it in GitHub Desktop.
switch (args.nr) {
#if defined(__NR_access)
case __NR_access:
return broker_process->Access(reinterpret_cast<const char*>(args.args[0]),
static_cast<int>(args.args[1]));
#endif
#if defined(__NR_open)
case __NR_open:
return broker_process->Open(reinterpret_cast<const char*>(args.args[0]),
static_cast<int>(args.args[1]));
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment