lua-users home
lua-l archive

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

On Mon, Sep 19, 2022 at 12:50 PM Tomas Mudrunka <> wrote:
> Hello,
> i have Lua script on Linux that opens file handle using,
> writes to it using :write() and closes it using :close().
> I really need way to call fsync() on that file descriptor.
> Either as an argument, eg.: file:write(true) file:close(true)
> or as separate call file:sync(). Is there way to do that?

You might use an external library like luaposix [1].


Lourival Vieira Neto