Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mq_unlink(3) [v7 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)

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)
Man Page

4 More Discussions You Might Find Interesting

1. Linux

dnssubmit queue overload error message

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)
Discussion started by: anil.pilani
0 Replies

2. Linux

POSIX message queue size

Hi all, Please tell me how to change POSIX message queue maximum size? "ulimit" is not a solution because it controls shell resources. But i need to control queue size before login in and starting the shell. It is needed to limit queue size for applications started before login in. Sorry for my... (7 Replies)
Discussion started by: Vourhey
7 Replies

3. Shell Programming and Scripting

How to find the latest file on Unix or Linux (recursive)

Hi all, I need to get the latest file. I have found this command "ls -lrt" that is great but not recursive. Can anyone help? Thanx by advance. (7 Replies)
Discussion started by: 1or2is3
7 Replies

4. Programming

POSIX message queue mq_open directory

hello, I try to test the POSIX mq_open function on book unp like below: #include "unpipc.h" # include <mqueue.h> int main(int argc, char **argv) { int c, flags; mqd_t mqd; flags = O_RDWR | O_CREAT; while ((c = getopt(argc, argv, "e")) != -1) { ... (3 Replies)
Discussion started by: anpufeng
3 Replies