From owner-freebsd-hackers Sun May 14 19:49:16 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from tomts1-srv.bellnexxia.net (tomts1.bellnexxia.net [209.226.175.139]) by hub.freebsd.org (Postfix) with ESMTP id E66E237B57E; Sun, 14 May 2000 19:49:13 -0700 (PDT) (envelope-from hoek@FreeBSD.org) Received: from localhost.nowhere ([206.172.76.6]) by tomts1-srv.bellnexxia.net (InterMail vM.4.01.02.17 201-229-119) with ESMTP id <20000515024911.BQKA28912.tomts1-srv.bellnexxia.net@localhost.nowhere>; Sun, 14 May 2000 22:49:11 -0400 Received: (from tim@localhost) by localhost.nowhere (8.9.3/8.9.1) id WAA14471; Sun, 14 May 2000 22:49:05 -0400 (EDT) (envelope-from tim) Date: Sun, 14 May 2000 22:49:05 -0400 From: Tim Vanderhoek To: Kris Kennaway Cc: James Howard , freebsd-hackers@FreeBSD.org Subject: Re: mktemp() vs. mkstemp() Message-ID: <20000514224905.D14160@mad> References: <200005141849.OAA21071@rac10.wam.umd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: ; from Kris Kennaway on Sun, May 14, 2000 at 01:56:28PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, May 14, 2000 at 01:56:28PM -0700, Kris Kennaway wrote: > > > integer file descriptor whereas normal people use FILE * pointers, > > including the author of this port. How about an mkftemp() which wraps > > around mkstemp() and does an fdopen()? > > This would be completely non-portable - if you really need this, make one > yourself and add it to a library distributed with your code. It's certainly not like it would be the first non-portable function we've added. Where adding functions to libraries encourages better coding practices, I'm (often) in favour of it, especially if it encourages more secure coding practices. Ultimately everyone benefits, and the pain is short-term. -- Signature withheld by request of author. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message