1 .\" $NetBSD: mq_unlink.3,v 1.1 2009/01/05 21:19:49 rmind Exp $
3 .\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
10 .Nd remove a message queue (REALTIME)
16 .Fn mq_unlink "const char *name"
20 function removes the message queue named by the pathname
22 After a successful call to
34 If one or more processes have the message queue open when
36 is called, destruction of the message queue will be postponed until
37 all references to the message queue have been closed.
41 to recreate the message queue may fail until the message queue is
45 call need not block until all references have been closed;
46 it may return immediately.
48 Upon successful completion, the function returns a value of zero.
49 Otherwise, the named message queue will be unchanged by this function call,
50 and the function returns a value of \-1 and sets the global variable
52 to indicate the error.
59 Permission is denied to unlink the named message queue.
60 .It Bq Er ENAMETOOLONG
61 The length of the name argument exceeds
64 component is longer than
67 The named message queue does not exist.
78 This function conforms to the
84 function first appeared in
87 Portions of this text are reprinted and reproduced in electronic form
88 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
89 -- Portable Operating System Interface (POSIX), The Open Group Base
90 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
91 Electrical and Electronics Engineers, Inc and The Open Group.
93 event of any discrepancy between this version and the original IEEE and
94 The Open Group Standard, the original IEEE and The Open Group Standard
95 is the referee document.
96 The original Standard can be obtained online at
97 http://www.opengroup.org/unix/online.html .