fadvise.h 1.3 KB
Newer Older
S
Shengliang Guan 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
/*****************************************************************************\
*                                                                             *
*   Filename:	    fadvise.h						      *
*                                                                             *
*   Description:    WIN32 makeshift version of Coreutils' fadvise.h.          *
*                                                                             *
*   Notes:	    Gives hints to the kernel about future uses of a file.    *
*                   Define constants, and replace functions by void macros.   *
*									      *
*   History:								      *
*    2012-10-17 JFL Created this file.                                        *
*									      *
*          Copyright 2016 Hewlett Packard Enterprise Development LP          *
* Licensed under the Apache 2.0 license - www.apache.org/licenses/LICENSE-2.0 *
\*****************************************************************************/

enum fadvice_t { 
  FADVISE_NORMAL,
  FADVISE_SEQUENTIAL,
  FADVISE_NOREUSE,
  FADVISE_DONTNEED, 
  FADVISE_WILLNEED,
  FADVISE_RANDOM 
};
 
/* void	fdadvise(int fd, off_t offset, off_t len, fadvice_t advice) */
#define fdadvise(fd, offset, len, advice)

/* void fadvise(FILE *fp, fadvice_t advice) */
#define fadvise(fp, advice)