⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 err.h

📁 一种操作系统源码核
💻 H
字号:
#if !defined(__ERR_H)
#define __ERR_H
#define  OK                          0
#define  SYSERR                     -1 
#define  ERR_GROUP_DELETED          -2
#define  ERR_INVALID_DELETE         -3           
#define  ERR_INVALID_DRIVER         -4           
#define  ERR_INVALID_ENABLE         -5           
#define  ERR_INVALID_ENTRY          -6           
#define  ERR_INVALID_FUNCTION       -7          
#define  ERR_INVALID_GROUP          -8           
#define  ERR_INVALID_HISR           -9           
#define  ERR_INVALID_MAILBOX        -10           
#define  ERR_INVALID_MEMORY         -11           
#define  ERR_INVALID_MESSAGE        -12           
#define  ERR_INVALID_OPERATION      -13           
#define  ERR_INVALID_PIPE           -14           
#define  ERR_INVALID_POINTER        -15          
#define  ERR_INVALID_POOL           -16          
#define  ERR_INVALID_PRIORITY       -18      
#define  ERR_INVALID_QUEUE          -19       
#define  ERR_INVALID_RESUME         -20       
#define  ERR_INVALID_SEM            -21
#define  ERR_INVALID_SIZE           -22       
#define  ERR_INVALID_START          -23       
#define  ERR_INVALID_SUSPEND        -24   
#define  ERR_INVALID_TASK           -25      
#define  ERR_INVALID_TIMER          -26     
#define  ERR_INVALID_VECTOR         -27

#define  ERR_MAILBOX_DELETED        -28      
#define  ERR_MAILBOX_EMPTY          -29       
#define  ERR_MAILBOX_FULL           -30       
#define  ERR_MAILBOX_RESET          -31     
#define  ERR_NO_MEMORY              -32      
#define  ERR_NO_MORE_LISRS          -33 
#define  ERR_NO_PARTITION           -34 
#define  ERR_NOT_DISABLED           -35 
#define  ERR_NOT_PRESENT            -36 
#define  ERR_NOT_REGISTERED         -37
#define  ERR_NOT_TERMINATED         -38
#define  ERR_PIPE_DELETED           -39 
#define  ERR_PIPE_EMPTY             -40 
#define  ERR_PIPE_FULL              -41 
#define  ERR_PIPE_RESET             -42 
#define  ERR_POOL_DELETED           -43
#define  ERR_QUEUE_DELETED          -44
#define  ERR_QUEUE_EMPTY            -45 
#define  ERR_QUEUE_FULL             -46 
#define  ERR_QUEUE_RESET            -47 
#define  ERR_SEM_DELETED            -48
#define  ERR_SEM_RESET              -49 
#define  ERR_TIMEOUT                -50
#define  ERR_UNAVAILABLE            -51
#define  ERR_INVALID_CMD            -52
#define  ERR_STACK_OVERFLOW         -56
#define  NO_TASK_SPACE              -54
#define  NO_HISR_SPACE              -55
#define  NO_POOL_SPACE              -53
#define  NO_TIMER_SPACE             -57
#define  NO_EVENT_SPACE             -58
#define  NO_SEM_SPACE               -59
#define  ERR_INVALID_EVENT          -60
#define  ERR_DUPLI_CREATE           -61
#define ERR_DST_MATCH               -62
/*net function return err */
#define ERR_NO_PORT                 -25
#define ERR_ARP_FAILED              -26 
#define ERR_INVALID_PROTOCOL        -27 
#define NO_DATA_TRANSFER            -28 
#define ERR_TASK_MATCH              -30 
#define NO_SOCKET_SPACE             -31 
#define ERR_NO_ACTION               -32
#define ERR_NOT_CONNECTED           -33 
#define ERR_INVALID_SOCKET          -34 
#define NO_SOCKER_MEMORY            -35 
#define ERR_NOT_A_TASK              -36 
#define ERR_INVALID_ADDRESS         -37 
#define NO_HOST_NAME                -38 
#define ERR_RARP_INIT_FAILED        -39 
#define ERR_BOOTP_INIT_FAILED       -40 
#define ERR_INVALID_PORT            -41
#define ERR_NO_BUFFERS              -42 
#define ERR_NOT_ESTAB               -43
#define ERR_INVALID_BUFPTR          -44 
#define ERR_WINDOW_FULL             -45
#define ERR_NO_SOCKETS              -46
#define ERR_NO_DATA                 -47
#define ERR_INVALID_LEVEL           -48 
#define ERR_INVALID_OPTION          -49 
#define ERR_INVALID_VAL             -21
#define ERR_ACCESS                  -51 
#define ERR_ADDRIERRSE              -52 
#define ERR_HOST_UNREACHABLE        -53 
#define ERR_MSGSIZE                 -54 
#define ERR_NOBUFFERS               -55 
#define ERR_UNRESOLVED_ADDR         -56 
#define ERR_CLOSING                 -57
#define ERR_MEM_ALLOC               -58 
#define ERR_RESET                   -59 
#define ERR_INVALID_LABEL           -60 
#define ERR_FAILED_QUERY            -61
#define ERR_DNS_ERROR               -62
#define ERR_NOT_A_HOST              -63 
#define ERR_INVALID_PARM            -64
#define ERR_NO_IP                   -65 
#define ERR_DHCP_INIT_FAILED        -66 
#define ERR_DHCP_REQUEST_FAILED     -67 
#define ERR_BOOTP_SEND_FAILED       -68 
#define ERR_BOOTP_RECV_FAILED       -69 
#define ERR_BOOTP_ATTACH_IP_FAILED  -70 
#define ERR_BOOTP_SELECT_FAILED     -71 
#define ERR_BOOTP_FAILED            -72 

#define  CREATE_TASK_ID              2
#define  DELETE_TASK_ID              3
#define  RESET_TASK_ID               4
#define  STOP_TASK_ID           5
#define  RESUME_TASK_ID              6
#define  SUSPEND_TASK_ID             7
#define  RELINQUISH_ID               8
#define  CHANGE_PRIORITY_ID         10
#define  CHANGE_PREEMPTION_ID       11
#define  CREATE_MAILBOX_ID          12 
#define  DELETE_MAILBOX_ID          13 
#define  RESET_MAILBOX_ID           14 
#define  SEND_TO_MAILBOX_ID         15 
#define  BROADCAST_TO_MAILBOX_ID    16 
#define  RECEIVE_FROM_MAILBOX_ID    17 
#define  CREATE_QUEUE_ID            18 
#define  DELETE_QUEUE_ID            19 
#define  RESET_QUEUE_ID             20 
#define  SEND_TO_FRONT_OF_QUEUE_ID  21
#define  SEND_TO_QUEUE_ID      	    22 
#define  BROADCAST_TO_QUEUE_ID      23 
#define  RECEIVE_FROM_QUEUE_ID 	    24 
#define  CREATE_PIPE_ID 	    25 
#define  DELETE_PIPE_ID             26 
#define  RESET_PIPE_ID              27 
#define  SEND_TO_FRONT_OF_PIPE_ID   28 
#define  SEND_TO_PIPE_ID            29 
#define  BROADCAST_TO_PIPE_ID       30
#define  RECEIVE_FROM_PIPE_ID       31 
#define  CREATE_SEMAPHORE_ID        32 
#define  DELETE_SEMAPHORE_ID        33 
#define  RESET_SEMAPHORE_ID         34 
#define  OBTAIN_SEMAPHORE_ID        35 
#define  RELEASE_SEMAPHORE_ID       36 
#define  CREATE_EVENT_GROUP_ID      37 
#define  DELETE_EVENT_GROUP_ID      38
#define  SET_EVENTS_ID              39 
#define  RETRIEVE_EVENTS_ID         40 
#define  CREATE_PARTITION_POOL_ID   41 
#define  DELETE_PARTITION_POOL_ID   42 
#define  ALLOCATE_PARTITION_ID      43
#define  DEALLOCATE_PARTITION_ID    44 
#define  CREATE_MEMORY_POOL_ID      45 
#define  DELETE_MEMORY_POOL_ID      46 
#define  ALLOCATE_MEMORY_ID         47 
#define  DEALLOCATE_MEMORY_ID       48 
#define  CONTROL_SIGNALS_ID         49 
#define  RECEIVE_SIGNALS_ID         50 
#define  REGISTER_SIGNAL_HANDLER_ID 51
#define  SEND_SIGNALS_ID            52 
#define  REGISTER_LISR_ID           53 
#define  CREATE_HISR_ID             54 
#define  DELETE_HISR_ID             55 
#define  CREATE_TIMER_ID            56
#define  DELETE_TIMER_ID            57 
#define  CONTROL_TIMER_ID           58 
#define  RESET_TIMER_ID             59 
#define  CREATE_DRIVER_ID           60 
#define  DELETE_DRIVER_ID           61 
#define  REQUEST_DRIVER_ID          62 
#define  RESUME_DRIVER_ID           63 
#define  SUSPEND_DRIVER_ID          64 
#define  CHANGE_TIME_SLICE          65


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -