POK
/home/jaouen/pok_official/pok/trunk/libpok/include/errno.h
00001 /*
00002  *                               POK header
00003  *
00004  * The following file is a part of the POK project. Any modification should
00005  * made according to the POK licence. You CANNOT use this file or a part of
00006  * this file is this part of a file for your own project
00007  *
00008  * For more information on the POK licence, please see our LICENCE FILE
00009  *
00010  * Please follow the coding guidelines described in doc/CODING_GUIDELINES
00011  *
00012  *                                      Copyright (c) 2007-2009 POK team
00013  *
00014  * Created by julien on Thu Jan 15 23:34:13 2009
00015  */
00016 
00017 #include <types.h>
00018 
00019 extern uint32_t errno;
00020 
00021 #ifndef __POK_ERRNO_H__
00022 #define __POK_ERRNO_H__
00023 
00024 typedef enum
00025 {
00026                 POK_ERRNO_OK                    =   0,
00027                 POK_ERRNO_EINVAL                =   1,
00028 
00029                 POK_ERRNO_UNAVAILABLE           =   2,
00030                 POK_ERRNO_PARAM                 =   3,
00031                 POK_ERRNO_TOOMANY               =   5,
00032                 POK_ERRNO_EPERM                 =   6,
00033                 POK_ERRNO_EXISTS                =   7,
00034 
00035 
00036                 POK_ERRNO_ERANGE                =   8,
00037                 POK_ERRNO_EDOM                  =   9,
00038                 POK_ERRNO_HUGE_VAL              =  10,
00039 
00040                 POK_ERRNO_EFAULT                =  11,
00041 
00042                 POK_ERRNO_THREAD                =  49,
00043                 POK_ERRNO_THREADATTR            =  50,
00044 
00045                 POK_ERRNO_TIME                 =  100,
00046 
00047                 POK_ERRNO_PARTITION_ATTR        = 200,
00048 
00049                 POK_ERRNO_PORT                 =  301,
00050                 POK_ERRNO_NOTFOUND             =  302,
00051                 POK_ERRNO_DIRECTION            =  303,
00052                 POK_ERRNO_SIZE                 =  304,
00053                 POK_ERRNO_DISCIPLINE           =  305,
00054                 POK_ERRNO_PORTPART             =  307,
00055                 POK_ERRNO_EMPTY                =  308,
00056                 POK_ERRNO_KIND                 =  309,
00057                 POK_ERRNO_FULL                 =  311,
00058                 POK_ERRNO_READY                =  310,
00059                 POK_ERRNO_TIMEOUT              =  250,
00060                 POK_ERRNO_MODE                 =  251,
00061 
00062                 POK_ERRNO_LOCKOBJ_UNAVAILABLE  =  500,
00063                 POK_ERRNO_LOCKOBJ_NOTREADY     =  501,
00064                 POK_ERRNO_LOCKOBJ_KIND         =  502,
00065                 POK_ERRNO_LOCKOBJ_POLICY       =  503,
00066 
00067                 POK_ERRNO_PARTITION_MODE       =  601,
00068 
00069                 POK_ERRNO_PARTITION            =  401
00070 } pok_ret_t;
00071 
00072 
00073 #endif