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

Side by Side Diff: base/process/process_iterator_freebsd.cc

Issue 185713005: Add support for FreeBSD in base/ , base/process/ , and base/threading so that the bootstrap binary … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/process_iterator.h" 5 #include "base/process/process_iterator.h"
6 6
7 #include <sys/types.h>
7 #include <sys/sysctl.h> 8 #include <sys/sysctl.h>
8 9
Nico 2014/03/10 19:58:33 no newline here
r.c.ladan 2014/03/10 20:19:02 Done.
10 #include <unistd.h>
11
9 #include "base/logging.h" 12 #include "base/logging.h"
10 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
11 14
12 namespace base { 15 namespace base {
13 16
14 ProcessIterator::ProcessIterator(const ProcessFilter* filter) 17 ProcessIterator::ProcessIterator(const ProcessFilter* filter)
15 : index_of_kinfo_proc_(), 18 : index_of_kinfo_proc_(),
16 filter_(filter) { 19 filter_(filter) {
17 20
18 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, getuid() }; 21 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, getuid() };
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 118 }
116 119
117 bool NamedProcessIterator::IncludeEntry() { 120 bool NamedProcessIterator::IncludeEntry() {
118 if (executable_name_ != entry().exe_file()) 121 if (executable_name_ != entry().exe_file())
119 return false; 122 return false;
120 123
121 return ProcessIterator::IncludeEntry(); 124 return ProcessIterator::IncludeEntry();
122 } 125 }
123 126
124 } // namespace base 127 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698