gethostbyname_r()

Panagiotis Voudouris voudouri at cs.bris.ac.uk
Thu Mar 22 17:07:01 EET 2001


Xairetw.

Exw ena programma opou xreiazomai th gethostbyname_r(). Mexri stigmhs
exw dei se solaris pws douleuei h sugkekrimenh function alla sto linux
blepw oti xreiazetai ena parapanw arguement. Sugkekrimena, to man page
sto solaris leei oti to protoype einai:

struct hostent  *gethostbyname_r(const  char  *name,  struct hostent
*result, char *buffer, intbuflen, int *h_errnop)

opou ola einai wraia kai kala kai 3erw ti ginetai, enw se linux den exw
to antistoixo manpage alla blepontas to netdb.h briskw to e3hs:

extern int gethostbyname_r __P ((__const char *__restrict __name,
  struct hostent *__restrict__result_buf,
  char *__restrict __buf, size_t__buflen,
  struct hostent **__restrict __result, int *__restrict __h_errnop));

To proteleutaio (struct hostent **__restrict __result) 3erei kaneis gia
ti pragma xreiazetai? An exei kaneis thn antistoixh man page gia linux
8a mporouse na mou th steilei?

Euxaristw



More information about the Linux-greek-users mailing list