- Timestamp:
- 07/10/2017 12:02:05 PM (7 years ago)
- Branches:
- master
- Children:
- 39a696b
- Parents:
- 5fa506d
- Location:
- libcio
- Files:
-
- 43 added
- 43 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/atoi.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stddefs.h" 9 #include "ctype.h" 8 #include "all.h" 10 9 11 10 int16_t atoi(int8_t *cp) … … 33 32 } 34 33 34 -
libcio/atol.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stddefs.h" 9 #include "ctype.h" 8 #include "all.h" 10 9 11 10 int32_t atol(int8_t *cp) … … 32 31 return(sign ? -n : n); 33 32 } 33 -
libcio/blkrd.c
r5fa506d r6262b5c 26 26 #define DEBUGIT 0 27 27 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" 35 29 36 30 /* … … 177 171 return(0); /* return -- all sectors read */ 178 172 } 173 -
libcio/blkwr.c
r5fa506d r6262b5c 18 18 #define DEBUGIT 0 19 19 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" 27 21 28 22 extern int16_t _nsic(struct fcb *fcp, struct bpb *bpp, int8_t *fp); … … 281 275 return(ns); /* return (will be zero or negative) */ 282 276 } 277 -
libcio/close.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "biosdefs.h" 9 #include "errno.h" 10 #include "fcntl.h" 11 #include "io.h" 12 #include "stddefs.h" 8 #include "all.h" 13 9 14 10 extern int16_t _badfd(void); … … 137 133 _clsvol(); /* write modified directory adn FAT */ 138 134 } 135 -
libcio/clusmap.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "biosdefs.h" 9 #include "errno.h" 10 #include "io.h" 11 #include "stdio.h" 12 #include "stddefs.h" 8 #include "all.h" 13 9 14 10 extern int16_t micons(int16_t wi); … … 83 79 */ 84 80 85 staticint16_t waitcr(void)81 int16_t waitcr(void) 86 82 { 87 83 int8_t c; … … 402 398 return(chantab[fp->_unit].c_arg); 403 399 } 400 -
libcio/conin.c
r5fa506d r6262b5c 8 8 #define _FS_DEF_ /* to avoid unnecessary externals */ 9 9 10 #include "biosdefs.h" 11 #include "io.h" 12 #include "errno.h" 13 #include "fcntl.h" 14 #include "stddefs.h" 10 #include "all.h" 15 11 16 12 extern void *memcpy(void *vp1, void *vp2, int16_t n); … … 54 50 return (l); 55 51 } 52 -
libcio/conwr.c
r5fa506d r6262b5c 8 8 #define _FS_DEF_ /* to avoid unnecessary externals */ 9 9 10 #include "biosdefs.h" 11 #include "io.h" 12 #include "errno.h" 13 #include "stddefs.h" 10 #include "all.h" 14 11 15 12 /* … … 28 25 return(count); 29 26 } 27 -
libcio/dirfns.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stddefs.h" 9 #include "biosdefs.h" 8 #include "all.h" 10 9 11 10 extern int32_t sprintf(int8_t *str, int8_t *fmt, ...); … … 136 135 return(s); 137 136 } 137 -
libcio/fgets.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "stddefs.h" 8 #include "all.h" 10 9 11 10 #define EATCHAR '\n' /* character to be "eaten" on input */ … … 74 73 } 75 74 75 -
libcio/filesys.c
r5fa506d r6262b5c 14 14 #define _FS_DEF_ /* to avoid unnecessary externals */ 15 15 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" 22 17 23 18 #define FAT_EOF 0x0FF8 … … 1192 1187 return(SUCCESS); 1193 1188 } 1189 -
libcio/filname.c
r5fa506d r6262b5c 8 8 #define TESTER 0 /* define non-zero for test routine */ 9 9 10 #include <stddefs.h>10 #include "all.h" 11 11 12 12 #define MAX_NAME 8 /* maximum length of a file name */ … … 142 142 143 143 #endif 144 -
libcio/flread.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "stddefs.h" 8 #include "all.h" 10 9 11 10 #define CHUNK 32256 /* largest practical sized chunk of data */ … … 47 46 } 48 47 48 -
libcio/fopen.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "fcntl.h" 10 #include "errno.h" 11 #include "stddefs.h" 8 #include "all.h" 12 9 13 10 extern int32_t lseek(int16_t fd, int32_t pos, int16_t how); … … 87 84 return(_opener(name, mode, O_RAW)); 88 85 } 86 -
libcio/fprintf.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "stddefs.h" 10 #include "stdarg.h" 8 #include "all.h" 11 9 12 10 static FILE *Stream; … … 33 31 return(aputc(c, Stream)); 34 32 } 33 -
libcio/fputs.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "stddefs.h" 8 #include "all.h" 10 9 11 10 int16_t puts(int8_t *str) … … 36 35 return(0); 37 36 } 37 -
libcio/fread.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "stddefs.h" 8 #include "all.h" 10 9 11 10 /* … … 34 33 } 35 34 35 -
libcio/fscanf.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "stddefs.h" 8 #include "all.h" 10 9 11 10 extern int16_t agetc(FILE *ptr); … … 42 41 return(scanfmt(gchar, fmt, &args)); 43 42 } 43 -
libcio/fseek.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "biosdefs.h" 10 #include "io.h" 11 #include "stddefs.h" 8 #include "all.h" 12 9 13 10 extern int32_t lseek(int16_t fd, int32_t pos, int16_t how); … … 51 48 } 52 49 50 -
libcio/fsinit.c
r5fa506d r6262b5c 8 8 #define _FS_DEF_ /* define so that stdio.h and io.h get things right */ 9 9 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" 17 11 18 12 extern int16_t _bpbin, _dirin, _fatin, _dirmod, _fatmod; … … 159 153 #endif 160 154 } 155 -
libcio/fsize.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "biosdefs.h" 10 #include "io.h" 11 #include "stddefs.h" 8 #include "all.h" 12 9 13 10 extern uint16_t _gtcl12(int8_t *fat, uint16_t cl); … … 94 91 } 95 92 } 93 -
libcio/fstubs.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "biosdefs.h" 9 #include "errno.h" 10 #include "stdio.h" 11 #include "io.h" 12 #include "stddefs.h" 8 #include "all.h" 13 9 14 10 extern void xtrap15(void); … … 47 43 return(1); 48 44 } 45 -
libcio/ftell.c
r5fa506d r6262b5c 8 8 #define DEBUGIT 0 9 9 10 #include "biosdefs.h" 11 #include "stdio.h" 12 #include "io.h" 13 #include "stddefs.h" 10 #include "all.h" 14 11 15 12 #if DEBUGIT … … 93 90 return(pos); 94 91 } 92 -
libcio/fwrite.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "stddefs.h" 8 #include "all.h" 10 9 11 10 /* … … 38 37 } 39 38 39 -
libcio/getbuff.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "stddefs.h" 8 #include "all.h" 10 9 11 10 void getbuff(FILE *ptr) … … 35 34 return; 36 35 } 36 -
libcio/getc.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "stddefs.h" 8 #include "all.h" 10 9 11 10 extern int16_t read(int16_t fd, int8_t *buff, uint16_t len); … … 37 36 return(*ptr->_bp++ & 0xFF); 38 37 } 38 -
libcio/getl.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include " stdio.h"8 #include "all.h" 9 9 10 10 /* … … 31 31 return(temp); 32 32 } 33 -
libcio/getw.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include " stdio.h"8 #include "all.h" 9 9 10 10 /* … … 29 29 return(temp); 30 30 } 31 -
libcio/lseek.c
r5fa506d r6262b5c 8 8 #define DEBUGIT 0 9 9 10 #include "io.h" 11 #include "biosdefs.h" 12 #include "errno.h" 13 #include "stddefs.h" 10 #include "all.h" 14 11 15 12 extern int16_t _seek(struct fcb *fcp); … … 118 115 } 119 116 117 -
libcio/open.c
r5fa506d r6262b5c 6 6 */ 7 7 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" 15 9 16 10 extern int16_t _badfd(void); … … 250 244 } 251 245 246 -
libcio/posit.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "biosdefs.h" 9 #include "io.h" 10 #include "errno.h" 11 #include "stddefs.h" 8 #include "all.h" 12 9 13 10 extern int16_t _seek(struct fcb *fcp); … … 51 48 return(SUCCESS); 52 49 } 50 -
libcio/putc.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "stddefs.h" 8 #include "all.h" 10 9 11 10 extern int16_t write(int16_t fd, int8_t *buff, uint16_t len); … … 167 166 } 168 167 168 -
libcio/putl.c
r5fa506d r6262b5c 8 8 */ 9 9 10 #include "stdio.h" 11 #include "stddefs.h" 10 #include "all.h" 12 11 13 12 void putl(int32_t w, FILE *stream) … … 24 23 putc((w & 0xFF), stream); 25 24 } 25 -
libcio/putw.c
r5fa506d r6262b5c 8 8 */ 9 9 10 #include "stdio.h" 11 #include "stddefs.h" 10 #include "all.h" 12 11 13 12 void putw(uint16_t w, FILE *stream) … … 18 17 putc((w & 0xFF), stream); 19 18 } 19 -
libcio/read.c
r5fa506d r6262b5c 36 36 #define DEBUGIT 0 37 37 38 #include "biosdefs.h" 39 #include "io.h" 40 #include "errno.h" 41 #include "fcntl.h" 42 #include "stddefs.h" 38 #include "all.h" 43 39 44 40 #if DEBUGIT … … 176 172 return(len); /* return - got the whole thing */ 177 173 } 174 -
libcio/readrn.c
r5fa506d r6262b5c 16 16 #define DEBUGIT 0 17 17 18 #include "stddefs.h" 19 #include "biosdefs.h" 20 #include "errno.h" 21 #include "errdefs.h" 22 #include "fspars.h" 18 #include "all.h" 23 19 24 20 #if DEBUGIT … … 80 76 return(SUCCESS); /* return: SUCCESS */ 81 77 } 78 -
libcio/rename.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "all.h" 9 8 10 int16_t rename(int8_t *old, int8_t *new) 9 11 { -
libcio/scan.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "stddefs.h" 10 #include "ctype.h" 8 #include "all.h" 11 9 12 10 static int16_t maxwide; … … 386 384 } 387 385 386 -
libcio/setbuf.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include " stdio.h"8 #include "all.h" 9 9 10 10 void setbuf(FILE *stream, int8_t *buffer) … … 24 24 } 25 25 } 26 -
libcio/ungetc.c
r5fa506d r6262b5c 6 6 */ 7 7 8 #include "stdio.h" 9 #include "stddefs.h" 8 #include "all.h" 10 9 11 10 int16_t ungetc(int16_t c, FILE *ptr) … … 18 17 return(c); 19 18 } 19 -
libcio/unlink.c
r5fa506d r6262b5c 8 8 #define DEBUGIT 0 9 9 10 #include "biosdefs.h" 11 #include "stddefs.h" 10 #include "all.h" 12 11 13 12 #if DEBUGIT … … 45 44 } 46 45 46 -
libcio/write.c
r5fa506d r6262b5c 8 8 #define DEBUGIT 0 9 9 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" 16 11 17 12 int16_t _filewr(struct fcb *fp, int8_t *buffer, uint16_t len); … … 262 257 return((*wr_tab[chp->c_write])(chp->c_arg, buff, len)); 263 258 } 259 -
libcio/writern.c
r5fa506d r6262b5c 16 16 #define DEBUGIT 0 17 17 18 #include "stddefs.h" 19 #include "biosdefs.h" 20 #include "errno.h" 21 #include "errdefs.h" 22 #include "fspars.h" 18 #include "all.h" 23 19 24 20 extern int32_t _berrno; … … 106 102 return(SUCCESS); /* return: SUCCESS */ 107 103 } 104
Note:
See TracChangeset
for help on using the changeset viewer.