1219820Sjeff/* $NetBSD: mqueue.h,v 1.1.2.1 2008/11/09 20:00:20 christos Exp $ */ 2219820Sjeff 3219820Sjeff/*- 4219820Sjeff * Copyright (c) 2008 The NetBSD Foundation, Inc. 5219820Sjeff * All rights reserved. 6219820Sjeff * 7219820Sjeff * This code is derived from software contributed to The NetBSD Foundation 8219820Sjeff * by Christos Zoulas. 9219820Sjeff * 10219820Sjeff * Redistribution and use in source and binary forms, with or without 11219820Sjeff * modification, are permitted provided that the following conditions 12219820Sjeff * are met: 13219820Sjeff * 1. Redistributions of source code must retain the above copyright 14219820Sjeff * notice, this list of conditions and the following disclaimer. 15219820Sjeff * 2. Redistributions in binary form must reproduce the above copyright 16219820Sjeff * notice, this list of conditions and the following disclaimer in the 17219820Sjeff * documentation and/or other materials provided with the distribution. 18219820Sjeff * 3. All advertising materials mentioning features or use of this software 19219820Sjeff * must display the following acknowledgement: 20219820Sjeff * This product includes software developed by the NetBSD 21219820Sjeff * Foundation, Inc. and its contributors. 22219820Sjeff * 4. Neither the name of The NetBSD Foundation nor the names of its 23219820Sjeff * contributors may be used to endorse or promote products derived 24219820Sjeff * from this software without specific prior written permission. 25219820Sjeff * 26219820Sjeff * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 27219820Sjeff * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 28219820Sjeff * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 29219820Sjeff * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 30219820Sjeff * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 31219820Sjeff * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32219820Sjeff * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33219820Sjeff * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34219820Sjeff * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35219820Sjeff * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36219820Sjeff * POSSIBILITY OF SUCH DAMAGE. 37219820Sjeff */ 38219820Sjeff#ifndef _COMPAT_MQUEUE_H_ 39219820Sjeff#define _COMPAT_MQUEUE_H_ 40219820Sjeff 41219820Sjeff__BEGIN_DECLS 42219820Sjeffssize_t mq_timedreceive(mqd_t, char * __restrict, size_t, 43219820Sjeff unsigned * __restrict, const struct timespec50 * __restrict); 44219820Sjeffint mq_timedsend(mqd_t, const char *, size_t, unsigned, 45219820Sjeff const struct timespec50 *); 46219820Sjeffssize_t __mq_timedreceive50(mqd_t, char * __restrict, size_t, 47219820Sjeff unsigned * __restrict, const struct timespec * __restrict); 48219820Sjeffint __mq_timedsend50(mqd_t, const char *, size_t, unsigned, 49219820Sjeff const struct timespec *); 50219820Sjeff__END_DECLS 51219820Sjeff 52219820Sjeff#endif /* _COMPAT_MQUEUE_H_ */ 53219820Sjeff