This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Preliminary openat and friends in 1.7.0-5
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-developers at cygwin dot com
- Date: Wed, 23 Apr 2008 13:32:59 +0200
- Subject: Preliminary openat and friends in 1.7.0-5
- Reply-to: cygwin-developers at cygwin dot com
Hi,
this is mostely for Eric to play with ;)
I added preliminary implementations of the openat family of functions
to Cygwin, namely
openat, faccessat, fchmodat, fchownat, fstatat, futimesat, linkat,
mkdirat, mkfifoat, mknodat, readlinkat, renameat, symlinkat, unlinkat
I've just uploaded 1.7.0-5 which contains these functions to the
release-2 area.
These implementations are preliminary because they convert the directory
descriptor to a pathname, append the given target pathname to it, and
then call the previously existing standard functions with it. Since the
directory could have been renamed in the meantime, the calls could fail
or be misdirected.
However, having these functions in is better than not, and we can
implement them correctly at some later point, when path_conv can handle
directory handle relative paths.
As for futimesat: I know that SUSv4 has deprecated the idea of
futimesat in favor of utimensat. However, futimesat is at least Linux
compatible and so far we don't have an implementation of futimens, which
would be required to implement utimensat in the above manner. I'll add
that later, maybe this week.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat