Home
last modified time | relevance | path

Searched refs:rpos (Results 1 – 25 of 118) sorted by relevance

12345

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/
Dhlr_auc_gw.c593 char *rpos, *rend; in sim_req_auth() local
609 rpos = resp; in sim_req_auth()
610 ret = snprintf(rpos, rend - rpos, "SIM-RESP-AUTH %s", imsi); in sim_req_auth()
611 if (ret < 0 || ret >= rend - rpos) in sim_req_auth()
613 rpos += ret; in sim_req_auth()
622 *rpos++ = ' '; in sim_req_auth()
623 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8); in sim_req_auth()
624 *rpos++ = ':'; in sim_req_auth()
625 rpos += wpa_snprintf_hex(rpos, rend - rpos, sres, 4); in sim_req_auth()
626 *rpos++ = ':'; in sim_req_auth()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/
Dhlr_auc_gw.c593 char *rpos, *rend; in sim_req_auth() local
609 rpos = resp; in sim_req_auth()
610 ret = snprintf(rpos, rend - rpos, "SIM-RESP-AUTH %s", imsi); in sim_req_auth()
611 if (ret < 0 || ret >= rend - rpos) in sim_req_auth()
613 rpos += ret; in sim_req_auth()
622 *rpos++ = ' '; in sim_req_auth()
623 rpos += wpa_snprintf_hex(rpos, rend - rpos, kc, 8); in sim_req_auth()
624 *rpos++ = ':'; in sim_req_auth()
625 rpos += wpa_snprintf_hex(rpos, rend - rpos, sres, 4); in sim_req_auth()
626 *rpos++ = ':'; in sim_req_auth()
[all …]
/third_party/musl/porting/liteos_m/kernel/src/internal/
Dshgetc.c11 f->shcnt = f->buf - f->rpos; in __shlim()
13 if (lim && f->rend - f->rpos > lim) in __shlim()
14 f->shend = f->rpos + lim; in __shlim()
24 f->shcnt = f->buf - f->rpos + cnt; in __shgetc()
25 f->shend = f->rpos; in __shgetc()
30 if (f->shlim && f->rend - f->rpos > f->shlim - cnt) in __shgetc()
31 f->shend = f->rpos + (f->shlim - cnt); in __shgetc()
34 f->shcnt = f->buf - f->rpos + cnt; in __shgetc()
35 if (f->rpos[-1] != c) f->rpos[-1] = c; in __shgetc()
Dshgetc.h27 #define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->buf))
29 #define shgetc(f) (((f)->rpos != (f)->shend) ? *(f)->rpos++ : __shgetc(f))
30 #define shunget(f) ((f)->shlim>=0 ? (void)(f)->rpos-- : (void)0)
33 ((f)->buf = (f)->rpos = (void *)(s), (f)->rend = (void*)-1)
/third_party/musl/porting/uniproton/kernel/src/internal/
Dshgetc.c11 f->shcnt = f->buf - f->rpos; in __shlim()
13 if (lim && f->rend - f->rpos > lim) in __shlim()
14 f->shend = f->rpos + lim; in __shlim()
24 f->shcnt = f->buf - f->rpos + cnt; in __shgetc()
25 f->shend = f->rpos; in __shgetc()
30 if (f->shlim && f->rend - f->rpos > f->shlim - cnt) in __shgetc()
31 f->shend = f->rpos + (f->shlim - cnt); in __shgetc()
34 f->shcnt = f->buf - f->rpos + cnt; in __shgetc()
35 if (f->rpos[-1] != c) f->rpos[-1] = c; in __shgetc()
Dshgetc.h27 #define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->buf))
29 #define shgetc(f) (((f)->rpos != (f)->shend) ? *(f)->rpos++ : __shgetc(f))
30 #define shunget(f) ((f)->shlim>=0 ? (void)(f)->rpos-- : (void)0)
33 ((f)->buf = (f)->rpos = (void *)(s), (f)->rend = (void*)-1)
/third_party/musl/src/internal/
Dshgetc.c11 f->shcnt = f->buf - f->rpos; in __shlim()
13 if (lim && f->rend - f->rpos > lim) in __shlim()
14 f->shend = f->rpos + lim; in __shlim()
24 f->shcnt = f->buf - f->rpos + cnt; in __shgetc()
25 f->shend = f->rpos; in __shgetc()
30 if (f->shlim && f->rend - f->rpos > f->shlim - cnt) in __shgetc()
31 f->shend = f->rpos + (f->shlim - cnt); in __shgetc()
34 f->shcnt = f->buf - f->rpos + cnt; in __shgetc()
35 if (f->rpos <= f->buf) f->rpos[-1] = c; in __shgetc()
Dshgetc.h26 #define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->buf))
28 #define shgetc(f) (((f)->rpos != (f)->shend) ? *(f)->rpos++ : __shgetc(f))
29 #define shunget(f) ((f)->shlim>=0 ? (void)(f)->rpos-- : (void)0)
32 ((f)->buf = (f)->rpos = (void *)(s), (f)->rend = (void*)-1)
/third_party/musl/porting/liteos_a/kernel/src/internal/
Dshgetc.c11 f->shcnt = f->buf - f->rpos; in __shlim()
13 if (lim && f->rend - f->rpos > lim) in __shlim()
14 f->shend = f->rpos + lim; in __shlim()
24 f->shcnt = f->buf - f->rpos + cnt; in __shgetc()
25 f->shend = f->rpos; in __shgetc()
30 if (f->shlim && f->rend - f->rpos > f->shlim - cnt) in __shgetc()
31 f->shend = f->rpos + (f->shlim - cnt); in __shgetc()
34 f->shcnt = f->buf - f->rpos + cnt; in __shgetc()
35 if (f->rpos <= f->buf) f->rpos[-1] = c; in __shgetc()
Dshgetc.h26 #define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->buf))
28 #define shgetc(f) (((f)->rpos != (f)->shend) ? *(f)->rpos++ : __shgetc(f))
29 #define shunget(f) ((f)->shlim>=0 ? (void)(f)->rpos-- : (void)0)
32 ((f)->buf = (f)->rpos = (void *)(s), (f)->rend = (void*)-1)
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/
Dinternal.c134 char *rpos = val; in MHD_http_unescape() local
140 while ('\0' != *rpos) in MHD_http_unescape()
142 switch (*rpos) in MHD_http_unescape()
145 if ( ('\0' == rpos[1]) || in MHD_http_unescape()
146 ('\0' == rpos[2]) ) in MHD_http_unescape()
151 buf3[0] = rpos[1]; in MHD_http_unescape()
152 buf3[1] = rpos[2]; in MHD_http_unescape()
159 rpos += 3; in MHD_http_unescape()
164 *wpos = *rpos; in MHD_http_unescape()
166 rpos++; in MHD_http_unescape()
/third_party/musl/src/stdio/
Dgetdelim.c28 if (f->rpos != f->rend) { in getdelim()
29 z = memchr(f->rpos, delim, f->rend - f->rpos); in getdelim()
30 k = z ? z - f->rpos + 1 : f->rend - f->rpos; in getdelim()
46 memcpy(*s+i, f->rpos, k); in getdelim()
47 f->rpos += k; in getdelim()
59 memcpy(*s+i, f->rpos, k); in getdelim()
60 f->rpos += k; in getdelim()
73 if (i+1 >= *n) *--f->rpos = c; in getdelim()
Dfgets.c24 if (f->rpos != f->rend) { in fgets()
25 z = memchr(f->rpos, '\n', f->rend - f->rpos); in fgets()
26 k = z ? z - f->rpos + 1 : f->rend - f->rpos; in fgets()
28 memcpy(p, f->rpos, k); in fgets()
29 f->rpos += k; in fgets()
Dext2.c6 return f->rend ? f->rend - f->rpos : 0; in __freadahead()
11 if (f->rpos == f->rend) return 0; in __freadptr()
12 *sizep = f->rend - f->rpos; in __freadptr()
13 return (const char *)f->rpos; in __freadptr()
18 f->rpos += inc; in __freadptrinc()
Dungetwc.c19 if (!f->rpos) __toread(f); in ungetwc()
20 if (!f->rpos || c == WEOF || (l = wcrtomb((void *)mbc, c, 0)) < 0 || in ungetwc()
21 f->rpos < f->buf - UNGET + l) { in ungetwc()
27 if (isascii(c)) *--f->rpos = c; in ungetwc()
28 else memcpy(f->rpos -= l, mbc, l); in ungetwc()
Dungetc.c9 if (!f->rpos) __toread(f); in ungetc()
10 if (!f->rpos || f->rpos <= f->buf - UNGET) { in ungetc()
15 *--f->rpos = c; in ungetc()
Dfgetln.c11 if (f->rend && (z=memchr(f->rpos, '\n', f->rend - f->rpos))) { in fgetln()
12 ret = (char *)f->rpos; in fgetln()
14 f->rpos = (void *)z; in fgetln()
Dfread.c16 if (f->rpos != f->rend) { in fread()
18 k = MIN(f->rend - f->rpos, l); in fread()
19 memcpy(dest, f->rpos, k); in fread()
20 f->rpos += k; in fread()
/third_party/musl/porting/liteos_m/kernel/src/stdio/
Dfgets.c24 if (f->rpos != f->rend) { in fgets()
25 z = memchr(f->rpos, '\n', f->rend - f->rpos); in fgets()
26 k = z ? z - f->rpos + 1 : f->rend - f->rpos; in fgets()
28 memcpy(p, f->rpos, k); in fgets()
29 f->rpos += k; in fgets()
Dungetc.c9 if (!f->rpos) __toread(f); in ungetc()
10 if (!f->rpos || f->rpos <= f->buf - UNGET) { in ungetc()
15 *--f->rpos = c; in ungetc()
/third_party/musl/porting/uniproton/kernel/src/stdio/
Dfgets.c24 if (f->rpos != f->rend) { in fgets()
25 z = memchr(f->rpos, '\n', f->rend - f->rpos); in fgets()
26 k = z ? z - f->rpos + 1 : f->rend - f->rpos; in fgets()
28 memcpy(p, f->rpos, k); in fgets()
29 f->rpos += k; in fgets()
Dungetc.c9 if (!f->rpos) __toread(f); in ungetc()
10 if (!f->rpos || f->rpos <= f->buf - UNGET) { in ungetc()
15 *--f->rpos = c; in ungetc()
/third_party/musl/porting/linux/user/src/stdio/
Dfgets.c23 if (f->rpos != f->rend) { in fgets()
24 z = memchr(f->rpos, '\n', MIN(f->rend - f->rpos, n)); in fgets()
25 k = z ? z - f->rpos + 1 : f->rend - f->rpos; in fgets()
27 memcpy(p, f->rpos, k); in fgets()
28 f->rpos += k; in fgets()
Dfread.c16 f->rpos = f->rend; in __fill_buffer()
20 f->rpos = f->buf; in __fill_buffer()
21 f->rend = f->rpos + k; in __fill_buffer()
45 if (f->rpos != f->rend) { in fread()
47 k = MIN(f->rend - f->rpos, l); in fread()
48 memcpy(dest, f->rpos, k); in fread()
49 f->rpos += k; in fread()
/third_party/musl/porting/liteos_a/kernel/src/stdio/
Dungetc.c9 if (!f->rpos) __toread(f); in ungetc()
10 if (!f->rpos || f->rpos <= f->buf - UNGET) { in ungetc()
15 *--f->rpos = c; in ungetc()

12345