POSIX message queues(Solaris) to SYS V message queues(Linux)
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.
Query attributes of a queue and
number of pending messages.
Change attributes of a queue.
Give up access to a queue.
Remove a queue from the system.
mq_unlink(3), rm(1) msgctl(2), ipcrm(1)
Send a message to a queue.
Receive a message from a queue.
Request asynchronous notification
of a message arriving at a queue.
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)
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.
|All times are GMT -5. The time now is 07:31 PM.|