Changeset 7258c6a in buchla-68k for libcio/read.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/read.c
r0292fbb r7258c6a 46 46 #endif 47 47 48 extern int _badfd(void);49 extern int _conin(char *buff, int len);50 extern int _seek(struct fcb *fcp);48 extern int16_t _badfd(void); 49 extern int16_t _conin(int8_t *buff, int16_t len); 50 extern int16_t _seek(struct fcb *fcp); 51 51 52 extern void *memcpy(void *vp1, void *vp2, int n);52 extern void *memcpy(void *vp1, void *vp2, int16_t n); 53 53 54 int _filerd(struct fcb *fp, char *buffer, unsignedlen);54 int16_t _filerd(struct fcb *fp, int8_t *buffer, uint16_t len); 55 55 56 static int (*t_read[])() = {56 static int16_t (*t_read[])() = { 57 57 58 58 _badfd, /* 0 - invalid type */ … … 72 72 */ 73 73 74 int read(int fd, char *buff, unsignedlen)74 int16_t read(int16_t fd, int8_t *buff, uint16_t len) 75 75 { 76 76 register struct channel *chp; … … 97 97 */ 98 98 99 int _getsec(struct fcb *fp, char *buf, unsignedlen)99 int16_t _getsec(struct fcb *fp, int8_t *buf, uint16_t len) 100 100 { 101 101 if ((errno = ReadRN(fp, Wrkbuf)) NE 0) /* get current sector */ … … 126 126 */ 127 127 128 int _filerd(struct fcb *fp, char *buffer, unsignedlen)128 int16_t _filerd(struct fcb *fp, int8_t *buffer, uint16_t len) 129 129 { 130 register u nsignedl;131 register u nsignedj, k;132 register longcurpos, newpos;130 register uint16_t l; 131 register uint16_t j, k; 132 register int32_t curpos, newpos; 133 133 134 134 l = 0;
Note:
See TracChangeset
for help on using the changeset viewer.