Changeset 6262b5c in buchla-68k for libcio


Ignore:
Timestamp:
07/10/2017 12:02:05 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
39a696b
Parents:
5fa506d
Message:

Added include files for global functions and variables.

Location:
libcio
Files:
43 added
43 edited

Legend:

Unmodified
Added
Removed
  • libcio/atoi.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stddefs.h"
    9 #include "ctype.h"
     8#include "all.h"
    109
    1110int16_t atoi(int8_t *cp)
     
    3332}
    3433
     34
  • libcio/atol.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stddefs.h"
    9 #include "ctype.h"
     8#include "all.h"
    109
    1110int32_t atol(int8_t *cp)
     
    3231        return(sign ? -n : n);
    3332}
     33
  • libcio/blkrd.c

    r5fa506d r6262b5c  
    2626#define DEBUGIT         0
    2727
    28 #include "stddefs.h"
    29 #include "biosdefs.h"
    30 #include "errno.h"
    31 #include "errdefs.h"
    32 #include "fspars.h"
    33 
    34 #include "memory.h"
     28#include "all.h"
    3529
    3630/*
     
    177171        return(0);      /* return -- all sectors read */
    178172}
     173
  • libcio/blkwr.c

    r5fa506d r6262b5c  
    1818#define DEBUGIT         0
    1919
    20 #include "stddefs.h"
    21 #include "biosdefs.h"
    22 #include "errno.h"
    23 #include "errdefs.h"
    24 #include "fspars.h"
    25 
    26 #include "memory.h"
     20#include "all.h"
    2721
    2822extern  int16_t _nsic(struct fcb *fcp, struct bpb *bpp, int8_t *fp);
     
    281275        return(ns);     /* return (will be zero or negative) */
    282276}
     277
  • libcio/close.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "biosdefs.h"
    9 #include "errno.h"
    10 #include "fcntl.h"
    11 #include "io.h"
    12 #include "stddefs.h"
     8#include "all.h"
    139
    1410extern  int16_t _badfd(void);
     
    137133        _clsvol();                      /* write modified directory adn FAT */
    138134}
     135
  • libcio/clusmap.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "biosdefs.h"
    9 #include "errno.h"
    10 #include "io.h"
    11 #include "stdio.h"
    12 #include "stddefs.h"
     8#include "all.h"
    139
    1410extern  int16_t micons(int16_t wi);
     
    8379*/
    8480
    85 static int16_t waitcr(void)
     81int16_t waitcr(void)
    8682{
    8783        int8_t  c;
     
    402398        return(chantab[fp->_unit].c_arg);
    403399}
     400
  • libcio/conin.c

    r5fa506d r6262b5c  
    88#define _FS_DEF_                /* to avoid unnecessary externals */
    99
    10 #include "biosdefs.h"
    11 #include "io.h"
    12 #include "errno.h"
    13 #include "fcntl.h"
    14 #include "stddefs.h"
     10#include "all.h"
    1511
    1612extern  void    *memcpy(void *vp1, void *vp2, int16_t n);
     
    5450        return (l);
    5551}
     52
  • libcio/conwr.c

    r5fa506d r6262b5c  
    88#define _FS_DEF_                /* to avoid unnecessary externals */
    99
    10 #include "biosdefs.h"
    11 #include "io.h"
    12 #include "errno.h"
    13 #include "stddefs.h"
     10#include "all.h"
    1411
    1512/*
     
    2825        return(count);
    2926}
     27
  • libcio/dirfns.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stddefs.h"
    9 #include "biosdefs.h"
     8#include "all.h"
    109
    1110extern  int32_t sprintf(int8_t *str, int8_t *fmt, ...);
     
    136135        return(s);
    137136}
     137
  • libcio/fgets.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "stddefs.h"
     8#include "all.h"
    109
    1110#define EATCHAR '\n'    /* character to be "eaten" on input */
     
    7473}
    7574
     75
  • libcio/filesys.c

    r5fa506d r6262b5c  
    1414#define _FS_DEF_        /* to avoid unnecessary externals */
    1515
    16 #include "stddefs.h"
    17 #include "biosdefs.h"
    18 #include "errno.h"
    19 #include "memory.h"
    20 #include "io.h"
    21 #include "fcntl.h"
     16#include "all.h"
    2217
    2318#define FAT_EOF         0x0FF8
     
    11921187        return(SUCCESS);
    11931188}
     1189
  • libcio/filname.c

    r5fa506d r6262b5c  
    88#define TESTER  0               /* define non-zero for test routine */
    99
    10 #include <stddefs.h>
     10#include "all.h"
    1111
    1212#define MAX_NAME        8       /* maximum length of a file name */
     
    142142
    143143#endif
     144
  • libcio/flread.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "stddefs.h"
     8#include "all.h"
    109
    1110#define CHUNK   32256           /* largest practical sized chunk of data */
     
    4746}
    4847
     48
  • libcio/fopen.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "fcntl.h"
    10 #include "errno.h"
    11 #include "stddefs.h"
     8#include "all.h"
    129
    1310extern  int32_t lseek(int16_t fd, int32_t pos, int16_t how);
     
    8784        return(_opener(name, mode, O_RAW));
    8885}
     86
  • libcio/fprintf.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "stddefs.h"
    10 #include "stdarg.h"
     8#include "all.h"
    119
    1210static FILE *Stream;
     
    3331        return(aputc(c, Stream));
    3432}
     33
  • libcio/fputs.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "stddefs.h"
     8#include "all.h"
    109
    1110int16_t puts(int8_t *str)
     
    3635        return(0);
    3736}
     37
  • libcio/fread.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "stddefs.h"
     8#include "all.h"
    109
    1110/*
     
    3433}
    3534
     35
  • libcio/fscanf.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "stddefs.h"
     8#include "all.h"
    109
    1110extern int16_t agetc(FILE *ptr);
     
    4241        return(scanfmt(gchar, fmt, &args));
    4342}
     43
  • libcio/fseek.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "biosdefs.h"
    10 #include "io.h"
    11 #include "stddefs.h"
     8#include "all.h"
    129
    1310extern  int32_t lseek(int16_t fd, int32_t pos, int16_t how);
     
    5148}
    5249
     50
  • libcio/fsinit.c

    r5fa506d r6262b5c  
    88#define _FS_DEF_        /* define so that stdio.h and io.h get things right */
    99
    10 #include "biosdefs.h"
    11 #include "errno.h"
    12 #include "io.h"
    13 #include "stdio.h"
    14 #include "stddefs.h"
    15 
    16 #include "memory.h"
     10#include "all.h"
    1711
    1812extern  int16_t _bpbin, _dirin, _fatin, _dirmod, _fatmod;
     
    159153#endif
    160154}
     155
  • libcio/fsize.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "biosdefs.h"
    10 #include "io.h"
    11 #include "stddefs.h"
     8#include "all.h"
    129
    1310extern  uint16_t        _gtcl12(int8_t *fat, uint16_t cl);
     
    9491        }
    9592}
     93
  • libcio/fstubs.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "biosdefs.h"
    9 #include "errno.h"
    10 #include "stdio.h"
    11 #include "io.h"
    12 #include "stddefs.h"
     8#include "all.h"
    139
    1410extern void xtrap15(void);
     
    4743        return(1);
    4844}
     45
  • libcio/ftell.c

    r5fa506d r6262b5c  
    88#define DEBUGIT         0
    99
    10 #include "biosdefs.h"
    11 #include "stdio.h"
    12 #include "io.h"
    13 #include "stddefs.h"
     10#include "all.h"
    1411
    1512#if     DEBUGIT
     
    9390        return(pos);
    9491}
     92
  • libcio/fwrite.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "stddefs.h"
     8#include "all.h"
    109
    1110/*
     
    3837}
    3938
     39
  • libcio/getbuff.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "stddefs.h"
     8#include "all.h"
    109
    1110void getbuff(FILE *ptr)
     
    3534        return;
    3635}
     36
  • libcio/getc.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "stddefs.h"
     8#include "all.h"
    109
    1110extern int16_t read(int16_t fd, int8_t *buff, uint16_t len);
     
    3736        return(*ptr->_bp++ & 0xFF);
    3837}
     38
  • libcio/getl.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
     8#include "all.h"
    99
    1010/*
     
    3131        return(temp);
    3232}
     33
  • libcio/getw.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
     8#include "all.h"
    99
    1010/*
     
    2929        return(temp);
    3030}
     31
  • libcio/lseek.c

    r5fa506d r6262b5c  
    88#define DEBUGIT         0
    99
    10 #include "io.h"
    11 #include "biosdefs.h"
    12 #include "errno.h"
    13 #include "stddefs.h"
     10#include "all.h"
    1411
    1512extern  int16_t _seek(struct fcb *fcp);
     
    118115}
    119116
     117
  • libcio/open.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "biosdefs.h"
    9 #include "errno.h"
    10 #include "fcntl.h"
    11 #include "io.h"
    12 #include "stddefs.h"
    13 
    14 #include "strings.h"
     8#include "all.h"
    159
    1610extern  int16_t _badfd(void);
     
    250244}
    251245
     246
  • libcio/posit.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "biosdefs.h"
    9 #include "io.h"
    10 #include "errno.h"
    11 #include "stddefs.h"
     8#include "all.h"
    129
    1310extern  int16_t _seek(struct fcb *fcp);
     
    5148        return(SUCCESS);
    5249}
     50
  • libcio/putc.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "stddefs.h"
     8#include "all.h"
    109
    1110extern  int16_t write(int16_t fd, int8_t *buff, uint16_t len);
     
    167166}
    168167
     168
  • libcio/putl.c

    r5fa506d r6262b5c  
    88*/
    99
    10 #include "stdio.h"
    11 #include "stddefs.h"
     10#include "all.h"
    1211
    1312void putl(int32_t w, FILE *stream)
     
    2423        putc((w & 0xFF), stream);
    2524}
     25
  • libcio/putw.c

    r5fa506d r6262b5c  
    88*/
    99
    10 #include "stdio.h"
    11 #include "stddefs.h"
     10#include "all.h"
    1211
    1312void putw(uint16_t w, FILE *stream)
     
    1817        putc((w & 0xFF), stream);
    1918}
     19
  • libcio/read.c

    r5fa506d r6262b5c  
    3636#define DEBUGIT         0
    3737
    38 #include "biosdefs.h"
    39 #include "io.h"
    40 #include "errno.h"
    41 #include "fcntl.h"
    42 #include "stddefs.h"
     38#include "all.h"
    4339
    4440#if     DEBUGIT
     
    176172        return(len);                            /* return - got the whole thing */
    177173}
     174
  • libcio/readrn.c

    r5fa506d r6262b5c  
    1616#define DEBUGIT         0
    1717
    18 #include "stddefs.h"
    19 #include "biosdefs.h"
    20 #include "errno.h"
    21 #include "errdefs.h"
    22 #include "fspars.h"
     18#include "all.h"
    2319
    2420#if     DEBUGIT
     
    8076        return(SUCCESS);                /* return:  SUCCESS */
    8177}
     78
  • libcio/rename.c

    r5fa506d r6262b5c  
    66*/
    77
     8#include "all.h"
     9
    810int16_t rename(int8_t *old, int8_t *new)
    911{
  • libcio/scan.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "stddefs.h"
    10 #include "ctype.h"
     8#include "all.h"
    119
    1210static int16_t maxwide;
     
    386384}
    387385
     386
  • libcio/setbuf.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
     8#include "all.h"
    99
    1010void setbuf(FILE *stream, int8_t *buffer)
     
    2424        }
    2525}
     26
  • libcio/ungetc.c

    r5fa506d r6262b5c  
    66*/
    77
    8 #include "stdio.h"
    9 #include "stddefs.h"
     8#include "all.h"
    109
    1110int16_t ungetc(int16_t c, FILE *ptr)
     
    1817        return(c);
    1918}
     19
  • libcio/unlink.c

    r5fa506d r6262b5c  
    88#define DEBUGIT         0
    99
    10 #include "biosdefs.h"
    11 #include "stddefs.h"
     10#include "all.h"
    1211
    1312#if     DEBUGIT
     
    4544}
    4645
     46
  • libcio/write.c

    r5fa506d r6262b5c  
    88#define DEBUGIT         0
    99
    10 #include "biosdefs.h"
    11 #include "io.h"
    12 #include "errno.h"
    13 #include "stddefs.h"
    14 
    15 #include "memory.h"
     10#include "all.h"
    1611
    1712int16_t _filewr(struct fcb *fp, int8_t *buffer, uint16_t len);
     
    262257        return((*wr_tab[chp->c_write])(chp->c_arg, buff, len));
    263258}
     259
  • libcio/writern.c

    r5fa506d r6262b5c  
    1616#define DEBUGIT         0
    1717
    18 #include "stddefs.h"
    19 #include "biosdefs.h"
    20 #include "errno.h"
    21 #include "errdefs.h"
    22 #include "fspars.h"
     18#include "all.h"
    2319
    2420extern  int32_t _berrno;
     
    106102        return(SUCCESS);                /* return:  SUCCESS */
    107103}
     104
Note: See TracChangeset for help on using the changeset viewer.