FYI: new openat-like function: mkdirat

Jim Meyering jim@meyering.net
Wed Nov 30 20:53:00 GMT 2005


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?



More information about the Libc-alpha mailing list