mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:33:42 +03:00
vxworks: drop support
No changes or fixes in vxworks related code since 2009 leads me to believe that this doesn't work anymore. Closes #8362
This commit is contained in:
parent
0d370ecbfe
commit
1bf3643f7b
7 changed files with 5 additions and 1044 deletions
|
|
@ -24,12 +24,9 @@
|
|||
|
||||
#ifdef HAVE_STRERROR_R
|
||||
# if (!defined(HAVE_POSIX_STRERROR_R) && \
|
||||
!defined(HAVE_GLIBC_STRERROR_R) && \
|
||||
!defined(HAVE_VXWORKS_STRERROR_R)) || \
|
||||
(defined(HAVE_POSIX_STRERROR_R) && defined(HAVE_VXWORKS_STRERROR_R)) || \
|
||||
(defined(HAVE_GLIBC_STRERROR_R) && defined(HAVE_VXWORKS_STRERROR_R)) || \
|
||||
!defined(HAVE_GLIBC_STRERROR_R)) || \
|
||||
(defined(HAVE_POSIX_STRERROR_R) && defined(HAVE_GLIBC_STRERROR_R))
|
||||
# error "strerror_r MUST be either POSIX, glibc or vxworks-style"
|
||||
# error "strerror_r MUST be either POSIX, glibc style"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
|
@ -881,18 +878,6 @@ const char *Curl_strerror(int err, char *buf, size_t buflen)
|
|||
else
|
||||
msnprintf(buf, max, "Unknown error %d", err);
|
||||
}
|
||||
#elif defined(HAVE_STRERROR_R) && defined(HAVE_VXWORKS_STRERROR_R)
|
||||
/*
|
||||
* The vxworks-style strerror_r() does use the buffer we pass to the function.
|
||||
* The buffer size should be at least NAME_MAX (256)
|
||||
*/
|
||||
{
|
||||
char buffer[256];
|
||||
if(OK == strerror_r(err, buffer))
|
||||
strncpy(buf, buffer, max);
|
||||
else
|
||||
msnprintf(buf, max, "Unknown error %d", err);
|
||||
}
|
||||
#else
|
||||
{
|
||||
/* !checksrc! disable STRERROR 1 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue