Changeset 7258c6a in buchla-68k for libcio/write.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/write.c

    r0292fbb r7258c6a  
    1313#include "stddefs.h"
    1414
    15 int     _filewr(struct fcb *fp, char *buffer, unsigned len);
    16 
    17 extern  int     _badfd(void);
    18 extern  int     _conwr(int kind, char *buff, int len);
    19 extern  int     blkwr(struct fcb *fcp, char *buf, int ns);
    20 extern  int     ReadRN(struct fcb *fcp, char *buf);
    21 extern  int     WriteRN(struct fcb *fcp, char *buf);
    22 extern  int     _newcls(void);
    23 extern  short   micons(short wi);
    24 extern  void    _ptcl12(unsigned *fat, unsigned cl, unsigned val);
    25 
    26 extern  long    miconl(long wi);
    27 
    28 extern  void    *memset(void *vp, char c, int n);
    29 
    30 extern  int     _fatmod;
    31 
    32 extern  unsigned        _thefat[];
     15int16_t _filewr(struct fcb *fp, int8_t *buffer, uint16_t len);
     16
     17extern  int16_t _badfd(void);
     18extern  int16_t _conwr(int16_t kind, int8_t *buff, int16_t len);
     19extern  int16_t blkwr(struct fcb *fcp, int8_t *buf, int16_t ns);
     20extern  int16_t ReadRN(struct fcb *fcp, int8_t *buf);
     21extern  int16_t WriteRN(struct fcb *fcp, int8_t *buf);
     22extern  int16_t _newcls(void);
     23extern  int16_t micons(int16_t wi);
     24extern  void    _ptcl12(uint16_t *fat, uint16_t cl, uint16_t val);
     25
     26extern  int32_t miconl(int32_t wi);
     27
     28extern  void    *memset(void *vp, int8_t c, int16_t n);
     29
     30extern  int16_t _fatmod;
     31
     32extern  uint16_t        _thefat[];
    3333
    3434extern  struct  bpb     *_thebpb;
     
    3838#endif
    3939
    40 static  int     (*wr_tab[])() = {       /* write routine dispatch table */
     40static  int16_t (*wr_tab[])() = {       /* write routine dispatch table */
    4141
    4242        _badfd,         /* 0 - invalid entry */
     
    5555*/
    5656
    57 int _putsec(struct fcb *fp, char *buf, unsigned len)
     57int16_t _putsec(struct fcb *fp, int8_t *buf, uint16_t len)
    5858{
    5959#if DEBUGIT
     
    126126*/
    127127
    128 int _filewr(struct fcb *fp, char *buffer, unsigned len)
     128int16_t _filewr(struct fcb *fp, int8_t *buffer, uint16_t len)
    129129{
    130         register unsigned j, k, l;
    131         int clustr;
    132         register long curpos;
     130        register uint16_t j, k, l;
     131        int16_t clustr;
     132        register int32_t curpos;
    133133
    134134        curpos = fp->offset + (fp->curlsn << FILESHFT); /* get position */
     
    245245*/
    246246
    247 int write(int fd, char *buff, unsigned len)
     247int16_t write(int16_t fd, int8_t *buff, uint16_t len)
    248248{
    249249        register struct channel *chp;
Note: See TracChangeset for help on using the changeset viewer.