Searched refs:ldomain (Results 1 - 3 of 3) sorted by relevance

/illumos-gate/usr/src/lib/libbc/libc/net/
H A Drcmd.c349 static char *ldomain; local
354 if (ldomain == NULL) {
355 ldomain = (char *)malloc(MAXHOSTNAMELEN+1);
356 if (ldomain == 0)
374 if (gethostname(ldomain, MAXHOSTNAMELEN) == -1) {
378 ldomain[MAXHOSTNAMELEN] = NULL;
379 if ((domainp = index(ldomain, '.')) == (char *)NULL) {
/illumos-gate/usr/src/lib/libast/common/uwin/
H A Drcmd.c473 static char ldomain[MAXHOSTNAMELEN + 1]; local
489 if (gethostname(ldomain, sizeof(ldomain)) == -1) {
493 ldomain[MAXHOSTNAMELEN] = (char) 0;
494 if ((domainp = index(ldomain, '.')) == (char *)NULL) {
/illumos-gate/usr/src/lib/libsocket/inet/
H A Drcmd.c773 static char *ldomain; local
778 if (ldomain == NULL) {
779 ldomain = (char *)malloc(MAXHOSTNAMELEN+1);
780 if (ldomain == 0)
798 if (gethostname(ldomain, MAXHOSTNAMELEN) == -1) {
802 ldomain[MAXHOSTNAMELEN] = NULL;
803 if ((domainp = index(ldomain, '.')) == (char *)NULL) {

Completed in 70 milliseconds