LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-26-2003, 01:31 AM   #1
bhooshan
LQ Newbie
 
Registered: May 2003
Posts: 1

Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba related problem-------- pal Linux - Newbie 4 03-13-2005 03:31 AM
Another ATI related problem daedaluszer0 Linux - Hardware 2 06-16-2004 05:04 AM
The Solution For ANY Linux Related Problem eddieman General 21 05-29-2004 04:53 PM
Template related problem in Linux ashwinipahuja Programming 2 04-23-2004 12:10 AM
DNS related problem eantoranz Linux - Software 3 04-01-2004 05:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration