1msg.h(3HEAD)                        Headers                       msg.h(3HEAD)
2
3
4

NAME

6       msg.h, msg - message queue structures
7

SYNOPSIS

9       #include <sys/msg.h>
10
11

DESCRIPTION

13       The  <sys/msg.h>  header defines the following data types through type‐
14       def:
15
16       msgqnum_t    used for the number of messages in the message queue
17
18
19       msglen_t     used for the number of bytes allowed in the message queue
20
21
22
23       These types are unsigned integer types that are able to store values at
24       least as large as a type unsigned short.
25
26
27       The  <sys/msg.h>  header  defines  the  following constant as a message
28       operation flag:
29
30       MSG_NOERROR    no error if big message
31
32
33
34       The msqid_ds structure contains the following members:
35
36         struct ipc_perm    msg_perm      Operation permission structure.
37         msgqnum_t          msg_qnum      Number of messages currently on
38                                          queue.
39         msglen_t           msg_qbytes    Maximum number of bytes allowed
40                                          on queue.
41         pid_t              msg_lspid     Process ID of last msgsnd(2).
42         pid_t              msg_lrpid     Process ID of last msgrcv(2).
43         time_t             msg_stime     Time of last msgsnd().
44         time_t             msg_rtime     Time of last msgrcv().
45         time_t             msg_ctime     Time of last change.
46
47
48
49       The pid_t, time_t, key_t, size_t, and  ssize_t  types  are  defined  as
50       described in <sys/types.h>. See types(3HEAD).
51

ATTRIBUTES

53       See attributes(5) for descriptions of the following attributes:
54
55
56
57
58       ┌─────────────────────────────┬─────────────────────────────┐
59       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
60       ├─────────────────────────────┼─────────────────────────────┤
61       │Interface Stability          │Standard                     │
62       └─────────────────────────────┴─────────────────────────────┘
63

SEE ALSO

65       msgctl(2),     msgget(2),     msgrcv(2),    msgsnd(2),    ipc.h(3HEAD),
66       types.h(3HEAD), attributes(5), standards(5)
67
68
69
70SunOS 5.11                        10 Sep 2004                     msg.h(3HEAD)
Impressum