Advertisement
Guest User

bs linux code

a guest
Nov 21st, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <unistd.h>
  3. #include <sys/syscall.h>
  4.  
  5. int main(int argc, int **argv) {
  6. int sysPID;
  7. pid_t userPID;
  8.  
  9. sysPID = syscall(SYS_getpid);
  10. userPID = getpid();
  11.  
  12. printf("\n syscall: %d", sysPID);
  13. printf(" usermode-API: %d\n", (int)userPID);
  14.  
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement