home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / v21 / 193 < prev    next >
Internet Message Format  |  1990-12-05  |  3KB

  1. From std-unix-request@uunet.uu.net  Tue Oct  9 20:03:05 1990
  2. Received: from cs.utexas.edu by uunet.uu.net (5.61/1.14) with SMTP 
  3.     id AA16820; Tue, 9 Oct 90 20:03:05 -0400
  4. Posted-Date: 8 Oct 90 20:56:03 GMT
  5. Received: by cs.utexas.edu (5.64/1.77) 
  6. From: ske@pkmab.se (Kristoffer Eriksson)
  7. Newsgroups: comp.std.unix
  8. Subject: Re: Unified I/O namespace: what's the point?
  9. Message-Id: <13390@cs.utexas.edu>
  10. References: <13220@cs.utexas.edu> <13343@cs.utexas.edu>
  11. Sender: fletcher@cs.utexas.edu
  12. Organization: Peridot Konsult i Mellansverige AB, Oerebro, Sweden
  13. X-Submissions: std-unix@uunet.uu.net
  14. Date: 8 Oct 90 20:56:03 GMT
  15. Reply-To: std-unix@uunet.uu.net
  16. To: std-unix@uunet.uu.net
  17.  
  18. Submitted-by: ske@pkmab.se (Kristoffer Eriksson)
  19.  
  20. In article <13220@cs.utexas.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes:
  21. >Now we're looking at another possible addition to UNIX that hasn't been
  22. >widely tested: a unified namespace for opening all I/O objects.
  23. >
  24. >I propose that we stop discussing this issue in comp.std.unix and start
  25. >implementing real-world solutions.
  26.  
  27. I am already running a system where a file name can lead to any kind of
  28. I/O object. It works fine, as far as I can judge. What more should I do?
  29.  
  30. (Not everything that could be is implemented via file names in this system,
  31. but there are networks and databases that are interfaced via this mechanism,
  32. and I like it a lot. Server programs attach themselves to directory or file
  33. names, and will take care of all file operations attempted by clients on
  34. this file or directory.)
  35.  
  36. > My approach is to separate opening and connecting into special programs,
  37. >and stick to file descriptors for almost all applications.
  38.  
  39. Doesn't your objection about the semantics of open() on network connections
  40. fall down in that case? Do your special programs for obtaining the file
  41. descriptors make the real semantics of network connections available to
  42. the application any more than open() does?
  43.  
  44. I think file names are more useful. How do you for instance stick a file
  45. descriptor that you obtained by one of your special programs into the
  46. configuration file for some program? File names are readily suitable for
  47. that. If you just stick the network address into the file, the application
  48. will be restricted to network connections (maybe only one type of network,
  49. at that), and the application will have to know how to access that kind of
  50. connection.
  51.  
  52. > If you have a different solution, such as
  53. >overloading open(), why don't you start playing with your library and
  54. >seeing what works? 
  55.  
  56. Too static. You will in practice be conserving the top level of the name
  57. space inside your library routines. With non-shared libraries this would
  58. mean you'ld have to recompile all your programs if you need to change
  59. what kind of objects you can access or how they are accessed. With chared
  60. libraries this only requires recompiling the libraries, but still isn't
  61. something you'ld like to do every day. With the entire name space available
  62. through the filesystem, you can change the entire hierarchy dynamically,
  63. and starting the server for some kind of objects may as part of that same
  64. operation establish the access path (just a file name) through which it is
  65. accessed.
  66. -- 
  67. Kristoffer Eriksson, Peridot Konsult AB, Hagagatan 6, S-703 40 Oerebro, Sweden
  68. Phone: +46 19-13 03 60  !  e-mail: ske@pkmab.se
  69. Fax:   +46 19-11 51 03  !  or ...!{uunet,mcsun}!sunic.sunet.se!kullmar!pkmab!ske
  70.  
  71.  
  72. Volume-Number: Volume 21, Number 193
  73.  
  74.