Changeset 7258c6a in buchla-68k for libcio/clusmap.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/clusmap.c
r0292fbb r7258c6a 12 12 #include "stddefs.h" 13 13 14 extern short micons(short wi);15 extern u nsigned _gtcl12(char *fat, unsignedcl);16 extern long miconl(longwi);14 extern int16_t micons(int16_t wi); 15 extern uint16_t _gtcl12(int8_t *fat, uint16_t cl); 16 extern int32_t miconl(int32_t wi); 17 17 18 18 extern struct bpb *_thebpb; 19 extern u nsigned_thefat[];20 21 extern int _filecl(struct fcb *fp);22 extern int _noper(void);23 24 /* 25 26 */ 27 28 static char*mfname[] = { /* FCB flag names */19 extern uint16_t _thefat[]; 20 21 extern int16_t _filecl(struct fcb *fp); 22 extern int16_t _noper(void); 23 24 /* 25 26 */ 27 28 static int8_t *mfname[] = { /* FCB flag names */ 29 29 30 30 "?D0", /* D0 - 0001 */ … … 53 53 */ 54 54 55 static char*dfname[] = {55 static int8_t *dfname[] = { 56 56 57 57 "RDONLY", /* D0 - 01 */ … … 65 65 }; 66 66 67 static char*ffname[] = {67 static int8_t *ffname[] = { 68 68 69 69 "BUSY ", /* D0 - 01 */ … … 81 81 */ 82 82 83 static int waitcr(void)84 { 85 charc;83 static int16_t waitcr(void) 84 { 85 int8_t c; 86 86 87 87 BIOS(B_PUTC, CON_DEV, '\007'); … … 106 106 */ 107 107 108 int ClusMap(struct fcb *fcp)109 { 110 int clus, nc;111 longalsize, bused, bunused;108 int16_t ClusMap(struct fcb *fcp) 109 { 110 int16_t clus, nc; 111 int32_t alsize, bused, bunused; 112 112 113 113 if (!(fcp->modefl & FC_OPN)) { … … 175 175 struct fcb *FCBmode(struct fcb *fcp) 176 176 { 177 register u nsigned short mf;178 register short i;177 register uint16_t mf; 178 register int16_t i; 179 179 180 180 printf(" flags: "); … … 254 254 */ 255 255 256 void MapFAT( char *fat, short ncl, short stops)257 { 258 register int i;256 void MapFAT(int8_t *fat, int16_t ncl, int16_t stops) 257 { 258 register int16_t i; 259 259 260 260 printf("\nCluster dump of FAT at 0x%08.8lx (%d entries):\n", … … 290 290 FILE *FILEfl(FILE *fp) 291 291 { 292 register u nsigned short mf;293 register short i;292 register uint16_t mf; 293 register int16_t i; 294 294 295 295 printf(" _flags: "); … … 320 320 void FILEpr(FILE *fp) 321 321 { 322 int (*arg)(), ft;323 char*ds, *fsn, *fse;322 int16_t (*arg)(), ft; 323 int8_t *ds, *fsn, *fse; 324 324 struct fcb *fcp; 325 325 … … 379 379 */ 380 380 381 struct fcb *fd2fcb( short fd)381 struct fcb *fd2fcb(int16_t fd) 382 382 { 383 383 if ((fd < 0) OR (fd > MAXCHAN))
Note:
See TracChangeset
for help on using the changeset viewer.