This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 0/6] Extended file stat system call
- From: David Howells <dhowells at redhat dot com>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: dhowells at redhat dot com, Roland McGrath <roland at hack dot frob dot com>, linux-fsdevel at vger dot kernel dot org, linux-nfs at vger dot kernel dot org, linux-cifs at vger dot kernel dot org, samba-technical at lists dot samba dot org, linux-ext4 at vger dot kernel dot org, wine-devel at winehq dot org, kfm-devel at kde dot org, nautilus-list at gnome dot org, linux-api at vger dot kernel dot org, libc-alpha at sourceware dot org
- Date: Thu, 26 Apr 2012 15:04:07 +0100
- Subject: Re: [PATCH 0/6] Extended file stat system call
- References: <4F9088D6.9020203@cs.ucla.edu> <20120419140558.17272.74360.stgit@warthog.procyon.org.uk> <20120419163238.61D382C0DF@topped-with-meat.com>
Paul Eggert <eggert@cs.ucla.edu> wrote:
> On 04/19/2012 09:32 AM, Roland McGrath wrote:
> > I have no comment on the functionality. But "xstat" is probably a poor
> > choice of name.
>
> In AIX 7.1 the (similar) function is called statxat instead of xstat.
> The API isn't exactly the same, but it's the same basic idea.
> Might be worth looking at, not merely to see whether the API
> should be the same, but also to borrow good ideas even if not.
>
> http://pic.dhe.ibm.com/infocenter/aix/v7r1/topic/com.ibm.aix.basetechref/doc/basetrf2/statx.htm
Interesting. I wasn't intending to provide both statx() and statxat()
variants, just the latter, in which case I'd've though that -at suffix is
redundant.
I note that they split their time fields into separate seconds and ns fields,
presumably for better packing.
David