/*
- * 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.
* Create a File object from an existing file descriptor.
* Takes ownership of the file descriptor if ownsFd is true.
*/
- /* implicit */ File(int fd,
- bool ownsFd = false);
+ explicit File(int fd, bool ownsFd = false);
/**
* Open and create a file object. Throws on error.
*/
- /* implicit */ File(const char* name,
- int flags = O_RDONLY,
- mode_t mode = 0644);
+ explicit File(const char* name, int flags = O_RDONLY, mode_t mode = 0666);
~File();