143412Snewton/* 250477Speter * $FreeBSD: releng/10.3/sys/compat/svr4/svr4_fuser.h 263687 2014-03-24 13:48:04Z emaste $ 343412Snewton * Derived from: 443412Snewton * $NetBSD: svr4_fuser.h,v 1.4 1998/09/04 19:54:38 christos Exp $ */ 543412Snewton 643412Snewton/*- 743412Snewton * Original Copyright: 843412Snewton * 943412Snewton * Copyright (c) 1994 The NetBSD Foundation, Inc. 1043412Snewton * All rights reserved. 1143412Snewton * 1243412Snewton * This code is derived from software contributed to The NetBSD Foundation 1343412Snewton * by Christos Zoulas. 1443412Snewton * 1543412Snewton * Redistribution and use in source and binary forms, with or without 1643412Snewton * modification, are permitted provided that the following conditions 1743412Snewton * are met: 1843412Snewton * 1. Redistributions of source code must retain the above copyright 1943412Snewton * notice, this list of conditions and the following disclaimer. 2043412Snewton * 2. Redistributions in binary form must reproduce the above copyright 2143412Snewton * notice, this list of conditions and the following disclaimer in the 2243412Snewton * documentation and/or other materials provided with the distribution. 2343412Snewton * 2443412Snewton * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2543412Snewton * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2643412Snewton * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2743412Snewton * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2843412Snewton * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2943412Snewton * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 3043412Snewton * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 3143412Snewton * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 3243412Snewton * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 3343412Snewton * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 3443412Snewton * POSSIBILITY OF SUCH DAMAGE. 3543412Snewton */ 3643412Snewton 37139743Simp/*- 3843412Snewton * Portions of this code have been derived from code contributed to the 3943412Snewton * FreeBSD Project by Mark Newton. 4043412Snewton * 4143412Snewton * Copyright (c) 1999 Mark Newton 4243412Snewton * All rights reserved. 4343412Snewton * 4443412Snewton * Redistribution and use in source and binary forms, with or without 4543412Snewton * modification, are permitted provided that the following conditions 4643412Snewton * are met: 4743412Snewton * 1. Redistributions of source code must retain the above copyright 4843412Snewton * notice, this list of conditions and the following disclaimer. 4943412Snewton * 2. Redistributions in binary form must reproduce the above copyright 5043412Snewton * notice, this list of conditions and the following disclaimer in the 5143412Snewton * documentation and/or other materials provided with the distribution. 5243412Snewton * 3. The name of the author may not be used to endorse or promote products 5343412Snewton * derived from this software without specific prior written permission 5443412Snewton * 5543412Snewton * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 5643412Snewton * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 5743412Snewton * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 5843412Snewton * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 5943412Snewton * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 6043412Snewton * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 6143412Snewton * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 6243412Snewton * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 6343412Snewton * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 6443412Snewton * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 6543412Snewton */ 6643412Snewton 6743412Snewton#ifndef _SVR4_FUSER_H_ 6843412Snewton#define _SVR4_FUSER_H_ 6943412Snewton 7065302Sobrien#include <compat/svr4/svr4_types.h> 7143412Snewton 7243412Snewtonstruct svr4_f_user { 7343412Snewton svr4_pid_t fu_pid; 7443412Snewton int fu_flags; 7543412Snewton uid_t fu_uid; 7643412Snewton}; 7743412Snewton 7843412Snewton 7943412Snewton#define SVR4_F_FILE_ONLY 1 8043412Snewton#define SVR4_F_CONTAINED 2 8143412Snewton 8243412Snewton#define SVR4_F_CDIR 0x01 8343412Snewton#define SVR4_F_RDIR 0x02 8443412Snewton#define SVR4_F_TEXT 0x04 8543412Snewton#define SVR4_F_MAP 0x08 8643412Snewton#define SVR4_F_OPEN 0x10 8743412Snewton#define SVR4_F_TRACE 0x20 8843412Snewton#define SVR4_F_TTY 0x40 8943412Snewton 9043412Snewton#endif /* !_SVR4_FUSER_H_ */ 91