VxWorks provides a version of strerror_r that only takes two parameters.
STATUS strerror_r
(
int errcode, /* error number */
char *buffer /* string buffer */
)
cURL mentions MAXERRSTR_SIZE
.
The vxworks-style strerror_r() does use the buffer we pass to the function. The buffer size should be at least MAXERRSTR_SIZE (150) defined in rtsold.h
But I can't seem to find the file rtsold.h anywhere in the distribution.
What is the maximum size of the message copied into the buffer? Is there a #define or integer constant defined somewhere?