Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-09-2004, 04:02 AM   #1
LQ Newbie
Registered: Jun 2003
Location: Gangavathi, Karnataka(state), INDIA
Distribution: Redhat 7.3
Posts: 28

Rep: Reputation: 15
POSIX message queues(Solaris) to SYS V message queues(Linux)

Hi there.

i m porting a solaris application to Linux and
i encountered appli using POSIX message queues ..
since right now linux dont support POSIX one.. I ended to port to SYSV messsage queues.
Here is breif complaint funcitons

Abstract Operations on a Message Queue
Operation POSIX Function SVR5 Function

Gain access to a queue,
creating it if it does not exist.
mq_open(3) msgget(2)

Query attributes of a queue and
number of pending messages.
mq_getattr(3) msgctl(2)

Change attributes of a queue.
mq_setattr(3) msgctl(2)

Give up access to a queue.
mq_close(3) n.a.

Remove a queue from the system.
mq_unlink(3), rm(1) msgctl(2), ipcrm(1)

Send a message to a queue.
mq_send(3) msgsnd(2)

Receive a message from a queue.
mq_receive(3) msgrcv(2)

Request asynchronous notification
of a message arriving at a queue.
mq_notify(3) n.a.

Problem is.

1. How can I port mq_close() to Linux sysv ?

2 Is there any way to check by sys call or command
that some process has access to queue before calling
msgctl( key, IPC_RMID, NULL)

Old 01-22-2007, 11:15 AM   #2
LQ Newbie
Registered: Aug 2006
Posts: 25
Blog Entries: 1

Rep: Reputation: 18
A bit late no doubt, but this post still comes up on Google.
Since kernel 2.6.6 and Glibc 2.3.4 Linux has had POSIX message queue support, so the port wouldn't be necessary.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
message queues - please some checkup from the pros kirmet Programming 4 09-20-2005 09:40 AM
Posix Message queues? gdipierro Programming 20 07-26-2005 05:59 PM
Message Queues rag_mg Programming 1 05-08-2005 09:00 AM
POSIX message queues... infamous41md Programming 6 05-25-2004 03:53 PM
Message Queues BoldKiller Programming 1 05-28-2003 06:40 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:19 AM.

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