On Tue, Aug 05, 2003 at 01:22:49AM +0200, Markus Gyger wrote:
> Solaris 9 does have some of them. Extracts from the fsattr(5) man page:
>
> int openat(int fd, const char *path, int oflag [, mode_t mode])
The Hurd has, using its own special types:
/* Open a port to FILE with the given FLAGS and MODE (see <fcntl.h>). The
file lookup uses the current root directory, but uses STARTDIR as the
"working directory" for file relative names. Returns a port to the file
if successful; otherwise sets rrno' and returns MACH_PORT_NULL. */
extern file_t file_name_lookup_under (file_t startdir, const char *file,
int flags, mode_t mode);
Replace "port" with "file descriptor" and "file_t" with "int" and you have
the POSIX view on the issue.
So it seems that two independent designs arrived at basically the logically
exactly same prototype.
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' GNU http://www.gnu.org yyyyyy@xxxxxxx
Marcus Brinkmann The Hurd http://www.gnu.org/software/hurd/
yyyyyyyyyyyyyyyy@xxxxxxxxxxxxxxxxxx
http://www.marcus-brinkmann.de/
|