dinode.h (1817) | dinode.h (2177) |
---|---|
1/* 2 * Copyright (c) 1982, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)dinode.h 8.3 (Berkeley) 1/21/94 | 1/* 2 * Copyright (c) 1982, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)dinode.h 8.3 (Berkeley) 1/21/94 |
39 * $Id$ | 39 * $Id: dinode.h,v 1.2 1994/08/02 07:54:47 davidg Exp $ |
40 */ 41 | 40 */ 41 |
42#ifndef _UFS_UFS_DINODE_H_ 43#define _UFS_UFS_DINODE_H_ 44 |
|
42/* 43 * The root inode is the root of the file system. Inode 0 can't be used for 44 * normal purposes and historically bad blocks were linked to inode 1, thus 45 * the root inode is 2. (Inode 1 is no longer used for this purpose, however 46 * numerous dump tapes make this assumption, so we are stuck with it). 47 */ 48#define ROOTINO ((ino_t)2) 49 --- 52 unchanged lines hidden (view full) --- 102#define IFMT 0170000 /* Mask of file type. */ 103#define IFIFO 0010000 /* Named pipe (fifo). */ 104#define IFCHR 0020000 /* Character device. */ 105#define IFDIR 0040000 /* Directory file. */ 106#define IFBLK 0060000 /* Block device. */ 107#define IFREG 0100000 /* Regular file. */ 108#define IFLNK 0120000 /* Symbolic link. */ 109#define IFSOCK 0140000 /* UNIX domain socket. */ | 45/* 46 * The root inode is the root of the file system. Inode 0 can't be used for 47 * normal purposes and historically bad blocks were linked to inode 1, thus 48 * the root inode is 2. (Inode 1 is no longer used for this purpose, however 49 * numerous dump tapes make this assumption, so we are stuck with it). 50 */ 51#define ROOTINO ((ino_t)2) 52 --- 52 unchanged lines hidden (view full) --- 105#define IFMT 0170000 /* Mask of file type. */ 106#define IFIFO 0010000 /* Named pipe (fifo). */ 107#define IFCHR 0020000 /* Character device. */ 108#define IFDIR 0040000 /* Directory file. */ 109#define IFBLK 0060000 /* Block device. */ 110#define IFREG 0100000 /* Regular file. */ 111#define IFLNK 0120000 /* Symbolic link. */ 112#define IFSOCK 0140000 /* UNIX domain socket. */ |
113 114#endif |
|