diff options
Diffstat (limited to 'luxio.c')
-rw-r--r-- | luxio.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -916,8 +916,6 @@ luxio_unsetenv(lua_State *L) /* POSIX.1-2001 */ /* TODO: sysconf() 4.8.1 */ /*** Directories. -readdir() is a hideous API. As such, we need to be reasonably high-level here, -otherwise everything is just too painful. @section dir */ @@ -1065,7 +1063,7 @@ luxio_closedir(lua_State *L) /* 5.1.2 */ Returned by @{readdir}. Some fields are OS-specific. @field d_ino inode number @field d_name file name -@field d_type file type +@field d_type file type _Note: `d_type` is not supported by all filesystems._ @table dirent */ @@ -1128,6 +1126,9 @@ luxio_rewinddir(lua_State *L) /* 5.1.2 */ */ /*** Change working directory. + +Returns zero on success, or -1 on error with errno set appropriately. + @tparam string path @treturn number return value @treturn errno errno @@ -1145,6 +1146,7 @@ luxio_chdir(lua_State *L) /* 5.2.1 */ } /*** Get the current working directory. + @treturn string|nil path or nil on error @treturn errno @function getcwd |