From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4EA7F683.5060703@domain.hid> Date: Wed, 26 Oct 2011 14:01:07 +0200 From: Philippe Gerum MIME-Version: 1.0 References: <0db9974c036abae53f74.1318861190@domain.hid> <4EA7DEC3.9010706@domain.hid> <4EA7E1F3.7050104@domain.hid> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] [PATCH 1 of 4] psos.h: add definition of ERR_OBJTFULL List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas De Schampheleire Cc: xenomai@xenomai.org On 10/26/2011 01:11 PM, Thomas De Schampheleire wrote: > Hi, > > On Wed, Oct 26, 2011 at 12:33 PM, Philippe Gerum wrote: >> On 10/26/2011 12:26 PM, Thomas De Schampheleire wrote: >>> >>> Hi, >>> >>> On Wed, Oct 26, 2011 at 12:19 PM, Philippe Gerum wrote: >>>> >>>> On 10/19/2011 09:35 AM, Thomas De Schampheleire wrote: >>>>> >>>>> Signed-off-by: Thomas De >>>>> Schampheleire >>>>> Signed-off-by: Ronny Meeus >>>>> >>>>> --- >>>>> include/psos/psos.h | 1 + >>>>> 1 files changed, 1 insertions(+), 0 deletions(-) >>>>> >>>>> diff --git a/include/psos/psos.h b/include/psos/psos.h >>>>> --- a/include/psos/psos.h >>>>> +++ b/include/psos/psos.h >>>>> @@ -97,6 +97,7 @@ >>>>> #define ERR_OBJDEL 0x05 >>>>> #define ERR_OBJID 0x06 >>>>> #define ERR_OBJTYPE 0x07 >>>>> +#define ERR_OBJTFULL 0x08 >>>>> #define ERR_OBJNF 0x09 >>>>> >>>>> #define ERR_NOTCB 0x0E >>>> >>>> Where is this error code used in the Xenomai tree? Can't find it right >>>> now. >>> >>> It's not used in the Xenomai code itself, but it may be used by >>> applications. >>> The definition is absent both in Xenomai as Xenomai-forge. >>> >>> ~Thomas >>> >> >> Yes, the point is that so far, only the errors the Xenomai emulation does >> return are mentioned in this file. But we should merge this anyhow, since >> the original *_create() calls could throw this, so the app has to check >> despite Xenomai won't fail this way, right? > > Ok, I understand the origin now. > But indeed, as you say, legacy apps may still check for ERR_OBJTFULL > or any other definition that was in the original psos.h, so Xenomai / > Xenomai-forge has to supply these values as well. Ok, I'll merge this since this is explicitly defined by the original interface Xenomai does emulate. So, ok. > > ~Thomas > -- Philippe.