xref: /unit/auto/files (revision 0:a63ceefd6ab0)
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6# Linux 2.6, FreeBSD 8.2, 9.1, Solaris 11.
7
8nxt_feature="posix_fadvise()"
9nxt_feature_name=NXT_HAVE_POSIX_FADVISE
10nxt_feature_run=
11nxt_feature_incs=
12nxt_feature_libs=
13nxt_feature_test="#include <fcntl.h>
14
15                  int main() {
16                      (void) posix_fadvise(0, 0, 0, POSIX_FADV_WILLNEED);
17                      return 0;
18                  }"
19. auto/feature
20
21
22# FreeBSD 8.0.
23
24nxt_feature="fcntl(F_READAHEAD)"
25nxt_feature_name=NXT_HAVE_READAHEAD
26nxt_feature_run=
27nxt_feature_incs=
28nxt_feature_libs=
29nxt_feature_test="#include <fcntl.h>
30
31                  int main() {
32                      (void) fcntl(0, F_READAHEAD, 1024);
33                      return 0;
34                  }"
35. auto/feature
36
37
38# MacOSX, FreeBSD 8.0.
39
40nxt_feature="fcntl(F_RDAHEAD)"
41nxt_feature_name=NXT_HAVE_RDAHEAD
42nxt_feature_run=
43nxt_feature_incs=
44nxt_feature_libs=
45nxt_feature_test="#include <fcntl.h>
46
47                  int main() {
48                      (void) fcntl(0, F_RDAHEAD, 1);
49                      return 0;
50                  }"
51. auto/feature
52