mq_setattr(2) System Calls Manual mq_setattr(2)NAME
mq_setattr - set the blocking status of a message queue associated with a descriptor
SYNOPSIS DESCRIPTION
The 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 VALUE
returns the following values:
Successful completion.
Failure.
is set to indicate the error.
ERRORS
If 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 ALSO mq_getattr(2), mq_open(2).
STANDARDS CONFORMANCE mq_setattr(2)
Check Out this Related Man Page
mq_send(2) System Calls Manual mq_send(2)NAME
mq_send - send a message to a message queue
SYNOPSIS DESCRIPTION
The system call adds a message pointed to by the argument msg_ptr to the message queue specified by mqdes. The msg_len argument specifies
the length of the message in bytes. The value of msg_len should be less than or equal to the mq_msgsize attribute of the message queue, or
will fail.
If the specified message queue is not full, will insert the message into the queue at the position indicated by the msg_prio argument. A
message with priority, msg_prio, will be inserted behind any other messages with larger or equal priority. The value of msg_prio should be
less than
If the specified message queue is full and the flag is not set in the message queue blocking status associated with mqdes, will block in
priority order, until it can send a message on the queue, or until is interrupted by a signal. If the specified message queue is full and
the flag is set in the message queue blocking status associated with mqdes, the message will not be enqueued, and will return with an
error.
To use this function, link in the realtime library by specifying on the compiler or linker command line.
RETURN VALUE
returns the following values:
Successful completion. The message is enqueued.
Failure.
is set to indicate the error and the message is not enqueued.
ERRORS
If fails, is set to one of the following values:
[EAGAIN] The flag is set in the message queue blocking status associated with mqdes, and the message queue is full.
[EBADF] mqdes is not a valid message queue descriptor open for writing.
[EINTR] A signal interrupted the call to
[EINVAL] msg_ptr points to an invalid address, or the value of msg_prio is outside the valid range.
[EMSGSIZE] The specified message length, msg_len, exceeds the message size attribute of the message queue.
[ENOSYS] is not supported by the implementation.
SEE ALSO mq_receive(2), mq_setattr(2), mq_getattr(2), sysconf(2).
STANDARDS CONFORMANCE mq_send(2)
Hi,
Will anybody tell me what is this 'intransient blocking page faults' in HP-UX, it is in the structure _pst_vminfo in the header file /ust/include/sys/pstat/vm_pstat_body.h? (4 Replies)
What's the latest talk about instant messaging services in teh workplace, regarding blocking it, shutting off ports, etc? Is there a forum somewhere for this? Can't you shut down ports on linux or unix for IM services? (1 Reply)
Hello, everyone.
Could someone, please, tell me how to get the number of bytes in the terminal input queue without blocking and without consuming these bytes? I guess it could be called the peek functionality.
I've looked at termio tcgetattr() and tcsetattr() functions but could not find... (4 Replies)
Hi,
I am facing an issue with SEliux blocking my internet usage
Was searching online for its fix. I thnk their has bug raised and fixed FC10.
but anybody guide to get it fixed on FC9.
thanks in advance
Prakash (1 Reply)
Discussion started by: prakash.kudreka
1 Replies
5. Forum Support Area for Unregistered Users & Account Problems
Trying to register the Verification step is blocking me. I've allowed all the intrusive Google trackers and Java. Tried different browsers with no blocking. Nothing is working. Says: "Try again later Your computer maybe ... " What weird is in this forum section I can pass the recaptcha but in... (1 Reply)