cmake HAVE_FALLOCATE examples

speedb-io/speedb CMakeLists.txt :559

CHECK_CXX_SOURCE_COMPILES("
#include <fcntl.h>
#include <linux/falloc.h>
int main() {
 int fd = open(\"/dev/null\", 0);
 fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, 1024);
}
" HAVE_FALLOCATE)

percona/percona-server cmake/compiler_features.cmake :139

CHECK_CXX_SOURCE_RUNS("
  #include <fcntl.h>
  #include <linux/falloc.h>
  int main() {
    int fd = open(\"/dev/null\", 0);
    fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, 1024);
    return 0;
  }
  " HAVE_FALLOCATE)

logicalclocks/rondb configure.cmake :239

CHECK_FUNCTION_EXISTS (fallocate HAVE_FALLOCATE)

bytedance/terarkdb CMakeLists.txt :505

CHECK_CXX_SOURCE_COMPILES("
#include <fcntl.h>
#include <linux/falloc.h>
int main() {
 int fd = open(\"/dev/null\", 0);
 fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, 1024);
}
" HAVE_FALLOCATE)

SpanDB/SpanDB CMakeLists.txt :439

CHECK_CXX_SOURCE_COMPILES("
#include <fcntl.h>
#include <linux/falloc.h>
int main() {
 int fd = open(\"/dev/null\", 0);
 fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, 1024);
}
" HAVE_FALLOCATE)

steemit/steem libraries/vendor/rocksdb/CMakeLists.txt :417

CHECK_CXX_SOURCE_COMPILES("
#include <fcntl.h>
#include <linux/falloc.h>
int main() {
 int fd = open(\"/dev/null\", 0);
 fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, 1024);
}
" HAVE_FALLOCATE)

GreatSQL/GreatSQL cmake/compiler_features.cmake :161

CHECK_CXX_SOURCE_RUNS("
#include <fcntl.h>
#include <linux/falloc.h>
int main() {
  int fd = open(\"/dev/null\", 0);
  fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, 1024);
  return 0;
}
" HAVE_FALLOCATE)

GreatSQL/GreatSQL storage/rocksdb/CMakeLists.txt :357

CHECK_FUNCTION_EXISTS(fallocate HAVE_FALLOCATE)

Tencent/Tendis src/thirdparty/rocksdb-5.13.4/rocksdb/CMakeLists.txt :377

CHECK_CXX_SOURCE_COMPILES("
#include <fcntl.h>
#include <linux/falloc.h>
int main() {
 int fd = open(\"/dev/null\", 0);
 fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, 1024);
}
" HAVE_FALLOCATE)

facebook/rocksdb CMakeLists.txt :521

CHECK_CXX_SOURCE_COMPILES("
#include <fcntl.h>
#include <linux/falloc.h>
int main() {
 int fd = open(\"/dev/null\", 0);
 fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, 1024);
}
" HAVE_FALLOCATE)

ververica/ForSt CMakeLists.txt :501

CHECK_CXX_SOURCE_COMPILES("
#include <fcntl.h>
#include <linux/falloc.h>
int main() {
 int fd = open(\"/dev/null\", 0);
 fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, 1024);
}
" HAVE_FALLOCATE)

Tencent/wwsearch deps/rocksdb/CMakeLists.txt :399

CHECK_CXX_SOURCE_COMPILES("
#include <fcntl.h>
#include <linux/falloc.h>
int main() {
 int fd = open(\"/dev/null\", 0);
 fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE, 0, 1024);
}
" HAVE_FALLOCATE)

topling/toplingdb CMakeLists.txt :519

CHECK_CXX_SOURCE_COMPILES("
#include <fcntl.h>
#include <linux/falloc.h>
int main() {
 int fd = open(\"/dev/null\", 0);
 fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, 1024);
}
" HAVE_FALLOCATE)

percona/percona-xtradb-cluster cmake/compiler_features.cmake :139

CHECK_CXX_SOURCE_RUNS("
  #include <fcntl.h>
  #include <linux/falloc.h>
  int main() {
    int fd = open(\"/dev/null\", 0);
    fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, 1024);
    return 0;
  }
  " HAVE_FALLOCATE)

facebook/mysql-5.6 cmake/compiler_features.cmake :139

CHECK_CXX_SOURCE_RUNS("
  #include <fcntl.h>
  #include <linux/falloc.h>
  int main() {
    int fd = open(\"/dev/null\", 0);
    fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, 1024);
    return 0;
  }
  " HAVE_FALLOCATE)

ByConity/ByConity contrib/rocksdb-cmake/CMakeLists.txt :165

CHECK_CXX_SOURCE_COMPILES("
#include <fcntl.h>
#include <linux/falloc.h>
int main() {
 int fd = open(\"/dev/null\", 0);
 fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, 1024);
}
" HAVE_FALLOCATE)

amule-project/amule cmake/glib21.cmake :6

check_function_exists (fallocate HAVE_FALLOCATE)