*BSD News Article 68639


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!odin.oar.net!malgudi.oar.net!imci4!newsfeed.internetmci.com!netnews.nwnet.net!arclight.uoregon.edu!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.misc,comp.unix.bsd.misc
Subject: Re: How to delete files within C programs
Followup-To: comp.unix.misc,comp.unix.bsd.misc
Date: 15 May 1996 14:24:57 +0100
Organization: Coverform Ltd.
Lines: 53
Message-ID: <4nclv9$11s@anorak.coverform.lan>
References: <Oum-El-Kheir.Benkahla-3004961724540001@mac-ugm-3.imag.fr> <4mv2r7$ld3@news.rhrz.uni-bonn.de> <4mvsjp$nhn@web.nmti.com> <4n5cer$33m@news.rhrz.uni-bonn.de> <4n7mse$o34@web.nmti.com>
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.misc:22805 comp.unix.bsd.misc:1063

Peter da Silva (peter@nmti.com) wrote:

: Most of the software on the net is that sort of code. Look at all the code
: that calls:

: 	execl(arg, arg, arg, arg, 0);

: The amount of code that uses NULL or casts the 0 to (char *) is definitely
: in the minority. Yet that's one of the most basic rank beginner mistakes...
: but it worked fine on 32-bit systems so who cared?

Also works fine with any compiler worth its salt that's given a prototype.

: I'm thankful I had to port this stuff to Xenix-286. Taught me discipline.

: > >Or let's look at VMS. How to you remove a print job again? I can't
: > >keep track of whether it's DELETE QUEUE/JOB or DELETE /QUEUE or DELETE
: > >JOB. It wouldn't surprise me to find it's now SET JOB/NOPRINT. Half the
: > >commands in VMS are hidden under SET somewhere, including their remote
: > >terminal program (SET HOST).

: > Especially for you (quoted VMS help, callable via 'HELP'):

: > DELETE [...]

: That is, if you already know that the command to cancel a print job is
: "delete", which is at *least* as counterintuitive as "unlink" to delete
: a file (hint to DEC, try "cancel").

: If you don't already know what you're looking for VMS HELP is a joke.

: > Peter, if you have fundamental problems with VMS concepts I recommend
: > not to start a discussion about it (perhaps in comp.os.vms).

: Henry, if you have a fundamental problem with UNIX, I recommend you don't
: start flaming it in comp.unix. And if you do, then expect your own ox to be
: gored. It's your discussion. You started it. Take responsibility for the
: consequences of your own actions.

: UNIX doesn't have a monopoly on obscure commands, and it at least provides
: decent cross-references from one part of a subsystem to another so if you
: know the command to print a file you can find the command to cancel the print
: job in the same section of the online documentation.

: -- 
: Peter da Silva    (NIC: PJD2)      `-_-'             1601 Industrial Boulevard
: Bailey Network Management           'U`             Sugar Land, TX  77487-5013
: +1 713 274 5180         "Har du kramat din varg idag?"                     USA
: Bailey pays for my technical expertise.        My opinions probably scare them

--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....