home *** CD-ROM | disk | FTP | other *** search
- From: cc1@LOCUS.UCLA.EDU (Michael Gersten)
- Date: Wed, 26 Mar 86 22:54:22 PST
- Organization: Ucla Computer Club (disclaimer)
-
- This is a request for proposal.
-
- One thing unix REALLY needs is a 'write eof' ability.
-
- In particular, how about
- int writeeof(int fd);
-
- which takes a file discriptor as an argument, returns an int
- (for the purpose of success/failure), and does the following:
-
- On a pipe: indicates thaat a read at that point should return EOF
- without advancing the read pointer (or advancing it beyond the EOF marker).
- Purpose: To allow filter program to filter more than just a single
- command (ex: filter | csh. csh will then run other commands, whose
- standard input will be output of filter. EOF could be used to terminate
- such commands)
-
- On a regular file: Indicate that the file should be truncated to this
- point, and excess space freed by the system.
- Purpose: obvious.
-
- On a special file (mag tape): Write an end of tape marker
- Purpose: obvious
-
- On all other files: Either implementation defined or return(-1) if
- nothing.
-
-
- Note: This is my own opinion. It is not that of the UCLA computer club,
- nor of UCLA in general. But I bet there are a lot of unix hacks
- out there who just might be interested in this.
- Michael Gersten
- --
- disclaimer | ihnp4!ucla-cs!cc1 | Michael Gersten | Joke: 412
-
- Volume-Number: Volume 6, Number 5
-
-