Changeset 7258c6a in buchla-68k for libcio/close.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/close.c
r0292fbb r7258c6a 12 12 #include "stddefs.h" 13 13 14 extern int _badfd(void);15 extern int ClsFile(struct fcb *fcp);14 extern int16_t _badfd(void); 15 extern int16_t ClsFile(struct fcb *fcp); 16 16 extern void _clsvol(void); 17 17 18 extern int _fatmod, _dirmod;18 extern int16_t _fatmod, _dirmod; 19 19 extern struct bpb *_thebpb; 20 20 extern struct dirent _thedir[]; 21 extern u nsigned_thefat[];21 extern uint16_t _thefat[]; 22 22 23 23 /* … … 72 72 */ 73 73 74 int close(int fd)74 int16_t close(int16_t fd) 75 75 { 76 76 register struct channel *chp; 77 register int rc;77 register int16_t rc; 78 78 79 79 if ((fd < 0) OR (fd > MAXCHAN)) { … … 112 112 */ 113 113 114 int _filecl(struct fcb *fp)114 int16_t _filecl(struct fcb *fp) 115 115 { 116 register int rc;116 register int16_t rc; 117 117 118 118 rc = ClsFile(fp); /* close the FCB */ … … 129 129 void _fd_cls(void) 130 130 { 131 register int fd;131 register int16_t fd; 132 132 133 133 for (fd = 0; fd < MAXCHAN; ++fd)
Note:
See TracChangeset
for help on using the changeset viewer.