Date: Sun, 14 May 2000 13:09:44 -0600 From: Lyndon Nerenberg <lyndon@orthanc.ab.ca> To: James Howard <howardjp@wam.umd.edu> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: mktemp() vs. mkstemp() Message-ID: <200005141909.e4EJ9iN09199@orthanc.ab.ca> In-Reply-To: Your message of "Sun, 14 May 2000 14:49:28 EDT." <200005141849.OAA21071@rac10.wam.umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "James" == James Howard <howardjp@wam.umd.edu> writes:
James> mkstemp() returns an integer file descriptor whereas normal
James> people use FILE * pointers, including the author of this
James> port. How about an mkftemp() which wraps around mkstemp()
James> and does an fdopen()?
Is it that much work to add
if ((stream=fdopen(fd, mode)) == NULL)
err(...);
after a mkstemp call? If you use it that much you can define a function
in your application. There's no need to add a non-portable routine
to libc for this.
--lyndon
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?200005141909.e4EJ9iN09199>
