*BSD News Article 67437


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.cps.udayton.edu!news.engr.udayton.edu!blackbird.afit.af.mil!zombie.ncsc.mil!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!news.rhrz.uni-bonn.de!saph2.physik.uni-bonn.de!juengst
From: juengst@saph1.physik.uni-bonn.de (Henry G. Juengst)
Newsgroups: comp.unix.misc,comp.unix.bsd.misc
Subject: Re: How to delete files within C programs
Date: 2 May 1996 00:30:28 GMT
Organization: Institut fuer Strahlen- und Kernphysik
Lines: 25
Sender: juengst@saph2.physik.uni-bonn.de (Henry G. Juengst)
Distribution: world
Message-ID: <4m8vn4$3f8@news.rhrz.uni-bonn.de>
References: <Oum-El-Kheir.Benkahla-3004961724540001@mac-ugm-3.imag.fr> <4m5p3k$3nq@dfw-ixnews2.ix.netcom.com> <4m7sr3$rf9@news.rhrz.uni-bonn.de> <4m8csc$3jg@innocence.interface-business.de> <DqquoL.5z5@kithrup.com>
Reply-To: juengst@saph1.physik.uni-bonn.de
NNTP-Posting-Host: saph1.physik.uni-bonn.de
Xref: euryale.cc.adfa.oz.au comp.unix.misc:22337 comp.unix.bsd.misc:884


In article <DqquoL.5z5@kithrup.com>, sef@kithrup.com (Sean Eric Fagan) writes:
>In article <4m8csc$3jg@innocence.interface-business.de>,
>J Wunsch <joerg_wunsch@interface-business.de> wrote:
>>Anyway, unlink() is plain standard C, so you can get any C book to
>>learn this.
>
>Actually, unlink() is POSIX, not "standard C."  ANSI has "remove()," which,
>while it doesn't guarantee that the file will be actually removed, is
>probably good enough in most cases.  (An implementation could, instead of
>actually removing a file, simply change the name.)

And POSIX is not ANSI and vice versa. There is no "standard C".
Add to this that POSIX is not unix, just a subset (e.g. VMS also
includes POSIX, which is really not unix, fortunately - for VMS).
That makes it much more difficult for beginners.

Henry

--
juengst@saph1.physik.uni-bonn.de         [131.220.161.1]  (Internet)
omni:.de.uni-bonn.physik.saph1::juengst                   (DECnet/OSI, phase V)
saph1::juengst                           [26.358]         (DECnet, phase IV)

Any opinions in this mail are my own.