cmake HAVE_POSIX_FADVISE examples

swiftlang/swift-corelibs-libdispatch CMakeLists.txt :191

check_function_exists(posix_fadvise HAVE_POSIX_FADVISE)

etternagame/etterna src/Etterna/CMakeListsLegacy.cmake :30

check_symbol_exists(posix_fadvise fcntl.h HAVE_POSIX_FADVISE)

ceph/ceph cmake/modules/CephChecks.cmake :14

check_function_exists(posix_fadvise HAVE_POSIX_FADVISE)

steineggerlab/foldmason lib/foldseek/lib/mmseqs/src/CMakeLists.txt :85

check_cxx_source_compiles("
        #include <stdlib.h>
        #include <fcntl.h>
        #include <stdio.h>

        int main() {
          FILE* tmpf = tmpfile();
          int input_desc = fileno(tmpf);
          int test = posix_fadvise(input_desc, 0, 0, POSIX_FADV_SEQUENTIAL);
          fclose(tmpf);
          return 0;
        }"
        HAVE_POSIX_FADVISE)

steineggerlab/foldmason lib/foldseek/lib/mmseqs/src/CMakeLists.txt :99

target_compile_definitions(mmseqs-framework PUBLIC -DHAVE_POSIX_FADVISE=1)

google/glog CMakeLists.txt :149

check_cxx_symbol_exists (posix_fadvise fcntl.h HAVE_POSIX_FADVISE)

MiKTeX/miktex CMakeLists.txt :1333

check_function_exists(posix_fadvise HAVE_POSIX_FADVISE)

reverbrain/eblob CMakeLists.txt :158

check_symbol_exists(posix_fadvise "fcntl.h" HAVE_POSIX_FADVISE)

reverbrain/eblob CMakeLists.txt :160

add_definitions(-DHAVE_POSIX_FADVISE)

apache/trafficserver CMakeLists.txt :397

check_symbol_exists(posix_fadvise fcntl.h HAVE_POSIX_FADVISE)

Sneeds-Feed-and-Seed/sneedacity CMakeLists.txt :426

check_symbol_exists( posix_fadvise "fcntl.h" HAVE_POSIX_FADVISE )

bareos/bareos core/cmake/BareosCheckFunctions.cmake :75

check_function_exists(posix_fadvise HAVE_POSIX_FADVISE)