Date: Thu, 27 Mar 1997 15:45:40 +1100 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, imp@village.org 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 Subject: Re: cvs commit: src/lib/libtermcap pathnames.h termcap.c Message-ID: <199703270445.PAA09716@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>: 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703270445.PAA09716>