This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Interprocess communication
- From: Alfredo Carrillo <alcarrillo at tec dot com dot mx>
- To: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Cc: Lista de dicución eCos <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 05 Mar 2002 11:33:08 -0600
- Subject: [ECOS] Re: Interprocess communication
- References: <PCEGJHPCAJMDNMMCFOJACEBECAAA.alcarrillo@tec.com.mx> <3C83BB83.1000200@tec.com.mx> <20020305095149.B6@biferten.ma.tech.ascom.ch>
Andrew Lunn wrote:
>What exactly did you add? In the Linux sources there is this comment
>near the shmget system call code...
>
>linux/arch/i386/kernel/sys_i386.c
>/*
> * sys_ipc() is the de-multiplexer for the SysV IPC calls..
> *
> * This is really horribly ugly.
> */
>
>Have you correctly dealt with this ugliness.
>
> Andrew
>
I modified the next file: syscall-i386-linux-1.0.S
adding the entry for shmget function, as follows:
.
.
#ifndef _SYS_SYSCALL_H
#define _SYS_SYSCALL_H
#define SYS_setup 0 // Used only by init, to get system going.
#define SYS_exit 1
#define SYS_fork 2
#define SYS_read 3
#define SYS_write 4
#define SYS_open 5
.
.
.
#define SYS_nanosleep 162
#define SYS_mremap 163
#define SYS_shmget 164 /*** I added this line ***/
#endif // <sys/syscall.h>
.
.
I found this file at:
/opt/ecos/ecos-1.3.1/packages/hal/i386/linux/v1_3_1/src
But as I said you before, I tried to use another system calls from this
list, and the
compiler also send a similar output.
Please let me know if this is the right file I need to modify, or what
I need to do in
order to invoke any system call.
Thanks
--
Alfredo Carrillo
alcarrillo@tec.com.mx
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss