msgget related problem on Linux
Hi,
I am trying to compile a C code written for AIX Unix on Linux environment RH8.
The code has following function call:
msgq_id = msgget(ipc_key, IPC_ALLOC | IPC_R | IPC_W);
On AIX, ipc.h file contains definition of these parameters as follows:
/* Common ipc_perm mode Definitions. */
#define IPC_ALLOC 0100000 /* entry currently allocated */
#define IPC_R 0000400 /* read or receive permission */
#define IPC_W 0000200 /* write or send permission */
But, on Linux, ipc.h does not contain any such definition. Hence, the C program is not getting compiled, giving error "`IPC_ALLOC' undeclared (first use in this function)".
I need to find a parallel for this function call (i.e. for IPC_ALLOC, IPC_R, IPC_W) on Linux.
Please help guys...
Thanks in advance,
Bhooshan
|