unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* request tmpfile(3) wrapping in Guile 1.9 libguile
@ 2010-02-07 18:48 Thien-Thi Nguyen
  2010-02-08 11:11 ` Andy Wingo
  0 siblings, 1 reply; 6+ messages in thread
From: Thien-Thi Nguyen @ 2010-02-07 18:48 UTC (permalink / raw)
  To: guile-user

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
}





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-02-09  9:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-07 18:48 request tmpfile(3) wrapping in Guile 1.9 libguile Thien-Thi Nguyen
2010-02-08 11:11 ` Andy Wingo
2010-02-08 15:34   ` Ken Raeburn
2010-02-08 17:06     ` Andy Wingo
2010-02-09  4:36       ` Ken Raeburn
2010-02-09  9:07   ` Thien-Thi Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).