lua-users home
lua-l archive

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

On Tue, Feb 23, 2016 at 6:11 PM, David Given <> wrote:

> What I'd really prefer is an errno (and a set of errno constants). But
> Lua doesn't expose those. Any suggestions?

Lua I/O library only exposes functions provided by ANSI C. You can use
a library with the relevant functions from your OS -- for example,
luaposix for Linux and Unix, which will give you the system calls
(open, access, fstat, etc.), errno, error constants, etc.


Alexandre Erwin Ittner -
OpenPGP pubkey 0x0041A1FB @