home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / fs / s5macros.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  894 b   |  22 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _FS_S5MACROS_H
  11. #define _FS_S5MACROS_H
  12.  
  13. #ident    "@(#)/usr/include/sys/fs/s5macros.h.sl 1.1 4.0 12/08/90 54356 AT&T-USL"
  14.  
  15. #define FsLTOP(fs, b)    ((b) << (fs)->vfs_ltop)
  16. #define FsPTOL(fs, b)    ((b) >> (fs)->vfs_ltop)
  17. #define FsITOD(fs, x)    (daddr_t)(((unsigned)(x)+(2*(fs)->vfs_inopb-1)) >> (fs)->vfs_inoshift)
  18. #define FsITOO(fs, x)    (daddr_t)(((unsigned)(x)+(2*(fs)->vfs_inopb-1)) & ((fs)->vfs_inopb-1))
  19. #define FsINOS(fs, x)    ((((x) >> (fs)->vfs_inoshift) << (fs)->vfs_inoshift) + 1)
  20.  
  21. #endif    /* _FS_S5MACROS_H */
  22.