Annotation of qemu/roms/openbios/fs/grubfs/disk_inode_ffs.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Mach Operating System
                      3:  * Copyright (c) 1991,1990 Carnegie Mellon University
                      4:  * All Rights Reserved.
                      5:  *
                      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.
                     11:  *
                     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.
                     15:  *
                     16:  * Carnegie Mellon requests users of this software to return to
                     17:  *
                     18:  *  Software Distribution Coordinator  or  [email protected]
                     19:  *  School of Computer Science
                     20:  *  Carnegie Mellon University
                     21:  *  Pittsburgh PA 15213-3890
                     22:  *
                     23:  * any improvements or extensions that they make and grant Carnegie Mellon
                     24:  * the rights to redistribute these changes.
                     25:  */
                     26: /*
                     27:  * Copyright (c) 1982, 1989 The Regents of the University of California.
                     28:  * All rights reserved.
                     29:  *
                     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.
                     41:  *
                     42:  *     @(#)inode.h     7.5 (Berkeley) 7/3/89
                     43:  */
                     44: 
                     45: #ifndef        _BOOT_UFS_DISK_INODE_FFS_H_
                     46: #define        _BOOT_UFS_DISK_INODE_FFS_H_
                     47: 
                     48: #define        NDADDR  FFS_NDADDR
                     49: #define        NIADDR  FFS_NIADDR
                     50: 
                     51: #define        MAX_FASTLINK_SIZE       FFS_MAX_FASTLINK_SIZE
                     52: 
                     53: #define        IC_FASTLINK     0x0001  /* Symbolic link in inode */
                     54: 
                     55: #define        i_mode          ic_mode
                     56: #define        i_nlink         ic_nlink
                     57: #define        i_uid           ic_uid
                     58: #define        i_gid           ic_gid
                     59: #if    defined(BYTE_MSF) && BYTE_MSF
                     60: #define        i_size          ic_size.val[1]
                     61: #else /* BYTE_LSF */
                     62: #define        i_size          ic_size.val[0]
                     63: #endif
                     64: #define        i_db            ic_db
                     65: #define        i_ib            ic_ib
                     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
                     73: #define i_gen          ic_gen
                     74: 
                     75: /* modes */
                     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 */
                     83: 
                     84: 
                     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 */
                     89: #define        IWRITE          0x0080
                     90: #define        IEXEC           0x0040
                     91: 
                     92: #ifdef EEK
                     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
                     99: #endif /* EEK */
                    100: 
                    101: #endif /* _BOOT_UFS_DISK_INODE_FFS_H_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.