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

Side by Side Diff: base/process_util_openbsd.cc

Issue 16344006: Use a direct include of strings headers in base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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_mac.mm ('k') | base/process_util_posix.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/process_util.h" 5 #include "base/process_util.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 #include <dirent.h> 8 #include <dirent.h>
9 #include <dlfcn.h> 9 #include <dlfcn.h>
10 #include <errno.h> 10 #include <errno.h>
11 #include <fcntl.h> 11 #include <fcntl.h>
12 #include <sys/param.h> 12 #include <sys/param.h>
13 #include <sys/sysctl.h> 13 #include <sys/sysctl.h>
14 #include <sys/time.h> 14 #include <sys/time.h>
15 #include <sys/types.h> 15 #include <sys/types.h>
16 #include <sys/user.h> 16 #include <sys/user.h>
17 #include <sys/wait.h> 17 #include <sys/wait.h>
18 #include <time.h> 18 #include <time.h>
19 #include <unistd.h> 19 #include <unistd.h>
20 20
21 #include "base/logging.h" 21 #include "base/logging.h"
22 #include "base/string_tokenizer.h" 22 #include "base/string_tokenizer.h"
23 #include "base/string_util.h"
24 #include "base/strings/string_number_conversions.h" 23 #include "base/strings/string_number_conversions.h"
25 #include "base/strings/string_split.h" 24 #include "base/strings/string_split.h"
25 #include "base/strings/string_util.h"
26 #include "base/sys_info.h" 26 #include "base/sys_info.h"
27 #include "base/threading/thread_restrictions.h" 27 #include "base/threading/thread_restrictions.h"
28 28
29 namespace base { 29 namespace base {
30 30
31 ProcessId GetParentProcessId(ProcessHandle process) { 31 ProcessId GetParentProcessId(ProcessHandle process) {
32 struct kinfo_proc info; 32 struct kinfo_proc info;
33 size_t length; 33 size_t length;
34 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process, 34 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process,
35 sizeof(struct kinfo_proc), 0 }; 35 sizeof(struct kinfo_proc), 0 };
(...skipping 28 matching lines...) Expand all
64 return FilePath(); 64 return FilePath();
65 } 65 }
66 66
67 void EnableTerminationOnOutOfMemory() { 67 void EnableTerminationOnOutOfMemory() {
68 } 68 }
69 69
70 void EnableTerminationOnHeapCorruption() { 70 void EnableTerminationOnHeapCorruption() {
71 } 71 }
72 72
73 } // namespace base 73 } // namespace base
OLDNEW
« no previous file with comments | « base/process_util_mac.mm ('k') | base/process_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698