|
From: | Paolo Bonzini |
Subject: | basing *at functions over openat when available? |
Date: | Thu, 24 Sep 2009 08:26:54 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3 |
Mingw is perfectly able to implement both fchmod and openat via NTDLL functions (NtSetInformationFile and NtCreateFile/NtOpenFile). While underdocumented, these functions _are_ stable and are used for example by Cygwin.
While looking at it, I was surprised that there is no support for implementing fchmodat on top of openat+fchmod. Are there POSIX systems that only implement openat and possibly O_NOFOLLOW? In this case, a version of at-func.c supporting those systems would be nice to have.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |