Skip to content

Commit

Permalink
* explicitly number/label each error for visibility when debugging, a…
Browse files Browse the repository at this point in the history
…nd to prevent reordering them in the future
  • Loading branch information
zoul0813 authored and Zeal8bit committed Oct 11, 2024
1 parent 86ff4e5 commit 4bfcaac
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 54 deletions.
54 changes: 27 additions & 27 deletions kernel_headers/sdcc/include/zos_errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@
#pragma once

typedef enum {
ERR_SUCCESS = 0,
ERR_FAILURE,
ERR_NOT_IMPLEMENTED,
ERR_NOT_SUPPORTED,
ERR_NO_SUCH_ENTRY,
ERR_INVALID_SYSCALL,
ERR_INVALID_PARAMETER,
ERR_INVALID_VIRT_PAGE,
ERR_INVALID_PHYS_ADDRESS,
ERR_INVALID_OFFSET,
ERR_INVALID_NAME,
ERR_INVALID_PATH,
ERR_INVALID_FILESYSTEM,
ERR_INVALID_FILEDEV,
ERR_PATH_TOO_LONG,
ERR_ALREADY_EXIST,
ERR_ALREADY_OPENED,
ERR_ALREADY_MOUNTED,
ERR_READ_ONLY,
ERR_BAD_MODE,
ERR_CANNOT_REGISTER_MORE,
ERR_NO_MORE_ENTRIES,
ERR_NO_MORE_MEMORY,
ERR_NOT_A_DIR,
ERR_NOT_A_FILE,
ERR_ENTRY_CORRUPTED,
ERR_DIR_NOT_EMPTY,
ERR_SUCCESS = 0,
ERR_FAILURE = 1,
ERR_NOT_IMPLEMENTED = 2,
ERR_NOT_SUPPORTED = 3,
ERR_NO_SUCH_ENTRY = 4,
ERR_INVALID_SYSCALL = 5,
ERR_INVALID_PARAMETER = 6,
ERR_INVALID_VIRT_PAGE = 7,
ERR_INVALID_PHYS_ADDRESS = 8,
ERR_INVALID_OFFSET = 9,
ERR_INVALID_NAME = 10,
ERR_INVALID_PATH = 11,
ERR_INVALID_FILESYSTEM = 12,
ERR_INVALID_FILEDEV = 13,
ERR_PATH_TOO_LONG = 14,
ERR_ALREADY_EXIST = 15,
ERR_ALREADY_OPENED = 16,
ERR_ALREADY_MOUNTED = 17,
ERR_READ_ONLY = 18,
ERR_BAD_MODE = 19,
ERR_CANNOT_REGISTER_MORE = 21,
ERR_NO_MORE_ENTRIES = 22,
ERR_NO_MORE_MEMORY = 23,
ERR_NOT_A_DIR = 24,
ERR_NOT_A_FILE = 25,
ERR_ENTRY_CORRUPTED = 26,
ERR_DIR_NOT_EMPTY = 27,
} zos_err_t;

54 changes: 27 additions & 27 deletions kernel_headers/z88dk-z80asm/zos_err.asm
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@

DEFGROUP
{
ERR_SUCCESS = 0,
ERR_FAILURE,
ERR_NOT_IMPLEMENTED,
ERR_NOT_SUPPORTED,
ERR_NO_SUCH_ENTRY,
ERR_INVALID_SYSCALL,
ERR_INVALID_PARAMETER,
ERR_INVALID_VIRT_PAGE,
ERR_INVALID_PHYS_ADDRESS,
ERR_INVALID_OFFSET,
ERR_INVALID_NAME,
ERR_INVALID_PATH,
ERR_INVALID_FILESYSTEM,
ERR_INVALID_FILEDEV,
ERR_PATH_TOO_LONG,
ERR_ALREADY_EXIST,
ERR_ALREADY_OPENED,
ERR_ALREADY_MOUNTED,
ERR_READ_ONLY,
ERR_BAD_MODE,
ERR_CANNOT_REGISTER_MORE,
ERR_NO_MORE_ENTRIES,
ERR_NO_MORE_MEMORY,
ERR_NOT_A_DIR,
ERR_NOT_A_FILE,
ERR_ENTRY_CORRUPTED,
ERR_DIR_NOT_EMPTY,
ERR_SUCCESS = 0,
ERR_FAILURE = 1,
ERR_NOT_IMPLEMENTED = 2,
ERR_NOT_SUPPORTED = 3,
ERR_NO_SUCH_ENTRY = 4,
ERR_INVALID_SYSCALL = 5,
ERR_INVALID_PARAMETER = 6,
ERR_INVALID_VIRT_PAGE = 7,
ERR_INVALID_PHYS_ADDRESS = 8,
ERR_INVALID_OFFSET = 9,
ERR_INVALID_NAME = 10,
ERR_INVALID_PATH = 11,
ERR_INVALID_FILESYSTEM = 12,
ERR_INVALID_FILEDEV = 13,
ERR_PATH_TOO_LONG = 14,
ERR_ALREADY_EXIST = 15,
ERR_ALREADY_OPENED = 16,
ERR_ALREADY_MOUNTED = 17,
ERR_READ_ONLY = 18,
ERR_BAD_MODE = 19,
ERR_CANNOT_REGISTER_MORE = 20,
ERR_NO_MORE_ENTRIES = 21,
ERR_NO_MORE_MEMORY = 22,
ERR_NOT_A_DIR = 23,
ERR_NOT_A_FILE = 24,
ERR_ENTRY_CORRUPTED = 25,
ERR_DIR_NOT_EMPTY = 26,
}

ENDIF ; ZOS_ERR_HEADER

0 comments on commit 4bfcaac

Please sign in to comment.