Skip to content

Instantly share code, notes, and snippets.

@dcapwell
Created October 9, 2013 20:32
Show Gist options
  • Save dcapwell/6907836 to your computer and use it in GitHub Desktop.
Save dcapwell/6907836 to your computer and use it in GitHub Desktop.
libs opened by bash on mac
$ sudo dtruss /bin/bash -c "echo hi" 2>&1 | egrep "^stat"
stat64("/AppleInternal\0", 0x7FFF584C0DD8, 0x0) = -1 Err#2
stat64("/Users/capwed\0", 0x7FFF584C1708, 0x0) = 0 0
stat64(".\0", 0x7FFF584C1678, 0x0) = 0 0
stat64("/usr/lib/libstdc++.6.dylib\0", 0x7FFF584C03E0, 0x7FFF584C12E0) = 0 0
stat64("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x7FFF584C0610, 0x7FFF584C15E0) = 0 0
stat64("/usr/lib/libncurses.5.4.dylib\0", 0x7FFF584C03E0, 0x7FFF584C12E0) = 0 0
stat64("/usr/lib/libSystem.B.dylib\0", 0x7FFF584C03E0, 0x7FFF584C12E0) = 0 0
stat64("/usr/lib/system/libcache.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libcommonCrypto.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libcompiler_rt.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libcopyfile.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libdispatch.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libdnsinfo.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libdyld.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libkeymgr.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/liblaunch.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libmacho.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libquarantine.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libremovefile.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libsystem_blocks.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libsystem_c.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libsystem_dnssd.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libsystem_info.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libsystem_kernel.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libsystem_m.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libsystem_network.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libsystem_notify.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libsystem_sandbox.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libunc.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libunwind.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libxpc.dylib\0", 0x7FFF584BFFE0, 0x7FFF584C0EE0) = 0 0
stat64("/usr/lib/system/libcorecrypto.dylib\0", 0x7FFF584BFEE0, 0x7FFF584C0DE0) = 0 0
stat64("/usr/lib/libobjc.A.dylib\0", 0x7FFF584BFEC0, 0x7FFF584C0DC0) = 0 0
stat64("/usr/lib/libauto.dylib\0", 0x7FFF584BFEC0, 0x7FFF584C0DC0) = 0 0
stat64("/usr/lib/libc++abi.dylib\0", 0x7FFF584BFD90, 0x7FFF584C0C90) = 0 0
stat64("/usr/lib/libc++.1.dylib\0", 0x7FFF584BFD90, 0x7FFF584C0C90) = 0 0
stat64("/usr/lib/libDiagnosticMessagesClient.dylib\0", 0x7FFF584BFC70, 0x7FFF584C0B70) = 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment