Lines 97-103
Link Here
|
97 |
* Given a file address, determine the block number it represents. |
97 |
* Given a file address, determine the block number it represents. |
98 |
*/ |
98 |
*/ |
99 |
#define blockof(off) ((int) ((off) / 4096)) |
99 |
#define blockof(off) ((int) ((off) / 4096)) |
100 |
#define offsetof(off) ((int) ((off) % 4096)) |
100 |
#define offsetofmailx(off) ((int) ((off) % 4096)) |
101 |
#define positionof(block, offset) ((off_t)(block) * 4096 + (offset)) |
101 |
#define positionof(block, offset) ((off_t)(block) * 4096 + (offset)) |
102 |
|
102 |
|
103 |
/* |
103 |
/* |