From owner-freebsd-hackers Sun May 14 11:49:38 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from majordomo2.umd.edu (majordomo2.umd.edu [128.8.10.7]) by hub.freebsd.org (Postfix) with ESMTP id 0E4CC37B63F for ; Sun, 14 May 2000 11:49:36 -0700 (PDT) (envelope-from howardjp@wam.umd.edu) Received: from rac10.wam.umd.edu (root@rac10.wam.umd.edu [128.8.10.150]) by majordomo2.umd.edu (8.9.3/8.9.3) with ESMTP id OAA27348 for ; Sun, 14 May 2000 14:49:22 -0400 (EDT) Received: from rac10.wam.umd.edu (sendmail@localhost [127.0.0.1]) by rac10.wam.umd.edu (8.9.3/8.9.3) with SMTP id OAA21076 for ; Sun, 14 May 2000 14:49:34 -0400 (EDT) Received: from rac10.wam.umd.edu (howardjp@localhost) by rac10.wam.umd.edu (8.9.3/8.9.3) with ESMTP id OAA21071 for ; Sun, 14 May 2000 14:49:33 -0400 (EDT) Message-Id: <200005141849.OAA21071@rac10.wam.umd.edu> X-Authentication-Warning: rac10.wam.umd.edu: howardjp owned process doing -bs To: freebsd-hackers@freebsd.org Subject: mktemp() vs. mkstemp() Date: Sun, 14 May 2000 14:49:28 -0400 From: James Howard Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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()? Jamie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message