ksh: Drop support for systems without dup2(2)

This commit is contained in:
kamil 2017-06-22 23:50:24 +00:00
parent 237b342911
commit 52b3355e26
2 changed files with 3 additions and 10 deletions

View File

@ -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 */

View File

@ -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((int)); /* signal handler */
# 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.