[20050307]
|
openat(2) patch
Following up recent discussion,
Steinar Hamre has posted
patches for an openat(2) system call. Quoting from the Solaris 9/x86
manpage, here is what openat(2) does:
The openat() function is identical to the open() function
except that the path argument is interpreted relative to the
starting point implied by the fd argument. If the fd argu-
ment has the special value AT_FDCWD, a relative path argu-
ment will be resolved relative to the current working direc-
tory. If the path argument is absolute, the fd argument is
ignored.
The function can be used to increase security as well as readability
of the fts(3) file hierarchy traversal system framework.
[Tags: openat]
|