Query regarding gethostbyname_r

Hi,

Can you please let us know why the function gethostbyname_r returns errno 22 (EINVAL).

Regards

Vikas K N

[133 byte] By [nagarajaa] at [2007-11-27 10:49:22]
# 1

Hi,

You are talking about netbackup issues (gethostbyname_r returns errno 22).

Kindly let me know.

Cheers

Karthick

resource_namea at 2007-7-29 11:18:48 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

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);

nagarajaa at 2007-7-29 11:18:48 > top of Java-index,Solaris Operating System,Solaris 10 Features...