hostinfo.cc (9554:406fbcf60223) hostinfo.cc (11793:ef606668d247)
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>
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
37#endif
38
38#endif
39
40#include "base/hostinfo.hh"
41
39#include <cctype>
40#include <cerrno>
41#include <cmath>
42#include <cstdio>
43#include <cstdlib>
44#include <cstring>
45#include <string>
46
42#include <cctype>
43#include <cerrno>
44#include <cmath>
45#include <cstdio>
46#include <cstdlib>
47#include <cstring>
48#include <string>
49
47#include "base/hostinfo.hh"
48#include "base/misc.hh"
49#include "base/str.hh"
50#include "base/types.hh"
51
52using namespace std;
53
54string
55__get_hostname()

--- 65 unchanged lines hidden ---
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 ---