page_size_nacl.cc 360 B

12345678910111213141516
  1. // Copyright 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "base/process/process_metrics.h"
  5. #include <stddef.h>
  6. #include <unistd.h>
  7. namespace base {
  8. size_t GetPageSize() {
  9. return static_cast<size_t>(getpagesize());
  10. }
  11. } // namespace base