From owner-cvs-lib Wed Mar 26 20:53:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA04141 for cvs-lib-outgoing; Wed, 26 Mar 1997 20:53:47 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA04133; Wed, 26 Mar 1997 20:53:40 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id PAA09716; Thu, 27 Mar 1997 15:45:40 +1100 Date: Thu, 27 Mar 1997 15:45:40 +1100 From: Bruce Evans Message-Id: <199703270445.PAA09716@godzilla.zeta.org.au> To: bde@zeta.org.au, imp@village.org Subject: Re: cvs commit: src/lib/libtermcap pathnames.h termcap.c Cc: ache@nagual.ru, cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, fenner@parc.xerox.com, peter@spinner.dialix.com, phk@critter.dk.tfs.com Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >: warning: this program uses mkstemp(), which is yet another wrong >: interface (it should allow setting the open mode). > >Can you explain this to me? It always opens the file in O_RDWR mode, so callers have to do extra syscalls if they want to make the file write-only, etc. Also, in cases where the temporary file will be moved to become a non-temporary file, it is good to create the file on the same file system as the final file so that it can be moved atomically. There is no support for locating a temporary directory on a specified file system. Bruce