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