~ubuntu-branches/ubuntu/trusty/nginx/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/ngx_open_file_cache.h

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2013-04-25 12:51:45 UTC
  • mfrom: (1.3.28)
  • mto: (1.3.29) (15.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 64.
  • Revision ID: package-import@ubuntu.com-20130425125145-ugl0wor6bq0u5eae
Tags: upstream-1.4.0
ImportĀ upstreamĀ versionĀ 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
3
 * Copyright (C) Igor Sysoev
 
4
 * Copyright (C) Nginx, Inc.
4
5
 */
5
6
 
6
7
 
12
13
#define _NGX_OPEN_FILE_CACHE_H_INCLUDED_
13
14
 
14
15
 
 
16
#define NGX_OPEN_FILE_DIRECTIO_OFF  NGX_MAX_OFF_T_VALUE
 
17
 
 
18
 
15
19
typedef struct {
16
20
    ngx_fd_t                 fd;
17
21
    ngx_file_uniq_t          uniq;
18
22
    time_t                   mtime;
19
23
    off_t                    size;
 
24
    off_t                    fs_size;
 
25
    off_t                    directio;
 
26
    size_t                   read_ahead;
 
27
 
20
28
    ngx_err_t                err;
 
29
    char                    *failed;
21
30
 
22
31
    time_t                   valid;
23
32
 
24
33
    ngx_uint_t               min_uses;
25
34
 
 
35
#if (NGX_HAVE_OPENAT)
 
36
    size_t                   disable_symlinks_from;
 
37
    unsigned                 disable_symlinks:2;
 
38
#endif
 
39
 
26
40
    unsigned                 test_dir:1;
 
41
    unsigned                 test_only:1;
 
42
    unsigned                 log:1;
27
43
    unsigned                 errors:1;
28
44
    unsigned                 events:1;
29
45
 
31
47
    unsigned                 is_file:1;
32
48
    unsigned                 is_link:1;
33
49
    unsigned                 is_exec:1;
 
50
    unsigned                 is_directio:1;
34
51
} ngx_open_file_info_t;
35
52
 
36
53
 
52
69
 
53
70
    uint32_t                 uses;
54
71
 
 
72
#if (NGX_HAVE_OPENAT)
 
73
    size_t                   disable_symlinks_from;
 
74
    unsigned                 disable_symlinks:2;
 
75
#endif
 
76
 
55
77
    unsigned                 count:24;
56
78
    unsigned                 close:1;
57
79
    unsigned                 use_event:1;
60
82
    unsigned                 is_file:1;
61
83
    unsigned                 is_link:1;
62
84
    unsigned                 is_exec:1;
 
85
    unsigned                 is_directio:1;
63
86
 
64
87
    ngx_event_t             *event;
65
88
};