17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * Mach Operating System 37c478bd9Sstevel@tonic-gate * Copyright (c) 1991,1990 Carnegie Mellon University 47c478bd9Sstevel@tonic-gate * All Rights Reserved. 57c478bd9Sstevel@tonic-gate * 67c478bd9Sstevel@tonic-gate * Permission to use, copy, modify and distribute this software and its 77c478bd9Sstevel@tonic-gate * documentation is hereby granted, provided that both the copyright 87c478bd9Sstevel@tonic-gate * notice and this permission notice appear in all copies of the 97c478bd9Sstevel@tonic-gate * software, derivative works or modified versions, and any portions 107c478bd9Sstevel@tonic-gate * thereof, and that both notices appear in supporting documentation. 117c478bd9Sstevel@tonic-gate * 127c478bd9Sstevel@tonic-gate * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 137c478bd9Sstevel@tonic-gate * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR 147c478bd9Sstevel@tonic-gate * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 157c478bd9Sstevel@tonic-gate * 167c478bd9Sstevel@tonic-gate * Carnegie Mellon requests users of this software to return to 177c478bd9Sstevel@tonic-gate * 187c478bd9Sstevel@tonic-gate * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 197c478bd9Sstevel@tonic-gate * School of Computer Science 207c478bd9Sstevel@tonic-gate * Carnegie Mellon University 217c478bd9Sstevel@tonic-gate * Pittsburgh PA 15213-3890 227c478bd9Sstevel@tonic-gate * 237c478bd9Sstevel@tonic-gate * any improvements or extensions that they make and grant Carnegie Mellon 247c478bd9Sstevel@tonic-gate * the rights to redistribute these changes. 257c478bd9Sstevel@tonic-gate */ 267c478bd9Sstevel@tonic-gate /* 277c478bd9Sstevel@tonic-gate * Copyright (c) 1982, 1989 The Regents of the University of California. 287c478bd9Sstevel@tonic-gate * All rights reserved. 297c478bd9Sstevel@tonic-gate * 307c478bd9Sstevel@tonic-gate * Redistribution and use in source and binary forms are permitted 317c478bd9Sstevel@tonic-gate * provided that the above copyright notice and this paragraph are 327c478bd9Sstevel@tonic-gate * duplicated in all such forms and that any documentation, 337c478bd9Sstevel@tonic-gate * advertising materials, and other materials related to such 347c478bd9Sstevel@tonic-gate * distribution and use acknowledge that the software was developed 357c478bd9Sstevel@tonic-gate * by the University of California, Berkeley. The name of the 367c478bd9Sstevel@tonic-gate * University may not be used to endorse or promote products derived 377c478bd9Sstevel@tonic-gate * from this software without specific prior written permission. 387c478bd9Sstevel@tonic-gate * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 397c478bd9Sstevel@tonic-gate * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 407c478bd9Sstevel@tonic-gate * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 417c478bd9Sstevel@tonic-gate * 427c478bd9Sstevel@tonic-gate * @(#)inode.h 7.5 (Berkeley) 7/3/89 437c478bd9Sstevel@tonic-gate */ 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gate #ifndef _BOOT_UFS_DISK_INODE_FFS_H_ 467c478bd9Sstevel@tonic-gate #define _BOOT_UFS_DISK_INODE_FFS_H_ 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate #define NDADDR FFS_NDADDR 497c478bd9Sstevel@tonic-gate #define NIADDR FFS_NIADDR 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gate #define MAX_FASTLINK_SIZE FFS_MAX_FASTLINK_SIZE 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gate #define IC_FASTLINK 0x0001 /* Symbolic link in inode */ 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gate #define i_mode ic_mode 567c478bd9Sstevel@tonic-gate #define i_nlink ic_nlink 577c478bd9Sstevel@tonic-gate #define i_uid ic_uid 587c478bd9Sstevel@tonic-gate #define i_gid ic_gid 597c478bd9Sstevel@tonic-gate #if defined(BYTE_MSF) && BYTE_MSF 607c478bd9Sstevel@tonic-gate #define i_size ic_size.val[1] 617c478bd9Sstevel@tonic-gate #else /* BYTE_LSF */ 627c478bd9Sstevel@tonic-gate #define i_size ic_size.val[0] 637c478bd9Sstevel@tonic-gate #endif 647c478bd9Sstevel@tonic-gate #define i_db ic_db 657c478bd9Sstevel@tonic-gate #define i_ib ic_ib 667c478bd9Sstevel@tonic-gate #define i_atime ic_atime 677c478bd9Sstevel@tonic-gate #define i_mtime ic_mtime 687c478bd9Sstevel@tonic-gate #define i_ctime ic_ctime 697c478bd9Sstevel@tonic-gate #define i_blocks ic_blocks 707c478bd9Sstevel@tonic-gate #define i_rdev ic_db[0] 717c478bd9Sstevel@tonic-gate #define i_symlink ic_symlink 727c478bd9Sstevel@tonic-gate #define i_flags ic_flags 737c478bd9Sstevel@tonic-gate #define i_gen ic_gen 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gate /* modes */ 767c478bd9Sstevel@tonic-gate #define IFMT 0xf000 /* type of file */ 777c478bd9Sstevel@tonic-gate #define IFCHR 0x2000 /* character special */ 787c478bd9Sstevel@tonic-gate #define IFDIR 0x4000 /* directory */ 797c478bd9Sstevel@tonic-gate #define IFBLK 0x6000 /* block special */ 807c478bd9Sstevel@tonic-gate #define IFREG 0x8000 /* regular */ 817c478bd9Sstevel@tonic-gate #define IFLNK 0xa000 /* symbolic link */ 827c478bd9Sstevel@tonic-gate #define IFSOCK 0xc000 /* socket */ 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gate #define ISUID 0x0800 /* set user id on execution */ 867c478bd9Sstevel@tonic-gate #define ISGID 0x0400 /* set group id on execution */ 877c478bd9Sstevel@tonic-gate #define ISVTX 0x0200 /* save swapped text even after use */ 887c478bd9Sstevel@tonic-gate #define IREAD 0x0100 /* read, write, execute permissions */ 897c478bd9Sstevel@tonic-gate #define IWRITE 0x0080 907c478bd9Sstevel@tonic-gate #define IEXEC 0x0040 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate #ifdef EEK 937c478bd9Sstevel@tonic-gate #define f_fs u.ffs.ffs_fs 947c478bd9Sstevel@tonic-gate #define i_ic u.ffs.ffs_ic 957c478bd9Sstevel@tonic-gate #define f_nindir u.ffs.ffs_nindir 967c478bd9Sstevel@tonic-gate #define f_blk u.ffs.ffs_blk 977c478bd9Sstevel@tonic-gate #define f_blksize u.ffs.ffs_blksize 987c478bd9Sstevel@tonic-gate #define f_blkno u.ffs.ffs_blkno 997c478bd9Sstevel@tonic-gate #endif /* EEK */ 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gate #endif /* _BOOT_UFS_DISK_INODE_FFS_H_ */ 102