Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ksh ksh: Drop support for systems without dup2(2)



details:   https://anonhg.NetBSD.org/src/rev/ac4cb434ecb0
branches:  trunk
changeset: 824924:ac4cb434ecb0
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Jun 22 23:50:24 2017 +0000

description:
ksh: Drop support for systems without dup2(2)

diffstat:

 bin/ksh/config.h |  5 +----
 bin/ksh/sh.h     |  8 ++------
 2 files changed, 3 insertions(+), 10 deletions(-)

diffs (46 lines):

diff -r 2b28befb26e9 -r ac4cb434ecb0 bin/ksh/config.h
--- a/bin/ksh/config.h  Thu Jun 22 23:47:29 2017 +0000
+++ b/bin/ksh/config.h  Thu Jun 22 23:50:24 2017 +0000
@@ -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 */
 
diff -r 2b28befb26e9 -r ac4cb434ecb0 bin/ksh/sh.h
--- a/bin/ksh/sh.h      Thu Jun 22 23:47:29 2017 +0000
+++ b/bin/ksh/sh.h      Thu Jun 22 23:50:24 2017 +0000
@@ -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 @@
 # 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.



Home | Main Index | Thread Index | Old Index