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

« back to all changes in this revision

Viewing changes to src/core/ngx_cycle.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
 
13
14
 
14
15
 
15
16
#ifndef NGX_CYCLE_POOL_SIZE
16
 
#define NGX_CYCLE_POOL_SIZE     16384
 
17
#define NGX_CYCLE_POOL_SIZE     NGX_DEFAULT_POOL_SIZE
17
18
#endif
18
19
 
19
20
 
29
30
    void                     *data;
30
31
    ngx_shm_t                 shm;
31
32
    ngx_shm_zone_init_pt      init;
32
 
    ngx_str_t                 name;
33
33
    void                     *tag;
34
34
};
35
35
 
39
39
    ngx_pool_t               *pool;
40
40
 
41
41
    ngx_log_t                *log;
42
 
    ngx_log_t                *new_log;
 
42
    ngx_log_t                 new_log;
43
43
 
44
44
    ngx_connection_t        **files;
45
45
    ngx_connection_t         *free_connections;
46
46
    ngx_uint_t                free_connection_n;
47
47
 
 
48
    ngx_queue_t               reusable_connections_queue;
 
49
 
48
50
    ngx_array_t               listening;
49
 
    ngx_array_t               pathes;
 
51
    ngx_array_t               paths;
50
52
    ngx_list_t                open_files;
51
53
    ngx_list_t                shared_memory;
52
54
 
60
62
    ngx_cycle_t              *old_cycle;
61
63
 
62
64
    ngx_str_t                 conf_file;
63
 
    ngx_str_t                 root;
 
65
    ngx_str_t                 conf_param;
 
66
    ngx_str_t                 conf_prefix;
 
67
    ngx_str_t                 prefix;
64
68
    ngx_str_t                 lock_file;
65
69
    ngx_str_t                 hostname;
66
70
};
77
81
 
78
82
     ngx_int_t                rlimit_nofile;
79
83
     ngx_int_t                rlimit_sigpending;
80
 
     size_t                   rlimit_core;
 
84
     off_t                    rlimit_core;
81
85
 
82
86
     int                      priority;
83
87
 
84
88
     ngx_uint_t               cpu_affinity_n;
85
 
     u_long                  *cpu_affinity;
 
89
     uint64_t                *cpu_affinity;
86
90
 
87
91
     char                    *username;
88
92
     ngx_uid_t                user;
116
120
ngx_cycle_t *ngx_init_cycle(ngx_cycle_t *old_cycle);
117
121
ngx_int_t ngx_create_pidfile(ngx_str_t *name, ngx_log_t *log);
118
122
void ngx_delete_pidfile(ngx_cycle_t *cycle);
 
123
ngx_int_t ngx_signal_process(ngx_cycle_t *cycle, char *sig);
119
124
void ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user);
120
125
char **ngx_set_environment(ngx_cycle_t *cycle, ngx_uint_t *last);
121
126
ngx_pid_t ngx_exec_new_binary(ngx_cycle_t *cycle, char *const *argv);
122
 
u_long ngx_get_cpu_affinity(ngx_uint_t n);
 
127
uint64_t ngx_get_cpu_affinity(ngx_uint_t n);
123
128
ngx_shm_zone_t *ngx_shared_memory_add(ngx_conf_t *cf, ngx_str_t *name,
124
129
    size_t size, void *tag);
125
130
 
128
133
extern ngx_array_t            ngx_old_cycles;
129
134
extern ngx_module_t           ngx_core_module;
130
135
extern ngx_uint_t             ngx_test_config;
 
136
extern ngx_uint_t             ngx_quiet_mode;
131
137
#if (NGX_THREADS)
132
138
extern ngx_tls_key_t          ngx_core_tls_key;
133
139
#endif