Home
last modified time | relevance | path

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

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dbitset.c13 #define BITSET_MASK(pos) \ argument
14 ( ((size_t)1) << ((pos) % BITSET_BITS) )
16 #define BITSET_WORD(set, pos) \ argument
17 ( (set)->bits[(pos) / BITSET_BITS] )
46 if (pos >= set->nbits) { in bitset_clear_bit()
50 BITSET_WORD(set, pos) &= ~BITSET_MASK(pos); in bitset_clear_bit()
53 void bitset_set_bit(bitset *set, size_t pos) { in bitset_set_bit() argument
54 if (pos >= set->nbits) { in bitset_set_bit()
58 BITSET_WORD(set, pos) |= BITSET_MASK(pos); in bitset_set_bit()
62 if (pos >= set->nbits) { in bitset_test_bit()
[all …]
H A Darray.c86 int i, pos = 0; in array_get_index() local
94 if (pos < 0) { in array_get_index()
95 pos += i; in array_get_index()
97 pos -= i; in array_get_index()
106 pos -= i; in array_get_index()
108 pos += i; in array_get_index()
183 int pos = 0; in array_insert_unique() local
233 if (pos != ndx && in array_insert_unique()
234 ((pos < 0) || in array_insert_unique()
236 pos++; in array_insert_unique()
[all …]
H A Dbitset.h15 void bitset_clear_bit(bitset *set, size_t pos);
16 void bitset_set_bit(bitset *set, size_t pos);
17 int bitset_test_bit(bitset *set, size_t pos);
H A Dmod_evhost.c75 char *ptr = s->path_pieces_raw->ptr,*pos; in mod_evhost_parse_pattern() local
79 for(pos=ptr;*ptr;ptr++) { in mod_evhost_parse_pattern()
85 buffer_copy_string_len(s->path_pieces[s->len],pos,ptr-pos); in mod_evhost_parse_pattern()
86 pos = ptr + 2; in mod_evhost_parse_pattern()
94 if(*pos != '\0') { in mod_evhost_parse_pattern()
98 buffer_copy_string_len(s->path_pieces[s->len],pos,ptr-pos); in mod_evhost_parse_pattern()
H A Dmod_magnet.c185 size_t pos = lua_tointeger(L, lua_upvalueindex(1)); in magnet_array_next() local
190 if (pos >= a->used) return 0; in magnet_array_next()
191 if (NULL != (du = a->data[pos])) { in magnet_array_next()
218 pos++; in magnet_array_next()
219 lua_pushinteger(L, pos); in magnet_array_next()
596 int pos = lua_tointeger(L, lua_upvalueindex(1)); in magnet_env_next() local
612 if (NULL == magnet_env[pos].name) return 0; /* end of list */ in magnet_env_next()
614 lua_pushstring(L, magnet_env[pos].name); in magnet_env_next()
616 dest = magnet_env_get_buffer_by_id(srv, con, magnet_env[pos].type); in magnet_env_next()
624 pos++; in magnet_env_next()
[all …]
H A Dmod_fastcgi.c2257 char *pos = value; in fcgi_response_parse() local
2260 while (*pos) { in fcgi_response_parse()
2265 while (' ' == *pos) pos++; in fcgi_response_parse()
2266 if (!*pos) break; in fcgi_response_parse()
2268 filename = pos; in fcgi_response_parse()
2279 for (pos = ++range; *pos && *pos != ' ' && *pos != ','; pos++) ; in fcgi_response_parse()
2307 if (rpos != pos) { in fcgi_response_parse()
2312 if (rpos != pos) goto range_failed; in fcgi_response_parse()
2327 while (*pos == ' ') pos++; in fcgi_response_parse()
2328 if (*pos != '\0' && *pos != ',') return 1; in fcgi_response_parse()
[all …]
H A Dconfigfile.c1100 char *pos; in config_read() local
1107 pos = strrchr(fn, '\\'); in config_read()
1109 pos = strrchr(fn, '/'); in config_read()
1111 if (pos) { in config_read()
1112 buffer_copy_string_len(context.basedir, fn, pos - fn + 1); in config_read()
1113 fn = pos + 1; in config_read()