lua-users home
lua-l archive

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


On Jan 28, 2008 11:56 AM, Natanael Copa <natanael.copa@gmail.com> wrote:
> Hi,
>
> I'm looking into fixing dup() in luaposix.
>
> The problem in the current implementation from lposix is that it only
> deals with fd's, integers, not lua files. This means you can not really
> use the value returned from dup(2)

I haven't looked at luaposix (or lposix in a while) but it should have
fileno() and fdopen() functions also.

     -Mark