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