folly: File explicit ctor
[folly.git] / folly / MemoryMapping.h
index 3a355892ed01397808a43e1ee9248ca95a941ac8..85f804dadd006d5cbf746ccd2f773949fa0d6712 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2013 Facebook, Inc.
+ * Copyright 2014 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -56,6 +56,14 @@ class MemoryMapping : boost::noncopyable {
                          off_t offset=0,
                          off_t length=-1);
 
+  explicit MemoryMapping(const char* name,
+                         off_t offset=0,
+                         off_t length=-1);
+
+  explicit MemoryMapping(int fd,
+                         off_t offset=0,
+                         off_t length=-1);
+
   virtual ~MemoryMapping();
 
   /**