[6262b5c] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | #include "biosdefs.h"
|
---|
| 4 | #include "stdint.h"
|
---|
| 5 |
|
---|
| 6 | /*
|
---|
| 7 | =============================================================================
|
---|
| 8 | filesys.c -- global variables
|
---|
| 9 | =============================================================================
|
---|
| 10 | */
|
---|
| 11 |
|
---|
| 12 | extern int32_t _berrno;
|
---|
| 13 | extern int16_t _bpbin;
|
---|
| 14 | extern int16_t _dirin;
|
---|
| 15 | extern int16_t _dirmod;
|
---|
| 16 | extern struct dirent *_dptr;
|
---|
| 17 | extern int16_t _fatin;
|
---|
| 18 | extern int16_t _fatmod;
|
---|
| 19 | extern struct bpb *_thebpb;
|
---|
| 20 | extern struct dirent _thedir[224];
|
---|
| 21 | extern uint16_t _thefat[7 * 256];
|
---|
| 22 |
|
---|
| 23 | /*
|
---|
| 24 | =============================================================================
|
---|
| 25 | filesys.c -- global functions
|
---|
| 26 | =============================================================================
|
---|
| 27 | */
|
---|
| 28 |
|
---|
| 29 | extern int16_t ClsFile(struct fcb *fcp);
|
---|
| 30 | extern int16_t DelFile(struct fcb *fcp);
|
---|
| 31 | extern int16_t _alcnew(struct fcb *fcp);
|
---|
| 32 | extern uint16_t _cl2lsn(struct bpb *bpp, uint16_t clnum);
|
---|
| 33 | extern void _clsvol(void);
|
---|
| 34 | extern void _deadio(struct fcb *fcp, int16_t err);
|
---|
| 35 | extern struct dirent *_dsnew(void);
|
---|
| 36 | extern struct dirent *_dsrch(struct dirent *de);
|
---|
| 37 | extern int16_t _fmake(struct fcb *fcp);
|
---|
| 38 | extern int16_t _ftrnc(struct dirent *dp);
|
---|
| 39 | extern uint16_t _getfat(uint16_t *bufad, uint16_t nfat, struct bpb *bpp);
|
---|
| 40 | extern uint16_t _gtcl12(int8_t *fat, uint16_t cl);
|
---|
| 41 | extern int16_t _inifcb(struct fcb *fcp, int8_t *name, int8_t *ext, int16_t mode);
|
---|
| 42 | extern int16_t _newcls(void);
|
---|
| 43 | extern int16_t _nsic(struct fcb *fcp, struct bpb *bpp, int8_t *fp);
|
---|
| 44 | extern int16_t _opfcb(struct fcb *fcp);
|
---|
| 45 | extern int16_t _opnvol(void);
|
---|
| 46 | extern int16_t _rdfat(uint16_t *bufad, struct bpb *bpp);
|
---|
| 47 | extern int16_t _rdroot(uint16_t *buf, struct bpb *bpp);
|
---|
| 48 | extern int16_t _seek(struct fcb *fcp);
|
---|
| 49 | extern int16_t fcbinit(int8_t *name, struct fcb *fcp);
|
---|