Searched defs:size (Results 1 - 25 of 46) sorted by relevance

12

/httpd/modules/lua/
H A Dlua_passwd.c47 static int generate_salt(char *s, size_t size, const char **errstr, argument
57 n = (size * 6 + 7)/8;
69 while (size > 0) {
75 size--;
H A Dlua_request.h52 size_t size; member in struct:__anon212
H A Dlua_vmprep.h110 apr_off_t size; member in struct:__anon216
/httpd/modules/filters/
H A Dmod_data.c61 * length based on the increase in size expected from the base64 conversion.
131 apr_size_t size; local
192 /* size will never be more than 6000 bytes */
193 if (APR_SUCCESS == (rv = apr_bucket_read(e, &data, &size,
197 while (size && ctx->count && ctx->count < sizeof(ctx->overflow)) {
199 size--;
209 tail = size % sizeof(ctx->overflow);
210 size -= tail;
211 if (size) {
213 (const unsigned char *) data, size);
[all...]
H A Dmod_buffer.c40 apr_off_t size; /* size of the buffer */ member in struct:buffer_conf
41 int size_set; /* has the size been set */
93 apr_size_t size; local
139 if (len > ctx->conf->size) {
153 * size, regardless of the size of the data placed into them.
158 if (APR_SUCCESS == (rv = apr_bucket_read(e, &data, &size,
170 if (APR_BUCKET_BUFF_SIZE != size) {
174 apr_brigade_write(ctx->bb, NULL, NULL, data, size);
222 apr_size_t size = 0; local
[all...]
H A Dmod_sed.c136 int size = ctx->curoutbuf - ctx->outbuf; local
139 if ((ctx->outbuf == NULL) || (size <=0))
141 out = apr_pmemdup(ctx->tpool, ctx->outbuf, size);
142 status = append_bucket(ctx, out, size);
173 /* if size is bigger than the allocated buffer directly add to output
H A Dregexp.h62 int size; member in struct:_step_vars_storage
103 #define SEDERR_TSNTSS "transform strings not the same size: %s"
/httpd/os/win32/
H A Dap_regkey.c189 apr_size_t size = 0; local
204 /* Read to NULL buffer to determine value size */
205 rc = RegQueryValueExW(key->hkey, wvalname, 0, &type, NULL, (DWORD *)&size);
209 if ((size < 2) || (type != REG_SZ && type != REG_EXPAND_SZ)) {
213 wvalue = apr_palloc(pool, size);
214 /* Read value based on size query above */
216 (LPBYTE)wvalue, (DWORD *)&size);
222 size = ExpandEnvironmentStringsW(wvalue, zbuf, 0);
223 if (size) {
225 /* The size returne
293 apr_size_t size = strlen(value) + 1; local
456 apr_size_t size = 0; local
559 apr_size_t size = eltsize; local
[all...]
/httpd/server/
H A Dutil_debug.c230 AP_DECLARE(void *) ap_palloc_debug(apr_pool_t *p, apr_size_t size) argument
233 return memset(apr_palloc(p, size), 0xEE, size);
239 AP_DECLARE(void *) ap_pcalloc_debug(apr_pool_t *p, apr_size_t size) argument
241 return memset(apr_palloc(p, size), 0, size);
H A Dutil_filter.c68 int size; member in struct:filter_trie_node
80 if (parent->nchildren == parent->size) {
82 parent->size *= 2;
83 new = (filter_trie_child_ptr *)apr_palloc(p, parent->size *
137 new_node->size = TRIE_INITIAL_SIZE;
139 new_node->size * sizeof(filter_trie_child_ptr));
/httpd/support/
H A Dpasswd_common.c71 static int generate_salt(char *s, size_t size, const char **errstr, argument
81 n = (size * 6 + 7)/8;
93 while (size > 0) {
99 size--;
/httpd/modules/cache/
H A Dcache_storage.c68 * The size of the entity is provided so that a cache module can
70 * If the size is unknown, a size of -1 should be set.
73 apr_off_t size, apr_bucket_brigade *in)
97 switch (rv = list->provider->create_entity(h, r, cache->key, size, in)) {
72 cache_create_entity(cache_request_rec *cache, request_rec *r, apr_off_t size, apr_bucket_brigade *in) argument
H A Dmod_socache_dbm.c206 "data size too large for DBM socache: %d >= %d",
213 "data size too large for DBM socache: %d >= %d",
469 long size; local
474 size = 0;
494 size += dbmval.dsize;
497 if (size > 0 && elts > 0)
498 avg = (int)(size / (long)elts);
502 ap_rprintf(r, "cache type: <b>DBM</b>, maximum size: <b>unlimited</b><br>");
503 ap_rprintf(r, "current entries: <b>%d</b>, current size: <b>%ld</b> bytes<br>", elts, size);
[all...]
H A Dcache_util.h230 apr_off_t size; /* the content length from the headers, or -1 */ member in struct:__anon84
/httpd/modules/ldap/
H A Dutil_ldap_cache.c121 cache_node->size,
421 apr_size_t size; local
429 size = APR_ALIGN_DEFAULT(st->cache_bytes);
431 result = apr_shm_create(&st->cache_shm, size, st->cache_file, st->pool);
436 /* Determine the usable size of the shm segment. */
437 size = apr_shm_size_get(st->cache_shm);
441 apr_shm_baseaddr_get(st->cache_shm), size,
H A Dutil_ldap_cache.h44 unsigned long size; /* Size of cache array */ member in struct:util_ald_cache
60 obvious: it won't be 3/4 the size of the cache if
180 void *util_ald_alloc(util_ald_cache_t *cache, unsigned long size);
H A Dutil_ldap_cache_mgr.c98 void *util_ald_alloc(util_ald_cache_t *cache, unsigned long size) argument
100 if (0 == size)
105 apr_rmm_off_t block = apr_rmm_calloc(cache->rmm_addr, size);
110 return (void *)calloc(sizeof(char), size);
113 return (void *)calloc(sizeof(char), size);
245 for (i=0; i < cache->size; ++i) {
361 cache->size = cache_size / 3;
362 if (cache->size < 64)
363 cache->size = 64;
364 for (i = 0; primes[i] && primes[i] < cache->size;
[all...]
/httpd/modules/mappers/
H A Dmod_vhost_alias.c238 char **pdest, int size)
240 /* XXX: what if size > HUGE_STRING_LEN? */
241 if (*pdest + size > buf + HUGE_STRING_LEN) {
237 vhost_alias_checkspace(request_rec *r, char *buf, char **pdest, int size) argument
/httpd/modules/proxy/
H A Dajp_msg.c143 * Check a new AJP Message by looking at signature and return its size
501 apr_uint16_t size; local
505 status = ajp_msg_get_uint16(msg, &size);
508 if ((status != APR_SUCCESS) || (size + start > msg->max_size)) {
512 msg->pos += (apr_size_t)size;
531 apr_uint16_t size; local
535 status = ajp_msg_get_uint16(msg, &size);
539 if ((status != APR_SUCCESS) || (size + start > msg->max_size)) {
542 msg->pos += (apr_size_t)size; /* only bytes, no trailer */
545 *rvalue_len = size;
559 ajp_msg_create(apr_pool_t *pool, apr_size_t size, ajp_msg_t **rmsg) argument
[all...]
H A Dmod_proxy_ajp.c176 apr_uint16_t size; local
467 status = ajp_parse_data(r, conn->data, &size, &send_body_chunk_buff);
476 if (size == 0) {
501 e = apr_bucket_transient_create(send_body_chunk_buff, size,
H A Dmod_proxy_balancer.c1628 ap_rputs("<tr><td>Sticky Session:</td><td><input name='b_ss' id='b_ss' size=64 type=text ", r);
1638 ap_rputs("<tr><td>Add New Worker:</td><td><input name='b_nwrkr' id='b_nwrkr' size=32 type=text>"
1668 apr_size_t size; local
1670 storage->attach(&(conf->bslot), conf->id, &size, &num, p);
/httpd/modules/slotmem/
H A Dmod_slotmem_plain.c28 apr_size_t size; /* size of each memory slot */ member in struct:ap_slotmem_instance_t
61 ptr += mem->size;
106 res->size = item_size;
139 *item_size = next->size;
159 ptr = (char *)score->base + score->size * id;
236 return slot->size;
H A Dmod_slotmem_shm.c52 apr_size_t size; /* size of each memory slot */ member in struct:__anon314
168 nbytes = (slotmem->desc.size * slotmem->desc.num) +
182 static apr_status_t restore_slotmem(void *ptr, const char *name, apr_size_t size, argument
187 apr_size_t nbytes = size;
202 if ((rv == APR_SUCCESS || rv == APR_EOF) && nbytes == size) {
227 else if (nbytes != size) {
230 size, nbytes);
288 ptr += mem->desc.size;
308 apr_size_t size local
[all...]
/httpd/test/
H A Dtime-sem.c420 static void *get_shared_mem(apr_size_t size) argument
425 result = (unsigned long *)mmap ((caddr_t)0, size,
441 static void *get_shared_mem(apr_size_t size) argument
450 if ((shmid = shmget(shmkey, size, IPC_CREAT | SHM_R | SHM_W)) == -1) {
/httpd/modules/proxy/balancers/
H A Dmod_lbmethod_heartbeat.c124 apr_brigade_insert_file(bb, fp, 0, fi.size, pool);
367 apr_size_t size; local
387 storage->attach(&hm_serversmem, "mod_heartmonitor", &size, &num, p);

Completed in 49 milliseconds

12