lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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