Re: request tmpfile(3) wrapping in Guile 1.9 libguile

2010-02-14 Thread Andy Wingo
On Sat 13 Feb 2010 12:15, Thien-Thi Nguyen writes: > OK, i will change my current MO from posting patches to updating > ttn/{wip-}foo branches plus signalling to the mailing list for review. > (I will continue to ask WDYT-type questions, in any case.) Great! Happy hacking, Andy -- http://wing

Re: request tmpfile(3) wrapping in Guile 1.9 libguile

2010-02-13 Thread Thien-Thi Nguyen
() Andy Wingo () Fri, 12 Feb 2010 21:48:20 +0100 I wonder as well; but if the API works as advertised, then the file must be deleted, whether fclose(3) is called or not; so I guess this part of things works out fine. If you s/file must be deleted/filename must be removed from the direct

Re: request tmpfile(3) wrapping in Guile 1.9 libguile

2010-02-12 Thread Andy Wingo
Greets, On Fri 12 Feb 2010 16:21, Thien-Thi Nguyen writes: > (write (getpid)) (newline) > (define tmp (tmpfile)) > (sleep 10) > (set! tmp #f) ; lose ref > (let loop () (gc) (sleep 1) (loop)) > > I observed that the descriptor is listed as "/tmp/FILENAME (deleted)" > from the beginning and t

Re: request tmpfile(3) wrapping in Guile 1.9 libguile

2010-02-12 Thread Thien-Thi Nguyen
() Andy Wingo () Wed, 10 Feb 2010 00:17:30 +0100 Yes, I think that's probably the right answer. On the (faint) suspicion that `scm_fdes_to_port' does not DTRT, given the file descriptor extracted via `fileno' from the `FILE *', i ran a small test: (write (getpid)) (newline) (define tmp (tm

Re: request tmpfile(3) wrapping in Guile 1.9 libguile

2010-02-09 Thread Greg Troxel
That said, welcome back to Guile! I'm really glad to hear this - we scheme weenies are few enough in this world that we need to stick together! pgpk2RfJafl3B.pgp Description: PGP signature

Re: request tmpfile(3) wrapping in Guile 1.9 libguile

2010-02-09 Thread Andy Wingo
On Tue 09 Feb 2010 10:07, Thien-Thi Nguyen writes: > () Andy Wingo > () Mon, 08 Feb 2010 12:11:17 +0100 > >I think this sounds like a good idea. I have a few concerns, though if >none of them can be nicely addressed I'd still be happy adding tmpfile. > > I'm happy to see Ken Raeburn answ