From 9086bbd52734129d302f18767cb321d674d0d301 Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Thu, 15 Dec 2022 19:41:14 +0100 Subject: [PATCH] [osx] Document isatty(). --- osx.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/osx.c b/osx.c index d3f7723..8d25a18 100644 --- a/osx.c +++ b/osx.c @@ -802,6 +802,13 @@ static int os_fadvise(lua_State *L) return os_result(L, ec, NULL); } +/** + * Test whether an opened file handle references a character device (TTY). + * + * @tparam File f an opened file handle + * @treturn boolean true if file references a character device, false otherwise. + * @function isatty + */ static int os_isatty(lua_State *L) { luaL_Stream *stream = luaL_checkudata(L, 1, LUA_FILEHANDLE);