Hello,
I'm recently arrived to FreeBSD from too many years working with Linux and I'm trying to put the things right with my new FreeBSD .
A very good tool for me was strace, because you can understand what are happening behind the scenes, so I decided to use truss to understand how FreeBSD works (probably dtrace is the best way but I'm going step by step). Using truss I found something annoying (for me):
Is there any reason which truss does not display openat strings arguments? It's impossible that nobody have realized about it because it's hard to find a process not executing openat, so I supposed there is a good reason.
I'm recently arrived to FreeBSD from too many years working with Linux and I'm trying to put the things right with my new FreeBSD .
A very good tool for me was strace, because you can understand what are happening behind the scenes, so I decided to use truss to understand how FreeBSD works (probably dtrace is the best way but I'm going step by step). Using truss I found something annoying (for me):
Code:
$ truss head -1 /etc/passwd 2>&1 | grep open
openat(0xffffff9c,0x800622000,0x100000,0x0,0xfffffffffffffc00,0x400308) = 3 (0x3)
openat(0xffffff9c,0x800618703,0x100000,0x0,0xfffffffffffffc00,0x0) = 3 (0x3)
openat(0xffffff9c,0x80061f060,0x100000,0x0,0x101010101010101,0x8080808080808080) = 3 (0x3)
open("/etc/passwd",O_RDONLY,0666) = 3 (0x3)
$
Is there any reason which truss does not display openat strings arguments? It's impossible that nobody have realized about it because it's hard to find a process not executing openat, so I supposed there is a good reason.