home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
std_unix
/
v21
/
088
< prev
next >
Wrap
Internet Message Format
|
1990-12-05
|
1KB
From std-unix-request@uunet.uu.net Fri Sep 7 14:19:44 1990
Received: from cs.utexas.edu by uunet.uu.net (5.61/1.14) with SMTP
id AA21972; Fri, 7 Sep 90 14:19:44 -0400
Posted-Date: 7 Sep 90 16:25:05 GMT
Received: by cs.utexas.edu (5.64/1.76)
From: jtkohl@MIT.EDU (John T Kohl)
Newsgroups: comp.std.unix
Subject: Re: Query about P1003.2 'cp' utility
Message-Id: <494@usenix.ORG>
References: <490@usenix.ORG> <DJM.90Aug17151613@jolt.eng.umd.edu> <439@usenix.ORG>
Sender: std-unix@usenix.ORG
Organization: MIT Project Athena
X-Submissions: std-unix@uunet.uu.net
Date: 7 Sep 90 16:25:05 GMT
Reply-To: std-unix@uunet.uu.net
To: std-unix@uunet.uu.net
From: jtkohl@MIT.EDU (John T Kohl)
In article <490@usenix.ORG> caywood@teb.larc.nasa.gov (John Caywood) writes:
> I take this to mean that, no, cp doesn't unlink an existing file, but
> it truncates it upon opening under these conditions. Consequently,
> yes, djm is correct, cp doesn't unlink. I don't understand, though,
> why opening with O_TRUNC isn't equivalent.
Consider the case where the file in question has several hard links from
different filenames. O_TRUNC is not equivalent to unlink.
--
John Kohl <jtkohl@ATHENA.MIT.EDU> or <jtkohl@MIT.EDU>
Digital Equipment Corporation/Project Athena
(The above opinions are MINE. Don't put my words in somebody else's mouth!)
Volume-Number: Volume 21, Number 88