Changeset 0580615 in buchla-68k for libcio/filesys.c


Ignore:
Timestamp:
07/08/2017 02:42:31 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
342a56f
Parents:
46d8069
Message:

Point of no return.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/filesys.c

    r46d8069 r0580615  
    2929#define DE_NULL         ((struct dirent *)0L)
    3030
    31 extern  unsigned micons();
    32 extern  long    miconl();
    33 extern  int     _ptcl12();
    34 extern  char    *FilName(), *FilExt();
     31extern  short   micons(short wi);
     32extern  long    miconl(long wi);
     33extern  void    _ptcl12(unsigned *fat, unsigned cl, unsigned val);
     34extern  char    *FilName(char *s, char *p);
     35extern  char    *FilExt(char *s, char *p);
    3536
    3637#if DEBUGIT
     
    6566*/
    6667
    67 unsigned
    68 _cl2lsn(bpp, clnum)
    69 struct bpb *bpp;
    70 unsigned clnum;
     68unsigned _cl2lsn(struct bpb *bpp, unsigned clnum)
    7169{
    7270        return(bpp->datrec + (bpp->clsiz * (clnum - 2)) );
     
    8078*/
    8179
    82 unsigned
    83 _gtcl12(fat, cl)
    84 register char *fat;
    85 unsigned cl;
     80unsigned _gtcl12(char *fat, unsigned cl)
    8681{
    8782        register unsigned cla, clt;
     
    109104*/
    110105
    111 unsigned
    112 _getfat(bufad, bpp, nfat)
    113 unsigned *bufad, nfat;
    114 register struct bpb *bpp;
     106unsigned _getfat(unsigned *bufad, unsigned nfat, struct bpb *bpp)
    115107{
    116108        unsigned fatsec;
     
    131123*/
    132124
    133 int
    134 _rdfat(bufad, bpp)
    135 unsigned *bufad;
    136 struct bpb *bpp;
     125int _rdfat(unsigned *bufad, struct bpb *bpp)
    137126{
    138127        if (_getfat(bufad, bpp, 0)) {
     
    154143*/
    155144
    156 int
    157 _rdroot(buf, bpp)
    158 unsigned *buf;
    159 register struct bpb *bpp;
     145int _rdroot(unsigned *buf, struct bpb *bpp)
    160146{
    161147        return(BIOS(B_RDWR, 0, (char *)buf, bpp->rdlen,
     
    176162*/
    177163
    178 int
    179 _nsic(fcp, bpp, fp)
    180 register struct fcb *fcp;
    181 struct bpb *bpp;
    182 char *fp;
     164int _nsic(struct fcb *fcp, struct bpb *bpp, char *fp)
    183165{
    184166        register unsigned tfe;
     
    277259*/
    278260
    279 struct dirent *
    280 _dsrch(de)
    281 register struct dirent *de;
     261struct dirent *_dsrch(struct dirent *de)
    282262{
    283263        unsigned i, dl;
     
    316296*/
    317297
    318 struct dirent *
    319 _dsnew()
     298struct dirent *_dsnew(void)
    320299{
    321300        unsigned i, dl;
     
    353332*/
    354333
    355 _deadio(fcp, err)
    356 register struct fcb *fcp;
    357 int err;
     334void _deadio(struct fcb *fcp, int err)
    358335{
    359336        fcp->clsec = 0;
     
    378355*/
    379356
    380 int
    381 _seek(fcp)
    382 register struct fcb *fcp;
     357int _seek(struct fcb *fcp)
    383358{
    384359        register unsigned acls, rcls, nc;
     
    486461*/
    487462
    488 int
    489 _ftrnc(dp)
    490 struct dirent *dp;
     463int _ftrnc(struct dirent *dp)
    491464{
    492465        register unsigned acls, ncls;
     
    552525*/
    553526
    554 int
    555 _newcls()
     527int _newcls(void)
    556528{
    557529        register int tc, i;
     
    576548*/
    577549
    578 int
    579 _alcnew(fcp)
    580 register struct fcb *fcp;
     550int _alcnew(struct fcb *fcp)
    581551{
    582552        register int ac, nc, pc;
     
    669639*/
    670640
    671 int
    672 _fmake(fcp)
    673 struct fcb *fcp;
     641int _fmake(struct fcb *fcp)
    674642{
    675643        register struct dirent *dp;
     
    696664*/
    697665
    698 int
    699 _opnvol()
     666int _opnvol(void)
    700667{
    701668        register long drc;
     
    783750*/
    784751
    785 int
    786 _opfcb(fcp)
    787 register struct fcb *fcp;
     752int _opfcb(struct fcb *fcp)
    788753{
    789754        int     rc;
     
    927892*/
    928893
    929 int
    930 _inifcb(fcp, name, ext, mode)
    931 register struct fcb *fcp;
    932 char *name, *ext;
    933 int mode;
     894int _inifcb(struct fcb *fcp, char *name, char *ext, int mode)
    934895{
    935896        int     fl;
     
    10631024*/
    10641025
    1065 int
    1066 ClsFile(fcp)
    1067 register struct fcb *fcp;
     1026int ClsFile(struct fcb *fcp)
    10681027{
    10691028        register struct dirent *dp;
     
    11441103*/
    11451104
    1146 _clsvol()
     1105void _clsvol(void)
    11471106{
    11481107        if (_fatmod) {
     
    11771136*/
    11781137
    1179 short
    1180 fcbinit(name, fcp)
    1181 register char *name;
    1182 register struct fcb *fcp;
     1138short fcbinit(char *name, struct fcb *fcp)
    11831139{
    11841140        char    tmpname[9], tmpext[4];
     
    11971153*/
    11981154
    1199 int
    1200 DelFile(fcp)
    1201 struct fcb *fcp;
     1155int DelFile(struct fcb *fcp)
    12021156{
    12031157#if     DEBUGIT
Note: See TracChangeset for help on using the changeset viewer.