Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(739)

Side by Side Diff: base/process_util_posix.cc

Issue 6410105: run iwyu on base! Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/process_util.cc ('k') | base/rand_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <dirent.h> 5 #include <dirent.h>
6 #include <errno.h> 6 #include <i386/_structs.h>
7 #include <fcntl.h> 7 #include <limits.h>
8 #include <mach/i386/_structs.h>
8 #include <signal.h> 9 #include <signal.h>
10 #include <stdbool.h>
11 #include <stdint.h>
12 #include <stdio.h>
9 #include <stdlib.h> 13 #include <stdlib.h>
14 #include <string.h>
15 #include <sys/_structs.h>
16 #include <sys/errno.h>
17 #include <sys/fcntl.h>
10 #include <sys/resource.h> 18 #include <sys/resource.h>
11 #include <sys/time.h> 19 #include <sys/signal.h>
12 #include <sys/types.h>
13 #include <sys/wait.h> 20 #include <sys/wait.h>
14 #include <unistd.h> 21 #include <unistd.h>
22 #include <algorithm>
23 #include <iterator>
24 #include <limits>
25 #include <string>
26 #include <utility>
27 #include <vector>
15 28
16 #include <limits> 29 #include "base/basictypes.h"
17 #include <set>
18
19 #include "base/command_line.h" 30 #include "base/command_line.h"
20 #include "base/compiler_specific.h" 31 #include "base/compiler_specific.h"
21 #include "base/debug/stack_trace.h" 32 #include "base/debug/stack_trace.h"
22 #include "base/dir_reader_posix.h" 33 #include "base/dir_reader_posix.h"
23 #include "base/eintr_wrapper.h" 34 #include "base/eintr_wrapper.h"
35 #include "base/file_descriptor_shuffle.h"
36 #include "base/file_path.h"
24 #include "base/logging.h" 37 #include "base/logging.h"
38 #include "base/process.h"
25 #include "base/process_util.h" 39 #include "base/process_util.h"
26 #include "base/scoped_ptr.h" 40 #include "base/scoped_ptr.h"
27 #include "base/stringprintf.h"
28 #include "base/synchronization/waitable_event.h" 41 #include "base/synchronization/waitable_event.h"
29 #include "base/threading/platform_thread.h" 42 #include "base/threading/platform_thread.h"
30 #include "base/threading/thread_restrictions.h" 43 #include "base/threading/thread_restrictions.h"
31 #include "base/time.h" 44 #include "base/time.h"
45 #include "build/build_config.h"
32 46
33 #if defined(OS_MACOSX) 47 #if defined(OS_MACOSX)
34 #include <crt_externs.h> 48 #include <crt_externs.h>
49
35 #define environ (*_NSGetEnviron()) 50 #define environ (*_NSGetEnviron())
36 #else 51 #else
37 extern char** environ; 52 extern char** environ;
38 #endif 53 #endif
39 54
40 namespace base { 55 namespace base {
41 56
42 namespace { 57 namespace {
43 58
44 int WaitpidWithTimeout(ProcessHandle handle, int64 wait_milliseconds, 59 int WaitpidWithTimeout(ProcessHandle handle, int64 wait_milliseconds,
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 const ProcessFilter* filter) { 920 const ProcessFilter* filter) {
906 bool exited_cleanly = 921 bool exited_cleanly =
907 WaitForProcessesToExit(executable_name, wait_milliseconds, 922 WaitForProcessesToExit(executable_name, wait_milliseconds,
908 filter); 923 filter);
909 if (!exited_cleanly) 924 if (!exited_cleanly)
910 KillProcesses(executable_name, exit_code, filter); 925 KillProcesses(executable_name, exit_code, filter);
911 return exited_cleanly; 926 return exited_cleanly;
912 } 927 }
913 928
914 } // namespace base 929 } // namespace base
OLDNEW
« no previous file with comments | « base/process_util.cc ('k') | base/rand_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698