Query: mq_setattr
OS: hpux
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
mq_setattr(2) System Calls Manual mq_setattr(2)NAMEmq_setattr - set the blocking status of a message queue associated with a descriptorSYNOPSISDESCRIPTIONThe system call changes the blocking status of a message queue associated with the descriptor, mqdes. The blocking status that is modified is per message queue descriptor and another open descriptor for the same message queue can have a different blocking status. The argument mqstat, points to an structure that specifies the blocking status desired. More specifically, if the bit in the mq_flags field of the structure is set, the descriptor is marked as non-blocking. Otherwise it is marked as blocking. If omstat is non-NULL, will store in the structure referenced by omqstat, the previous message queue attributes and the queue blocking sta- tus associated with this mqdes. The values returned are the same as would be returned by a call to To use this function, link in the realtime library by specifying on the compiler or linker command line.RETURN VALUEreturns the following values: Successful completion. Failure. is set to indicate the error.ERRORSIf fails, is set to one of the following values: [EBADF] mqdes is not a valid message queue descriptor. [EINVAL] mqstat does not point to a valid structure, or omqstat is non-NULL and does not point to a valid structure. [ENOSYS] is not supported by the implementation.SEE ALSOmq_getattr(2), mq_open(2).STANDARDS CONFORMANCEmq_setattr(2)