Next: , Up: posix mq   [Index]


4.22.1 Structure type struct-mq-attr

The following bindings are exported by the (vicare posix) library.

Struct Type: struct-mq-attr

Data structure type used to represent at the Scheme level struct mq_attr values, see the manual page mq_getattr(3). It has the following fields:

mq_flags

The fixnum zero or the constant O_NONBLOCK.

mq_maxmsg

Maximum number of messages on the queue.

mq_msgsize

Maximum message size in bytes.

mq_curmsgs

Number of messages currently on the queue.

Function: make-struct-mq-attr flags maxmsg msgsize curmsgs

Build and return a new instance of struct-mq-attr.

Function: struct-mq-attr? obj

Return #t if obj is an instance of struct-mq-attr and its field values are valid, return #f otherwise.

Function: struct-mq-attr-mq_flags attr
Function: struct-mq-attr-mq_maxmsg attr
Function: struct-mq-attr-mq_msgsize attr
Function: struct-mq-attr-mq_curmsgs attr

Accessors for the fields of struct-mq-attr.

Function: set-struct-mq-attr-mq_flags! attr value
Function: set-struct-mq-attr-mq_maxmsg! attr value
Function: set-struct-mq-attr-mq_msgsize! attr value
Function: set-struct-mq-attr-mq_curmsgs! attr value

Mutators for the fields of struct-mq-attr.