1152828Sdavidxu/*-
2152828Sdavidxu * Copyright (c) 2005 David Xu <davidxu@freebsd.org>
3152828Sdavidxu * All rights reserved.
4152828Sdavidxu *
5152828Sdavidxu * Redistribution and use in source and binary forms, with or without
6152828Sdavidxu * modification, are permitted provided that the following conditions
7152828Sdavidxu * are met:
8152828Sdavidxu * 1. Redistributions of source code must retain the above copyright
9152828Sdavidxu *    notice, this list of conditions and the following disclaimer.
10152828Sdavidxu * 2. Redistributions in binary form must reproduce the above copyright
11152828Sdavidxu *    notice, this list of conditions and the following disclaimer in the
12152828Sdavidxu *    documentation and/or other materials provided with the distribution.
13152828Sdavidxu *
14152828Sdavidxu * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15152828Sdavidxu * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16152828Sdavidxu * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17152828Sdavidxu * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18152828Sdavidxu * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19152828Sdavidxu * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20152828Sdavidxu * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21152828Sdavidxu * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22152828Sdavidxu * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23152828Sdavidxu * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24152828Sdavidxu * SUCH DAMAGE.
25152828Sdavidxu *
26152828Sdavidxu * $FreeBSD$
27152828Sdavidxu */
28152828Sdavidxu
29152828Sdavidxu#ifndef _SYS_MQUEUE_H_
30152828Sdavidxu#define _SYS_MQUEUE_H_
31152828Sdavidxu
32152828Sdavidxustruct mq_attr {
33152828Sdavidxu	long	mq_flags;	/* Message queue flags. */
34152828Sdavidxu	long	mq_maxmsg;	/* Maximum number of messages. */
35152828Sdavidxu	long	mq_msgsize;	/* Maximum message size. */
36152828Sdavidxu	long	mq_curmsgs;	/* Number of messages currently queued. */
37152828Sdavidxu	long    __reserved[4];  /* Ignored for input, zeroed for output */
38152828Sdavidxu};
39152828Sdavidxu
40152948Sdavidxu#ifdef _KERNEL
41152948Sdavidxustruct thread;
42152948Sdavidxustruct file;
43152948Sdavidxuextern void	(*mq_fdclose)(struct thread *td, int fd, struct file *fp);
44152828Sdavidxu#endif
45152948Sdavidxu#endif
46