[ECOS] Substituting some LinuxOS functions by ECOS API

Andrew Lunn andrew@lunn.ch
Thu Nov 30 14:58:00 GMT 2006


On Thu, Nov 30, 2006 at 03:33:29PM +0100, Picque S?bastien wrote:
> Hi all,
> 
> I have some questions regarding a porting from Linux to Ecos environment. I add the posix package in my ecos for building
> COuld you give me some help ?
> My question is : 
> 
> It seems to the ecos documentation, that there is no API for creating  a message queue ( message sending, message get received)? How could I replace the function from Linux OS : " ftok" and "msgget" ? Is the only way is the "cyg_mbox_create" API on ecos ?
> Do you have some proposal for me to use queue message on ECOS ?
> Thank you for your help

eCos POSIX package support POSIX message queues, ie mq_*. See
mq_overview(7)

msgget etc came from SVr4 and are not a "native" part of POSIX. 

So i suggest you modify your code to use POSIX message queues, or you
implement SVr4 message queues, either on top of POSIX message queues,
or maybe using eCos native message queues.

   Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list