Update copyright notices with scripts/update-copyrights
[glibc.git] / ports / sysdeps / unix / sysv / linux / ia64 / bits / msq.h
blob004d2ac7704763780d1dcb2a20c3d40883ffce9a
1 /* Copyright (C) 2000-2014 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contribute by David Mosberger-Tang <davidm@hpl.hp.com>
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 #ifndef _SYS_MSG_H
20 #error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
21 #endif
23 #include <sys/types.h>
25 /* Define options for message queue functions. */
26 #define MSG_NOERROR 010000 /* no error if message is too big */
27 #ifdef __USE_GNU
28 # define MSG_EXCEPT 020000 /* recv any msg except of specified type */
29 # define MSG_COPY 040000 /* copy (not remove) all queue messages */
30 #endif
32 /* Structure of record for one message inside the kernel.
33 The type `struct __msg' is opaque. */
34 struct msqid_ds
36 struct ipc_perm msg_perm; /* structure describing operation permission */
37 __time_t msg_stime; /* time of last msgsnd command */
38 __time_t msg_rtime; /* time of last msgrcv command */
39 __time_t msg_ctime; /* time of last change */
40 unsigned long int __msg_cbytes; /* current number of bytes on queue */
41 unsigned long int msg_qnum; /* number of messages currently on queue */
42 unsigned long int msg_qbytes; /* max number of bytes allowed on queue */
43 __pid_t msg_lspid; /* pid of last msgsnd() */
44 __pid_t msg_lrpid; /* pid of last msgrcv() */
45 unsigned long int __glibc_reserved1;
46 unsigned long int __glibc_reserved2;
49 #ifdef __USE_MISC
51 # define msg_cbytes __msg_cbytes
53 /* ipcs ctl commands */
54 # define MSG_STAT 11
55 # define MSG_INFO 12
57 /* buffer for msgctl calls IPC_INFO, MSG_INFO */
58 struct msginfo
60 int msgpool;
61 int msgmap;
62 int msgmax;
63 int msgmnb;
64 int msgmni;
65 int msgssz;
66 int msgtql;
67 unsigned short int msgseg;
70 #endif /* __USE_MISC */