Searched refs:hostf (Results 1 – 6 of 6) sorted by relevance
/titanic_41/usr/src/lib/libbc/libc/net/ |
H A D | rcmd.c | 203 FILE *hostf; in ruserok() local 229 if ((hostf = fopen("/etc/hosts.equiv", "r")) != NULL) { in ruserok() 230 if (!_validuser(hostf, fhost, luser, ruser, baselen)) { in ruserok() 231 (void) fclose(hostf); in ruserok() 234 (void) fclose(hostf); in ruserok() 251 if ((hostf = fopen(pbuf, "r")) == NULL) { in ruserok() 256 (void)fstat(fileno(hostf), &sbuf); in ruserok() 258 fclose(hostf); in ruserok() 264 if (!_validuser(hostf, fhost, luser, ruser, baselen)) { in ruserok() 265 (void) fclose(hostf); in ruserok() [all …]
|
/titanic_41/usr/src/lib/libast/common/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 …]
|
/titanic_41/usr/src/lib/libresolv/ |
H A D | res_gethost.c | 54 static FILE *hostf = NULL; variable 350 if (hostf == NULL) in _sethtent() 351 hostf = fopen(HOSTDB, "r"); in _sethtent() 353 rewind(hostf); in _sethtent() 362 if (hostf && !stayopen) { in _endhtent() 363 (void) fclose(hostf); in _endhtent() 364 hostf = NULL; in _endhtent() 376 if (hostf == NULL && (hostf = fopen(HOSTDB, "r")) == NULL) in _gethtent() 379 if ((p = fgets(hostbuf, BUFSIZ, hostf)) == NULL) in _gethtent()
|
/titanic_41/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 …]
|
/titanic_41/usr/src/cmd/ypcmd/ |
H A D | rpc_bootstrap.c | 386 FILE *hostf; in __files_gethostbyname() local 393 if ((hostf = fopen(*file, "r")) == 0) in __files_gethostbyname() 396 while (hp = __files_gethostent(hostf)) { in __files_gethostbyname() 400 (void) fclose(hostf); in __files_gethostbyname() 405 (void) fclose(hostf); in __files_gethostbyname() 410 (void) fclose(hostf); in __files_gethostbyname() 419 __files_gethostent(FILE *hostf) in __files_gethostent() argument 429 if (hostf == NULL) in __files_gethostent() 432 if ((p = fgets(line, BUFSIZ, hostf)) == NULL) in __files_gethostent()
|
/titanic_41/usr/src/cmd/last/ |
H A D | last.c | 105 static char hostf[HMAX + 1]; variable 299 (void) snprintf(hostf, sizeof (hostf), in main() 374 timef, strlen(hostf), hostf); in main() 377 hostf, timef); in main()
|