Searched refs:hostf (Results 1 – 6 of 6) sorted by relevance
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/ |
H A D | rcmd.c | 321 FILE *hostf; in ruserok() local 342 hostf = superuser ? (FILE *)0 : fopen(_PATH_HEQUIV, "r"); in ruserok() 344 if (hostf) { in ruserok() 345 if (!_validuser(hostf, fhost, luser, ruser, baselen)) { in ruserok() 346 (void) fclose(hostf); in ruserok() 350 (void) fclose(hostf); in ruserok() 363 if ((hostf = fopen(pbuf, "r")) == NULL) { in ruserok() 367 (void)fstat(fileno(hostf), &sbuf); in ruserok() 369 fclose(hostf); in ruserok() 380 _validuser(FILE *hostf, const char *rhost, const char *luser, in _validuser() argument [all …]
|
H A D | rlib.h | 56 extern int _validuser(FILE *hostf, const char *rhost,
|
/illumos-gate/usr/src/lib/libresolv/ |
H A D | res_gethost.c | 57 static FILE *hostf = NULL; variable 352 if (hostf == NULL) in _sethtent() 353 hostf = fopen(HOSTDB, "r"); in _sethtent() 355 rewind(hostf); in _sethtent() 364 if (hostf && !stayopen) { in _endhtent() 365 (void) fclose(hostf); in _endhtent() 366 hostf = NULL; in _endhtent() 378 if (hostf == NULL && (hostf = fopen(HOSTDB, "r")) == NULL) in _gethtent() 381 if ((p = fgets(hostbuf, BUFSIZ, hostf)) == NULL) in _gethtent()
|
/illumos-gate/usr/src/lib/libsocket/inet/ |
H A D | rcmd.c | 79 static int _validuser(FILE *hostf, char *rhost, const char *luser, 556 FILE *hostf; in ruserok() local 586 if ((hostf = fopen("/etc/hosts.equiv", "rF")) != NULL) { in ruserok() 587 if (!_validuser(hostf, fhost, luser, ruser, baselen)) { in ruserok() 588 (void) fclose(hostf); in ruserok() 591 (void) fclose(hostf); in ruserok() 614 if ((hostf = fopen(pbuf, "rF")) == NULL) { in ruserok() 622 (void) fstat64(fileno(hostf), &sbuf); in ruserok() 624 (void) fclose(hostf); in ruserok() 633 if (!_validuser(hostf, fhost, luser, ruser, baselen)) { in ruserok() [all …]
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | rpc_bootstrap.c | 384 FILE *hostf; in __files_gethostbyname() local 391 if ((hostf = fopen(*file, "r")) == 0) in __files_gethostbyname() 394 while (hp = __files_gethostent(hostf)) { in __files_gethostbyname() 398 (void) fclose(hostf); in __files_gethostbyname() 403 (void) fclose(hostf); in __files_gethostbyname() 408 (void) fclose(hostf); in __files_gethostbyname() 417 __files_gethostent(FILE *hostf) in __files_gethostent() argument 427 if (hostf == NULL) in __files_gethostent() 430 if ((p = fgets(line, BUFSIZ, hostf)) == NULL) in __files_gethostent()
|
/illumos-gate/usr/src/cmd/last/ |
H A D | last.c | 108 static char hostf[HMAX + 1]; variable 308 (void) snprintf(hostf, sizeof (hostf), in main() 410 strlen(hostf), hostf); in main() 413 "%-16.16s %-.*s\n", hostf, in main() 419 strlen(hostf), hostf); in main() 422 "%-16.16s %-.35s\n", hostf, in main()
|