1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 25 unchanged lines hidden (view full) --- 34#include <unistd.h> 35 36#include <stdio.h> 37#include <cstdlib> 38#include <cstring> 39#include <string> 40 41#include "base/misc.hh" |
42#include "base/types.hh" |
43 44using namespace std; 45 46string 47__get_hostname() 48{ 49 char host[256]; 50 if (gethostname(host, sizeof host) == -1) --- 38 unchanged lines hidden --- |