Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. $ touch file1
  2. $ strace -s 2000 -o unlink.log unlink file1
  3.  
  4. $ touch file1
  5. $ strace -s 2000 -o rm.log rm file1
  6.  
  7. ....
  8. mmap(NULL, 106070960, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6d025cc000
  9. close(3) = 0
  10. unlink("file1") = 0
  11. close(1) = 0
  12. close(2) = 0
  13. exit_group(0) = ?
  14. ....
  15.  
  16. ....
  17. ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
  18. newfstatat(AT_FDCWD, "file1", {st_mode=S_IFREG|0664, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0
  19. geteuid() = 1000
  20. newfstatat(AT_FDCWD, "file1", {st_mode=S_IFREG|0664, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0
  21. faccessat(AT_FDCWD, "file1", W_OK) = 0
  22. unlinkat(AT_FDCWD, "file1", 0) = 0
  23. lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
  24. close(0) = 0
  25. close(1) = 0
  26. close(2) = 0
  27. exit_group(0) = ?
  28. +++ exited with 0 +++
  29. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement