home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v6 / text0004.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  1.3 KB

  1. From: cc1@LOCUS.UCLA.EDU (Michael Gersten)
  2. Date:    Wed, 26 Mar 86 22:54:22 PST
  3. Organization: Ucla Computer Club (disclaimer)
  4.  
  5. This is a request for proposal.
  6.  
  7. One thing unix REALLY needs is a 'write eof' ability.
  8.  
  9. In particular, how about
  10. int writeeof(int fd);
  11.  
  12. which takes a file discriptor as an argument, returns an int
  13. (for the purpose of success/failure), and does the following:
  14.  
  15. On a pipe: indicates thaat a read at that point should return EOF
  16. without advancing the read pointer (or advancing it beyond the EOF marker).
  17. Purpose: To allow filter program to filter more than just a single
  18. command (ex: filter | csh. csh will then run other commands, whose
  19. standard input will be output of filter. EOF could be used to terminate
  20. such commands)
  21.  
  22. On a regular file: Indicate that the file should be truncated to this
  23. point, and excess space freed by the system.
  24. Purpose: obvious.
  25.  
  26. On a special file (mag tape): Write an end of tape marker
  27. Purpose: obvious
  28.  
  29. On all other files: Either implementation defined or return(-1) if
  30. nothing.
  31.  
  32.  
  33. Note: This is my own opinion. It is not that of the UCLA computer club,
  34. nor of UCLA in general. But I bet there are a lot of unix hacks
  35. out there who just might be interested in this.
  36.             Michael Gersten
  37. -- 
  38. disclaimer | ihnp4!ucla-cs!cc1 | Michael Gersten | Joke: 412
  39.  
  40. Volume-Number: Volume 6, Number 5
  41.  
  42.