Changeset e225e77 in buchla-68k for libcio


Ignore:
Timestamp:
07/09/2017 10:24:47 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
411371e
Parents:
d2d593b
Message:

Added missing includes and declarations.

Location:
libcio
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • libcio/blkrd.c

    rd2d593b re225e77  
    3131#include "errdefs.h"
    3232#include "fspars.h"
     33
     34#include "memory.h"
    3335
    3436/*
  • libcio/blkwr.c

    rd2d593b re225e77  
    2424#include "fspars.h"
    2525
     26#include "memory.h"
     27
    2628extern  int16_t _nsic(struct fcb *fcp, struct bpb *bpp, int8_t *fp);
    2729extern  int16_t _alcnew(struct fcb *fcp);
    2830extern  int16_t _newcls(void);
     31
     32extern  int16_t micons(int16_t wi);
     33extern  uint16_t _cl2lsn(struct bpb *bpp, uint16_t clnum);
     34extern  void _ptcl12(uint16_t *fat, uint16_t cl, uint16_t val);
    2935
    3036extern  int32_t _berrno;                /* last file system bios error number */
  • libcio/clusmap.c

    rd2d593b re225e77  
    2121extern  int16_t _filecl(struct fcb *fp);
    2222extern  int16_t _noper(void);
     23
     24extern  void xtrap15(void);
    2325
    2426/*
  • libcio/filesys.c

    rd2d593b re225e77  
    3434extern  int8_t  *FilName(int8_t *s, int8_t *p);
    3535extern  int8_t  *FilExt(int8_t *s, int8_t *p);
     36
     37extern  void _clsdir(void);
     38extern  void _clsfat(void);
    3639
    3740#if DEBUGIT
  • libcio/fopen.c

    rd2d593b re225e77  
    1212
    1313extern  int32_t lseek(int16_t fd, int32_t pos, int16_t how);
     14
     15extern  int16_t close(int16_t fd);
     16extern  int16_t open(int8_t *name, int16_t flag, int16_t mode);
    1417
    1518FILE *_opener(int8_t *name, int8_t *mode, int16_t aflag)
     
    3134
    3235        case 'r':       /* read mode */
    33                 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_RDONLY)|aflag)) EQ -1)
     36                if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_RDONLY), aflag)) EQ -1)
    3437                        return(NULL);
    3538                break;
    3639
    3740        case 'w':       /* write mode */
    38                 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|aflag|O_CREAT|O_TRUNC)) EQ -1)
     41                if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|O_CREAT|O_TRUNC, aflag)) EQ -1)
    3942                        return(NULL);
    4043
     
    4245       
    4346        case 'a':       /* append mode */
    44                 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|aflag|O_CREAT)) EQ -1)
     47                if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|O_CREAT, aflag)) EQ -1)
    4548                        return(NULL);
    4649
  • libcio/fscanf.c

    rd2d593b re225e77  
    88#include "stdio.h"
    99#include "stddefs.h"
     10
     11extern int16_t agetc(FILE *ptr);
     12extern int16_t scanfmt(int16_t (*getsub)(), int8_t *fmt, int16_t **args);
    1013
    1114static int16_t scnlast;
  • libcio/fseek.c

    rd2d593b re225e77  
    1212
    1313extern  int32_t lseek(int16_t fd, int32_t pos, int16_t how);
     14
     15extern  int16_t flush_(FILE *ptr, int16_t data);
    1416
    1517/*
  • libcio/fsinit.c

    rd2d593b re225e77  
    1313#include "stdio.h"
    1414#include "stddefs.h"
     15
     16#include "memory.h"
    1517
    1618extern  int16_t _bpbin, _dirin, _fatin, _dirmod, _fatmod;
  • libcio/fstubs.c

    rd2d593b re225e77  
    1111#include "io.h"
    1212#include "stddefs.h"
     13
     14extern void xtrap15(void);
    1315
    1416/*
  • libcio/getc.c

    rd2d593b re225e77  
    88#include "stdio.h"
    99#include "stddefs.h"
     10
     11extern int16_t read(int16_t fd, int8_t *buff, uint16_t len);
     12extern void getbuff(FILE *ptr);
    1013
    1114int16_t getc(FILE *ptr)
  • libcio/open.c

    rd2d593b re225e77  
    1212#include "stddefs.h"
    1313
     14#include "strings.h"
     15
    1416extern  int16_t _badfd(void);
    1517extern  int16_t _noper(void);
  • libcio/read.c

    rd2d593b re225e77  
    5353
    5454int16_t _filerd(struct fcb *fp, int8_t *buffer, uint16_t len);
     55
     56extern  int16_t ReadRN(struct fcb *fcp, int8_t *buf);
     57extern  int16_t blkrd(struct fcb *fcp, int8_t *buf, int16_t ns);
    5558
    5659static int16_t (*t_read[])() = {
  • libcio/unlink.c

    rd2d593b re225e77  
    1818
    1919extern  int16_t DelFile(struct fcb *fcp);
     20
     21extern  int16_t fcbinit(int8_t *name, struct fcb *fcp);
    2022
    2123/*
  • libcio/write.c

    rd2d593b re225e77  
    1212#include "errno.h"
    1313#include "stddefs.h"
     14
     15#include "memory.h"
    1416
    1517int16_t _filewr(struct fcb *fp, int8_t *buffer, uint16_t len);
     
    2830extern  void    *memset(void *vp, int8_t c, int16_t n);
    2931
     32extern  int16_t _seek(struct fcb *fcp);
     33extern  uint16_t _cl2lsn(struct bpb *bpp, uint16_t clnum);
     34
    3035extern  int16_t _fatmod;
    3136
  • libcio/writern.c

    rd2d593b re225e77  
    3131#if     TBUFFER
    3232extern  int32_t _secwr(int8_t *buf, int16_t rec);
     33
     34extern  int16_t _alcnew(struct fcb *fcp);
    3335#endif
    3436
Note: See TracChangeset for help on using the changeset viewer.