Query: mq_getattr
OS: hpux
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
mq_getattr(2) System Calls Manual mq_getattr(2)NAMEmq_getattr - get status information and attributes associated with a message queueSYNOPSISDESCRIPTIONThe system call collects status information and attributes associated with the message queue specified by mqdes which is copied into the structure referenced by mqstat. Upon a successful return, the mq_msgsize and mq_maxmsg fields within the mq_attr structure contain the maximum size of a message for this queue and the maximum number of messages that can be queued at any time. The mq_curmsgs field contains the number of messages currently on the queue. In addition, the mq_flags field contains the message queue blocking status associated with this mqdes. 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 mq_attr structure. [ENOSYS] is not supported by the implementation.SEE ALSOmq_open(2), mq_setattr(2).STANDARDS CONFORMANCEmq_getattr(2)
Related Man Pages |
---|
mq_getattr(3) - debian |
mq_setattr(3) - debian |
mq_getattr(2) - hpux |
mq_getattr(3) - osf1 |
mq_setattr(3) - osf1 |
Similar Topics in the Unix Linux Community |
---|
Permission denied when creating message queue |
utime returning -1 BAD File DEscriptor |