Commit 5ebbef1d authored by Paul Eggert's avatar Paul Eggert

Assume strerror.

parent 9af57756
2012-07-11 Paul Eggert <eggert@cs.ucla.edu>
Assume strerror.
* configure.ac (strerror): Remove check.
2012-07-11 Glenn Morris <rgm@gnu.org>
* configure.ac (DONT_REOPEN_PTY): Move here from src/s.
......
......@@ -151,7 +151,6 @@ HAVE_SHUTDOWN
HAVE_SOCKETS
HAVE_SOUND
HAVE_STDLIB_H
HAVE_STRERROR
HAVE_STRFTIME
HAVE_STRING_H
HAVE_STRUCT_UTIMBUF
......@@ -311,7 +310,6 @@ sleep
spawnve
srandom
strdup
strerror
stricmp
strnicmp
strupr
......
2012-07-11 Paul Eggert <eggert@cs.ucla.edu>
Assume strerror.
* CPP-DEFINES (HAVE_STRERROR, strerror): Remove.
2012-07-10 Dmitry Antipov <dmantipov@yandex.ru>
* coccinelle/list_loop.cocci: Semantic patch to convert from Fcdr
......
......@@ -2710,7 +2710,7 @@ AC_SUBST(BLESSMAIL_TARGET)
AC_CHECK_FUNCS(gethostname \
rename closedir mkdir rmdir getrusage get_current_dir_name \
lrand48 logb frexp fmod cbrt setsid \
strerror fpathconf select euidaccess getpagesize setlocale \
fpathconf select euidaccess getpagesize setlocale \
utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
__fpending strsignal setitimer \
sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
......
2012-07-11 Paul Eggert <eggert@cs.ucla.edu>
Assume strerror.
* emacsclient.c, movemail.c, update-game-score.c (strerror)
[!HAVE_STRERROR]: Remove.
2012-07-10 Paul Eggert <eggert@cs.ucla.edu>
EMACS_TIME simplification (Bug#11875).
......
......@@ -749,8 +749,6 @@ main (int argc, char **argv)
#define AUTH_KEY_LENGTH 64
#define SEND_BUFFER_SIZE 4096
extern char *strerror (int);
/* Buffer to accumulate data to send in TCP connections. */
char send_buffer[SEND_BUFFER_SIZE + 1];
int sblen = 0; /* Fill pointer for the send buffer. */
......@@ -1850,22 +1848,3 @@ main (int argc, char **argv)
}
#endif /* HAVE_SOCKETS && HAVE_INET_SOCKETS */
#ifndef HAVE_STRERROR
char *
strerror (errnum)
int errnum;
{
extern char *sys_errlist[];
extern int sys_nerr;
if (errnum >= 0 && errnum < sys_nerr)
return sys_errlist[errnum];
return (char *) "Unknown error";
}
#endif /* ! HAVE_STRERROR */
/* emacsclient.c ends here */
......@@ -133,10 +133,6 @@ static char *mail_spool_name (char *);
#endif
#endif
#ifndef HAVE_STRERROR
char *strerror (int);
#endif
static _Noreturn void fatal (const char *s1, const char *s2, const char *s3);
static void error (const char *s1, const char *s2, const char *s3);
static _Noreturn void pfatal_with_name (char *name);
......@@ -920,21 +916,3 @@ mbx_delimit_end (FILE *mbf)
}
#endif /* MAIL_USE_POP */
#ifndef HAVE_STRERROR
char *
strerror (errnum)
int errnum;
{
extern char *sys_errlist[];
extern int sys_nerr;
if (errnum >= 0 && errnum < sys_nerr)
return sys_errlist[errnum];
return (char *) "Unknown error";
}
#endif /* ! HAVE_STRERROR */
/* movemail.c ends here */
......@@ -94,22 +94,6 @@ lose (const char *msg)
exit (EXIT_FAILURE);
}
/* Taken from sysdep.c. */
#ifndef HAVE_STRERROR
#ifndef WINDOWSNT
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";
}
#endif /* not WINDOWSNT */
#endif /* ! HAVE_STRERROR */
static _Noreturn void
lose_syserr (const char *msg)
{
......
2012-07-11 Paul Eggert <eggert@cs.ucla.edu>
Assume strerror.
* sysdep.c (strerror) [!HAVE_STRERROR && !WINDOWSNT]: Remove.
2012-07-11 Dmitry Antipov <dmantipov@yandex.ru>
Avoid calls to strlen in font processing functions.
......
......@@ -1792,21 +1792,6 @@ get_random (void)
return val & INTMASK;
}
#ifndef HAVE_STRERROR
#ifndef WINDOWSNT
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";
}
#endif /* not WINDOWSNT */
#endif /* ! HAVE_STRERROR */
#ifndef HAVE_SNPRINTF
/* Approximate snprintf as best we can on ancient hosts that lack it. */
int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment