1 .\" $NetBSD: mq_getattr.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 get message queue attributes (REALTIME)
16 .Fn mq_getattr "mqd_t mqdes" "struct mq_attr *mqstat"
20 function will obtain status information and attributes of the
21 message queue and the open message queue description associated
22 with the message queue descriptor.
26 argument specifies a message queue descriptor.
28 The results are returned in the
30 structure referenced by the
34 Upon return, the following members have the values associated with
35 the open message queue description as set when the message queue was
36 opened and as modified by subsequent
41 The following attributes of the message queue will be returned as set
42 at message queue creation:
46 Upon return, the following members within the
48 structure referenced by the
50 argument will be set to the current state of the message queue:
51 .Bl -tag -width mq_curmsgs
53 The number of messages currently on the queue.
63 The mqdes argument is not a valid message queue descriptor.
74 This function conforms to the
78 This function first appeared in
81 Portions of this text are reprinted and reproduced in electronic form
82 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
83 -- Portable Operating System Interface (POSIX), The Open Group Base
84 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
85 Electrical and Electronics Engineers, Inc and The Open Group.
87 event of any discrepancy between this version and the original IEEE and
88 The Open Group Standard, the original IEEE and The Open Group Standard
89 is the referee document.
90 The original Standard can be obtained online at
91 http://www.opengroup.org/unix/online.html .