2
* Mach Operating System
3
* Copyright (c) 1991,1990 Carnegie Mellon University
6
* Permission to use, copy, modify and distribute this software and its
7
* documentation is hereby granted, provided that both the copyright
8
* notice and this permission notice appear in all copies of the
9
* software, derivative works or modified versions, and any portions
10
* thereof, and that both notices appear in supporting documentation.
12
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
16
* Carnegie Mellon requests users of this software to return to
18
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19
* School of Computer Science
20
* Carnegie Mellon University
21
* Pittsburgh PA 15213-3890
23
* any improvements or extensions that they make and grant Carnegie Mellon
24
* the rights to redistribute these changes.
27
* Copyright (c) 1982, 1989 The Regents of the University of California.
28
* All rights reserved.
30
* Redistribution and use in source and binary forms are permitted
31
* provided that the above copyright notice and this paragraph are
32
* duplicated in all such forms and that any documentation,
33
* advertising materials, and other materials related to such
34
* distribution and use acknowledge that the software was developed
35
* by the University of California, Berkeley. The name of the
36
* University may not be used to endorse or promote products derived
37
* from this software without specific prior written permission.
38
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
39
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
40
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
42
* @(#)inode.h 7.5 (Berkeley) 7/3/89
45
#ifndef _BOOT_UFS_DISK_INODE_FFS_H_
46
#define _BOOT_UFS_DISK_INODE_FFS_H_
48
#define NDADDR FFS_NDADDR
49
#define NIADDR FFS_NIADDR
51
#define MAX_FASTLINK_SIZE FFS_MAX_FASTLINK_SIZE
53
#define IC_FASTLINK 0x0001 /* Symbolic link in inode */
55
#define i_mode ic_mode
56
#define i_nlink ic_nlink
59
#if defined(BYTE_MSF) && BYTE_MSF
60
#define i_size ic_size.val[1]
62
#define i_size ic_size.val[0]
66
#define i_atime ic_atime
67
#define i_mtime ic_mtime
68
#define i_ctime ic_ctime
69
#define i_blocks ic_blocks
70
#define i_rdev ic_db[0]
71
#define i_symlink ic_symlink
72
#define i_flags ic_flags
76
#define IFMT 0xf000 /* type of file */
77
#define IFCHR 0x2000 /* character special */
78
#define IFDIR 0x4000 /* directory */
79
#define IFBLK 0x6000 /* block special */
80
#define IFREG 0x8000 /* regular */
81
#define IFLNK 0xa000 /* symbolic link */
82
#define IFSOCK 0xc000 /* socket */
85
#define ISUID 0x0800 /* set user id on execution */
86
#define ISGID 0x0400 /* set group id on execution */
87
#define ISVTX 0x0200 /* save swapped text even after use */
88
#define IREAD 0x0100 /* read, write, execute permissions */
93
#define f_fs u.ffs.ffs_fs
94
#define i_ic u.ffs.ffs_ic
95
#define f_nindir u.ffs.ffs_nindir
96
#define f_blk u.ffs.ffs_blk
97
#define f_blksize u.ffs.ffs_blksize
98
#define f_blkno u.ffs.ffs_blkno
101
#endif /* _BOOT_UFS_DISK_INODE_FFS_H_ */