- Timestamp:
- 07/16/2017 11:45:11 AM (7 years ago)
- Branches:
- master
- Children:
- f261cc8
- Parents:
- 1d174fb
- Location:
- libcio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/filesys.c
r1d174fb r0c06bc5 82 82 */ 83 83 84 int 32_t _getfat(uint8_t *bufad, struct bpb *bpp, int16_t nfat)84 int16_t _getfat(uint8_t *bufad, struct bpb *bpp, int16_t nfat) 85 85 { 86 86 int16_t fatsec; 87 87 88 88 fatsec = nfat ? bpp->fatrec : (bpp->fatrec - bpp->fsiz); 89 return( BIOS(B_RDWR, 0, bufad, bpp->fsiz, fatsec, 0));89 return((int16_t)BIOS(B_RDWR, 0, bufad, bpp->fsiz, fatsec, 0)); 90 90 } 91 91 … … 117 117 */ 118 118 119 int 32_t _rdroot(struct dirent *buf, struct bpb *bpp)120 { 121 return( BIOS(B_RDWR, 0, buf, bpp->rdlen,119 int16_t _rdroot(struct dirent *buf, struct bpb *bpp) 120 { 121 return((int16_t)BIOS(B_RDWR, 0, buf, bpp->rdlen, 122 122 (bpp->fatrec + bpp->fsiz), 0)); 123 123 } -
libcio/filesys.x
r1d174fb r0c06bc5 44 44 extern int16_t _fmake(struct fcb *fcp); 45 45 extern int16_t _ftrnc(struct dirent *dp); 46 extern int 32_t _getfat(uint8_t *bufad, struct bpb *bpp, int16_t nfat);46 extern int16_t _getfat(uint8_t *bufad, struct bpb *bpp, int16_t nfat); 47 47 extern int16_t _gtcl12(uint8_t *fat, int16_t cl); 48 48 extern int16_t _inifcb(struct fcb *fcp, int8_t *name, int8_t *ext, uint16_t mode); … … 52 52 extern int16_t _opnvol(void); 53 53 extern int16_t _rdfat(uint8_t *bufad, struct bpb *bpp); 54 extern int 32_t _rdroot(struct dirent *buf, struct bpb *bpp);54 extern int16_t _rdroot(struct dirent *buf, struct bpb *bpp); 55 55 extern int16_t _seek(struct fcb *fcp); 56 56 extern int16_t fcbinit(int8_t *name, struct fcb *fcp);
Note:
See TracChangeset
for help on using the changeset viewer.