+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.
HAVE_SOCKETS
HAVE_SOUND
HAVE_STDLIB_H
-HAVE_STRERROR
HAVE_STRFTIME
HAVE_STRING_H
HAVE_STRUCT_UTIMBUF
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
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).
#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. */
}
#endif /* HAVE_SOCKETS && HAVE_INET_SOCKETS */
-
-\f
-#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 */
#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);
}
#endif /* MAIL_USE_POP */
-\f
-#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 */
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.
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