This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Interprocess communication
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Alfredo Carrillo <alcarrillo at tec dot com dot mx>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 1 Mar 2002 09:17:55 +0100
- Subject: Re: [ECOS] Interprocess communication
- References: <3C7E8128.8010103@tec.com.mx>
On Thu, Feb 28, 2002 at 01:12:40PM -0600, Alfredo Carrillo wrote:
> Hi,
>
> I am developing a pager simulation under the Linux synthetic target. In
> order to simulate the pager's face I did a GTK+ program.
>
> To comunicate the GTK+ process whith eCos program, I am trying to
> implement a shared memory segment using the UNIX IPC system calls. Below
> is part of the eCos code I'm using to create the new shared memory segment.
> But the compiler sends this output:
> *shmCr.c:39: undefined reference to `shmget'*
>
> Does anybody know what is wrong?, or what can I do to communicate both
> processes?
eCos is not linked with the standard libc which contains these shm*
functions. Hence the linker error.
The synthetic eCos does have a backdoor to the Linux Kernel. You can
make system calls. There are quite a few mails in the archive about
this, mostly about accessing sockets and the filesystem. They should
give you the idea...
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss