This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: FYI: new openat-like function: mkdirat
- From: Jim Meyering <jim at meyering dot net>
- To: Roland McGrath <roland at redhat dot com>
- Cc: bug-gnulib at gnu dot org, libc-alpha at sources dot redhat dot com, Ulrich Drepper <drepper at redhat dot com>
- Date: Wed, 30 Nov 2005 21:53:53 +0100
- Subject: Re: FYI: new openat-like function: mkdirat
- References: <20051130195500.606D01809B9@magilla.sf.frob.com>
Roland McGrath <roland@redhat.com> wrote:
> I think that the Solaris *at functions were really primarily intended for
> use with O_XATTR to get at "file attribute" magic pseudo-directories rather
> than to optimize use of normal directories and files. Probably mkdirat
> doesn't make sense in Solaris attribute pseudo-directories. But mkdirat is
> as useful in general as any of those *at additions, so I'd say we might as
> well have it.
Good! Thanks.
cp, cpio, mv, and tar currently use mkfifo and mknod,
so you might want to add mkfifoat and mknodat to the list, too.
I haven't looked too closely at find, but its -execdir predicate
makes me think having exec*at functions would be useful, too.
But can glibc provide those without kernel support?