proxygen
HugePageUtil.cpp File Reference
#include <iostream>
#include <stdexcept>
#include <folly/Format.h>
#include <folly/Range.h>
#include <folly/experimental/io/HugePages.h>
#include <folly/portability/GFlags.h>
#include <folly/system/MemoryMapping.h>

Go to the source code of this file.

Functions

 DEFINE_bool (cp, false,"Copy file")
 
int main (int argc, char *argv[])
 

Function Documentation

DEFINE_bool ( cp  ,
false  ,
"Copy file"   
)
int main ( int  argc,
char *  argv[] 
)

Definition at line 61 of file HugePageUtil.cpp.

References folly::copy(), and bm::list.

61  {
62  gflags::ParseCommandLineFlags(&argc, &argv, true);
63  if (FLAGS_cp) {
64  if (argc != 3) {
65  usage(argv[0]);
66  }
67  copy(argv[1], argv[2]);
68  } else {
69  if (argc != 1) {
70  usage(argv[0]);
71  }
72  list();
73  }
74  return 0;
75 }
constexpr std::decay< T >::type copy(T &&value) noexcept(noexcept(typename std::decay< T >::type(std::forward< T >(value))))
Definition: Utility.h:72
char ** argv
Encoder::MutableCompressedList list