Query regarding gethostbyname_r
Hi,
Can you please let us know why the function gethostbyname_r returns errno 22 (EINVAL).
Regards
Vikas K N
Hi,
Can you please let us know why the function gethostbyname_r returns errno 22 (EINVAL).
Regards
Vikas K N
Hi,
You are talking about netbackup issues (gethostbyname_r returns errno 22).
Kindly let me know.
Cheers
Karthick
I am executing the following code and call to gethostbyname_r is populating the variable "err" with error 22( einval)
// get host address
char namebuf[1024];
int err = 0;
struct hostent host;
struct hostent * hostpointer = &host;
gethostbyname_r(hostname, hostpointer, namebuf, 1024, &err);