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; --- 20 unchanged lines hidden (view full) --- 29 */ 30 31#include <unistd.h> 32 33#ifdef __APPLE__ 34#include <mach/mach_init.h> 35#include <mach/shared_region.h> 36#include <mach/task.h> |
37 |
38#endif 39 |
40#include "base/hostinfo.hh" 41 |
42#include <cctype> 43#include <cerrno> 44#include <cmath> 45#include <cstdio> 46#include <cstdlib> 47#include <cstring> 48#include <string> 49 |
50#include "base/misc.hh" 51#include "base/str.hh" 52#include "base/types.hh" 53 54using namespace std; 55 56string 57__get_hostname() --- 65 unchanged lines hidden --- |