xref: /minix3/sys/ufs/lfs/ulfs_dinode.h (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1*84d9c625SLionel Sambuc /*	$NetBSD: ulfs_dinode.h,v 1.11 2013/06/08 22:19:01 dholland Exp $	*/
2*84d9c625SLionel Sambuc /*  from NetBSD: dinode.h,v 1.22 2013/01/22 09:39:18 dholland Exp  */
3*84d9c625SLionel Sambuc 
4*84d9c625SLionel Sambuc /*
5*84d9c625SLionel Sambuc  * Copyright (c) 2002 Networks Associates Technology, Inc.
6*84d9c625SLionel Sambuc  * All rights reserved.
7*84d9c625SLionel Sambuc  *
8*84d9c625SLionel Sambuc  * This software was developed for the FreeBSD Project by Marshall
9*84d9c625SLionel Sambuc  * Kirk McKusick and Network Associates Laboratories, the Security
10*84d9c625SLionel Sambuc  * Research Division of Network Associates, Inc. under DARPA/SPAWAR
11*84d9c625SLionel Sambuc  * contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS
12*84d9c625SLionel Sambuc  * research program
13*84d9c625SLionel Sambuc  *
14*84d9c625SLionel Sambuc  * Copyright (c) 1982, 1989, 1993
15*84d9c625SLionel Sambuc  *	The Regents of the University of California.  All rights reserved.
16*84d9c625SLionel Sambuc  * (c) UNIX System Laboratories, Inc.
17*84d9c625SLionel Sambuc  * All or some portions of this file are derived from material licensed
18*84d9c625SLionel Sambuc  * to the University of California by American Telephone and Telegraph
19*84d9c625SLionel Sambuc  * Co. or Unix System Laboratories, Inc. and are reproduced herein with
20*84d9c625SLionel Sambuc  * the permission of UNIX System Laboratories, Inc.
21*84d9c625SLionel Sambuc  *
22*84d9c625SLionel Sambuc  * Redistribution and use in source and binary forms, with or without
23*84d9c625SLionel Sambuc  * modification, are permitted provided that the following conditions
24*84d9c625SLionel Sambuc  * are met:
25*84d9c625SLionel Sambuc  * 1. Redistributions of source code must retain the above copyright
26*84d9c625SLionel Sambuc  *    notice, this list of conditions and the following disclaimer.
27*84d9c625SLionel Sambuc  * 2. Redistributions in binary form must reproduce the above copyright
28*84d9c625SLionel Sambuc  *    notice, this list of conditions and the following disclaimer in the
29*84d9c625SLionel Sambuc  *    documentation and/or other materials provided with the distribution.
30*84d9c625SLionel Sambuc  * 3. Neither the name of the University nor the names of its contributors
31*84d9c625SLionel Sambuc  *    may be used to endorse or promote products derived from this software
32*84d9c625SLionel Sambuc  *    without specific prior written permission.
33*84d9c625SLionel Sambuc  *
34*84d9c625SLionel Sambuc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
35*84d9c625SLionel Sambuc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
36*84d9c625SLionel Sambuc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
37*84d9c625SLionel Sambuc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
38*84d9c625SLionel Sambuc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
39*84d9c625SLionel Sambuc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
40*84d9c625SLionel Sambuc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
41*84d9c625SLionel Sambuc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
42*84d9c625SLionel Sambuc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
43*84d9c625SLionel Sambuc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
44*84d9c625SLionel Sambuc  * SUCH DAMAGE.
45*84d9c625SLionel Sambuc  *
46*84d9c625SLionel Sambuc  *	@(#)dinode.h	8.9 (Berkeley) 3/29/95
47*84d9c625SLionel Sambuc  */
48*84d9c625SLionel Sambuc 
49*84d9c625SLionel Sambuc #ifndef	_UFS_LFS_ULFS_DINODE_H_
50*84d9c625SLionel Sambuc #define	_UFS_LFS_ULFS_DINODE_H_
51*84d9c625SLionel Sambuc 
52*84d9c625SLionel Sambuc #include <ufs/lfs/lfs.h>
53*84d9c625SLionel Sambuc 
54*84d9c625SLionel Sambuc /* File permissions. */
55*84d9c625SLionel Sambuc #define	IEXEC		0000100		/* Executable. */
56*84d9c625SLionel Sambuc #define	IWRITE		0000200		/* Writable. */
57*84d9c625SLionel Sambuc #define	IREAD		0000400		/* Readable. */
58*84d9c625SLionel Sambuc #define	ISVTX		0001000		/* Sticky bit. */
59*84d9c625SLionel Sambuc #define	ISGID		0002000		/* Set-gid. */
60*84d9c625SLionel Sambuc #define	ISUID		0004000		/* Set-uid. */
61*84d9c625SLionel Sambuc 
62*84d9c625SLionel Sambuc #endif /* !_UFS_LFS_ULFS_DINODE_H_ */
63