From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: request tmpfile(3) wrapping in Guile 1.9 libguile Date: Sun, 07 Feb 2010 19:48:00 +0100 Message-ID: <877hqoubkv.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265569742 12224 80.91.229.12 (7 Feb 2010 19:09:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Feb 2010 19:09:02 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Feb 07 20:08:56 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NeCV1-00007Y-Cj for guile-user@m.gmane.org; Sun, 07 Feb 2010 20:08:51 +0100 Original-Received: from localhost ([127.0.0.1]:37117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeCV0-0002lL-IL for guile-user@m.gmane.org; Sun, 07 Feb 2010 14:08:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeCUj-0002lF-Od for guile-user@gnu.org; Sun, 07 Feb 2010 14:08:33 -0500 Original-Received: from [199.232.76.173] (port=36902 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeCUj-0002l4-9A for guile-user@gnu.org; Sun, 07 Feb 2010 14:08:33 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeCUf-0001e0-1o for guile-user@gnu.org; Sun, 07 Feb 2010 14:08:33 -0500 Original-Received: from host126-15-dynamic.24-79-r.retail.telecomitalia.it ([79.24.15.126]:60868 helo=ambire.localdomain) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NeCUe-0001cL-Ck for guile-user@gnu.org; Sun, 07 Feb 2010 14:08:28 -0500 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1NeCAq-0005IK-1A for guile-user@gnu.org; Sun, 07 Feb 2010 19:48:00 +0100 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-Greylist: delayed 1222 seconds by postgrey-1.27 at monty-python; Sun, 07 Feb 2010 14:08:27 EST X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7621 Archived-At: I'm writing to request that tmpfile(3) be added to Guile 1.9 libguile. Background info: I'm in the process of cleaning up ttn-do dependency on Guile 1.4.x-isms[0]. One of these is the module (database tmpfile), which provides tmpfile(3) wrapping. In Guile 1.4.1.119, this will be provided by libguile directly.[1] According to tmpfile(3), this function is: CONFORMING TO SVr4, 4.3BSD, C89, C99, SUSv2, POSIX.1-2001. What do you think? thi _________________________________________________________________ [0] http://www.gnuvola.org/software/ttn-do/frisk.out.html [1] libguile/posix.c excerpt: SCM_SYMBOL (sym_tmpfile, "tmpfile"); SCM_DEFINE (scm_tmpfile, "tmpfile", 0, 0, 0, (void), doc: /*********** Return an input/output port to a unique temporary file named using the path prefix @code{P_tmpdir} defined in @file{stdio.h}. The file is automatically deleted when the port is closed or the program terminates. The name of the temporary file associated with the returned port is not available to Scheme programs; @code{(port-filename (tmpfile))} always returns the symbol @code{tmpfile}. */) { #define FUNC_NAME s_scm_tmpfile FILE *rv; rv = tmpfile (); if (! rv) SCM_SYSERROR; return scm_fdes_to_port (fileno (rv), "w+", sym_tmpfile); #undef FUNC_NAME }