Index: libcio/atoi.x
===================================================================
--- libcio/atoi.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/atoi.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -10,3 +10,2 @@
 
 extern	int16_t		atoi(int8_t *cp);
-
Index: libcio/atol.x
===================================================================
--- libcio/atol.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/atol.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -10,3 +10,2 @@
 
 extern	int32_t		atol(int8_t *cp);
-
Index: libcio/blkrd.x
===================================================================
--- libcio/blkrd.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/blkrd.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -12,3 +12,2 @@
 extern	int32_t		_secrd(int8_t *buf, int16_t rec);
 extern	int16_t		blkrd(struct fcb *fcp, int8_t *buf, int16_t ns);
-
Index: libcio/blkwr.x
===================================================================
--- libcio/blkwr.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/blkwr.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -12,3 +12,2 @@
 extern	int32_t		_secwr(int8_t *buf, int16_t rec);
 extern	int16_t		blkwr(struct fcb *fcp, int8_t *buf, int16_t ns);
-
Index: libcio/close.x
===================================================================
--- libcio/close.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/close.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -15,3 +15,2 @@
 extern	int16_t		_filecl(struct fcb *fp);
 extern	int16_t		close(int16_t fd);
-
Index: libcio/clusmap.x
===================================================================
--- libcio/clusmap.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/clusmap.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -3,4 +3,5 @@
 #include "biosdefs.h"
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -18,3 +19,2 @@
 extern	struct	fcb	*fd2fcb(int16_t fd);
 extern	struct	fcb	*fp2fcb(FILE *fp);
-
Index: libcio/conin.x
===================================================================
--- libcio/conin.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/conin.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -19,3 +19,2 @@
 
 extern	int16_t		_conin(int8_t *buff, int16_t len);
-
Index: libcio/conwr.x
===================================================================
--- libcio/conwr.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/conwr.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -10,3 +10,2 @@
 
 extern	int16_t		_conwr(int16_t kind, int8_t *buff, int16_t len);
-
Index: libcio/dirfns.x
===================================================================
--- libcio/dirfns.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/dirfns.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -12,3 +12,2 @@
 extern	int8_t		*dtunpk(int16_t din, int16_t tin, int16_t fmt, int8_t *s);
 extern	int8_t		*mname(int16_t n);
-
Index: libcio/fgets.x
===================================================================
--- libcio/fgets.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/fgets.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -12,3 +13,2 @@
 extern	int8_t		*fgets(int8_t *s, int16_t n, FILE *fp);
 extern	int8_t		*gets(int8_t *line);
-
Index: libcio/filesys.x
===================================================================
--- libcio/filesys.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/filesys.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -48,3 +48,2 @@
 extern	int16_t		_seek(struct fcb *fcp);
 extern	int16_t		fcbinit(int8_t *name, struct fcb *fcp);
-
Index: libcio/filname.x
===================================================================
--- libcio/filname.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/filname.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -11,3 +11,2 @@
 extern	int8_t		*FilExt(int8_t *s, int8_t *p);
 extern	int8_t		*FilName(int8_t *s, int8_t *p);
-
Index: libcio/flread.x
===================================================================
--- libcio/flread.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/flread.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -10,3 +11,2 @@
 
 extern	int16_t		flread(int8_t *buff, int32_t len, FILE *fp);
-
Index: libcio/fopen.x
===================================================================
--- libcio/fopen.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/fopen.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -13,3 +14,2 @@
 extern	FILE		*fopena(int8_t *name, int8_t *mode);
 extern	FILE		*fopenb(int8_t *name, int8_t *mode);
-
Index: libcio/fprintf.x
===================================================================
--- libcio/fprintf.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/fprintf.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -10,3 +11,2 @@
 
 extern	int16_t		fprintf(FILE *stream, int8_t *fmt, ...);
-
Index: libcio/fputs.x
===================================================================
--- libcio/fputs.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/fputs.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -12,3 +13,2 @@
 extern	int16_t		fputs(int8_t *s, FILE *fp);
 extern	int16_t		puts(int8_t *str);
-
Index: libcio/fread.x
===================================================================
--- libcio/fread.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/fread.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -10,3 +11,2 @@
 
 extern	int16_t		fread(int8_t *buffer, uint16_t size, int16_t number, FILE *stream);
-
Index: libcio/fscanf.x
===================================================================
--- libcio/fscanf.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/fscanf.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -11,3 +12,2 @@
 extern	int16_t		fscanf(FILE *fp, int8_t *fmt, int16_t *args);
 extern	int16_t		scanf(int8_t *fmt, int16_t *args);
-
Index: libcio/fseek.x
===================================================================
--- libcio/fseek.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/fseek.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -10,3 +11,2 @@
 
 extern	int16_t		fseek(FILE *fp, int32_t pos, int16_t mode);
-
Index: libcio/fsinit.x
===================================================================
--- libcio/fsinit.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/fsinit.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,6 +2,8 @@
 
 #include "biosdefs.h"
+#include "fspars.h"
 #include "io.h"
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -34,3 +36,2 @@
 extern	int16_t		_badfd(void);
 extern	int16_t		_noper(void);
-
Index: libcio/fsize.x
===================================================================
--- libcio/fsize.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/fsize.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -11,3 +12,2 @@
 extern	int16_t		dspace(int16_t which);
 extern	int32_t		fsize(FILE *fp, int16_t how);
-
Index: libcio/fstubs.x
===================================================================
--- libcio/fstubs.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/fstubs.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -10,3 +10,2 @@
 
 extern	int16_t		readbuf(int16_t dev, int8_t *buf);
-
Index: libcio/ftell.x
===================================================================
--- libcio/ftell.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/ftell.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -10,3 +11,2 @@
 
 extern	int32_t		ftell(FILE *fp);
-
Index: libcio/fwrite.x
===================================================================
--- libcio/fwrite.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/fwrite.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -10,3 +11,2 @@
 
 extern	int16_t		fwrite(int8_t *buffer, int16_t size, int16_t number, FILE *stream);
-
Index: libcio/getbuff.x
===================================================================
--- libcio/getbuff.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/getbuff.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -1,3 +1,5 @@
 #pragma once
+
+#include "stdio.h"
 
 /*
@@ -8,3 +10,2 @@
 
 extern	void		getbuff(FILE *ptr);
-
Index: libcio/getc.x
===================================================================
--- libcio/getc.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/getc.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -10,3 +11,2 @@
 
 extern	int16_t		getc(FILE *ptr);
-
Index: libcio/getl.x
===================================================================
--- libcio/getl.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/getl.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -10,3 +11,2 @@
 
 extern	int32_t		getl(FILE *stream);
-
Index: libcio/getw.x
===================================================================
--- libcio/getw.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/getw.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -10,3 +11,2 @@
 
 extern	int16_t		getw(FILE *stream);
-
Index: libcio/lseek.x
===================================================================
--- libcio/lseek.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/lseek.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -10,3 +10,2 @@
 
 extern	int32_t		lseek(int16_t fd, int32_t pos, int16_t how);
-
Index: libcio/open.x
===================================================================
--- libcio/open.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/open.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -17,3 +17,2 @@
 extern	int16_t		opena(int8_t *name, int16_t flag, int16_t mode);
 extern	int16_t		openb(int8_t *name, int16_t flag, int16_t mode);
-
Index: libcio/posit.x
===================================================================
--- libcio/posit.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/posit.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -10,3 +10,2 @@
 
 extern	int16_t		posit(int16_t fd, uint16_t pos);
-
Index: libcio/putc.x
===================================================================
--- libcio/putc.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/putc.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -22,3 +23,2 @@
 extern	int16_t		putc(int16_t c, FILE *ptr);
 extern	int16_t		puterr(int16_t c);
-
Index: libcio/putl.x
===================================================================
--- libcio/putl.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/putl.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -1,3 +1,6 @@
 #pragma once
+
+#include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -8,3 +11,2 @@
 
 extern	void		putl(int32_t w, FILE *stream);
-
Index: libcio/putw.x
===================================================================
--- libcio/putw.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/putw.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -1,3 +1,6 @@
 #pragma once
+
+#include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -8,3 +11,2 @@
 
 extern	void		putw(uint16_t w, FILE *stream);
-
Index: libcio/read.x
===================================================================
--- libcio/read.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/read.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -13,3 +13,2 @@
 extern	int16_t		_getsec(struct fcb *fp, int8_t *buf, uint16_t len);
 extern	int16_t		read(int16_t fd, int8_t *buff, uint16_t len);
-
Index: libcio/readrn.x
===================================================================
--- libcio/readrn.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/readrn.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -11,3 +11,2 @@
 
 extern	int16_t		ReadRN(struct fcb *fcp, int8_t *buf);
-
Index: libcio/rename.x
===================================================================
--- libcio/rename.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/rename.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -10,3 +10,2 @@
 
 extern	int16_t		rename(int8_t *old, int8_t *new);
-
Index: libcio/scan.x
===================================================================
--- libcio/scan.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/scan.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -11,3 +11,2 @@
 extern	int16_t		scanfmt(int16_t (*getsub)(), int8_t *fmt, int16_t **args);
 extern	int16_t		sscanf(int8_t *string, int8_t *fmt, int16_t *args);
-
Index: libcio/setbuf.x
===================================================================
--- libcio/setbuf.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/setbuf.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -10,3 +11,2 @@
 
 extern	void		setbuf(FILE *stream, int8_t *buffer);
-
Index: libcio/ungetc.x
===================================================================
--- libcio/ungetc.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/ungetc.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -2,4 +2,5 @@
 
 #include "stdint.h"
+#include "stdio.h"
 
 /*
@@ -10,3 +11,2 @@
 
 extern	int16_t		ungetc(int16_t c, FILE *ptr);
-
Index: libcio/unlink.x
===================================================================
--- libcio/unlink.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/unlink.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -10,3 +10,2 @@
 
 extern	int16_t		unlink(int8_t *name);
-
Index: libcio/write.x
===================================================================
--- libcio/write.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/write.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -13,3 +13,2 @@
 extern	int16_t		_putsec(struct fcb *fp, int8_t *buf, uint16_t len);
 extern	int16_t		write(int16_t fd, int8_t *buff, uint16_t len);
-
Index: libcio/writern.x
===================================================================
--- libcio/writern.x	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
+++ libcio/writern.x	(revision e877e55993af7ec31a186b7407b09bed7f85689c)
@@ -11,3 +11,2 @@
 
 extern	int16_t		WriteRN(struct fcb *fcp, int8_t *buf);
-
