Changeset 8973acd in buchla-68k for libcio/fsinit.c
- Timestamp:
- 07/15/2017 03:12:10 PM (7 years ago)
- Branches:
- master
- Children:
- ea232f9
- Parents:
- 7d0d347
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/fsinit.c
r7d0d347 r8973acd 8 8 #include "ram.h" 9 9 10 int 8_t *Stdbufs; /* buffer chain pointer */10 int32_t *Stdbufs; /* buffer chain pointer */ 11 11 12 12 int8_t Wrkbuf[BPSEC]; /* sector work buffer */ … … 39 39 */ 40 40 41 int16_t _badfio(io_arg arg, int8_t*buff, int16_t len)41 int16_t _badfio(io_arg arg, void *buff, int16_t len) 42 42 { 43 43 (void)arg; … … 69 69 */ 70 70 71 int16_t _nopo(int8_t *name, int16_t flag, int16_t mode, struct channel *chp, struct devtabl *dp)71 int16_t _nopo(int8_t *name, uint16_t flag, struct channel *chp, struct devtabl *dp) 72 72 { 73 73 (void)name; 74 74 (void)flag; 75 (void)mode;76 75 (void)chp; 77 76 (void)dp; … … 99 98 */ 100 99 101 void InitCH(struct channel *cp, int 8_t rdi, int8_t wri, int8_t ioi, int8_t ski, chclo cfp, io_arg charg)100 void InitCH(struct channel *cp, int16_t rdi, int16_t wri, int16_t ioi, int16_t ski, chclo cfp, io_arg charg) 102 101 { 103 102 cp->c_read = rdi; … … 115 114 */ 116 115 117 void Init_CB(FILE *fp, int8_t flags, int8_t unit, int32_t *bufad, int16_t bufsize)116 void Init_CB(FILE *fp, uint8_t flags, int16_t unit, int32_t *bufad, int16_t bufsize) 118 117 { 119 118 fp->_bp = (int8_t *)0L; … … 124 123 fp->_bytbuf = 0; 125 124 fp->_buflen = bufsize; 126 } ;125 } 127 126 128 127 /* … … 139 138 memsetw(Stdbuf, 0, sizeof Stdbuf / 2); /* clear buffers */ 140 139 141 Init_CB(stdin, _BUSY, 0, (int8_t *)0L, BUFSIZ); /* stdin */142 Init_CB(stdout, _BUSY, 1, (int8_t *)0L, 1); /* stdout */143 Init_CB(stderr, _BUSY, 2, (int8_t *)0L, 1);/* stderr */140 Init_CB(stdin, _BUSY, 0, NULL, BUFSIZ); /* stdin */ 141 Init_CB(stdout, _BUSY, 1, NULL, 1); /* stdout */ 142 Init_CB(stderr, _BUSY, 2, NULL, 1); /* stderr */ 144 143 145 144 for (i = 3; i < NSTREAMS; i++) 146 Init_CB(&Cbuffs[i], 0, 0, (int8_t *)0L, 0);145 Init_CB(&Cbuffs[i], 0, 0, NULL, 0); 147 146 148 147 Stdbuf[0][0] = 0L; /* initialize the buffer list */
Note:
See TracChangeset
for help on using the changeset viewer.