Searched defs:maxlen (Results 1 - 25 of 116) sorted by relevance

12345

/external/bison/lib/
H A Dstrnlen.c26 strnlen (const char *string, size_t maxlen) argument
28 const char *end = memchr (string, '\0', maxlen);
29 return end ? (size_t) (end - string) : maxlen;
H A Dstrnlen1.c26 /* This is the same as strnlen (string, maxlen - 1) + 1. */
28 strnlen1 (const char *string, size_t maxlen) argument
30 const char *end = (const char *) memchr (string, '\0', maxlen);
34 return maxlen;
/external/chromium_org/third_party/boringssl/src/ssl/
H A Dt1_reneg.c120 int maxlen)
124 if((s->s3->previous_client_finished_len+1) > maxlen)
179 int maxlen)
184 s->s3->previous_server_finished_len + 1) > maxlen)
119 ssl_add_clienthello_renegotiate_ext(SSL *s, unsigned char *p, int *len, int maxlen) argument
178 ssl_add_serverhello_renegotiate_ext(SSL *s, unsigned char *p, int *len, int maxlen) argument
H A Dd1_srtp.c268 int ssl_add_clienthello_use_srtp_ext(SSL *s, unsigned char *p, int *len, int maxlen) argument
286 if((2 + ct*2 + 1) > maxlen)
379 int ssl_add_serverhello_use_srtp_ext(SSL *s, unsigned char *p, int *len, int maxlen) argument
383 if(maxlen < 5)
/external/chromium_org/third_party/re2/re2/testing/
H A Dstring_generator.cc6 // maxlen letters using the set of letters in alpha.
16 StringGenerator::StringGenerator(int maxlen, const vector<string>& alphabet) argument
17 : maxlen_(maxlen), alphabet_(alphabet),
H A Dpossible_match_test.cc25 int maxlen; member in struct:re2::PrefixTest
114 CHECK(prog->PossibleMatchRange(&min, &max, t.maxlen))
119 CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen));
/external/clang/test/Sema/
H A Denable_if.c22 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}}
27 inline size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}} argument
32 return __strnlen_chk(s, maxlen, __builtin_object_size(s, 0));
35 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate disabled: chosen when 'maxlen' is known to be less than or equal to the buffer size}}
39 __attribute__((enable_if(maxlen <= __builtin_object_size(s, 0),
40 "chosen when 'maxlen' is known to be less than or equal to the buffer size")))
43 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function has been explicitly made unavailable}}
47 __attribute__((enable_if(maxlen > __builtin_object_size(s, 0),
48 "chosen when 'maxlen' i
[all...]
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Dquote.c42 void sq_quote_argv(struct strbuf *dst, const char** argv, size_t maxlen) argument
51 if (maxlen && dst->len > maxlen)
/external/openssl/ssl/
H A Dt1_reneg.c117 int maxlen)
121 if((s->s3->previous_client_finished_len+1) > maxlen)
197 int maxlen)
202 s->s3->previous_server_finished_len + 1) > maxlen)
116 ssl_add_clienthello_renegotiate_ext(SSL *s, unsigned char *p, int *len, int maxlen) argument
196 ssl_add_serverhello_renegotiate_ext(SSL *s, unsigned char *p, int *len, int maxlen) argument
/external/regex-re2/re2/testing/
H A Dstring_generator.cc6 // maxlen letters using the set of letters in alpha.
16 StringGenerator::StringGenerator(int maxlen, const vector<string>& alphabet) argument
17 : maxlen_(maxlen), alphabet_(alphabet),
H A Dpossible_match_test.cc25 int maxlen; member in struct:re2::PrefixTest
114 CHECK(prog->PossibleMatchRange(&min, &max, t.maxlen))
119 CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen));
/external/fio/lib/
H A Dnum2str.c12 char *num2str(unsigned long num, int maxlen, int base, int pow2, int unit_base) argument
40 if (strlen(tmp) <= maxlen)
60 decimals = maxlen - strlen(tmp);
/external/libexif/libexif/fuji/
H A Dmnote-fuji-entry.c31 #define CF(format,target,v,maxlen) \
34 snprintf (v, maxlen, \
43 #define CC(number,target,v,maxlen) \
46 snprintf (v, maxlen, \
191 char *val, unsigned int maxlen)
202 memset (val, 0, maxlen);
203 maxlen--;
207 CF (entry->format, EXIF_FORMAT_UNDEFINED, val, maxlen);
208 CC (entry->components, 4, val, maxlen);
209 memcpy (val, entry->data, MIN(maxlen, entr
190 mnote_fuji_entry_get_value(MnoteFujiEntry *entry, char *val, unsigned int maxlen) argument
[all...]
/external/qemu/distrib/sdl-1.2.15/src/audio/
H A DSDL_audiodev.c50 int SDL_OpenAudioPath(char *path, int maxlen, int flags, int classic) argument
93 SDL_strlcpy(path, audiodev, maxlen);
94 path[maxlen-1] = '\0';
126 static int OpenUserDefinedDevice(char *path, int maxlen, int flags) argument
140 SDL_strlcpy(path, audiodev, maxlen);
141 path[maxlen-1] = '\0';
146 int SDL_OpenAudioPath(char *path, int maxlen, int flags, int classic) argument
153 audio_fd = OpenUserDefinedDevice(path,maxlen,flags);
170 SDL_strlcpy( path, audiopath, maxlen );
/external/chromium_org/third_party/icu/source/samples/legacy/
H A Dnewcol.cpp68 extern "C" void test_current(UChar data[][5], uint32_t size, uint32_t maxlen, uint8_t keys[][32]) { argument
84 qsort(data, size, maxlen*sizeof(UChar), compare_current);
H A Doldcol.cpp84 extern "C" void test_legacy(UChar data[][5], uint32_t size, uint32_t maxlen, uint8_t keys[4][32]) { argument
101 qsort(data, size, maxlen*sizeof(UChar), compare_legacy);
/external/icu/icu4c/source/samples/legacy/
H A Dnewcol.cpp68 extern "C" void test_current(UChar data[][5], uint32_t size, uint32_t maxlen, uint8_t keys[][32]) { argument
84 qsort(data, size, maxlen*sizeof(UChar), compare_current);
H A Doldcol.cpp84 extern "C" void test_legacy(UChar data[][5], uint32_t size, uint32_t maxlen, uint8_t keys[4][32]) { argument
101 qsort(data, size, maxlen*sizeof(UChar), compare_legacy);
/external/libexif/libexif/
H A Dexif-mnote-data.c145 exif_mnote_data_get_value (ExifMnoteData *d, unsigned int n, char *val, unsigned int maxlen) argument
148 return d->methods.get_value (d, n, val, maxlen);
/external/libexif/libexif/pentax/
H A Dmnote-pentax-entry.c35 #define CF(format,target,v,maxlen) \
38 snprintf (v, maxlen, \
47 #define CC(number,target,v,maxlen) \
50 snprintf (v, maxlen, \
57 #define CC2(number,t1,t2,v,maxlen) \
60 snprintf (v, maxlen, \
309 char *val, unsigned int maxlen)
317 memset (val, 0, maxlen);
318 maxlen--;
341 CF (entry->format, EXIF_FORMAT_SHORT, val, maxlen);
308 mnote_pentax_entry_get_value(MnotePentaxEntry *entry, char *val, unsigned int maxlen) argument
[all...]
/external/liblzf/
H A Dlzf_c.c164 unsigned int maxlen = in_end - ip - len; local
165 maxlen = maxlen > MAX_REF ? MAX_REF : maxlen;
176 if (expect_true (maxlen > 16))
201 while (len < maxlen && ref[len] == ip[len]);
/external/qemu/distrib/sdl-1.2.15/src/
H A DSDL_error.c118 char *SDL_GetErrorMsg(char *errstr, unsigned int maxlen) argument
123 *errstr = '\0'; --maxlen;
135 while ( *fmt && (maxlen > 0) ) {
147 maxlen -= 1;
156 len = SDL_snprintf(msg, maxlen, tmp, error->args[argi++].value_i);
158 maxlen -= len;
161 len = SDL_snprintf(msg, maxlen, tmp, error->args[argi++].value_f);
163 maxlen -= len;
166 len = SDL_snprintf(msg, maxlen, tmp, error->args[argi++].value_ptr);
168 maxlen
[all...]
/external/chromium_org/sandbox/mac/
H A Dos_compatibility.cc63 size_t strnlen(const char* str, size_t maxlen) { argument
65 for (; len < maxlen; ++len, ++str) {
/external/chromium_org/third_party/smhasher/src/
H A DKeysetTest.cpp206 void TwoBytesKeygen ( int maxlen, KeyCallback & c ) argument
213 for(int i = 2; i <= maxlen; i++) keycount += (int)chooseK(i,2);
217 for(int i = 2; i <= maxlen; i++) keycount += i*255;
219 printf("Keyset 'TwoBytes' - up-to-%d-byte keys, %d total keys\n",maxlen, keycount);
230 for(int keylen = 2; keylen <= maxlen; keylen++)
246 for(int keylen = 2; keylen <= maxlen; keylen++)
/external/chromium_org/third_party/webrtc/base/
H A Dmacutils.cc27 size_t maxlen = CFStringGetMaximumSizeForEncoding(CFStringGetLength(str16), local
29 scoped_ptr<char[]> buffer(new char[maxlen]);
30 if (!buffer || !CFStringGetCString(str16, buffer.get(), maxlen,

Completed in 399 milliseconds

12345