home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.21 / text0087.txt < prev    next >
Encoding:
Internet Message Format  |  1990-10-26  |  722 b 

  1. From:  jtkohl@MIT.EDU (John T Kohl)
  2.  
  3. In article <490@usenix.ORG> caywood@teb.larc.nasa.gov (John Caywood) writes:
  4. > I take this to mean that, no, cp doesn't unlink an existing file, but
  5. > it truncates it upon opening under these conditions.  Consequently,
  6. > yes, djm is correct, cp doesn't unlink.  I don't understand, though,
  7. > why opening with O_TRUNC isn't equivalent.
  8.  
  9. Consider the case where the file in question has several hard links from
  10. different filenames.  O_TRUNC is not equivalent to unlink.
  11. --
  12. John Kohl <jtkohl@ATHENA.MIT.EDU> or <jtkohl@MIT.EDU>
  13. Digital Equipment Corporation/Project Athena
  14. (The above opinions are MINE.  Don't put my words in somebody else's mouth!)
  15.  
  16. Volume-Number: Volume 21, Number 88
  17.  
  18.