search for: clnt_stat

Displaying 1 result from an estimated 1 matches for "clnt_stat".

2006 Feb 03
0
rquotad (NFS) quota plugin
...quotad_quota_try_alloc, + rquotad_quota_alloc, + rquotad_quota_free, + + rquotad_quota_last_error, + + ARRAY_INIT + }; + + static int + rquota_get(char *host, getquota_args *qargs, getquota_rslt *qres) + { + struct sockaddr_in rhost; + struct hostent *hent; + struct timeval tout; + enum clnt_stat cstat; + CLIENT *clnt = NULL; + int sock = RPC_ANYSOCK; + + hent = gethostbyname(host); + if (!hent) + return -1; + if (hent->h_length > (int)sizeof(rhost.sin_addr)) + return -1; + + tout.tv_sec = 6; + tout.tv_usec = 0; + + *(long *)&rhost.sin_addr = *(long *)hent->h_ad...