/third_party/skia/src/pdf/ |
H A D | SkPDFGlyphUse.h | 22 void set(SkGlyphID gid) { fBitSet.set(this->toCode(gid)); } in set() argument 23 bool has(SkGlyphID gid) const { return fBitSet.test(this->toCode(gid)); } in has() 39 uint16_t toCode(SkGlyphID gid) const { in toCode() 40 if (gid == 0 || fFirstNonZero == 1) { in toCode() 41 return gid; in toCode() 43 SkASSERT(gid >= fFirstNonZero && gid <= fLastGlyph); in toCode() 44 return gid in toCode() [all...] |
H A D | SkPDFFont.h | 60 bool hasGlyph(SkGlyphID gid) { in hasGlyph() argument 61 return (gid >= this->firstGlyphID() && gid <= this->lastGlyphID()) || gid == 0; in hasGlyph() 65 SkGlyphID glyphToPDFFontEncoding(SkGlyphID gid) const { in glyphToPDFFontEncoding() 66 if (this->multiByteGlyphs() || gid == 0) { in glyphToPDFFontEncoding() 67 return gid; in glyphToPDFFontEncoding() 69 SkASSERT(gid >= this->firstGlyphID() && gid <= this->lastGlyphID()); in glyphToPDFFontEncoding() 71 return gid in glyphToPDFFontEncoding() [all...] |
/third_party/pulseaudio/src/daemon/ |
H A D | caps.c | 50 gid_t gid; in pa_drop_root() local 54 gid = getgid(); in pa_drop_root() 58 pa_assert_se(setresgid(gid, gid, gid) >= 0); in pa_drop_root() 61 pa_assert_se(setregid(gid, gid) >= 0); in pa_drop_root() 65 pa_assert_se(setgid(gid) >= 0); in pa_drop_root() 66 pa_assert_se(setegid(gid) >= 0); in pa_drop_root() 71 pa_assert_se(getgid() == gid); in pa_drop_root() [all...] |
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | test-ot-glyphname.cc | 53 for (hb_codepoint_t gid = 0; gid < num_glyphs; gid++) in main() 57 if (hb_font_get_glyph_name (font, gid, buf, buf_size)) in main() 62 if (gid == gid_inv) in main() 64 printf ("%u <-> %s\n", gid, buf); in main() 68 printf ("%u -> %s -> %u\n", gid, buf, gid_inv); in main() 74 printf ("%u -> %s -> ?\n", gid, buf); in main() 80 printf ("%u -> ?\n", gid); in main()
|
H A D | hb-ot-var-hvar-table.hh | 60 hb_codepoint_t gid = (hb_codepoint_t) hb_min (index_map.get_map_count (), plan->num_output_glyphs ()); in init() local 67 for (; gid > 0; gid--) in init() 70 if (!plan->old_gid_for_new_gid (gid - 1, &old_gid)) in init() 82 last_gid = gid; in init() 87 last_gid = gid; in init() 92 for (gid = 0; gid < map_count; gid++) in init() 95 if (plan->old_gid_for_new_gid (gid, in init() [all...] |
H A D | hb-subset-plan.hh | 45 // For each cp that we'd like to retain maps to the corresponding gid. 143 * Given an output gid , returns true if that glyph id is an empty 144 * glyph (ie. it's a gid that we are dropping all data for). 146 inline bool is_empty_glyph (hb_codepoint_t gid) const in is_empty_glyph() 148 return !_glyphset->has (gid); in is_empty_glyph() 164 hb_codepoint_t gid = glyph_map->get (old_gid); in new_gid_for_old_gid() local 165 if (gid == HB_MAP_VALUE_INVALID) in new_gid_for_old_gid() 168 *new_gid = gid; in new_gid_for_old_gid() 175 hb_codepoint_t gid = reverse_glyph_map->get (new_gid); in old_gid_for_new_gid() local 176 if (gid in old_gid_for_new_gid() [all...] |
H A D | hb-ot-glyf-table.hh | 476 hb_codepoint_t gid, hb_glyph_extents_t *extents) const in get_extents() 480 extents->x_bearing = font->em_scale_x (glyf_accelerator.hmtx->get_side_bearing (gid)); in get_extents() 795 int h_delta = (int) header->xMin - glyf_accelerator.hmtx->get_side_bearing (gid); in get_points() 796 int v_orig = (int) header->yMax + glyf_accelerator.vmtx->get_side_bearing (gid); in get_points() 797 unsigned h_adv = glyf_accelerator.hmtx->get_advance (gid); in get_points() 798 unsigned v_adv = glyf_accelerator.vmtx->get_advance (gid); in get_points() 806 if (unlikely (!glyf_accelerator.gvar->apply_deltas_to_points (gid, font, points.as_array ()))) in get_points() 879 return header->get_extents (font, glyf_accelerator, gid, extents); in get_extents() 885 hb_codepoint_t gid_ = (hb_codepoint_t) -1) : bytes (bytes_), gid (gid_), in Glyph() 896 hb_codepoint_t gid; member [all...] |
H A D | hb-subset-plan.cc | 48 hb_codepoint_t gid, in _add_cff_seac_components() 52 if (cff.get_seac_components (gid, &base_gid, &accent_gid)) in _add_cff_seac_components() 242 for (hb_codepoint_t gid : glyphs_colred->iter ()) in _colr_closure() 243 colr.closure_glyphs (gid, &glyphset_colrv0); in _colr_closure() 273 hb_codepoint_t gid = HB_SET_VALUE_INVALID; in _remove_invalid_gids() local 274 while (glyphs->next (&gid)) in _remove_invalid_gids() 276 if (gid >= num_glyphs) in _remove_invalid_gids() 277 glyphs->del (gid); in _remove_invalid_gids() 297 hb_codepoint_t gid; in _populate_unicodes_to_retain() local 298 if (!cmap.get_nominal_glyph (cp, &gid)) in _populate_unicodes_to_retain() 47 _add_cff_seac_components(const OT::cff1::accelerator_t &cff, hb_codepoint_t gid, hb_set_t *gids_to_retain) _add_cff_seac_components() argument [all...] |
H A D | main.cc | 195 for (hb_codepoint_t gid = 0; gid < num_glyphs; ++gid) in layered_glyph_dump() 197 unsigned num_layers = hb_ot_color_glyph_get_layers (face, gid, 0, nullptr, nullptr); in layered_glyph_dump() 202 hb_ot_color_glyph_get_layers (face, gid, 0, &num_layers, layers); in layered_glyph_dump() 208 if (!hb_font_get_glyph_extents (font, gid, &extents)) in layered_glyph_dump() 210 printf ("Skip gid: %d\n", gid); in layered_glyph_dump() 215 sprintf (output_path, "out/colr-%u-%u-%u.svg", gid, palette, face_index); in layered_glyph_dump() 236 printf ("Failed to decompose layer %d while %d\n", layers[layer].glyph, gid); in layered_glyph_dump() [all...] |
/third_party/toybox/toys/pending/ |
H A D | groupadd.c | 30 long gid; 43 if (TT.gid > INT_MAX) error_exit("gid should be less than '%d' ", INT_MAX); in new_group() 44 if (getgrgid(TT.gid)) error_exit("group '%ld' is in use", TT.gid); in new_group() 46 if (FLAG(S)) TT.gid = CFG_TOYBOX_UID_SYS; in new_group() 47 else TT.gid = CFG_TOYBOX_UID_USR; in new_group() 48 //find unused gid in new_group() 49 while (getgrgid(TT.gid)) TT.gid in new_group() [all...] |
/third_party/ltp/testcases/kernel/syscalls/setfsgid/ |
H A D | setfsgid03.c | 49 gid_t gid; in main() local 58 gid = 1; in main() 59 while (!getgrgid(gid)) in main() 60 gid++; in main() 62 GID16_CHECK(gid, setfsgid, cleanup); in main() 64 TEST(SETFSGID(cleanup, gid)); in main() 72 if (TEST_RETURN == gid) { in main() 75 TEST_RETURN, gid); in main()
|
H A D | setfsgid02.c | 23 static gid_t gid; variable 32 GID16_CHECK(gid, setfsgid); in run() 41 * the gid for privileged user, and have not changed the gid in run() 45 TEST(SETFSGID(gid)); in run() 52 pre_gid = gid; in run() 53 gid++; in run() 65 gid = 1; in setup()
|
H A D | setfsgid01.c | 33 gid_t gid; in run() local 35 gid = getegid(); in run() 36 GID16_CHECK(gid, setfsgid); in run() 39 TST_EXP_VAL(SETFSGID(nobody_gid), gid); in run() local 41 TST_EXP_VAL_SILENT(SETFSGID(gid), nobody_gid); in run()
|
/third_party/ltp/testcases/kernel/syscalls/setregid/ |
H A D | setregid01.c | 27 static gid_t gid, egid; variable 36 {&neg_one, &egid, "Change effective to effective gid" }, 37 {&gid, &neg_one, "Change real to real gid" }, 38 {&neg_one, &gid, "Change effective to real gid" }, 39 {&gid, &gid, "Change real and effective both gids to current real gid" } 51 gid in setup() [all...] |
/third_party/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
H A D | msgctl01.c | 22 static gid_t gid; variable 91 if (buf.msg_perm.gid == gid) { in verify_msgctl() 92 tst_res(TPASS, "msg_perm.gid = %u", (unsigned)gid); in verify_msgctl() 94 tst_res(TFAIL, "msg_perm.gid = %u, expected %u", in verify_msgctl() 95 (unsigned)buf.msg_perm.gid, (unsigned)gid); in verify_msgctl() 105 if (buf.msg_perm.cgid == gid) { in verify_msgctl() 106 tst_res(TPASS, "msg_perm.cgid = %u", (unsigned)gid); in verify_msgctl() [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
H A D | fd2_query.c | 64 uint8_t gid; /* group-id */ member 89 const struct fd_perfcntr_group *g = &screen->perfcntr_groups[entry->gid]; 90 unsigned counter_idx = counters_per_group[entry->gid]++; 103 const struct fd_perfcntr_group *g = &screen->perfcntr_groups[entry->gid]; 104 unsigned counter_idx = counters_per_group[entry->gid]++; 130 const struct fd_perfcntr_group *g = &screen->perfcntr_groups[entry->gid]; 131 unsigned counter_idx = counters_per_group[entry->gid]++; 195 entry->gid = pq->group_id; in fd2_create_batch_query() 207 if (pq->group_id == entry->gid) in fd2_create_batch_query() 211 if (counters_per_group[entry->gid] > in fd2_create_batch_query() [all...] |
/third_party/cups-filters/fontembed/ |
H A D | embed_sfnt.c | 222 // TODO: FIXME: gid vs. char ... NOTE: not called in multi_byte mode... 223 // Adobe does: char --MacRoman/WinAnsi--> name --AGL--> unicode --cmap(3,1) --> gid only avoidable by setting 'symbol'+custom(1,0)/(3,0) 233 for (iA=0;iA<len;iA++) { // iA is a "gid" when in multi_byte mode... in emb_otf_get_pdf_widths() 234 const int gid=(encoding)?encoding[iA]:otf_from_unicode(otf,iA); // TODO in emb_otf_get_pdf_widths() local 235 if (bit_check(glyphs,gid)) { in emb_otf_get_pdf_widths() 271 const int gid=(encoding)?encoding[first]:otf_from_unicode(otf,first); // TODO in emb_otf_get_pdf_widths() local 272 if (gid>=otf->numGlyphs) { in emb_otf_get_pdf_widths() 278 if ( (!glyphs)||(bit_check(glyphs,gid)) ) { in emb_otf_get_pdf_widths() 279 ret->widths[iA]=get_width_fast(otf,gid)*1000/otf->unitsPerEm; in emb_otf_get_pdf_widths() 288 static int emb_otf_pdf_glyphwidth(void *context,int gid) // {{{ in emb_otf_pdf_glyphwidth() argument 322 emb_otf_get_post_name(const char *post,unsigned short gid) emb_otf_get_post_name() argument 372 get_glyphname(const char *post,unsigned short *to_unicode,int charcode,unsigned short gid) get_glyphname() argument 569 const int gid=(encoding)?encoding[iA]:otf_from_unicode(otf,iA); emb_otf_ps() local 655 const int gid=(encoding)?encoding[iA]:otf_from_unicode(otf,iA); emb_otf_ps() local [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | performance_monitor.c | 74 int gid, cid; in init_perf_monitor() local 79 for (gid = 0; gid < ctx->PerfMonitor.NumGroups; gid++) { in init_perf_monitor() 80 const struct gl_perf_monitor_group *g = &ctx->PerfMonitor.Groups[gid]; in init_perf_monitor() 82 if (m->ActiveGroups[gid] > g->MaxActiveCounters) { in init_perf_monitor() 91 num_active_counters += m->ActiveGroups[gid]; in init_perf_monitor() 93 max_batch_counters += m->ActiveGroups[gid]; in init_perf_monitor() 111 for (gid = 0; gid < ct in init_perf_monitor() 298 int gid, cid; get_perf_monitor_result() local 341 int gid; _mesa_free_perfomance_monitor_groups() local 359 int gid, cid; init_groups() local [all...] |
/third_party/ltp/testcases/kernel/syscalls/utils/ |
H A D | compat_tst_16.h | 64 #define GID16_CHECK(gid, sys_name) ({ \ 65 if (!GID_SIZE_CHECK(gid)) { \ 67 "gid %d of %s is too large for testing 16-bit " \ 68 "version of %s()", gid, #gid, #sys_name); \ 92 int SETGID(GID_T gid) in SETGID() argument 94 TST_CREATE_SYSCALL(setgid, gid); in SETGID() 117 int SETFSGID(GID_T gid) in SETFSGID() argument 119 TST_CREATE_SYSCALL(setfsgid, gid); in SETFSGID()
|
/third_party/musl/libc-test/src/functionalext/supplement/stat/ |
H A D | fstatat.c | 43 gid_t gid = getgid(); in fstatat_0100() local 44 EXPECT_EQ("fstatat_0100", st.st_gid, gid); in fstatat_0100() 70 gid_t gid = getgid(); in fstatat_0200() local 71 EXPECT_EQ("fstatat_0200", st.st_gid, gid); in fstatat_0200() 99 gid_t gid = getgid(); in fstatat_0300() local 100 EXPECT_EQ("fstatat_0300", st.st_gid, gid); in fstatat_0300() 122 gid_t gid = getgid(); in fstatat_time64_0100() local 123 EXPECT_EQ("fstatat_0100", st.st_gid, gid); in fstatat_time64_0100()
|
/third_party/ltp/testcases/kernel/syscalls/chown/ |
H A D | chown05.c | 12 * specified by path to any numeric owner(uid)/group(gid) values when invoked 26 gid_t gid; member 40 gid_t expect_gid = tc[i].gid == (uid_t)-1 ? tc[i - 1].gid : tc[i].gid; in run() 42 TST_EXP_PASS(CHOWN(TESTFILE, tc[i].uid, tc[i].gid), "chown(%s, %d, %d), %s", in run() 43 TESTFILE, tc[i].uid, tc[i].gid, tc[i].desc); in run()
|
H A D | chown02.c | 39 gid_t gid; in run() local 42 GID16_CHECK((gid = getegid()), "chown"); in run() 46 TST_EXP_PASS(CHOWN(tc[i].filename, uid, gid), "chown(%s, %d, %d)", in run() 47 tc[i].filename, uid, gid); in run() local 52 if (stat_buf.st_uid != uid || stat_buf.st_gid != gid) { in run() 53 tst_res(TFAIL, "%s: owner set to (uid=%d, gid=%d), expected (uid=%d, gid=%d)", in run() 54 tc[i].filename, stat_buf.st_uid, stat_buf.st_gid, uid, gid); in run()
|
/third_party/ltp/testcases/kernel/syscalls/fchown/ |
H A D | fchown05.c | 12 * specified by file descriptor to any numeric owner(uid)/group(gid) values 28 gid_t gid; member 42 gid_t expect_gid = tc[i].gid == (uid_t)-1 ? tc[i - 1].gid : tc[i].gid; in run() 44 TST_EXP_PASS(FCHOWN(fd, tc[i].uid, tc[i].gid), "fchown(%i, %i, %i), %s", in run() 45 fd, tc[i].uid, tc[i].gid, tc[i].desc); in run()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | setregid.c | 37 gid_t gid = getgid(); in setregid_0100() local 39 if (gid != srgid || egid != segid) { in setregid_0100() 40 t_error("%s failed: gid = %d\n", __func__, gid); in setregid_0100() 67 gid_t gid = getgid(); in setregid_0200() local 69 if (gid != srgid || egid != segid) { in setregid_0200() 70 t_error("%s failed: gid = %d\n", __func__, gid); in setregid_0200()
|
/third_party/ltp/include/lapi/ |
H A D | ipcbuf.h | 28 __kernel_gid_t gid; member 58 __kernel_gid_t gid; member 86 __kernel_gid32_t gid; member 118 __kernel_gid32_t gid; member 149 __kernel_gid32_t gid; member 179 __kernel_gid32_t gid; member
|