|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 2629 (0xa45) Types: TextFile Notes: UNIX file Names: »dosparam.h«
└─⟦a6ab2eb36⟧ Bits:30004042/kconfig3.imd SW95705I 386/ix Multi-user Release 1.2 └─⟦a6ab2eb36⟧ UNIX Filesystem └─⟦this⟧ »kc/new/usr/include/sys/fs/dosparam.h«
/* * Copyrighted as an unpublished work. * (c) Copyright 1987 INTERACTIVE Systems Corporation * All rights reserved. * * RESTRICTED RIGHTS * * These programs are supplied under a license. They may be used, * disclosed, and/or copied only as permitted under such license * agreement. Any copy must contain the above copyright notice and * this restricted rights notice. Use, copying, and/or disclosure * of the programs is strictly prohibited unless otherwise provided * in the license agreement. * */ #ident "@(#)dosparam.h 1.2 - 87/07/31" #ident "@(#) (c) Copyright INTERACTIVE Systems Corporation 1987" /* dosparam.h - DOS File System Switch specific parameters */ /* * filesystem parameters */ #define DOSROOTINO 2 /* Inode num of all root inodes */ #define FAT12_EMASK 0x00FFF /* Mask to extract data */ #define FAT12_PMASK 0x0000F /* Mask to preserve data */ #define FAT12_SHIFT 4 /* Shift to position data */ #define FAT16_EMASK 0x0FFFF /* Mask to extract data */ #define FAT16_PMASK 0x00000 /* Mask to preserve data */ #define FAT16_SHIFT 0 /* Shift to position data */ #define FREE_CLUSTER(m) (0) /* Free cluster value */ #define LVAL_CLUSTER(m) (2) /* Low boundary of valid cluster*/ #define HVAL_CLUSTER(m) ((~0x0F) & m) /* Hi boundary of valid cluster*/ #define LRSD_CLUSTER(m) ((~0x0F) & m) /* Low value of reserved cluster*/ #define HRSD_CLUSTER(m) ((~0x09) & m) /* Hi value of reserved cluster*/ #define BAD_CLUSTER(m) ((~0x08) & m) /* Bad cluster value */ #define LEND_CLUSTER(m) ((~0x07) & m) /* Low value of end cluster */ #define HEND_CLUSTER(m) ((~0x00) & m) /* Hi value of end cluster */ #define free_cluster(c,m) (c == FREE_CLUSTER(m)) #define bad_cluster(c,m) (c == BAD_CLUSTER(m)) #define end_cluster(c,m) ((c >= LEND_CLUSTER(m)) && (c <= HEND_CLUSTER(m))) #define valid_cluster(c,m) ((c >= LVAL_CLUSTER(m)) && (c < HVAL_CLUSTER(m))) extern char dos_dbglev; #define DBG 9 #define DEBUG 1 #if DBG >= 1 #define DBG1(x) ((dos_dbglev >= 1) ? (x) : 0) #else #define DBG1(x) #endif #if DBG >= 3 #define DBG3(x) ((dos_dbglev >= 3) ? (x) : 0) #else #define DBG3(x) #endif #if DBG >= 5 #define DBG5(x) ((dos_dbglev >= 5) ? (x) : 0) #else #define DBG5(x) #endif #if DBG >= 7 #define DBG7(x) ((dos_dbglev >= 7) ? (x) : 0) #else #define DBG7(x) #endif #if DBG >= 9 #define DBG9(x) ((dos_dbglev >= 9) ? (x) : 0) #else #define DBG9(x) #endif #define DBGX(x)