MQ_UNLINK(3) Linux Programmer's Manual MQ_UNLINK(3)NAME
mq_unlink - remove a message queue
SYNOPSIS
#include <mqueue.h>
int mq_unlink(const char *name);
Link with -lrt.
DESCRIPTION
mq_unlink() removes the specified message queue name. The message queue name is removed immediately. The queue itself is destroyed once
any other processes that have the queue open close their descriptors referring to the queue.
RETURN VALUE
On success mq_unlink() returns 0; on error, -1 is returned, with errno set to indicate the error.
ERRORS
EACCES The caller does not have permission to unlink this message queue.
ENAMETOOLONG
name was too long.
ENOENT There is no message queue with the given name.
CONFORMING TO
POSIX.1-2001.
SEE ALSO mq_close(3), mq_getattr(3), mq_notify(3), mq_open(3), mq_receive(3), mq_send(3), mq_overview(7)COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2010-08-29 MQ_UNLINK(3)
Check Out this Related Man Page
MQ_UNLINK(3) Linux Programmer's Manual MQ_UNLINK(3)NAME
mq_unlink - remove a message queue
SYNOPSIS
#include <mqueue.h>
int mq_unlink(const char *name);
Link with -lrt.
DESCRIPTION
mq_unlink() removes the specified message queue name. The message queue name is removed immediately. The queue itself is destroyed once
any other processes that have the queue open close their descriptors referring to the queue.
RETURN VALUE
On success mq_unlink() returns 0; on error, -1 is returned, with errno set to indicate the error.
ERRORS
EACCES The caller does not have permission to unlink this message queue.
ENAMETOOLONG
name was too long.
ENOENT There is no message queue with the given name.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+------------+---------------+---------+
|Interface | Attribute | Value |
+------------+---------------+---------+
|mq_unlink() | Thread safety | MT-Safe |
+------------+---------------+---------+
CONFORMING TO
POSIX.1-2001, POSIX.1-2008.
SEE ALSO mq_close(3), mq_getattr(3), mq_notify(3), mq_open(3), mq_receive(3), mq_send(3), mq_overview(7)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
Linux 2015-08-08 MQ_UNLINK(3)
Hi there:
Thanks first. When I use a message queue amony severl processes, will I have to synchronize the queue? I don't think I would have to because a message queue is implemented in a link listed. Correct me If I am wrong... (0 Replies)
i have been in trouble please help me out
i have developed a message queue.it is a simple message queue program
after running it give error like NO SPACE LEFT ON DEVICE
what is this error
how could i solve this problem i am working on solaris9.2 (2 Replies)
I am sending and retriving the message to the queue
the problem is
after retrieving the message can i see what is there in my message queue.
(actually in my application i am encountring some garbage value)
so i want to retieve this garbage value and also want to know its size
how... (0 Replies)
hello ,
I have to write an application in which I had to implement both Socket Comminication and IPC- message queues.
and that process should run in Infinite loop as well I had to continously check and send data through both type of communications...
What should I use to implement it...
I had... (34 Replies)
my squid running on openBSD 4.1
i have dns_childern 32
but i m facing a problem of queue overloading
cache.log shows this error message...
dnsSubmit: queue overload, rejecting xxxxxxxxxx
dnsSubmit: queue overload, rejecting xxxxxxxxxx
dnsSubmit: queue overload, rejecting xxxxxxxxxx... (0 Replies)
Hi,
I browsed thru the previous posts and couldnt find a solution for my problem. Hence I decided to post it.
I have a buffer array that I want to send thru a message queue. The array consists of a header structure and a payload structure memcopied to it. When I print the contents of the... (1 Reply)
Hi,
Im new to message queue... I need to move the xml files from the AIX server to the message queue. Please help me out to write the code..
Thanks,
Mohana Krishnan (0 Replies)
I have a requirement in which I shud use ls -lrt instead of ls command because when we use ls command we get an error..the script part where i get error is given below
for SAPRESPONSEFILES in `ls $SAPRESPONSEGOFILE | sed "s/go/dat/g"`
basically the script processes the files of format... (11 Replies)
Hi,
I am compiling following code on my Linux box using "cc" compilers.I am getting the desired o/p but in the it throws message as "shell returned 208".I would like to know whether is it related to a some kind of error code?
1 #include<stdio.h>
2
3 main ()
4 {
... (1 Reply)
Hey guys, I'm working on a project where we have to duplicate the 'dc' command. I'm having trouble figuring out how to queue the different commands available (such as printing stack contents or saving/executing macros and registers). I'm also having a great deal of trouble finding any literature... (1 Reply)