fork of https://github.com/oxigraph/rocksdb and https://github.com/facebook/rocksdb for nextgraph and oxigraph
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.0 KiB
45 lines
1.0 KiB
9 years ago
|
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
|
||
8 years ago
|
// This source code is licensed under both the GPLv2 (found in the
|
||
|
// COPYING file in the root directory) and Apache 2.0 License
|
||
|
// (found in the LICENSE.Apache file in the root directory).
|
||
10 years ago
|
//
|
||
|
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file. See the AUTHORS file for names of contributors.
|
||
|
//
|
||
|
// See port_example.h for documentation for the following types/functions.
|
||
|
|
||
6 years ago
|
#pragma once
|
||
10 years ago
|
|
||
|
#ifdef ROCKSDB_PLATFORM_POSIX
|
||
10 years ago
|
#include <dirent.h>
|
||
|
#include <sys/types.h>
|
||
10 years ago
|
#elif defined(OS_WIN)
|
||
|
|
||
|
namespace rocksdb {
|
||
|
namespace port {
|
||
|
|
||
|
struct dirent {
|
||
10 years ago
|
char d_name[_MAX_PATH]; /* filename */
|
||
10 years ago
|
};
|
||
|
|
||
|
struct DIR;
|
||
|
|
||
|
DIR* opendir(const char* name);
|
||
|
|
||
|
dirent* readdir(DIR* dirp);
|
||
|
|
||
|
int closedir(DIR* dirp);
|
||
|
|
||
10 years ago
|
} // namespace port
|
||
10 years ago
|
|
||
|
using port::dirent;
|
||
|
using port::DIR;
|
||
|
using port::opendir;
|
||
|
using port::readdir;
|
||
|
using port::closedir;
|
||
|
|
||
10 years ago
|
} // namespace rocksdb
|
||
10 years ago
|
|
||
10 years ago
|
#endif // OS_WIN
|