[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: fd number to io object?
- From: Sam Roberts <vieuxtech@...>
- Date: Sat, 17 Oct 2009 13:38:46 -0700
On Fri, Oct 16, 2009 at 8:39 PM, duck <duck@roaming.ath.cx> wrote:
> Forgive my ignorance (can't find an answer by searching), but can I map a
http://www.lua.org/manual/5.1/manual.html#5.7
> specific file descriptor onto an io object?
No, not without writing a C extension, which is easy, you'd write a
variant of io_open() from:
http://www.lua.org/source/5.1/liolib.c.html
that calls fdopen() instead of fopen()
Sam