oksh-noxz

[fork] Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh).
git clone https://noxz.tech/git/oksh-noxz.git
oksh-noxz

commit: c57eb16fde35684850faa2721350193e48df03c3
parent: 9f2d3c8e1835a71a2b722e4ae24a9ff9a282e757
author: Brian Callahan <bcallah@openbsd.org>
date:   Wed, 24 Jul 2019 11:50:08 -0400
CVSROOT:	/cvs
Module name:	src
Changes by:	bcallah@cvs.openbsd.org	2019/07/24 08:33:16

Modified files:
	bin/ksh        : io.c

Log message:
Add #include <stdlib.h> for mkstemp.
Spotted by maya@netbsd

ok deraadt@
MCVS/Entries66++++++++++----------
Mio.c3+-
2 files changed, 35 insertions(+), 34 deletions(-)
diff --git a/CVS/Entries b/CVS/Entries
@@ -2,45 +2,45 @@
 /var.c/1.70/Sun Sep 23 17:59:17 2018//
 /emacs.c/1.86/Result of merge//
 /sh.h/1.75/Result of merge//
-/CONTRIBUTORS/1.11/Tue Jul 23 23:35:51 2019//
-/LEGAL/1.2/Tue Jul 23 23:35:51 2019//
-/Makefile/1.39/Tue Jul 23 23:36:04 2019//
-/NOTES/1.16/Tue Jul 23 23:35:51 2019//
-/PROJECTS/1.9/Tue Jul 23 23:35:51 2019//
-/README/1.16/Tue Jul 23 23:36:04 2019//
-/alloc.c/1.19/Tue Jul 23 23:35:51 2019//
-/c_ksh.c/1.62/Tue Jul 23 23:36:04 2019//
-/c_sh.c/1.63/Tue Jul 23 23:35:51 2019//
 /c_test.c/1.27/Result of merge//
-/c_test.h/1.4/Tue Jul 23 23:35:51 2019//
-/c_ulimit.c/1.29/Tue Jul 23 23:36:04 2019//
 /edit.c/1.69/Result of merge//
-/edit.h/1.12/Tue Jul 23 23:35:51 2019//
 /eval.c/1.65/Result of merge//
 /exec.c/1.74/Result of merge//
-/expand.h/1.15/Tue Jul 23 23:35:51 2019//
-/expr.c/1.34/Tue Jul 23 23:35:51 2019//
 /history.c/1.82/Result of merge//
-/io.c/1.37/Result of merge//
-/jobs.c/1.61/Tue Jul 23 23:36:05 2019//
-/ksh.1/1.207/Tue Jul 23 23:36:05 2019//
-/lex.c/1.78/Tue Jul 23 23:35:51 2019//
-/lex.h/1.21/Tue Jul 23 23:35:51 2019//
-/mail.c/1.27/Tue Jul 23 23:35:51 2019//
 /main.c/1.98/Result of merge//
 /misc.c/1.73/Result of merge//
-/path.c/1.23/Tue Jul 23 23:36:05 2019//
-/sh.1/1.152/Tue Jul 23 23:35:51 2019//
-/shf.c/1.34/Tue Jul 23 23:36:05 2019//
-/shf.h/1.8/Tue Jul 23 23:35:51 2019//
-/syn.c/1.39/Tue Jul 23 23:35:51 2019//
-/table.c/1.25/Tue Jul 23 23:35:51 2019//
-/table.h/1.15/Tue Jul 23 23:35:51 2019//
-/trap.c/1.33/Tue Jul 23 23:35:51 2019//
-/tree.c/1.34/Tue Jul 23 23:35:51 2019//
-/tree.h/1.12/Tue Jul 23 23:35:51 2019//
 /tty.c/1.18/Result of merge+Tue Jul 23 23:36:05 2019//
-/tty.h/1.6/Tue Jul 23 23:35:51 2019//
-/version.c/1.12/Tue Jul 23 23:35:51 2019//
-/vi.c/1.56/Tue Jul 23 23:35:51 2019//
+/CONTRIBUTORS/1.11/Wed Jul 24 15:48:26 2019//
+/LEGAL/1.2/Wed Jul 24 15:48:26 2019//
+/Makefile/1.39/Wed Jul 24 15:48:31 2019//
+/NOTES/1.16/Wed Jul 24 15:48:26 2019//
+/PROJECTS/1.9/Wed Jul 24 15:48:26 2019//
+/README/1.16/Wed Jul 24 15:48:31 2019//
+/alloc.c/1.19/Wed Jul 24 15:48:26 2019//
+/c_ksh.c/1.62/Wed Jul 24 15:48:26 2019//
+/c_sh.c/1.63/Wed Jul 24 15:48:26 2019//
+/c_test.h/1.4/Wed Jul 24 15:48:26 2019//
+/c_ulimit.c/1.29/Wed Jul 24 15:48:26 2019//
+/edit.h/1.12/Wed Jul 24 15:48:26 2019//
+/expand.h/1.15/Wed Jul 24 15:48:26 2019//
+/expr.c/1.34/Wed Jul 24 15:48:26 2019//
+/io.c/1.38/Result of merge//
+/jobs.c/1.61/Wed Jul 24 15:48:26 2019//
+/ksh.1/1.207/Wed Jul 24 15:48:26 2019//
+/lex.c/1.78/Wed Jul 24 15:48:26 2019//
+/lex.h/1.21/Wed Jul 24 15:48:26 2019//
+/mail.c/1.27/Wed Jul 24 15:48:26 2019//
+/path.c/1.23/Wed Jul 24 15:48:26 2019//
+/sh.1/1.152/Wed Jul 24 15:48:26 2019//
+/shf.c/1.34/Wed Jul 24 15:48:26 2019//
+/shf.h/1.8/Wed Jul 24 15:48:26 2019//
+/syn.c/1.39/Wed Jul 24 15:48:26 2019//
+/table.c/1.25/Wed Jul 24 15:48:26 2019//
+/table.h/1.15/Wed Jul 24 15:48:26 2019//
+/trap.c/1.33/Wed Jul 24 15:48:26 2019//
+/tree.c/1.34/Wed Jul 24 15:48:26 2019//
+/tree.h/1.12/Wed Jul 24 15:48:26 2019//
+/tty.h/1.6/Wed Jul 24 15:48:26 2019//
+/version.c/1.12/Wed Jul 24 15:48:26 2019//
+/vi.c/1.56/Wed Jul 24 15:48:26 2019//
 D
diff --git a/io.c b/io.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: io.c,v 1.37 2019/06/28 13:34:59 deraadt Exp $	*/
+/*	$OpenBSD: io.c,v 1.38 2019/07/24 14:33:16 bcallah Exp $	*/
 
 /*
  * shell buffered IO and formatted output
@@ -9,6 +9,7 @@
 #include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>