home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: peter@ferranti.com (Peter da Silva)
-
- In article <11ase4INNrh6@ftp.UU.NET> gwyn@smoke.brl.mil (Doug Gwyn) writes:
- > I think a better design for the whole "current directory" approach
- > is for chdir() to set a "path prefix" for the process (and its
- > children) and for getcwd() to retrieve this prefix string.
-
- This would mean two programs on the same system could be in the same
- directory and getcwd would return different values.
-
- A better design still would be to make the current directory a standard
- file descriptor, and make the basic call used to implement chdir accept
- a file descriptor rather than a file name. That way you could do things
- like getcwd() and ftw() cleanly without having to fork a child or risk
- getting lost in a maze of twisty little links.
-
- I also think argv and envp should be passed in on yet another standard
- file descriptor as well... let's simplify the design rather than complicate
- it.
-
- > With a scheme like that it is trivial to implement "." and ".."
- > in user-mode libraries. I use an operating system like that at
- > home and it works fine, with none of the problems we have seen
- > mentioned in this thread.
-
- What operating system is this?
-
- (of course, I use a couple of OSes that work the way I described, and it
- still works fine).
- --
- Peter da Silva `-_-'
- L5 Society: gone, but not forgotten... 'U`
- Ferranti International Controls Corporation Have you hugged
- Sugar Land, TX 77487-5012 +1 713 274 5180 your wolf today?
-
-
- Volume-Number: Volume 28, Number 26
-
-