1 /*
2  * Copyright (C) 2015-2017 Alibaba Group Holding Limited
3  */
4 
5 #ifndef RAMFS_ERR_H
6 #define RAMFS_ERR_H
7 
8 #define RAMFS_OK              0
9 #define RAMFS_ERR_HW         -10000 /* Low level hard ware error */
10 #define RAMFS_ERR_FS         -10001 /* Error in the file system structure */
11 #define RAMFS_ERR_NOT_EXIST  -10002 /* File or directory is not exists */
12 #define RAMFS_ERR_FULL       -10003 /* File system is full */
13 #define RAMFS_ERR_LOCKED     -10004 /* The file is already opened */
14 #define RAMFS_ERR_DENIED     -10005 /* Access denied */
15 #define RAMFS_ERR_BUSY       -10006 /* The file system can't handle it, try later */
16 #define RAMFS_ERR_TIMEOUT    -10007 /* Process timeout */
17 #define RAMFS_ERR_NOT_IMP    -10008 /* Request function is not implemented */
18 #define RAMFS_ERR_OUT_OF_MEM -10009 /* Not enough memory for an interal operation */
19 #define RAMFS_ERR_INV_PARAM  -10010 /* Invalid parameter among arguments */
20 #define RAMFS_ERR_UNKOWN     -10011 /* Other unknown error */
21 #define RAMFS_ERR_PATH       -10012 /* Path error */
22 #define RAMFS_ERR_MALLOC     -10013 /* Malloc error */
23 #define RAMFS_ERR_LINK_MAX   -10014 /* Exceed RAMFS_LINK_MAX */
24 #define RAMFS_ERR_EXIST      -10015 /* File or directory is existed */
25 
26 #endif /* RAMFS_ERR_H */
27 
28