/*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2012-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*/
-#ifndef FOLLY_IO_HUGEPAGES_H_
-#define FOLLY_IO_HUGEPAGES_H_
+#pragma once
#include <sys/stat.h>
#include <sys/types.h>
#include <cstddef>
#include <string>
-#include <unistd.h>
#include <utility>
#include <vector>
#include <boost/operators.hpp>
-#include "folly/Range.h"
-#include "folly/experimental/io/FsUtil.h"
+#include <folly/Range.h>
+#include <folly/experimental/io/FsUtil.h>
+#include <folly/portability/Unistd.h>
namespace folly {
struct HugePageSize : private boost::totally_ordered<HugePageSize> {
- explicit HugePageSize(size_t s) : size(s) { }
+ explicit HugePageSize(size_t s) : size(s) {}
fs::path filePath(const fs::path& relpath) const {
return mountPoint / relpath;
*/
const HugePageSize* getHugePageSizeForDevice(dev_t device);
-} // namespace folly
-
-#endif /* FOLLY_IO_HUGEPAGES_H_ */
-
+} // namespace folly