home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / std_unix / volume.28 / text0023.txt < prev    next >
Encoding:
Text File  |  1992-08-17  |  948 b   |  24 lines

  1. Submitted-by: gwyn@smoke.brl.mil (Doug Gwyn)
  2.  
  3. In article <115lfnINNc16@ftp.UU.NET> franl@centerline.com (Fran Litterio) writes:
  4. >Not so ugly to me.  After all, chdir(2) puts you there, why not
  5. >getcwd(2) to tell you where you are?
  6.  
  7. As I mentioned a few years ago in one of the other newsgroups,
  8. I think a better design for the whole "current directory" approach
  9. is for chdir() to set a "path prefix" for the process (and its
  10. children) and for getcwd() to retrieve this prefix string.
  11. Whether it is actually implemented that simplistically in the
  12. kernel instead of mapping it into some sort of current-inumber
  13. cache scheme as is presently used would be entirely up to the
  14. kernel implementor.
  15.  
  16. With a scheme like that it is trivial to implement "." and ".."
  17. in user-mode libraries.  I use an operating system like that at
  18. home and it works fine, with none of the problems we have seen
  19. mentioned in this thread.
  20.  
  21.  
  22. Volume-Number: Volume 28, Number 24
  23.  
  24.