1 .\" $NetBSD: mq_setattr.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 set message queue attributes (REALTIME)
18 .Fa "const struct mq_attr *restrict mqstat"
19 .Fa "struct mq_attr *restrict omqstat"
24 function sets attributes associated with the open message queue
25 description referenced by the message queue descriptor specified by
28 The message queue attributes corresponding to the following members
31 structure will be set to the specified values upon successful completion of
33 .Bl -tag -width mq_flags
35 The value of this member is the bitwise-logical OR of zero or more of
37 and any implementation-defined flags.
47 structure will be ignored by
56 function will store, in the location referenced by
58 the previous message queue attributes and the current queue status.
59 These values are the same as would be returned by a call to
63 Upon successful completion, the
65 function returns zero and the attributes of the message queue will
66 have been changed as specified.
67 Otherwise, the message queue attributes are unchanged,
68 and the function returns a value of
69 \-1 and sets the global variable
71 to indicate the error.
80 argument is not a valid message queue descriptor.
91 This function conforms to the
95 This function first appeared in
98 Portions of this text are reprinted and reproduced in electronic form
99 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
100 -- Portable Operating System Interface (POSIX), The Open Group Base
101 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
102 Electrical and Electronics Engineers, Inc and The Open Group.
104 event of any discrepancy between this version and the original IEEE and
105 The Open Group Standard, the original IEEE and The Open Group Standard
106 is the referee document.
107 The original Standard can be obtained online at
108 http://www.opengroup.org/unix/online.html .