From owner-freebsd-bugs Mon Jun 8 10:41:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA00208 for freebsd-bugs-outgoing; Mon, 8 Jun 1998 10:41:45 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA00157 for ; Mon, 8 Jun 1998 10:41:27 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id KAA11317; Mon, 8 Jun 1998 10:40:03 -0700 (PDT) Date: Mon, 8 Jun 1998 10:40:03 -0700 (PDT) Message-Id: <199806081740.KAA11317@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Bill Fenner Subject: Re: bin/4599 Reply-To: Bill Fenner Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/4599; it has been noted by GNATS. From: Bill Fenner To: Heikki Suonsivu Cc: freebsd-gnats-submit@freebsd.org Subject: Re: bin/4599 Date: Mon, 8 Jun 1998 10:36:40 PDT I dunno how relevant the Open Group's "Single UNIX ® Specification, Version 2" is as a standards document, but it simply says that mktemp() takes an argument with 6 X's in it and replaces each X with a single byte character from the portable filename character set. It does say, however, "If a unique name cannot be created, [mktemp returns] a null string"; ("null string" means "", not NULL). Although mktemp() clearly needs to read the directory in order to ensure that the name is unique, it's also fairly clear that if the directory doesn't exist then the name is unique. Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message