Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 10 of 10) sorted by relevance

/lighttpd1.4/src/
H A Dlog.c333 for (const char *pos = multiline; pos < end; ++pos) { in log_error_multiline() local
334 const char * const current_line = pos; in log_error_multiline()
335 pos = strchr(pos, '\n'); in log_error_multiline()
336 if (!pos) in log_error_multiline()
337 pos = end; in log_error_multiline()
338 size_t n = (size_t)(pos - current_line); in log_error_multiline()
H A Dmod_evhost.c80 const char *pos; in mod_evhost_parse_pattern() local
84 for(pos=ptr;*ptr;ptr++) { in mod_evhost_parse_pattern()
111 buffer_copy_string_len(bptr+used, pos, ptr-pos); in mod_evhost_parse_pattern()
112 pos = ptr + len; in mod_evhost_parse_pattern()
121 if(*pos != '\0') { in mod_evhost_parse_pattern()
124 buffer_copy_string_len(bptr+used, pos, ptr-pos); in mod_evhost_parse_pattern()
H A Dhttp-header-glue.c484 const char *pos = value->ptr; in http_response_xsendfile2() local
494 while (*pos) { in http_response_xsendfile2()
499 while (' ' == *pos) pos++; in http_response_xsendfile2()
500 if (!*pos) break; in http_response_xsendfile2()
502 filename = pos; in http_response_xsendfile2()
513 for (pos = ++range; *pos && *pos != ' ' && *pos != ','; pos++) ; in http_response_xsendfile2()
567 if (rpos != pos) { in http_response_xsendfile2()
573 if (rpos != pos) goto range_failed; in http_response_xsendfile2()
588 while (*pos == ' ') pos++; in http_response_xsendfile2()
589 if (*pos != '\0' && *pos != ',') { in http_response_xsendfile2()
[all …]
H A Darray.c348 …et * array_insert_data_at_pos(array * const a, data_unset * const entry, const uint_fast32_t pos) { in array_insert_data_at_pos() argument
362 ndx -= pos; in array_insert_data_at_pos()
363 data_unset ** const d = a->sorted + pos; in array_insert_data_at_pos()
370 static data_integer * array_insert_integer_at_pos(array * const a, const uint_fast32_t pos) { in array_insert_integer_at_pos() argument
377 return (data_integer *)array_insert_data_at_pos(a, (data_unset *)di, pos); in array_insert_integer_at_pos()
381 static data_string * array_insert_string_at_pos(array * const a, const uint_fast32_t pos) { in array_insert_string_at_pos() argument
384 return (data_string *)array_insert_data_at_pos(a, (data_unset *)ds, pos); in array_insert_string_at_pos()
H A Dconfigparser.y671 size_t pos; in condlines() local
680 pos = buffer_clen(&C->key) - buffer_clen(&B->string) - 5; in condlines()
683 C->key.ptr[pos] = '='; /* opposite cond */ in condlines()
687 C->key.ptr[pos] = '!'; /* opposite cond */ in condlines()
691 C->key.ptr[pos] = '='; /* opposite cond */ in condlines()
695 C->key.ptr[pos] = '!'; /* opposite cond */ in condlines()
699 C->key.ptr[pos] = '!'; /* opposite cond */ in condlines()
703 C->key.ptr[pos] = '!'; /* opposite cond */ in condlines()
H A Dmod_deflate.c1247 while (zib.pos < zib.size) { in stream_zstd_compress()
1254 if (zib.pos == zib.size) break; /* defer flush */ in stream_zstd_compress()
1255 hctx->bytes_out += (off_t)zob.pos; in stream_zstd_compress()
1256 if (0 != stream_http_chunk_append_mem(hctx, zob.dst, zob.pos)) in stream_zstd_compress()
1258 zob.pos = 0; in stream_zstd_compress()
1260 hctx->output->used = (uint32_t)zob.pos; in stream_zstd_compress()
1283 hctx->bytes_out += (off_t)zob.pos; in stream_zstd_flush()
1284 if (0 != stream_http_chunk_append_mem(hctx, zob.dst, zob.pos)) in stream_zstd_flush()
1286 zob.pos = 0; in stream_zstd_flush()
H A Dmod_magnet.c367 const uint32_t pos = lua_tointeger(L, lua_upvalueindex(1)); in magnet_array_next() local
369 const data_unset * const du = pos < a->used ? a->data[pos] : NULL; in magnet_array_next()
386 lua_pushinteger(L, pos+1); in magnet_array_next()
2144 const int pos = lua_tointeger(L, lua_upvalueindex(1)); in magnet_env_next() local
2146 if (NULL == magnet_env[pos].name) return 0; /* end of list */ in magnet_env_next()
2148 lua_pushinteger(L, pos + 1); in magnet_env_next()
2152 lua_pushlstring(L, magnet_env[pos].name, magnet_env[pos].nlen); in magnet_env_next()
2156 magnet_push_buffer(L, magnet_env_get_buffer_by_id(r, magnet_env[pos].type)); in magnet_env_next()
H A Dconfigfile.c2466 char *pos; in config_read() local
2472 pos = strrchr(fn, '\\'); in config_read()
2474 pos = strrchr(fn, '/'); in config_read()
2476 if (pos) { in config_read()
2477 buffer_copy_string_len(context.basedir, fn, pos - fn + 1); in config_read()
H A Dalgo_xxhash.h5616 { size_t pos = 0; in XXH3_generateSecret() local
5617 while (pos < secretSize) { in XXH3_generateSecret()
5618 size_t const toCopy = XXH_MIN((secretSize - pos), customSeedSize); in XXH3_generateSecret()
5619 memcpy((char*)secretBuffer + pos, customSeed, toCopy); in XXH3_generateSecret()
5620 pos += toCopy; in XXH3_generateSecret()
/lighttpd1.4/
H A DNEWS1222 * [core] array a->sorted[] as ptrs rather than pos
2335 * [mod_flv_streaming] add end pos param (fixes #1887)