Email List: Xaustin-group-futures-lX
[All Lists]

Re: thread-private working directory

To: Markus Gyger <yyyyyy@xxxxxxxxx>
Subject: Re: thread-private working directory
From: Marcus Brinkmann <yyyyyyyyyyyyyyyy@xxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Aug 2003 13:28:25 +0200
Cc: Jason Zions <yyyyyyyy@xxxxxxxxxxxxxxxxxxx>, s lurndal <yyyyyyyy@xxxxxxxxxxxx>, Kaz Kylheku <yyy@xxxxxxxxxxxxxxxxxxx>, Alexander Terekhov <yyyyyyyy@xxxxxxxxxx>, yyyyyyyyyyyyyyyyyyyyyy@xxxxxxxxxxxxx, yyyyyyyyyyyyyy@xxxxxxxxxxxxx
References: <200308042322.h74NMnJ1017966@cs1.gmu.edu>
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/

<Prev in Thread] Current Thread [Next in Thread>