]> git.tuebingen.mpg.de Git - osl.git/commitdiff
Add errlist.
authorAndre Noll <maan@systemlinux.org>
Mon, 2 Jun 2008 08:12:47 +0000 (10:12 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 2 Jun 2008 08:12:47 +0000 (10:12 +0200)
Argh, I forgot to check in an important file. Again.

errlist [new file with mode: 0644]

diff --git a/errlist b/errlist
new file mode 100644 (file)
index 0000000..fb24427
--- /dev/null
+++ b/errlist
@@ -0,0 +1,38 @@
+BAD_DB_DIR                     "invalid database directory"
+NO_COLUMN_DESC                 "missing column description"
+BAD_NAME                       "invalid name for a column/table"
+BAD_STORAGE_TYPE               "invalid storage type"
+BAD_STORAGE_FLAGS              "invalid storage flags"
+NO_COLUMN_NAME                 "missing column name"
+NO_COLUMNS                     "at least one column required"
+BAD_COLUMN_NAME                        "invalid name for a table column"
+NO_UNIQUE_RBTREE_COLUMN                "need at least one mapped column with OSL_UNIQE and OSL_RBTREE"
+NO_RBTREE_COL                  "at least one column needs an rbtree"
+DUPLICATE_COL_NAME             "column name given twice"
+BAD_STORAGE_SIZE               "invalid storage size"
+NO_COMPARE_FUNC                        "missing compare function"
+BAD_DATA_SIZE                  "wrong data size for fixed-size column"
+NOT_MAPPED                     "file not mapped"
+ALREADY_MAPPED                 "file already mapped"
+BAD_SIZE                       "invalid size specified"
+TRUNC                          "failed to truncate file"
+BAD_TABLE                      "table not open"
+BAD_TABLE_DESC                 "invalid table description"
+RB_KEY_EXISTS                  "key already exists in rbtree"
+RB_KEY_NOT_FOUND               "key not found in rbtree"
+BAD_ROW_NUM                    "invalid row number"
+INDEX_CORRUPTION               "index corruption detected"
+INVALID_OBJECT                 "reference to invalid object"
+STAT                           "can not stat file"
+WRITE                          "write error"
+LSEEK                          "lseek error"
+BUSY                           "table is busy"
+SHORT_TABLE                    "table too short"
+NO_MAGIC                       "missing table header magic"
+VERSION_MISMATCH               "table version not supported"
+BAD_COLUMN_NUM                 "invalid column number"
+BAD_TABLE_FLAGS                        "invalid flags in table description"
+BAD_ROW                                "invalid row"
+EMPTY                          "file empty"
+MMAP                           "mmap error"
+LOOP                           "loop terminated"