mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
Remove unneeded memmove.c and strerror.c files
* libguile/memmove.c: * libguile/strerror.c: Remove; these must be present for C99. * libguile/Makefile.am (EXTRA_libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES): Remove files.
This commit is contained in:
parent
c495b44714
commit
d04ff278f5
3 changed files with 0 additions and 53 deletions
|
@ -459,7 +459,6 @@ all-local: guile-procedures.texi
|
|||
|
||||
EXTRA_libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES = \
|
||||
syscalls.h \
|
||||
memmove.c strerror.c \
|
||||
dynl.c regex-posix.c \
|
||||
posix.c net_db.c socket.c \
|
||||
debug-malloc.c \
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
/* Wrapper to implement ANSI C's memmove using BSD's bcopy. */
|
||||
/* This function is in the public domain. --Per Bothner. */
|
||||
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef __STDC__
|
||||
#define PTR void *
|
||||
#define CPTR const void *
|
||||
PTR memmove (PTR, CPTR, size_t);
|
||||
#else
|
||||
#define PTR char *
|
||||
#define CPTR char *
|
||||
PTR memmove ();
|
||||
#endif
|
||||
|
||||
PTR
|
||||
memmove (PTR s1, CPTR s2, size_t n)
|
||||
{
|
||||
bcopy (s2, s1, n);
|
||||
return s1;
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
/* Turning errno values into English error messages.
|
||||
Copyright (C) 1985-1988,1993,1994,1995,2000-2001,2006,2018
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public License
|
||||
as published by the Free Software Foundation; either version 3 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
02110-1301 USA
|
||||
*/
|
||||
|
||||
char *
|
||||
strerror (int errnum)
|
||||
{
|
||||
extern char *sys_errlist[];
|
||||
extern int sys_nerr;
|
||||
|
||||
if (errnum >= 0 && errnum < sys_nerr)
|
||||
return sys_errlist[errnum];
|
||||
return (char *) "Unknown error";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue