Module Name: src
Committed By: kamil
Date: Thu Jun 22 23:50:25 UTC 2017
Modified Files:
src/bin/ksh: config.h sh.h
Log Message:
ksh: Drop support for systems without dup2(2)
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/bin/ksh/config.h
cvs rdiff -u -r1.25 -r1.26 src/bin/ksh/sh.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/ksh/config.h
diff -u src/bin/ksh/config.h:1.30 src/bin/ksh/config.h:1.31
--- src/bin/ksh/config.h:1.30 Thu Jun 22 23:47:29 2017
+++ src/bin/ksh/config.h Thu Jun 22 23:50:24 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: config.h,v 1.30 2017/06/22 23:47:29 kamil Exp $ */
+/* $NetBSD: config.h,v 1.31 2017/06/22 23:50:24 kamil Exp $ */
/* config.h. Generated automatically by configure. */
/* config.h.in. Generated automatically from configure.in by autoheader. */
@@ -138,9 +138,6 @@
/* Define if opendir() will open non-directory files */
/* #undef OPENDIR_DOES_NONDIR */
-/* Define if you have a dup2() function in your C library */
-#define HAVE_DUP2 1
-
/* Define if the pgrp of setpgrp() can't be the pid of a zombie process */
/* #undef NEED_PGRP_SYNC */
Index: src/bin/ksh/sh.h
diff -u src/bin/ksh/sh.h:1.25 src/bin/ksh/sh.h:1.26
--- src/bin/ksh/sh.h:1.25 Thu Jun 22 23:47:29 2017
+++ src/bin/ksh/sh.h Thu Jun 22 23:50:24 2017
@@ -1,10 +1,10 @@
-/* $NetBSD: sh.h,v 1.25 2017/06/22 23:47:29 kamil Exp $ */
+/* $NetBSD: sh.h,v 1.26 2017/06/22 23:50:24 kamil Exp $ */
/*
* Public Domain Bourne/Korn shell
*/
-/* $Id: sh.h,v 1.25 2017/06/22 23:47:29 kamil Exp $ */
+/* $Id: sh.h,v 1.26 2017/06/22 23:50:24 kamil Exp $ */
#include "config.h" /* system and option configuration info */
@@ -126,10 +126,6 @@ typedef RETSIGTYPE (*handler_t) ARGS((in
# define ksh_jmp_buf jmp_buf
#endif /* HAVE_SIGSETJMP */
-#ifndef HAVE_DUP2
-extern int dup2 ARGS((int, int));
-#endif /* !HAVE_DUP2 */
-
/* Find a integer type that is at least 32 bits (or die) - SIZEOF_* defined
* by autoconf (assumes an 8 bit byte, but I'm not concerned).
* NOTE: INT32 may end up being more than 32 bits.