From owner-freebsd-hackers Sun May 14 13:56:31 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id E732837B99E; Sun, 14 May 2000 13:56:28 -0700 (PDT) (envelope-from kris@FreeBSD.org) Received: from localhost (kris@localhost) by freefall.freebsd.org (8.9.3/8.9.2) with ESMTP id NAA69938; Sun, 14 May 2000 13:56:28 -0700 (PDT) (envelope-from kris@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: kris owned process doing -bs Date: Sun, 14 May 2000 13:56:28 -0700 (PDT) From: Kris Kennaway To: James Howard Cc: freebsd-hackers@freebsd.org Subject: Re: mktemp() vs. mkstemp() In-Reply-To: <200005141849.OAA21071@rac10.wam.umd.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 14 May 2000, James Howard wrote: > I was preparing a port which uses mktemp(). Of course, the linker > complained and suggested using mkstemp(). Except mkstemp() returns an > 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. Kris ---- In God we Trust -- all others must submit an X.509 certificate. -- Charles Forsythe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message