Skip to content

Instantly share code, notes, and snippets.

@rfjakob
Created September 10, 2021 15:53
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 rfjakob/adc4726fef0b7108b17d2805db144090 to your computer and use it in GitHub Desktop.
Save rfjakob/adc4726fef0b7108b17d2805db144090 to your computer and use it in GitHub Desktop.
read(0, "\33[I", 4096) = 3
pselect6(1, [0], [], [0], {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
newfstatat(AT_FDCWD, "/home/jakob/tmp/foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
pselect6(1, [0], [], [0], {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
pselect6(1, [0], [], [0], {tv_sec=4, tv_nsec=0}, NULL) = 1 (in [0], left {tv_sec=3, tv_nsec=281668794})
read(0, "\r", 4096) = 1
pselect6(1, [0], [], [0], {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
write(1, "\r", 1) = 1
newfstatat(AT_FDCWD, "/home/jakob/tmp/foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
newfstatat(AT_FDCWD, "/home/jakob/tmp/foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
access("/home/jakob/tmp/foo", W_OK) = 0
getcwd("/home/jakob/tmp", 4096) = 16
write(1, "\33[?25l\"foo\"", 11) = 11
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
access("foo", W_OK) = 0
getxattr("foo", "system.posix_acl_access", 0x7ffc155dce80, 132) = -1 ENODATA (No data available)
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, AT_SYMLINK_NOFOLLOW) = 0
newfstatat(AT_FDCWD, "4913", 0x7ffc155dd210, AT_SYMLINK_NOFOLLOW) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "4913", O_WRONLY|O_CREAT|O_EXCL|O_NOFOLLOW, 0100644) = 5
fchown(5, 1026, 1026) = 0
newfstatat(AT_FDCWD, "4913", {st_mode=S_IFREG|0644, st_size=0, ...}, 0) = 0
close(5) = 0
unlink("4913") = 0
newfstatat(AT_FDCWD, "foo~", 0x7ffc155dd2a0, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
newfstatat(AT_FDCWD, "foo~", 0x7ffc155dbf90, 0) = -1 ENOENT (No such file or directory)
unlink("foo~") = -1 ENOENT (No such file or directory)
rename("foo", "foo~") = 0
fsync(6) = 0
openat(AT_FDCWD, "foo", O_WRONLY|O_CREAT, 0644) = 5
ftruncate(5, 0) = 0
write(5, "dddddddddddd\nasd\nasd\nas\nda\nsd\nas"..., 79) = 79
fsync(5) = 0
getxattr("foo~", "security.selinux", "unconfined_u:object_r:user_tmp_t"..., 255) = 36
getxattr("foo", "security.selinux", "unconfined_u:object_r:user_tmp_t"..., 255) = 36
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
fchmod(5, 0100644) = 0
close(5) = 0
setxattr("foo", "system.posix_acl_access", "\2\0\0\0\1\0\6\0\377\377\377\377\4\0\4\0\377\377\377\377 \0\4\0\377\377\377\377", 28, 0) = 0
write(1, " 13L, 79B written", 17) = 17
newfstatat(AT_FDCWD, "/home/jakob/tmp/foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
unlink("foo~") = 0
getcwd("/home/jakob/tmp", 4096) = 16
write(1, "\33[3;1H\33[24;112H3,1\33[11CAll\33[24;1"..., 38) = 38
pselect6(1, [0], [], [0], {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
write(1, "\33[24;112H3,1\33[11CAll\33[3;1H\33[?25h", 32) = 32
pselect6(1, [0], [], [0], {tv_sec=4, tv_nsec=0}, NULL) = 1 (in [0], left {tv_sec=2, tv_nsec=803166089})
read(0, "\33[O", 4096) = 3
pselect6(1, [0], [], [0], {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
pselect6(1, [0], [], [0], {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
pselect6(1, [0], [], [0], {tv_sec=4, tv_nsec=0}, NULL^Cstrace: Process 1676986 detached
<detached ...>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment