Searched defs:hostf (Results 1 - 6 of 6) sorted by relevance

/illumos-gate/usr/src/lib/libbc/libc/net/
H A Drcmd.c203 FILE *hostf; local
229 if ((hostf = fopen("/etc/hosts.equiv", "r")) != NULL) {
230 if (!_validuser(hostf, fhost, luser, ruser, baselen)) {
231 (void) fclose(hostf);
234 (void) fclose(hostf);
251 if ((hostf = fopen(pbuf, "r")) == NULL) {
256 (void)fstat(fileno(hostf), &sbuf);
258 fclose(hostf);
264 if (!_validuser(hostf, fhost, luser, ruser, baselen)) {
265 (void) fclose(hostf);
278 _validuser(FILE *hostf, char *rhost, char *luser, char *ruser, int baselen) argument
[all...]
/illumos-gate/usr/src/cmd/ypcmd/
H A Drpc_bootstrap.c386 FILE *hostf; local
393 if ((hostf = fopen(*file, "r")) == 0)
396 while (hp = __files_gethostent(hostf)) {
400 (void) fclose(hostf);
405 (void) fclose(hostf);
410 (void) fclose(hostf);
419 __files_gethostent(FILE *hostf) argument
429 if (hostf == NULL)
432 if ((p = fgets(line, BUFSIZ, hostf)) == NULL)
/illumos-gate/usr/src/lib/libast/common/uwin/
H A Drcmd.c321 FILE *hostf; local
342 hostf = superuser ? (FILE *)0 : fopen(_PATH_HEQUIV, "r");
344 if (hostf) {
345 if (!_validuser(hostf, fhost, luser, ruser, baselen)) {
346 (void) fclose(hostf);
350 (void) fclose(hostf);
363 if ((hostf = fopen(pbuf, "r")) == NULL) {
367 (void)fstat(fileno(hostf), &sbuf);
369 fclose(hostf);
380 _validuser(FILE *hostf, cons argument
[all...]
/illumos-gate/usr/src/lib/libresolv/
H A Dres_gethost.c57 static FILE *hostf = NULL; variable
352 if (hostf == NULL)
353 hostf = fopen(HOSTDB, "r");
355 rewind(hostf);
364 if (hostf && !stayopen) {
365 (void) fclose(hostf);
366 hostf = NULL;
378 if (hostf == NULL && (hostf = fopen(HOSTDB, "r")) == NULL)
381 if ((p = fgets(hostbuf, BUFSIZ, hostf))
[all...]
/illumos-gate/usr/src/cmd/last/
H A Dlast.c105 static char hostf[HMAX + 1]; variable
299 (void) snprintf(hostf, sizeof (hostf),
374 timef, strlen(hostf), hostf);
377 hostf, timef);
/illumos-gate/usr/src/lib/libsocket/inet/
H A Drcmd.c79 static int _validuser(FILE *hostf, char *rhost, const char *luser,
556 FILE *hostf; local
586 if ((hostf = fopen("/etc/hosts.equiv", "rF")) != NULL) {
587 if (!_validuser(hostf, fhost, luser, ruser, baselen)) {
588 (void) fclose(hostf);
591 (void) fclose(hostf);
614 if ((hostf = fopen(pbuf, "rF")) == NULL) {
622 (void) fstat64(fileno(hostf), &sbuf);
624 (void) fclose(hostf);
633 if (!_validuser(hostf, fhos
653 _validuser(FILE *hostf, char *rhost, const char *luser, const char *ruser, int baselen) argument
[all...]

Completed in 71 milliseconds