summaryrefslogtreecommitdiff
path: root/src/drivers/ao_fat.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-31 16:10:33 -0700
committerKeith Packard <keithp@keithp.com>2013-03-31 16:10:33 -0700
commit659a6915f5ba5129096e55ccc04c975d216546ae (patch)
treec554a53fd82a6620b66b760bb9caeaf54607aaea /src/drivers/ao_fat.h
parent182ceaac7d91dc6e9ebac6455d5de0c10687796b (diff)
altos: Make ao_fat_readdir return real error values instead of 1/0
This way, we can distinguish between 'something bad happened' and 'you're at the end of the directory'. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_fat.h')
-rw-r--r--src/drivers/ao_fat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/ao_fat.h b/src/drivers/ao_fat.h
index 36aec7df..fe154cdf 100644
--- a/src/drivers/ao_fat.h
+++ b/src/drivers/ao_fat.h
@@ -48,6 +48,7 @@ ao_fat_init(void);
#define AO_FAT_EMFILE 24
#define AO_FAT_EFBIG 27
#define AO_FAT_ENOSPC 28
+#define AO_FAT_EDIREOF 29
/* ao_fat_setup return values */
#define AO_FAT_FILESYSTEM_SUCCESS 0