home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / std / unix / 528 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.9 KB

  1. Path: sparky!uunet!not-for-mail
  2. From: davecb@nexus.yorku.ca (David Collier-Brown)
  3. Newsgroups: comp.std.unix
  4. Subject: Re: IMPORTANT: POSIX threatens our use of l
  5. Date: 23 Jan 1993 10:02:23 -0800
  6. Organization: York University
  7. Lines: 31
  8. Sender: sef@ftp.UU.NET
  9. Approved: sef@ftp.uucp (Moderator, Sean Eric Fagan)
  10. Message-ID: <1js17fINNenp@ftp.UU.NET>
  11. References: <1993Jan21.100223.17722@onionsnatcorp.ox.ac.uk> <1jmq5oINNfna@ftp.UU.NET>
  12. NNTP-Posting-Host: ftp.uu.net
  13. X-Submissions: std-unix@uunet.uu.net
  14.  
  15. Submitted-by: davecb@nexus.yorku.ca (David Collier-Brown)
  16.  
  17. geoff@tyger.East.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top) writes:
  18. >Maybe we should just define a printing API. Nail down a really
  19. >straightforward interface (just half a dozen calls or so), then divvy
  20. >up the work to create a SunOS shared lib for Solaris 2.x, plus one for
  21. >SunOS 4.1.x, a DLL for MS Windows, a static lib for BSD386/386bsd (and
  22. >linux?), one for Ultrix etc. Thoughts?
  23.  
  24.   I'd like to follow the implied RFC model a bit closer and define a
  25. protocol.  You know, like ``first you open the file, then read or write
  26. for a while, then close''.
  27.   A little more formally, `` open [read*|write]* [seek [write*|read]] close''.
  28.  
  29.   An API is necessary and about two thirds of sufficient.  A protocol is
  30. odd-loking, but sufficient.  To make it more palatable, you could easily
  31. include a call interface in a common language.
  32.   The advantage of doing the extra work is in making any ordering, temporal
  33. effects and prerequiesites explicit.  This leads to easy implementation of
  34. programs using the interface.
  35.  
  36. --dave (who is notably lazy, and so goes to great lengths
  37.     to avoid future work) c-b
  38. -- 
  39. David Collier-Brown,  | davecb@CCS.YorkU.CA | lethe!dave
  40. 72 Abitibi Ave.,      | 
  41. Willowdale, Ontario,  | York postmaster and
  42. CANADA. 416-223-8968  | occasional sendfail(8) consultant.
  43.  
  44.  
  45. Volume-Number: Volume 30, Number 38
  46.