lua-users home
lua-l archive

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


Am 27.01.2015 um 18:56 schröbte Meino.Cramer@gmx.de:
Hi,

Hi!


currently I am experimenting with a embedded system and
need funktions like sleep, ppoll and such in lua.

I installed luaposix, because both were documented on the web.

But there was neither available via luaposix.

    Lua 5.2.3  Copyright (C) 1994-2013 Lua.org, PUC-Rio
    > posix = require( "posix" )
    > print( posix.version )
    posix for Lua 5.2 / luaposix 33.2.1
    > print( posix.sleep )
    function: 0x7fcc5eb3f830
    > print( posix.nanosleep )
    function: 0x76d240
    > print( posix.poll )
    function: 0x7fcc5eb45a50
    >

There is no `ppoll` though, because this function isn't in POSIX (yet).

`luaposix` uses autotools, so maybe something went wrong in the `./configure` run ...


Philipp