Searched refs:LocalHostname (Results 1 – 3 of 3) sorted by relevance
/trunk/main/sal/osl/unx/ |
H A D | socket.c | 1370 static sal_Char LocalHostname[256] = ""; in osl_psz_getLocalHostname() local 1372 if (strlen(LocalHostname) == 0) in osl_psz_getLocalHostname() 1385 strncpy(LocalHostname, uts.nodename, sizeof( LocalHostname )); in osl_psz_getLocalHostname() 1388 if (gethostname(LocalHostname, sizeof(LocalHostname)-1) != 0) in osl_psz_getLocalHostname() 1390 LocalHostname[sizeof(LocalHostname)-1] = 0; in osl_psz_getLocalHostname() 1394 if (strchr(LocalHostname, '.') == NULL) in osl_psz_getLocalHostname() 1406 strcpy(LocalHostname, pStr); in osl_psz_getLocalHostname() 1417 pChr = &LocalHostname[strlen(LocalHostname)]; in osl_psz_getLocalHostname() 1436 LocalHostname[0] = '\0'; in osl_psz_getLocalHostname() 1445 if (strlen(LocalHostname) > 0) in osl_psz_getLocalHostname() [all …]
|
/trunk/main/sal/osl/os2/ |
H A D | socket.c | 1390 static sal_Char LocalHostname[256] = ""; in osl_psz_getLocalHostname() local 1392 if (strlen(LocalHostname) == 0) in osl_psz_getLocalHostname() 1405 strncpy(LocalHostname, uts.nodename, sizeof( LocalHostname )); in osl_psz_getLocalHostname() 1408 if (gethostname(LocalHostname, sizeof(LocalHostname)-1) != 0) in osl_psz_getLocalHostname() 1410 LocalHostname[sizeof(LocalHostname)-1] = 0; in osl_psz_getLocalHostname() 1414 if (strchr(LocalHostname, '.') == NULL) in osl_psz_getLocalHostname() 1426 strcpy(LocalHostname, pStr); in osl_psz_getLocalHostname() 1437 pChr = &LocalHostname[strlen(LocalHostname)]; in osl_psz_getLocalHostname() 1456 LocalHostname[0] = '\0'; in osl_psz_getLocalHostname() 1466 if (strlen(LocalHostname) > 0) in osl_psz_getLocalHostname() [all …]
|
/trunk/main/sal/osl/w32/ |
H A D | socket.cxx | 939 static sal_Unicode LocalHostname[256] = {0}; in osl_getLocalHostname() local 941 if (rtl_ustr_getLength(LocalHostname) == 0) in osl_getLocalHostname() 962 …memcpy(LocalHostname, pAddr->pHostName->buffer, sizeof(sal_Unicode)*(rtl_ustr_getLength(pAddr->pHo… in osl_getLocalHostname() 964 memset(LocalHostname, 0, sizeof(LocalHostname)); in osl_getLocalHostname() 971 if (rtl_ustr_getLength(LocalHostname) > 0) in osl_getLocalHostname() 973 rtl_uString_newFromStr (strLocalHostname, LocalHostname); in osl_getLocalHostname()
|
Completed in 47 milliseconds