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: Roland McGrath <roland at redhat dot com>
- To: Jim Meyering <jim at meyering dot net>
- 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 13:36:58 -0800 (PST)
- Subject: Re: FYI: new openat-like function: mkdirat
> So I guess the exec*at business would ultimately be more complicated,
> with two file descriptor parameters: one identifying the working
> directory, and another by which to interpret the first parameter
> if it's a relative file name.
It seems adequate to just use chdir/fchdir for changing cwd, and then
execveat given the file name (you can get an fd for the original cwd before
chdir, for relative paths in exec).
But note that we already have fexecve.