From: Zefram <zefram@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu
Subject: memmove()
Date: Tue, 1 Apr 1997 00:58:29 +0100 (BST) [thread overview]
Message-ID: <14498.199703312358@stone.dcs.warwick.ac.uk> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
A couple of my recent patches use memmove(), which isn't available
everywhere. This patch adds an autoconf test for it, and also memcpy().
The header changes don't affect any object files.
-zefram
*** configure.in 1997/03/30 23:58:22 1.35
--- configure.in 1997/03/30 23:58:36
***************
*** 503,509 ****
dnl need to integrate this function
dnl AC_FUNC_STRFTIME
! AC_CHECK_FUNCS(strftime waitpid select tcsetpgrp tcgetattr strstr lstat \
getlogin setpgid gettimeofday gethostname mkfifo wait3 difftime \
sigblock sigsetmask sigrelse sighold killpg sigaction getrlimit \
sigprocmask setuid seteuid setreuid setresuid setsid strerror \
--- 503,510 ----
dnl need to integrate this function
dnl AC_FUNC_STRFTIME
! AC_CHECK_FUNCS(memcpy memmove \
! strftime waitpid select tcsetpgrp tcgetattr strstr lstat \
getlogin setpgid gettimeofday gethostname mkfifo wait3 difftime \
sigblock sigsetmask sigrelse sighold killpg sigaction getrlimit \
sigprocmask setuid seteuid setreuid setresuid setsid strerror \
*** Src/prototypes.h 1997/01/29 03:25:23 1.11
--- Src/prototypes.h 1997/03/30 23:58:36
***************
*** 151,153 ****
--- 151,156 ----
/*** end of prototypes for functions in compat.c ***/
/***************************************************/
+ #ifndef HAVE_MEMMOVE
+ extern void bcopy _((const void *, void *, int));
+ #endif
*** Src/system.h 1997/01/29 03:25:26 1.14
--- Src/system.h 1997/03/30 23:58:36
***************
*** 500,505 ****
--- 500,513 ----
# define R_OK 4
#endif
+ #ifndef HAVE_MEMCPY
+ # define memcpy memmove
+ #endif
+
+ #ifndef HAVE_MEMMOVE
+ # define memmove(dest, src, len) bcopy(src, dest, len)
+ #endif
+
extern char **environ; /* environment variable list */
/* These variables are sometimes defined in, *
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: ascii
iQCVAwUBMz8AjHD/+HJTpU/hAQGI7QQAuJNlp8oYSIHINs7AkWTlVFcXrVBt5kh+
DQCaFhUj604zBptyF3RG3WbPZheYr1ofvGT3QpakmnXIh/osyvA1qnHsjavOamz2
JS4hqm0Iy+6fXe+7+5lMhWOtnDp8/ieG3ZcAkltCGWpKiLOMAzcA8Mq6Lsg5F8Y8
fhFoL4FRtjI=
=O397
-----END PGP SIGNATURE-----
reply other threads:[~1997-04-01 0:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14498.199703312358@stone.dcs.warwick.ac.uk \
--to=zefram@dcs.warwick.ac.uk \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).