This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Substituting some LinuxOS functions by ECOS API
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Picque S?bastien <S dot Picque at TELEVIC dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 30 Nov 2006 15:58:19 +0100
- Subject: Re: [ECOS] Substituting some LinuxOS functions by ECOS API
- References: <A231E60AABF3F143B244E70FB6A3B6551B2F8B@nt-email.TELEVIC.COM>
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