folly/folly/File.cpp

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <folly/File.h>

#include <folly/Exception.h>
#include <folly/FileUtil.h>
#include <folly/ScopeGuard.h>
#include <folly/portability/Fcntl.h>
#include <folly/portability/FmtCompile.h>
#include <folly/portability/SysFile.h>
#include <folly/portability/Unistd.h>

#include <system_error>

#include <glog/logging.h>

namespace folly {

File::File(int fd, bool ownsFd) noexcept :{}

File::File(const char* name, int flags, mode_t mode)
    :{}

File::File(const std::string& name, int flags, mode_t mode)
    :{}

File::File(StringPiece name, int flags, mode_t mode)
    :{}

File::File(File&& other) noexcept :{}

File& File::operator=(File&& other) {}

File::~File() {}

/* static */ File File::temporary() {}

int File::release() noexcept {}

void File::swap(File& other) noexcept {}

void swap(File& a, File& b) noexcept {}

File File::dup() const {}

File File::dupCloseOnExec() const {}

void File::close() {}

bool File::closeNoThrow() {}

void File::lock() {}
bool File::try_lock() {}
void File::lock_shared() {}
bool File::try_lock_shared() {}

void File::doLock(int op) {}

bool File::doTryLock(int op) {}

void File::unlock() {}
void File::unlock_shared() {}

} // namespace folly