| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef BASE_LINUX_UTIL_H_ | 5 #ifndef BASE_LINUX_UTIL_H_ |
| 6 #define BASE_LINUX_UTIL_H_ | 6 #define BASE_LINUX_UTIL_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include <stdint.h> | 8 #include <stdint.h> |
| 10 #include <sys/types.h> | 9 #include <sys/types.h> |
| 11 | 10 |
| 12 #include <string> | 11 #include <string> |
| 13 | 12 |
| 14 #include "base/base_export.h" | 13 #include "base/base_export.h" |
| 15 | 14 |
| 16 namespace base { | 15 namespace base { |
| 17 | 16 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 44 // |expected_data|, where N is the length of |expected_data|. | 43 // |expected_data|, where N is the length of |expected_data|. |
| 45 // Returns the thread id or -1 on error. If |syscall_supported| is | 44 // Returns the thread id or -1 on error. If |syscall_supported| is |
| 46 // set to false the kernel does not support syscall in procfs. | 45 // set to false the kernel does not support syscall in procfs. |
| 47 BASE_EXPORT pid_t FindThreadIDWithSyscall(pid_t pid, | 46 BASE_EXPORT pid_t FindThreadIDWithSyscall(pid_t pid, |
| 48 const std::string& expected_data, | 47 const std::string& expected_data, |
| 49 bool* syscall_supported); | 48 bool* syscall_supported); |
| 50 | 49 |
| 51 } // namespace base | 50 } // namespace base |
| 52 | 51 |
| 53 #endif // BASE_LINUX_UTIL_H_ | 52 #endif // BASE_LINUX_UTIL_H_ |
| OLD | NEW |