lua-users home
lua-l archive

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


On Wed, Jul 1, 2015 at 8:00 AM, Jorge <xxopxe@gmail.com> wrote:
On 01/07/15 13:28, Bernd Eggink wrote:
luaposix has a function fileno(file) wich does this.


Thanks for the pointer. Nevertheless, pull luaposix as dependence in only to use a hack over luasocket looks weird... Why not use luaposix's select() then?

What about using Alien [1] to declare a binding to that function? (fileno) It is one more dependency, yes, but it might be lighter than luaposix (don't know, really).

Regards,
Ignacio

[1]: https://luarocks.org/modules/mascarenhas/alien