1<sys/msg.h>(P)             POSIX Programmer's Manual            <sys/msg.h>(P)
2
3
4

NAME

6       sys/msg.h - XSI message queue structures
7

SYNOPSIS

9       #include <sys/msg.h>
10

DESCRIPTION

12       The  <sys/msg.h>  header  shall define the following data types through
13       typedef:
14
15       msgqnum_t
16              Used for the number of messages in the message queue.
17
18       msglen_t
19              Used for the number of bytes allowed in a message queue.
20
21
22       These types shall be unsigned integer types that are able to store val‐
23       ues at least as large as a type unsigned short.
24
25       The <sys/msg.h> header shall define the following constant as a message
26       operation flag:
27
28       MSG_NOERROR
29              No error if big message.
30
31
32       The msqid_ds structure shall contain the following members:
33
34
35              struct ipc_perm msg_perm   Operation permission structure.
36              msgqnum_t       msg_qnum   Number of messages currently on queue.
37              msglen_t        msg_qbytes Maximum number of bytes allowed on queue.
38              pid_t           msg_lspid  Process ID of last msgsnd
39               ().
40              pid_t           msg_lrpid  Process ID of last msgrcv
41               ().
42              time_t          msg_stime  Time of last msgsnd
43               ().
44              time_t          msg_rtime  Time of last msgrcv
45               ().
46              time_t          msg_ctime  Time of last change.
47
48       The pid_t, time_t, key_t, size_t, and ssize_t types shall be defined as
49       described in <sys/types.h> .
50
51       The following shall be declared as functions and may also be defined as
52       macros. Function prototypes shall be provided.
53
54
55              int       msgctl(int, int, struct msqid_ds *);
56              int       msgget(key_t, int);
57              ssize_t   msgrcv(int, void *, size_t, long, int);
58              int       msgsnd(int, const void *, size_t, int);
59
60       In addition, all of the symbols from <sys/ipc.h> shall be defined  when
61       this header is included.
62
63       The following sections are informative.
64

APPLICATION USAGE

66       None.
67

RATIONALE

69       None.
70

FUTURE DIRECTIONS

72       None.
73

SEE ALSO

75       <sys/ipc.h> , <sys/types.h> , msgctl(), msgget(), msgrcv(), msgsnd()
76
78       Portions  of  this text are reprinted and reproduced in electronic form
79       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
80       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
81       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
82       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
83       event of any discrepancy between this version and the original IEEE and
84       The  Open Group Standard, the original IEEE and The Open Group Standard
85       is the referee document. The original Standard can be  obtained  online
86       at http://www.opengroup.org/unix/online.html .
87
88
89
90IEEE/The Open Group                  2003                       <sys/msg.h>(P)
Impressum