]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/port/port_dirent.h
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
6 // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
7 // Use of this source code is governed by a BSD-style license that can be
8 // found in the LICENSE file. See the AUTHORS file for names of contributors.
10 // See port_example.h for documentation for the following types/functions.
14 #ifdef ROCKSDB_PLATFORM_POSIX
16 #include <sys/types.h>
19 namespace ROCKSDB_NAMESPACE
{
23 char d_name
[_MAX_PATH
]; /* filename */
28 DIR* opendir(const char* name
);
30 dirent
* readdir(DIR* dirp
);
32 int closedir(DIR* dirp
);
42 } // namespace ROCKSDB_NAMESPACE