From 23ada42423ea99dea7df15f65739c56d38307e79 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Tue, 2 Mar 2021 18:52:19 +0000 Subject: [PATCH] kolibri-libc: Add fs error codes to ksys.h git-svn-id: svn://kolibrios.org@8623 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/kolibri-libc/source/include/ksys.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/contrib/kolibri-libc/source/include/ksys.h b/contrib/kolibri-libc/source/include/ksys.h index 55d01e8873..b98eae7dea 100644 --- a/contrib/kolibri-libc/source/include/ksys.h +++ b/contrib/kolibri-libc/source/include/ksys.h @@ -10,6 +10,19 @@ extern "C" { #define asm_inline __asm__ __volatile__ #define not_optimized __attribute__((optimize("O0"))) +#define _KOS_FS_ERR_SUCCESS 0 // Success +#define _KOS_FS_ERR_1 1 // Base and/or partition of a hard disk is not defined (fn21.7 & fn21.8) +#define _KOS_FS_ERR_2 2 // Function is not supported for the given file system +#define _KOS_FS_ERR_3 3 // Unknown file system +#define _KOS_FS_ERR_4 4 // Reserved, is never returned in the current implementation +#define _KOS_FS_ERR_5 5 // File not found +#define _KOS_FS_ERR_EOF 6 // End of file, EOF +#define _KOS_FS_ERR_7 7 // Pointer lies outside of application memory +#define _KOS_FS_ERR_8 8 // Disk is full +#define _KOS_FS_ERR_9 9 // FAT table is destroyed +#define _KOS_FS_ERR_10 10 // Access denied +#define _KOS_FS_ERR_11 11 // Device error + typedef struct { unsigned char blue; unsigned char green;