Changeset 7258c6a in buchla-68k for libcio/write.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/write.c
r0292fbb r7258c6a 13 13 #include "stddefs.h" 14 14 15 int _filewr(struct fcb *fp, char *buffer, unsignedlen);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(u nsigned *fat, unsigned cl, unsignedval);25 26 extern long miconl(longwi);27 28 extern void *memset(void *vp, char c, int n);29 30 extern int _fatmod;31 32 extern u nsigned_thefat[];15 int16_t _filewr(struct fcb *fp, int8_t *buffer, uint16_t len); 16 17 extern int16_t _badfd(void); 18 extern int16_t _conwr(int16_t kind, int8_t *buff, int16_t len); 19 extern int16_t blkwr(struct fcb *fcp, int8_t *buf, int16_t ns); 20 extern int16_t ReadRN(struct fcb *fcp, int8_t *buf); 21 extern int16_t WriteRN(struct fcb *fcp, int8_t *buf); 22 extern int16_t _newcls(void); 23 extern int16_t micons(int16_t wi); 24 extern void _ptcl12(uint16_t *fat, uint16_t cl, uint16_t val); 25 26 extern int32_t miconl(int32_t wi); 27 28 extern void *memset(void *vp, int8_t c, int16_t n); 29 30 extern int16_t _fatmod; 31 32 extern uint16_t _thefat[]; 33 33 34 34 extern struct bpb *_thebpb; … … 38 38 #endif 39 39 40 static int (*wr_tab[])() = { /* write routine dispatch table */40 static int16_t (*wr_tab[])() = { /* write routine dispatch table */ 41 41 42 42 _badfd, /* 0 - invalid entry */ … … 55 55 */ 56 56 57 int _putsec(struct fcb *fp, char *buf, unsignedlen)57 int16_t _putsec(struct fcb *fp, int8_t *buf, uint16_t len) 58 58 { 59 59 #if DEBUGIT … … 126 126 */ 127 127 128 int _filewr(struct fcb *fp, char *buffer, unsignedlen)128 int16_t _filewr(struct fcb *fp, int8_t *buffer, uint16_t len) 129 129 { 130 register u nsignedj, k, l;131 int clustr;132 register longcurpos;130 register uint16_t j, k, l; 131 int16_t clustr; 132 register int32_t curpos; 133 133 134 134 curpos = fp->offset + (fp->curlsn << FILESHFT); /* get position */ … … 245 245 */ 246 246 247 int write(int fd, char *buff, unsignedlen)247 int16_t write(int16_t fd, int8_t *buff, uint16_t len) 248 248 { 249 249 register struct channel *chp;
Note:
See TracChangeset
for help on using the changeset viewer.