Module Name:    src
Committed By:   kamil
Date:           Thu Jun 22 23:33:36 UTC 2017

Modified Files:
        src/bin/ksh: config.h sh.h

Log Message:
ksh: Drop support for systems without memmove(3) and stop using bcopy(3)


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/bin/ksh/config.h
cvs rdiff -u -r1.20 -r1.21 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.26 src/bin/ksh/config.h:1.27
--- src/bin/ksh/config.h:1.26	Thu Jun 22 23:30:42 2017
+++ src/bin/ksh/config.h	Thu Jun 22 23:33:36 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: config.h,v 1.26 2017/06/22 23:30:42 kamil Exp $	*/
+/*	$NetBSD: config.h,v 1.27 2017/06/22 23:33:36 kamil Exp $	*/
 
 /* config.h.  Generated automatically by configure.  */
 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
@@ -126,12 +126,6 @@
 /* Define if you have a sane <termios.h> header file */
 #define HAVE_TERMIOS_H 1
 
-/* Define if you have a memmove() function in your C library */
-#define HAVE_MEMMOVE 1
-
-/* Define if you have a bcopy() function in your C library */
-#define HAVE_BCOPY
-
 /* Define if you have a lstat() function in your C library */
 #define HAVE_LSTAT 1
 

Index: src/bin/ksh/sh.h
diff -u src/bin/ksh/sh.h:1.20 src/bin/ksh/sh.h:1.21
--- src/bin/ksh/sh.h:1.20	Thu Jun 22 23:30:42 2017
+++ src/bin/ksh/sh.h	Thu Jun 22 23:33:36 2017
@@ -1,10 +1,10 @@
-/*	$NetBSD: sh.h,v 1.20 2017/06/22 23:30:42 kamil Exp $	*/
+/*	$NetBSD: sh.h,v 1.21 2017/06/22 23:33:36 kamil Exp $	*/
 
 /*
  * Public Domain Bourne/Korn shell
  */
 
-/* $Id: sh.h,v 1.20 2017/06/22 23:30:42 kamil Exp $ */
+/* $Id: sh.h,v 1.21 2017/06/22 23:33:36 kamil Exp $ */
 
 #include "config.h"	/* system and option configuration info */
 
@@ -24,14 +24,6 @@
 #include <unistd.h>
 #include <string.h>
 
-#ifndef HAVE_MEMMOVE
-# ifdef HAVE_BCOPY
-#  define memmove(d, s, n)	bcopy(s, d, n)
-# else
-void *memmove ARGS((void *d, const void *s, size_t n));
-# endif
-#endif /* HAVE_MEMMOVE */
-
 #ifdef HAVE_PROTOTYPES
 # include <stdarg.h>
 # define SH_VA_START(va, argn) va_start(va, argn)

Reply via email to