Re: where is fstat
Re: where is fstat
- Subject: Re: where is fstat
- From: Joel Reymont <email@hidden>
- Date: Fri, 16 Jan 2009 22:44:42 +0000
Mighty helpful to trace my funcalls, although I still don't know who
in the kernel, within the fstat call, sets errno to EINVAL and why.
Thanks, Joel
On Jan 16, 2009, at 9:12 PM, Kevin Van Vechten wrote:
Better yet, use DTrace:
#!/usr/sbin/dtrace -s
syscall::fstat:return
/execname == "myprocess" && arg0 != 0/
{
printf("%s[%d] fstat returned %d\n", execname, pid, arg0);
ustack();
}
---
http://twitter.com/wagerlabs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden