Query: mq_setattr
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
mq_setattr(3) Library Functions Manual mq_setattr(3)NAMEmq_setattr - Sets the mq_flags attributes associated with a message queue (P1003.1b)LIBRARYRealtime Library (librt.so, librt.a)SYNOPSIS#include <mqueue.h> int mq_setattr ( mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat);PARAMETERSmqdes Describes the message queue for which attributes are to be set. *mqstat Specifies a pointer to a mq_attr structure that specifies attributes to be set for the specified message queue. *omqstat Specifies a pointer to a mq_attr structure that stores the previous message queue attributes and the current queue status. These are the values that would be returned by a call to the mq_getattr function at that point.DESCRIPTIONThe mq_setattr function sets the mq_flags attributes associated with the message queue descriptor for the calling process. Only the block- ing attribute of the queue for the calling process can be modified through this call. Modifying the blocking attribute for a queue has no effect on currently blocked processes. Other members of the mq_attr structure are ignored by the mq_setattr function.RETURN VALUESOn successful completion, the function returns the value 0 (zero) and the message queue attributes will have been changed as specified. Otherwise, the value -1 is returned, errno is set to indicate the error, and the message queue attributes remain unchanged.ERRORSThe mq_setattr function fails under the following conditions: [EBADF] The mqdes argument is not a valid message queue descriptor. [EINVAL] The mqstat argument is a NULL pointer.RELATED INFORMATIONFunctions: mq_open(3), mq_send(3) Guide to Realtime Programming delim off mq_setattr(3)
Related Man Pages |
---|
mq_getattr(3c) - opensolaris |
mq_setattr(3p) - centos |
mq_getattr(2) - hpux |
mq_setattr(2) - hpux |
mq_getattr(3rt) - sunos |
Similar Topics in the Unix Linux Community |
---|
Low Impact PHP Errors and Logging Levels |
PHP Write Man Pages to MySQL DB |