| 233 | |
| 234 | #if defined(SOLARIS) |
| 235 | TEXT* ISC_get_host(TEXT* string, USHORT length) |
| 236 | { |
| 237 | /************************************** |
| 238 | * |
| 239 | * I S C _ g e t _ h o s t ( S O L A R I S ) |
| 240 | * |
| 241 | ************************************** |
| 242 | * |
| 243 | * Functional description |
| 244 | * Get host name. |
| 245 | * |
| 246 | **************************************/ |
| 247 | struct utsname name; |
| 248 | |
| 249 | if (uname(&name) >= 0) |
| 250 | fb_utils::copy_terminate(string, name.nodename, length); |
| 251 | else |
| 252 | strcpy(string, "local"); |
| 253 | |
| 254 | return string; |
| 255 | } |
| 256 | |
| 257 | #elif defined(WIN_NT) |
| 258 |
no test coverage detected