home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: gwyn@smoke.brl.mil (Doug Gwyn)
-
- In article <115lfnINNc16@ftp.UU.NET> franl@centerline.com (Fran Litterio) writes:
- >Not so ugly to me. After all, chdir(2) puts you there, why not
- >getcwd(2) to tell you where you are?
-
- As I mentioned a few years ago in one of the other newsgroups,
- 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.
- Whether it is actually implemented that simplistically in the
- kernel instead of mapping it into some sort of current-inumber
- cache scheme as is presently used would be entirely up to the
- kernel implementor.
-
- 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.
-
-
- Volume-Number: Volume 28, Number 24
-
-