69 size_t buflen,
struct passwd **result)
71 #if defined(FRONTEND) && defined(ENABLE_THREAD_SAFETY) && defined(HAVE_GETPWUID_R) 72 return getpwuid_r(uid, resultbuf, buffer, buflen, result);
76 *result = getpwuid(uid);
78 return (*result == NULL) ? errno : 0;
88 #ifndef HAVE_GETADDRINFO 91 struct hostent *resultbuf,
92 char *buffer,
size_t buflen,
93 struct hostent **result,
96 #if defined(FRONTEND) && defined(ENABLE_THREAD_SAFETY) && defined(HAVE_GETHOSTBYNAME_R) 102 *result = gethostbyname_r(name, resultbuf, buffer, buflen, herrno);
103 return (*result == NULL) ? -1 : 0;
107 *result = gethostbyname(name);
int pqGethostbyname(const char *name, struct hostent *resultbuf, char *buffer, size_t buflen, struct hostent **result, int *herrno)
int pqGetpwuid(uid_t uid, struct passwd *resultbuf, char *buffer, size_t buflen, struct passwd **result)