Re: where is fstat
Re: where is fstat
- Subject: Re: where is fstat
- From: Joel Reymont <email@hidden>
- Date: Fri, 16 Jan 2009 20:37:04 +0000
On Jan 16, 2009, at 8:25 PM, Jason Coco wrote:
It's a syscall, so it's only a stub in libc. It's actually defined
in the kernel (the xnu module).
A follow-up question then... under what conditions can fstat return
EINVAL (invalid argument)?
I can call fstat for stdin, stdout and stderr just fine but as soon as
I give it my fd (opened read-only), it gives me an error.
I'll go dig through the kernel sources in the meantime.
Thanks, Joel
---
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