mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
hide fs::fadvise as it's not used directly
This commit is contained in:
parent
c4ad239171
commit
2fbeb67dd9
4 changed files with 28 additions and 32 deletions
|
|
@ -22,6 +22,30 @@
|
|||
# include "fs_base_fadvise_unsupported.icpp"
|
||||
#endif
|
||||
|
||||
#ifndef POSIX_FADV_NORMAL
|
||||
# define POSIX_FADV_NORMAL 0
|
||||
#endif
|
||||
|
||||
#ifndef POSIX_FADV_RANDOM
|
||||
# define POSIX_FADV_RANDOM 1
|
||||
#endif
|
||||
|
||||
#ifndef POSIX_FADV_SEQUENTIAL
|
||||
# define POSIX_FADV_SEQUENTIAL 2
|
||||
#endif
|
||||
|
||||
#ifndef POSIX_FADV_WILLNEED
|
||||
# define POSIX_FADV_WILLNEED 3
|
||||
#endif
|
||||
|
||||
#ifndef POSIX_FADV_DONTNEED
|
||||
# define POSIX_FADV_DONTNEED 4
|
||||
#endif
|
||||
|
||||
#ifndef POSIX_FADV_NOREUSE
|
||||
# define POSIX_FADV_NOREUSE 5
|
||||
#endif
|
||||
|
||||
namespace fs
|
||||
{
|
||||
int
|
||||
|
|
|
|||
|
|
@ -14,41 +14,11 @@
|
|||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __FS_FADVISE_HPP__
|
||||
#define __FS_FADVISE_HPP__
|
||||
|
||||
#ifndef POSIX_FADV_NORMAL
|
||||
# define POSIX_FADV_NORMAL 0
|
||||
#endif
|
||||
|
||||
#ifndef POSIX_FADV_RANDOM
|
||||
# define POSIX_FADV_RANDOM 1
|
||||
#endif
|
||||
|
||||
#ifndef POSIX_FADV_SEQUENTIAL
|
||||
# define POSIX_FADV_SEQUENTIAL 2
|
||||
#endif
|
||||
|
||||
#ifndef POSIX_FADV_WILLNEED
|
||||
# define POSIX_FADV_WILLNEED 3
|
||||
#endif
|
||||
|
||||
#ifndef POSIX_FADV_DONTNEED
|
||||
# define POSIX_FADV_DONTNEED 4
|
||||
#endif
|
||||
|
||||
#ifndef POSIX_FADV_NOREUSE
|
||||
# define POSIX_FADV_NOREUSE 5
|
||||
#endif
|
||||
#ifndef __FS_BASE_FADVISE_HPP__
|
||||
#define __FS_BASE_FADVISE_HPP__
|
||||
|
||||
namespace fs
|
||||
{
|
||||
int
|
||||
fadvise(const int fd,
|
||||
const off_t offset,
|
||||
const off_t len,
|
||||
const int advice);
|
||||
|
||||
int
|
||||
fadvise_dontneed(const int fd,
|
||||
const off_t offset = 0,
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
namespace fs
|
||||
{
|
||||
static
|
||||
int
|
||||
fadvise(const int fd,
|
||||
const off_t offset,
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
namespace fs
|
||||
{
|
||||
static
|
||||
int
|
||||
fadvise(const int fd,
|
||||
const off_t offset,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue