added QSE_FIO_NOCACHE.

map QSE_FIO_SEQUENTIAL and QSE_FIO_RANDOM to some posix_fadvise flags if available
This commit is contained in:
2011-11-10 13:45:07 +00:00
parent 595aab7555
commit 1e36d2c141
2 changed files with 19 additions and 2 deletions

View File

@ -59,9 +59,10 @@ enum qse_fio_open_flag_t
QSE_FIO_NOSHRD = (1 << 24),
QSE_FIO_NOSHWR = (1 << 25),
/* for WIN32 only. harmless(no effect) when used on other platforms */
/* hints to OS. harmless(no effect) when used on unsupported platforms */
QSE_FIO_RANDOM = (1 << 26), /* hint that access be random */
QSE_FIO_SEQUENTIAL = (1 << 27) /* hint that access is sequential */
QSE_FIO_SEQUENTIAL = (1 << 27), /* hint that access is sequential */
QSE_FIO_NOCACHE = (1 << 28) /* no system I/O cache */
};
enum qse_fio_std_t