diff options
author | Christopher Haster <chaster@utexas.edu> | 2017-12-27 20:47:48 +0300 |
---|---|---|
committer | Christopher Haster <chaster@utexas.edu> | 2018-01-12 21:07:40 +0300 |
commit | db8872781a7bc110b2a84b67c5fe818e9708e68a (patch) | |
tree | 7025d5302cc13e26807b43f2fcac14b851988d69 /lfs.h | |
parent | c2fab8fabb18c6d5e3670b73b1009a8acf39dcab (diff) |
Added error code LFS_ERR_NOTEMPTY
As noted by itayzafrir, removing a non-empty directory should
error with ENOTEMPTY, not EINVAL
Diffstat (limited to 'lfs.h')
-rw-r--r-- | lfs.h | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -41,16 +41,17 @@ typedef uint32_t lfs_block_t; // Possible error codes, these are negative to allow // valid positive return values enum lfs_error { - LFS_ERR_OK = 0, // No error - LFS_ERR_IO = -5, // Error during device operation - LFS_ERR_CORRUPT = -52, // Corrupted - LFS_ERR_NOENT = -2, // No directory entry - LFS_ERR_EXIST = -17, // Entry already exists - LFS_ERR_NOTDIR = -20, // Entry is not a dir - LFS_ERR_ISDIR = -21, // Entry is a dir - LFS_ERR_INVAL = -22, // Invalid parameter - LFS_ERR_NOSPC = -28, // No space left on device - LFS_ERR_NOMEM = -12, // No more memory available + LFS_ERR_OK = 0, // No error + LFS_ERR_IO = -5, // Error during device operation + LFS_ERR_CORRUPT = -52, // Corrupted + LFS_ERR_NOENT = -2, // No directory entry + LFS_ERR_EXIST = -17, // Entry already exists + LFS_ERR_NOTDIR = -20, // Entry is not a dir + LFS_ERR_ISDIR = -21, // Entry is a dir + LFS_ERR_NOTEMPTY = -39, // Dir is not empty + LFS_ERR_INVAL = -22, // Invalid parameter + LFS_ERR_NOSPC = -28, // No space left on device + LFS_ERR_NOMEM = -12, // No more memory available }; // File types |