1*0124a941Schristos /* $NetBSD */ 2*0124a941Schristos 3*0124a941Schristos /*- 4*0124a941Schristos * Copyright (c) 2024 The NetBSD Foundation, Inc. 5*0124a941Schristos * All rights reserved. 6*0124a941Schristos * 7*0124a941Schristos * Redistribution and use in source and binary forms, with or without 8*0124a941Schristos * modification, are permitted provided that the following conditions 9*0124a941Schristos * are met: 10*0124a941Schristos * 1. Redistributions of source code must retain the above copyright 11*0124a941Schristos * notice, this list of conditions and the following disclaimer. 12*0124a941Schristos * 2. Redistributions in binary form must reproduce the above copyright 13*0124a941Schristos * notice, this list of conditions and the following disclaimer in the 14*0124a941Schristos * documentation and/or other materials provided with the distribution. 15*0124a941Schristos * 16*0124a941Schristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 17*0124a941Schristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 18*0124a941Schristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19*0124a941Schristos * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 20*0124a941Schristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21*0124a941Schristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22*0124a941Schristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23*0124a941Schristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24*0124a941Schristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25*0124a941Schristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26*0124a941Schristos * POSSIBILITY OF SUCH DAMAGE. 27*0124a941Schristos */ 28*0124a941Schristos 29*0124a941Schristos #ifndef _LINUX_MQUEUE_H 30*0124a941Schristos #define _LINUX_MQUEUE_H 31*0124a941Schristos 32*0124a941Schristos struct linux_mq_attr { 33*0124a941Schristos long mq_flags; /* message queue flags */ 34*0124a941Schristos long mq_maxmsg; /* maximum number of messages */ 35*0124a941Schristos long mq_msgsize; /* maximum message size */ 36*0124a941Schristos long mq_curmsgs; /* number of messages currently queued */ 37*0124a941Schristos long __reserved[4]; /* ignored for input, zeroed for output */ 38*0124a941Schristos }; 39*0124a941Schristos 40*0124a941Schristos #endif /* !_LINUX_MQUEUE_H */ 41