Searched refs:limit (Results 1 - 17 of 17) sorted by relevance

/dovecot/src/anvil/
H A Dconnect-limit.h5 void connect_limit_deinit(struct connect_limit **limit);
7 unsigned int connect_limit_lookup(struct connect_limit *limit,
9 void connect_limit_connect(struct connect_limit *limit, pid_t pid,
11 void connect_limit_disconnect(struct connect_limit *limit, pid_t pid,
13 void connect_limit_disconnect_pid(struct connect_limit *limit, pid_t pid);
14 void connect_limit_dump(struct connect_limit *limit, struct ostream *output);
H A Dconnect-limit.c8 #include "connect-limit.h"
41 struct connect_limit *limit; local
43 limit = i_new(struct connect_limit, 1);
44 hash_table_create(&limit->ident_hash, default_pool, 0, str_hash, strcmp);
45 hash_table_create(&limit->ident_pid_hash, default_pool, 0,
47 return limit;
52 struct connect_limit *limit = *_limit; local
55 hash_table_destroy(&limit->ident_hash);
56 hash_table_destroy(&limit->ident_pid_hash);
57 i_free(limit);
60 connect_limit_lookup(struct connect_limit *limit, const char *ident) argument
69 connect_limit_connect(struct connect_limit *limit, pid_t pid, const char *ident) argument
101 connect_limit_ident_hash_unref(struct connect_limit *limit, const char *ident) argument
120 connect_limit_disconnect(struct connect_limit *limit, pid_t pid, const char *ident) argument
143 connect_limit_disconnect_pid(struct connect_limit *limit, pid_t pid) argument
162 connect_limit_dump(struct connect_limit *limit, struct ostream *output) argument
[all...]
/dovecot/src/plugins/quota/
H A Dtest-quota-util.c8 uint64_t limit, initial_size; member in struct:test
23 /* limit, init, diff, new */
35 /* limit, init, diff, new */
61 if (tests[i].initial_size > tests[i].limit)
62 ctx.count_over = tests[i].initial_size - tests[i].limit;
64 ctx.count_ceil = tests[i].limit - tests[i].initial_size;
77 if (tests[i].initial_size > tests[i].limit)
78 ctx.bytes_over = tests[i].initial_size - tests[i].limit;
80 ctx.bytes_ceil = tests[i].limit - tests[i].initial_size;
H A Ddoveadm-quota.c19 uint64_t value, limit; local
25 qret = quota_get_resource(root, "", *res, &value, &limit, &error);
30 doveadm_print_num(limit);
31 if (limit > 0)
32 doveadm_print_num(value*100 / limit);
80 doveadm_print_header("limit", "Limit",
H A Dquota-util.c42 int64_t *limit, const char **error_r)
44 int64_t percentage = *limit;
56 if (limit == &rule->bytes_limit)
58 else if (limit == &rule->count_limit)
67 uint64_t multiply, int64_t *limit,
91 if (quota_rule_parse_percentage(root_set, rule, limit,
99 *limit *= multiply;
149 int64_t *limit; local
154 limit = NULL;
165 *error_r = "Rule limit canno
40 quota_rule_parse_percentage(struct quota_root_settings *root_set, struct quota_rule *rule, int64_t *limit, const char **error_r) argument
65 quota_limit_parse(struct quota_root_settings *root_set, struct quota_rule *rule, const char *unit, uint64_t multiply, int64_t *limit, const char **error_r) argument
[all...]
H A Dquota.c24 #define QUOTA_LIMIT_SET_PATH DICT_PATH_PRIVATE"quota/limit/"
851 *error_r = "Internal quota limit update error";
916 uint64_t bytes_limit, count_limit, current, limit, diff; local
950 &current, &limit, &error);
952 if (limit <= current) {
956 diff = current - limit;
960 diff = limit - current;
982 &current, &limit, &error);
984 if (limit <= current) {
987 diff = current - limit;
1213 uint64_t value, limit; local
[all...]
H A Dquota-imapc.c178 uint64_t value, limit; local
197 str_to_uint64(limit_str, &limit) < 0)
202 refresh_root->bytes_limit = limit * 1024;
205 refresh_root->count_limit = limit;
H A Dquota-maildir.c420 const char *const *limit; local
429 for (limit = t_strsplit(str, ","); *limit != NULL; limit++) {
430 if (str_parse_ullong(*limit, &value, &pos) < 0) {
/dovecot/src/lib-charset/
H A Dtest-charset.c80 size_t pos, left, limit, len; local
94 for (pos = 0, limit = 1; limit <= len; pos += left, limit++) {
95 left = limit - pos;
/dovecot/src/auth/
H A Dpassdb-cache.c183 rlim_t limit; local
188 if (restrict_get_process_size(&limit) == 0 &&
189 set->cache_size > limit) {
191 "process VSZ limit (%luM)",
193 (unsigned long)(limit/1024/1024));
/dovecot/src/indexer/
H A Dworker-pool.c106 unsigned int limit; local
114 if (worker_connection_get_process_limit(list->conn, &limit))
115 return limit;
/dovecot/src/lib-fts/
H A Dfts-icu.c102 int32_t avail_uchars, limit = src_len; local
113 avail_uchars, 0, &limit, &err);
118 limit = utf16_len = src_len;
124 avail_uchars, 0, &limit, &err);
/dovecot/src/master/
H A Dservice-monitor.c239 unsigned int limit; local
247 limit = service->process_limit;
251 limit = 1;
254 limit = service->client_limit;
258 service->set->name, limit_name, limit);
262 /* reached process limit, notify processes that they
264 reach connection limit */
275 because of the limit, rather than because the service
304 service_monitor_start_count(struct service *service, unsigned int limit) argument
313 if (count > limit)
[all...]
H A Dservice-process.c321 rlim_t limit; local
325 restrict_get_process_limit(&limit) == 0) {
327 (unsigned long long)limit);
/dovecot/src/plugins/imap-quota/
H A Dimap-quota-plugin.c40 uint64_t value, limit; local
52 ret = quota_get_resource(root, "", *list, &value, &limit, &error);
62 value, limit);
/dovecot/src/plugins/quota-clone/
H A Dquota-clone-plugin.c49 uint64_t bytes_value, count_value, limit; local
65 &bytes_value, &limit, &error);
73 &count_value, &limit, &error);
/dovecot/src/config/
H A Ddoveconf.c607 unsigned int n, limit; local
651 for (n = 0, limit = 1; n < fmt.numcount; n++)
652 limit *= 10;
654 hash_table_create_direct(&hosts, default_pool, limit);
655 for (n = 0; n < limit; n++) {

Completed in 45 milliseconds