Home
last modified time | relevance | path

Searched refs:g (Results 1 – 24 of 24) sorted by relevance

/bionic/tests/
Dglob_test.cpp64 static void InstallFake(glob_t* g) { in InstallFake() argument
65 g->gl_closedir = fake_closedir; in InstallFake()
66 g->gl_readdir = fake_readdir; in InstallFake()
67 g->gl_opendir = fake_opendir; in InstallFake()
68 g->gl_lstat = fake_lstat; in InstallFake()
69 g->gl_stat = fake_stat; in InstallFake()
74 glob_t g = {}; in TEST() local
75 ASSERT_EQ(GLOB_NOMATCH, glob("/will/match/nothing", 0, nullptr, &g)); in TEST()
76 ASSERT_EQ(0U, g.gl_pathc); in TEST()
77 ASSERT_MATCH_COUNT(0U, g); in TEST()
[all …]
Dspawn_test.cpp77 pid_t g; in TEST() local
78 ASSERT_EQ(0, posix_spawnattr_getpgroup(&sa, &g)); in TEST()
79 ASSERT_EQ(123, g); in TEST()
DAndroid.bp49 "-g",
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregfree.c72 struct re_guts *g; in __weak_alias() local
81 g = preg->re_g; in __weak_alias()
82 if (g == NULL || g->magic != MAGIC2) /* oops again */ in __weak_alias()
85 g->magic = 0; /* mark it invalid */ in __weak_alias()
87 if (g->strip != NULL) in __weak_alias()
88 free(g->strip); in __weak_alias()
89 if (g->sets != NULL) { in __weak_alias()
90 for (i = 0; i < g->ncsets; i++) { in __weak_alias()
91 free(g->sets[i].ranges); in __weak_alias()
92 free(g->sets[i].wides); in __weak_alias()
[all …]
Dregcomp.c116 struct re_guts *g; member
177 static void stripsnug(struct parse *p, struct re_guts *g);
178 static void findmust(struct parse *p, struct re_guts *g);
180 static void computejumps(struct parse *p, struct re_guts *g);
181 static void computematchjumps(struct parse *p, struct re_guts *g);
182 static sopno pluscount(struct parse *p, struct re_guts *g);
276 struct re_guts *g; in regcomp_internal() local
302 g = malloc(sizeof(*g)); in regcomp_internal()
303 if (g == NULL) in regcomp_internal()
316 free(g); in regcomp_internal()
[all …]
Dengine.c91 struct re_guts *g; member
113 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int e…
117 static states step(struct re_guts *g, sopno start, sopno stop, states bef, wint_t ch, states aft, i…
200 matcher(struct re_guts *g, in matcher() argument
211 const sopno gf = g->firststate+1; /* +1 for OEND */ in matcher()
212 const sopno gl = g->laststate; in matcher()
224 _DIAGASSERT(g != NULL); in matcher()
229 if (g->cflags&REG_NOSUB) in matcher()
243 if (g->must != NULL) { in matcher()
244 if (g->charjump != NULL && g->matchjump != NULL) { in matcher()
[all …]
Dregexec.c171 #define CLEAR(v) memset(v, 0, m->g->nstates)
175 #define ASSIGN(d, s) memcpy(d, s, m->g->nstates)
176 #define EQ(a, b) (memcmp(a, b, m->g->nstates) == 0)
178 #define STATESETUP(m, nv) { (m)->space = malloc((nv)*(m)->g->nstates); \
182 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates])
232 struct re_guts *g = preg->re_g; in regexec() local
241 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2) in regexec()
243 assert(!(g->iflags&BAD)); in regexec()
244 if (g->iflags&BAD) /* backstop for no-debug case */ in regexec()
249 return(mmatcher(g, string, nmatch, pmatch, eflags)); in regexec()
[all …]
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/
Db_log.c365 double F, f, g, q, u, v, u1, u2; in __log__D() local
372 g = frexp(x, &m); in __log__D()
373 g *= 2; in __log__D()
376 j = ilogb(g); in __log__D()
378 g = ldexp(g, -j); in __log__D()
380 j = N * (g - 1) + 0.5; in __log__D()
382 f = g - F; in __log__D()
384 g = 1 / (2 * F + f); in __log__D()
385 u = 2 * f * g; in __log__D()
394 u2 = (2 * (f - F * u1) - u1 * f) * g; in __log__D()
/bionic/libc/stdio/
Dstdio.cpp141 glue* g = reinterpret_cast<glue*>(data); in moreglue() local
142 FILE* p = reinterpret_cast<FILE*>(ALIGN(data + sizeof(*g))); in moreglue()
143 __sfileext* pext = reinterpret_cast<__sfileext*>(ALIGN(data + sizeof(*g)) + n * sizeof(FILE)); in moreglue()
144 g->next = nullptr; in moreglue()
145 g->niobs = n; in moreglue()
146 g->iobs = p; in moreglue()
153 return g; in moreglue()
169 struct glue *g; in __sfp() local
172 for (g = &__sglue; g != nullptr; g = g->next) { in __sfp()
173 for (fp = g->iobs, n = g->niobs; --n >= 0; fp++) in __sfp()
[all …]
/bionic/libc/kernel/uapi/linux/
Dmap_to_7segment.h35 …_SEG7(l,a,b,c,d,e,f,g) (a << BIT_SEG7_A | b << BIT_SEG7_B | c << BIT_SEG7_C | d << BIT_SEG7_D | e … argument
Drkisp1-config.h331 __u8 g; member
/bionic/benchmarks/
DREADME.md58 space-separated list of arguments via the `--bionic_extra` command line flag, e.g.
86 (e.g. Toybox's `true` and `sh -c true`). Run it on a device like so:
111 standard deviation) for the runs. To do so, pass the `--benchmark_repetitions` option, e.g.:
145 `taskset` utility. e.g. A Pixel 3 device has 4 Kryo 385 Silver cores followed by 4 Gold cores:
/bionic/linker/
Dlinker_soinfo.cpp922 uint32_t h = 0, g; in calculate_elf_hash() local
926 g = h & 0xf0000000; in calculate_elf_hash()
927 h ^= g; in calculate_elf_hash()
928 h ^= g >> 24; in calculate_elf_hash()
DAndroid.bp511 "-g",
/bionic/libc/kernel/uapi/drm/
Ddrm_fourcc.h200 …RMAT_MOD_NVIDIA_BLOCK_LINEAR_2D(c,s,g,k,h) fourcc_mod_code(NVIDIA, (0x10 | ((h) & 0xf) | (((k) & 0… argument
/bionic/docs/
Dclang_fortify_anatomy.md26 - Buffer overruns in functions where pointers+sizes are passed (e.g., `memcpy`,
27 `poll`), or where sizes exist implicitly (e.g., `strcpy`).
28 - Arguments with incorrect values passed to libc functions (e.g.,
30 - Missing arguments to functions (e.g., `open()` with `O_CREAT`, but no mode
61 and one for Clang (e.g., see [ChromeOS' Glibc patch]), but this kind of sharing
202 the additional complexity may skew inlining costs, hide opportunities for e.g.,
379 In cases where checking can be performed (e.g., where we call
642 full visibility into the expression passed to e.g., `poll(&foo->bar, baz, qux)`.
788 have e.g., `&mempcpy` == `&__builtin_mempcpy`.
825 since Clang can format its diagnostics to include e.g., information about the
Delf-tls.md15 Thread-local variables are declared in C and C++ with a specifier, e.g.:
284 ([example](https://godbolt.org/g/gywcxk)).
379 thread pointer (e.g. `ps_get_thread_area`).
484 to these executables that only newer platforms recognize? (e.g. maybe an entry in .dynamic, a
599  ** the system (e.g. applications).
618 * The Go runtime allocates a thread-local "g" variable on Android by creating a pthread key and
807 The Go runtime allocates its thread-local "g" variable by searching for a hard-coded magic constant
814 key, but apps segfault. Perhaps the Go runtime expects its "g" variable to be zero-initialized ([one
Dfdsan.md42 …otnotes), [2](#footnotes)] or security vulnerabilities are also possible (e.g. suppose thread two …
Dstatus.md115 * Support in strptime for `%F`, `%G`, `%g`, `%P`, `%u`, `%V`, and `%v`.
/bionic/libc/kernel/uapi/asm-x86/asm/
Dkvm.h124 __u8 present, dpl, db, s, l, g, avl; member
/bionic/libc/kernel/
DREADME.md13 reason (e.g. optimized CPU-specific byte-swapping routines).
/bionic/
DREADME.md250 e.g. what you add in libc/libc.map.txt is:
Dandroid-changes-for-ndk-developers.md15 (e.g. arm-linux-androideabi-readelf or i686-linux-android-readelf)
/bionic/libc/
DAndroid.bp1622 // excludes functions selected using ifunc's (e.g. for string.h). Link in either