This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FYI: new openat-like function: mkdirat


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]