Skip to content

Instantly share code, notes, and snippets.

@seppo0010
Created November 16, 2016 21:16
Show Gist options
  • Save seppo0010/25fd872d57413fe72958b824001bf962 to your computer and use it in GitHub Desktop.
Save seppo0010/25fd872d57413fe72958b824001bf962 to your computer and use it in GitHub Desktop.
seppo@nbba-swaisbrot:~$ strace date
execve("/bin/date", ["date"], [/* 83 vars */]) = 0
brk(NULL) = 0x2170000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc2eabf4000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=112343, ...}) = 0
mmap(NULL, 112343, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fc2eabd8000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1864888, ...}) = 0
mmap(NULL, 3967392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fc2ea608000
mprotect(0x7fc2ea7c7000, 2097152, PROT_NONE) = 0
mmap(0x7fc2ea9c7000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bf000) = 0x7fc2ea9c7000
mmap(0x7fc2ea9cd000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc2ea9cd000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc2eabd7000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc2eabd6000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc2eabd5000
arch_prctl(ARCH_SET_FS, 0x7fc2eabd6700) = 0
mprotect(0x7fc2ea9c7000, 16384, PROT_READ) = 0
mprotect(0x60f000, 4096, PROT_READ) = 0
mprotect(0x7fc2eabf6000, 4096, PROT_READ) = 0
munmap(0x7fc2eabd8000, 112343) = 0
brk(NULL) = 0x2170000
brk(0x2191000) = 0x2191000
open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1087, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=1087, ...}) = 0
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\6\0\0\0\0"..., 4096) = 1087
lseek(3, -673, SEEK_CUR) = 414
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\6\0\0\0\0"..., 4096) = 673
close(3) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
write(1, "Wed Nov 16 18:15:42 ART 2016\n", 29Wed Nov 16 18:15:42 ART 2016
) = 29
close(1) = 0
close(2) = 0
exit_group(0) = ?
+++ exited with 0 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment