Re: where is fstat
Re: where is fstat
- Subject: Re: where is fstat
- From: Kevin Van Vechten <email@hidden>
- Date: Fri, 16 Jan 2009 13:12:26 -0800
On Jan 16, 2009, at 1:02 PM, Joel Reymont wrote:
It's a syscall, so it's only a stub in libc. It's actually defined
in the kernel (the xnu module).
Also, assuming that I can sudo, is it possible to set a breakpoint
in kernel space to see where my fstat call is failing?
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();
}
_______________________________________________
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