Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <unistd.h>
- #include <sys/syscall.h>
- int main(int argc, int **argv) {
- int sysPID;
- pid_t userPID;
- sysPID = syscall(SYS_getpid);
- userPID = getpid();
- printf("\n syscall: %d", sysPID);
- printf(" usermode-API: %d\n", (int)userPID);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement