Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 2000 13:56:28 -0700 (PDT)
From:      Kris Kennaway <kris@FreeBSD.org>
To:        James Howard <howardjp@wam.umd.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: mktemp() vs. mkstemp()
Message-ID:  <Pine.BSF.4.21.0005141355390.66774-100000@freefall.freebsd.org>
In-Reply-To: <200005141849.OAA21071@rac10.wam.umd.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <forsythe@alum.mit.edu>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0005141355390.66774-100000>