- Timestamp:
- 07/09/2017 10:24:47 PM (7 years ago)
- Branches:
- master
- Children:
- 411371e
- Parents:
- d2d593b
- Location:
- libcio
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/blkrd.c
rd2d593b re225e77 31 31 #include "errdefs.h" 32 32 #include "fspars.h" 33 34 #include "memory.h" 33 35 34 36 /* -
libcio/blkwr.c
rd2d593b re225e77 24 24 #include "fspars.h" 25 25 26 #include "memory.h" 27 26 28 extern int16_t _nsic(struct fcb *fcp, struct bpb *bpp, int8_t *fp); 27 29 extern int16_t _alcnew(struct fcb *fcp); 28 30 extern int16_t _newcls(void); 31 32 extern int16_t micons(int16_t wi); 33 extern uint16_t _cl2lsn(struct bpb *bpp, uint16_t clnum); 34 extern void _ptcl12(uint16_t *fat, uint16_t cl, uint16_t val); 29 35 30 36 extern int32_t _berrno; /* last file system bios error number */ -
libcio/clusmap.c
rd2d593b re225e77 21 21 extern int16_t _filecl(struct fcb *fp); 22 22 extern int16_t _noper(void); 23 24 extern void xtrap15(void); 23 25 24 26 /* -
libcio/filesys.c
rd2d593b re225e77 34 34 extern int8_t *FilName(int8_t *s, int8_t *p); 35 35 extern int8_t *FilExt(int8_t *s, int8_t *p); 36 37 extern void _clsdir(void); 38 extern void _clsfat(void); 36 39 37 40 #if DEBUGIT -
libcio/fopen.c
rd2d593b re225e77 12 12 13 13 extern int32_t lseek(int16_t fd, int32_t pos, int16_t how); 14 15 extern int16_t close(int16_t fd); 16 extern int16_t open(int8_t *name, int16_t flag, int16_t mode); 14 17 15 18 FILE *_opener(int8_t *name, int8_t *mode, int16_t aflag) … … 31 34 32 35 case 'r': /* read mode */ 33 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_RDONLY) |aflag)) EQ -1)36 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_RDONLY), aflag)) EQ -1) 34 37 return(NULL); 35 38 break; 36 39 37 40 case 'w': /* write mode */ 38 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)| aflag|O_CREAT|O_TRUNC)) EQ -1)41 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|O_CREAT|O_TRUNC, aflag)) EQ -1) 39 42 return(NULL); 40 43 … … 42 45 43 46 case 'a': /* append mode */ 44 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)| aflag|O_CREAT)) EQ -1)47 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|O_CREAT, aflag)) EQ -1) 45 48 return(NULL); 46 49 -
libcio/fscanf.c
rd2d593b re225e77 8 8 #include "stdio.h" 9 9 #include "stddefs.h" 10 11 extern int16_t agetc(FILE *ptr); 12 extern int16_t scanfmt(int16_t (*getsub)(), int8_t *fmt, int16_t **args); 10 13 11 14 static int16_t scnlast; -
libcio/fseek.c
rd2d593b re225e77 12 12 13 13 extern int32_t lseek(int16_t fd, int32_t pos, int16_t how); 14 15 extern int16_t flush_(FILE *ptr, int16_t data); 14 16 15 17 /* -
libcio/fsinit.c
rd2d593b re225e77 13 13 #include "stdio.h" 14 14 #include "stddefs.h" 15 16 #include "memory.h" 15 17 16 18 extern int16_t _bpbin, _dirin, _fatin, _dirmod, _fatmod; -
libcio/fstubs.c
rd2d593b re225e77 11 11 #include "io.h" 12 12 #include "stddefs.h" 13 14 extern void xtrap15(void); 13 15 14 16 /* -
libcio/getc.c
rd2d593b re225e77 8 8 #include "stdio.h" 9 9 #include "stddefs.h" 10 11 extern int16_t read(int16_t fd, int8_t *buff, uint16_t len); 12 extern void getbuff(FILE *ptr); 10 13 11 14 int16_t getc(FILE *ptr) -
libcio/open.c
rd2d593b re225e77 12 12 #include "stddefs.h" 13 13 14 #include "strings.h" 15 14 16 extern int16_t _badfd(void); 15 17 extern int16_t _noper(void); -
libcio/read.c
rd2d593b re225e77 53 53 54 54 int16_t _filerd(struct fcb *fp, int8_t *buffer, uint16_t len); 55 56 extern int16_t ReadRN(struct fcb *fcp, int8_t *buf); 57 extern int16_t blkrd(struct fcb *fcp, int8_t *buf, int16_t ns); 55 58 56 59 static int16_t (*t_read[])() = { -
libcio/unlink.c
rd2d593b re225e77 18 18 19 19 extern int16_t DelFile(struct fcb *fcp); 20 21 extern int16_t fcbinit(int8_t *name, struct fcb *fcp); 20 22 21 23 /* -
libcio/write.c
rd2d593b re225e77 12 12 #include "errno.h" 13 13 #include "stddefs.h" 14 15 #include "memory.h" 14 16 15 17 int16_t _filewr(struct fcb *fp, int8_t *buffer, uint16_t len); … … 28 30 extern void *memset(void *vp, int8_t c, int16_t n); 29 31 32 extern int16_t _seek(struct fcb *fcp); 33 extern uint16_t _cl2lsn(struct bpb *bpp, uint16_t clnum); 34 30 35 extern int16_t _fatmod; 31 36 -
libcio/writern.c
rd2d593b re225e77 31 31 #if TBUFFER 32 32 extern int32_t _secwr(int8_t *buf, int16_t rec); 33 34 extern int16_t _alcnew(struct fcb *fcp); 33 35 #endif 34 36
Note:
See TracChangeset
for help on using the changeset viewer.