home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1626 / README < prev    next >
Text File  |  1990-12-28  |  585b  |  17 lines

  1. This driver is a System V adaptation of an equivalent driver for 4.2BSD.
  2. The original idea appeared in Version 8 Unix.
  3.  
  4. When a process opens minor device N of this driver it get a file descriptor
  5. which is a duplicate of its own file descriptor N, as if a dup(2) call had
  6. been effected.
  7.  
  8. This is most useful to make it possible to redirect to the standard input
  9. output and error streams programs that require a named file as operand. For
  10. example, something like
  11.  
  12.     cp /etc/passwd /dev/stdout | wc
  13.  
  14. will work as intended (this particular example may not be very useful, but
  15. others are).
  16.  
  17.