blob: 75459b905fb9f54815f77e4c01d22ff65237c40a [file] [log] [blame]
Nicholas Flintham1e3d3112013-04-10 10:48:38 +01001/* Copyright (C) 2003 Krzysztof Benedyczak & Michal Wronski
2
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Lesser General Public
5 License as published by the Free Software Foundation; either
6 version 2.1 of the License, or (at your option) any later version.
7
8 It is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Lesser General Public License for more details.
12
13 You should have received a copy of the GNU Lesser General Public
14 License along with this software; if not, write to the Free
15 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
16 02111-1307 USA. */
17
18#ifndef _LINUX_MQUEUE_H
19#define _LINUX_MQUEUE_H
20
21#define MQ_PRIO_MAX 32768
22#define MQ_BYTES_MAX 819200
23
24struct mq_attr {
25 long mq_flags;
26 long mq_maxmsg;
27 long mq_msgsize;
28 long mq_curmsgs;
29 long __reserved[4];
30};
31
32#define NOTIFY_NONE 0
33#define NOTIFY_WOKENUP 1
34#define NOTIFY_REMOVED 2
35
36#define NOTIFY_COOKIE_LEN 32
37
38#endif