OLD | NEW |
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 "base/linux_util.h" | 5 #include "base/linux_util.h" |
6 | 6 |
7 #include <dirent.h> | 7 #include <dirent.h> |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <fcntl.h> | 9 #include <fcntl.h> |
10 #include <glib.h> | 10 #include <glib.h> |
11 #include <stdlib.h> | 11 #include <stdlib.h> |
12 #include <sys/stat.h> | 12 #include <sys/stat.h> |
13 #include <sys/stat.h> | 13 #include <sys/stat.h> |
14 #include <sys/types.h> | 14 #include <sys/types.h> |
15 #include <unistd.h> | 15 #include <unistd.h> |
16 | 16 |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "base/command_line.h" | 19 #include "base/command_line.h" |
20 #include "base/env_var.h" | |
21 #include "base/file_util.h" | 20 #include "base/file_util.h" |
22 #include "base/lock.h" | 21 #include "base/lock.h" |
23 #include "base/path_service.h" | 22 #include "base/path_service.h" |
24 #include "base/process_util.h" | 23 #include "base/process_util.h" |
25 #include "base/singleton.h" | 24 #include "base/singleton.h" |
26 #include "base/scoped_ptr.h" | 25 #include "base/scoped_ptr.h" |
27 #include "base/string_util.h" | 26 #include "base/string_util.h" |
28 | 27 |
29 namespace { | 28 namespace { |
30 | 29 |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 281 |
283 if (0 == strncmp(expected_data.c_str(), syscall_data.get(), | 282 if (0 == strncmp(expected_data.c_str(), syscall_data.get(), |
284 expected_data.length())) { | 283 expected_data.length())) { |
285 return current_tid; | 284 return current_tid; |
286 } | 285 } |
287 } | 286 } |
288 return -1; | 287 return -1; |
289 } | 288 } |
290 | 289 |
291 } // namespace base | 290 } // namespace base |
OLD | NEW |