Changeset 0580615 in buchla-68k for libcio/filesys.c
- Timestamp:
- 07/08/2017 02:42:31 PM (7 years ago)
- Branches:
- master
- Children:
- 342a56f
- Parents:
- 46d8069
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/filesys.c
r46d8069 r0580615 29 29 #define DE_NULL ((struct dirent *)0L) 30 30 31 extern unsigned micons(); 32 extern long miconl(); 33 extern int _ptcl12(); 34 extern char *FilName(), *FilExt(); 31 extern short micons(short wi); 32 extern long miconl(long wi); 33 extern void _ptcl12(unsigned *fat, unsigned cl, unsigned val); 34 extern char *FilName(char *s, char *p); 35 extern char *FilExt(char *s, char *p); 35 36 36 37 #if DEBUGIT … … 65 66 */ 66 67 67 unsigned 68 _cl2lsn(bpp, clnum) 69 struct bpb *bpp; 70 unsigned clnum; 68 unsigned _cl2lsn(struct bpb *bpp, unsigned clnum) 71 69 { 72 70 return(bpp->datrec + (bpp->clsiz * (clnum - 2)) ); … … 80 78 */ 81 79 82 unsigned 83 _gtcl12(fat, cl) 84 register char *fat; 85 unsigned cl; 80 unsigned _gtcl12(char *fat, unsigned cl) 86 81 { 87 82 register unsigned cla, clt; … … 109 104 */ 110 105 111 unsigned 112 _getfat(bufad, bpp, nfat) 113 unsigned *bufad, nfat; 114 register struct bpb *bpp; 106 unsigned _getfat(unsigned *bufad, unsigned nfat, struct bpb *bpp) 115 107 { 116 108 unsigned fatsec; … … 131 123 */ 132 124 133 int 134 _rdfat(bufad, bpp) 135 unsigned *bufad; 136 struct bpb *bpp; 125 int _rdfat(unsigned *bufad, struct bpb *bpp) 137 126 { 138 127 if (_getfat(bufad, bpp, 0)) { … … 154 143 */ 155 144 156 int 157 _rdroot(buf, bpp) 158 unsigned *buf; 159 register struct bpb *bpp; 145 int _rdroot(unsigned *buf, struct bpb *bpp) 160 146 { 161 147 return(BIOS(B_RDWR, 0, (char *)buf, bpp->rdlen, … … 176 162 */ 177 163 178 int 179 _nsic(fcp, bpp, fp) 180 register struct fcb *fcp; 181 struct bpb *bpp; 182 char *fp; 164 int _nsic(struct fcb *fcp, struct bpb *bpp, char *fp) 183 165 { 184 166 register unsigned tfe; … … 277 259 */ 278 260 279 struct dirent * 280 _dsrch(de) 281 register struct dirent *de; 261 struct dirent *_dsrch(struct dirent *de) 282 262 { 283 263 unsigned i, dl; … … 316 296 */ 317 297 318 struct dirent * 319 _dsnew() 298 struct dirent *_dsnew(void) 320 299 { 321 300 unsigned i, dl; … … 353 332 */ 354 333 355 _deadio(fcp, err) 356 register struct fcb *fcp; 357 int err; 334 void _deadio(struct fcb *fcp, int err) 358 335 { 359 336 fcp->clsec = 0; … … 378 355 */ 379 356 380 int 381 _seek(fcp) 382 register struct fcb *fcp; 357 int _seek(struct fcb *fcp) 383 358 { 384 359 register unsigned acls, rcls, nc; … … 486 461 */ 487 462 488 int 489 _ftrnc(dp) 490 struct dirent *dp; 463 int _ftrnc(struct dirent *dp) 491 464 { 492 465 register unsigned acls, ncls; … … 552 525 */ 553 526 554 int 555 _newcls() 527 int _newcls(void) 556 528 { 557 529 register int tc, i; … … 576 548 */ 577 549 578 int 579 _alcnew(fcp) 580 register struct fcb *fcp; 550 int _alcnew(struct fcb *fcp) 581 551 { 582 552 register int ac, nc, pc; … … 669 639 */ 670 640 671 int 672 _fmake(fcp) 673 struct fcb *fcp; 641 int _fmake(struct fcb *fcp) 674 642 { 675 643 register struct dirent *dp; … … 696 664 */ 697 665 698 int 699 _opnvol() 666 int _opnvol(void) 700 667 { 701 668 register long drc; … … 783 750 */ 784 751 785 int 786 _opfcb(fcp) 787 register struct fcb *fcp; 752 int _opfcb(struct fcb *fcp) 788 753 { 789 754 int rc; … … 927 892 */ 928 893 929 int 930 _inifcb(fcp, name, ext, mode) 931 register struct fcb *fcp; 932 char *name, *ext; 933 int mode; 894 int _inifcb(struct fcb *fcp, char *name, char *ext, int mode) 934 895 { 935 896 int fl; … … 1063 1024 */ 1064 1025 1065 int 1066 ClsFile(fcp) 1067 register struct fcb *fcp; 1026 int ClsFile(struct fcb *fcp) 1068 1027 { 1069 1028 register struct dirent *dp; … … 1144 1103 */ 1145 1104 1146 _clsvol()1105 void _clsvol(void) 1147 1106 { 1148 1107 if (_fatmod) { … … 1177 1136 */ 1178 1137 1179 short 1180 fcbinit(name, fcp) 1181 register char *name; 1182 register struct fcb *fcp; 1138 short fcbinit(char *name, struct fcb *fcp) 1183 1139 { 1184 1140 char tmpname[9], tmpext[4]; … … 1197 1153 */ 1198 1154 1199 int 1200 DelFile(fcp) 1201 struct fcb *fcp; 1155 int DelFile(struct fcb *fcp) 1202 1156 { 1203 1157 #if DEBUGIT
Note:
See TracChangeset
for help on using the changeset viewer.