From owner-freebsd-stable Wed Jun 7 23:57:50 2000 Delivered-To: freebsd-stable@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id B75F337B510 for ; Wed, 7 Jun 2000 23:57:46 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 8 Jun 2000 07:57:45 +0100 (BST) Date: Thu, 8 Jun 2000 07:57:45 +0100 From: David Malone To: Alfred Perlstein Cc: Ronaldo Carpio , stable@FreeBSD.ORG Subject: Re: remove() behavior? Message-ID: <20000608075745.A84024@walton.maths.tcd.ie> References: <20000608012333.19196.qmail@web704.mail.yahoo.com> <20000607210157.B18462@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000607210157.B18462@fw.wintelcom.net>; from bright@wintelcom.net on Wed, Jun 07, 2000 at 09:01:57PM -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jun 07, 2000 at 09:01:57PM -0700, Alfred Perlstein wrote: > * Ronaldo Carpio [000607 18:25] wrote: > > > > What should the behavior of the remove() stdio function be? The > > man page says it's an alias for unlink(), but Linux and Solaris say > > it should unlink() files and rmdir() dirs, and Stevens' APUE agrees. > > The manpage says that our remove(): > > The remove() function conforms to ISO 9899: 1990 (``ISO C''). > > Can you quote from a standard that says otherwise? (I don't have > ISO 9899: 1990) Single unix spec 2 says: DESCRIPTION The remove() function causes the file named by the pathname pointed to by path to be no longer accessible by that name. A subsequent attempt to open that file using that name will fail, unless it is created anew. If path does not name a directory, remove(path) is equivalent to unlink(path). If path names a directory, remove(path) is equivalent to rmdir(path). It would be pretty easy to change though. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message