svr4_fuser.h revision 263687
1109998Smarkm/*
2296341Sdelphij * $FreeBSD: stable/10/sys/compat/svr4/svr4_fuser.h 263687 2014-03-24 13:48:04Z emaste $
3296341Sdelphij *	Derived from:
4296341Sdelphij *	$NetBSD: svr4_fuser.h,v 1.4 1998/09/04 19:54:38 christos Exp $	 */
5109998Smarkm
6109998Smarkm/*-
7109998Smarkm * Original Copyright:
8109998Smarkm *
9109998Smarkm * Copyright (c) 1994 The NetBSD Foundation, Inc.
10109998Smarkm * All rights reserved.
11109998Smarkm *
12109998Smarkm * This code is derived from software contributed to The NetBSD Foundation
13109998Smarkm * by Christos Zoulas.
14296341Sdelphij *
15109998Smarkm * Redistribution and use in source and binary forms, with or without
16109998Smarkm * modification, are permitted provided that the following conditions
17109998Smarkm * are met:
18109998Smarkm * 1. Redistributions of source code must retain the above copyright
19109998Smarkm *    notice, this list of conditions and the following disclaimer.
20109998Smarkm * 2. Redistributions in binary form must reproduce the above copyright
21109998Smarkm *    notice, this list of conditions and the following disclaimer in the
22109998Smarkm *    documentation and/or other materials provided with the distribution.
23109998Smarkm *
24109998Smarkm * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
25109998Smarkm * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26109998Smarkm * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27109998Smarkm * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
28109998Smarkm * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29109998Smarkm * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30109998Smarkm * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31109998Smarkm * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32109998Smarkm * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33109998Smarkm * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34109998Smarkm * POSSIBILITY OF SUCH DAMAGE.
35109998Smarkm */
36109998Smarkm
37109998Smarkm/*-
38109998Smarkm * Portions of this code have been derived from code contributed to the
39109998Smarkm * FreeBSD Project by Mark Newton.
40109998Smarkm *
41109998Smarkm * Copyright (c) 1999 Mark Newton
42109998Smarkm * All rights reserved.
43109998Smarkm *
44109998Smarkm * Redistribution and use in source and binary forms, with or without
45109998Smarkm * modification, are permitted provided that the following conditions
46109998Smarkm * are met:
47109998Smarkm * 1. Redistributions of source code must retain the above copyright
48109998Smarkm *    notice, this list of conditions and the following disclaimer.
49109998Smarkm * 2. Redistributions in binary form must reproduce the above copyright
50109998Smarkm *    notice, this list of conditions and the following disclaimer in the
51109998Smarkm *    documentation and/or other materials provided with the distribution.
52109998Smarkm * 3. The name of the author may not be used to endorse or promote products
53109998Smarkm *    derived from this software without specific prior written permission
54109998Smarkm *
55109998Smarkm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
56109998Smarkm * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
57109998Smarkm * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
58109998Smarkm * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
59109998Smarkm * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
60109998Smarkm * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
61296341Sdelphij * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
62296341Sdelphij * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
63109998Smarkm * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
64296341Sdelphij * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
65296341Sdelphij */
66109998Smarkm
67296341Sdelphij#ifndef	_SVR4_FUSER_H_
68109998Smarkm#define	_SVR4_FUSER_H_
69296341Sdelphij
70109998Smarkm#include <compat/svr4/svr4_types.h>
71296341Sdelphij
72296341Sdelphijstruct svr4_f_user {
73296341Sdelphij	svr4_pid_t	fu_pid;
74296341Sdelphij	int		fu_flags;
75296341Sdelphij	uid_t		fu_uid;
76296341Sdelphij};
77296341Sdelphij
78264331Sjkim
79296341Sdelphij#define SVR4_F_FILE_ONLY	1
80296341Sdelphij#define SVR4_F_CONTAINED	2
81296341Sdelphij
82296341Sdelphij#define SVR4_F_CDIR	0x01
83296341Sdelphij#define SVR4_F_RDIR	0x02
84109998Smarkm#define SVR4_F_TEXT	0x04
85109998Smarkm#define SVR4_F_MAP	0x08
86109998Smarkm#define SVR4_F_OPEN	0x10
87109998Smarkm#define SVR4_F_TRACE	0x20
88109998Smarkm#define SVR4_F_TTY	0x40
89109998Smarkm
90296341Sdelphij#endif /* !_SVR4_FUSER_H_ */
91296341Sdelphij