OLD | NEW |
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_metrics.h" | 5 #include "base/process/process_metrics.h" |
6 | 6 |
7 #include <mach/task.h> | 7 #include <mach/task.h> |
8 | 8 |
9 namespace base { | 9 namespace base { |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 if (max_fds > INT_MAX) | 58 if (max_fds > INT_MAX) |
59 max_fds = INT_MAX; | 59 max_fds = INT_MAX; |
60 | 60 |
61 return static_cast<size_t>(max_fds); | 61 return static_cast<size_t>(max_fds); |
62 } | 62 } |
63 | 63 |
64 void SetFdLimit(unsigned int max_descriptors) { | 64 void SetFdLimit(unsigned int max_descriptors) { |
65 // Unimplemented. | 65 // Unimplemented. |
66 } | 66 } |
67 | 67 |
| 68 size_t GetPageSize() { |
| 69 return getpagesize(); |
| 70 } |
| 71 |
68 } // namespace base | 72 } // namespace base |
OLD | NEW |