Skip to content

Instantly share code, notes, and snippets.

@lynus
Created February 5, 2020 04:03
Show Gist options
  • Save lynus/6759624daec21cd87562e6cc5e23c0a8 to your computer and use it in GitHub Desktop.
Save lynus/6759624daec21cd87562e6cc5e23c0a8 to your computer and use it in GitHub Desktop.
query syscall number with your compiler
printf SYS_eventfd2 | gcc -include sys/syscall.h -E -
or check out ia32 syscall number:
printf SYS_eventfd2 | gcc -include sys/syscall.h -E -m32 -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment