Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 25 of 546) sorted by relevance

12345678910>>...22

/third_party/node/deps/npm/node_modules/chownr/
Dchownr.js15 const lchownSync = (path, uid, gid) => { argument
17 return fs[LCHOWNSYNC](path, uid, gid)
25 const chownSync = (path, uid, gid) => { argument
27 return fs.chownSync(path, uid, gid)
36 needEISDIRHandled ? (path, uid, gid, cb) => er => {
43 fs.chown(path, uid, gid, cb)
49 needEISDIRHandled ? (path, uid, gid) => {
51 return lchownSync(path, uid, gid)
55 chownSync(path, uid, gid)
58 : (path, uid, gid) => lchownSync(path, uid, gid)
[all …]
/third_party/vk-gl-cts/external/amber/src/tests/cases/
Dglsl_read_and_write_image3d_rgba32i.amber20 uvec3 gid = gl_GlobalInvocationID;
21 ivec3 coord = ivec3(gid.x, gid.y, gid.z);
22 ivec4 data = ivec4(gid.x + 1, gid.y + 1, gid.z + 1, 0);
35 uvec3 gid = gl_GlobalInvocationID;
36 ivec3 coord = ivec3(gid.x, gid.y, gid.z);
37 uint linear = 4 * gid.z + 2 * gid.y + gid.x;
/third_party/pulseaudio/src/daemon/
Dcaps.c50 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()
72 pa_assert_se(getegid() == gid); in pa_drop_root()
/third_party/skia/src/pdf/
DSkPDFGlyphUse.h22 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() argument
39 uint16_t toCode(SkGlyphID gid) const { in toCode() argument
40 if (gid == 0 || fFirstNonZero == 1) { in toCode()
41 return gid; in toCode()
43 SkASSERT(gid >= fFirstNonZero && gid <= fLastGlyph); in toCode()
44 return gid - fFirstNonZero + 1; in toCode()
DSkPDFFont.h60 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() argument
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 - this->firstGlyphID() + 1; in glyphToPDFFontEncoding()
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-var-hvar-table.hh60 …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, &old_gid)) in init()
129 for (hb_codepoint_t gid = 0; gid < output_map.length; gid++) in remap() local
132 if (plan->old_gid_for_new_gid (gid, &old_gid)) in remap()
136 output_map[gid] = (outer_map[outer] << 16) | (inner_maps[outer][v & 0xFFFF]); in remap()
[all …]
Dtest-ot-glyphname.cc53 for (hb_codepoint_t gid = 0; gid < num_glyphs; gid++) in main() local
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()
Dhb-subset-plan.hh146 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 == HB_MAP_VALUE_INVALID) in old_gid_for_new_gid()
179 *old_gid = gid; in old_gid_for_new_gid()
Dhb-ot-glyf-table.hh476 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 …]
/third_party/ltp/testcases/kernel/syscalls/setfsgid/
Dsetfsgid03.c49 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()
Dsetfsgid02.c23 static gid_t gid; variable
32 GID16_CHECK(gid, setfsgid); in run()
45 TEST(SETFSGID(gid)); in run()
52 pre_gid = gid; in run()
53 gid++; in run()
65 gid = 1; in setup()
Dsetfsgid01.c43 gid_t gid; in main() local
52 gid = getegid(); in main()
53 GID16_CHECK(gid, setfsgid, cleanup); in main()
55 TEST(SETFSGID(cleanup, gid)); in main()
63 if (TEST_RETURN != gid) { in main()
65 TEST_RETURN, gid); in main()
/third_party/cups-filters/fontembed/
Dembed_sfnt.c234 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
291 return get_width_fast(otf,gid)*1000/otf->unitsPerEm; in emb_otf_pdf_glyphwidth()
322 static const char *emb_otf_get_post_name(const char *post,unsigned short gid) // {{{ in emb_otf_get_post_name() argument
329 if (gid<sizeof(macRoman)/sizeof(macRoman[0])) { in emb_otf_get_post_name()
[all …]
/third_party/toybox/toys/pending/
Dgroupadd.c30 long gid; in GLOBALS() argument
43 if (TT.gid > INT_MAX) error_exit("gid should be less than '%d' ", INT_MAX);
44 if (getgrgid(TT.gid)) error_exit("group '%ld' is in use", TT.gid);
46 if (FLAG(S)) TT.gid = CFG_TOYBOX_UID_SYS;
47 else TT.gid = CFG_TOYBOX_UID_USR;
49 while (getgrgid(TT.gid)) TT.gid++;
52 entry = xmprintf("%s:%s:%ld:", *toys.optargs, "x", TT.gid);
/third_party/ltp/testcases/kernel/syscalls/ipc/msgctl/
Dmsgctl01.c22 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()
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()
109 (unsigned)buf.msg_perm.cgid, (unsigned)gid); in verify_msgctl()
128 gid = getegid(); in setup()
/third_party/ltp/testcases/kernel/syscalls/setregid/
Dsetregid01.c25 static gid_t gid, egid; /* current real and effective group id */ variable
35 {&gid, &neg_one, "Change real to real gid" },
36 {&neg_one, &gid, "Change effective to real gid" },
37 {&gid, &gid, "Try to change real to current real" }
54 gid = getgid(); in setup()
55 GID16_CHECK(gid, setregid); in setup()
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_query.c64 uint8_t gid; /* group-id */ member
89 const struct fd_perfcntr_group *g = &screen->perfcntr_groups[entry->gid]; in perfcntr_resume()
90 unsigned counter_idx = counters_per_group[entry->gid]++; in perfcntr_resume()
103 const struct fd_perfcntr_group *g = &screen->perfcntr_groups[entry->gid]; in perfcntr_resume()
104 unsigned counter_idx = counters_per_group[entry->gid]++; in perfcntr_resume()
130 const struct fd_perfcntr_group *g = &screen->perfcntr_groups[entry->gid]; in perfcntr_pause()
131 unsigned counter_idx = counters_per_group[entry->gid]++; in perfcntr_pause()
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/mesa3d/src/mesa/main/
Dperformance_monitor.c74 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 < ctx->PerfMonitor.NumGroups; gid++) { in init_perf_monitor()
112 const struct gl_perf_monitor_group *g = &ctx->PerfMonitor.Groups[gid]; in init_perf_monitor()
114 BITSET_FOREACH_SET(cid, m->ActiveCounters[gid], g->NumCounters) { in init_perf_monitor()
120 cntr->group_id = gid; in init_perf_monitor()
[all …]
/third_party/ltp/testcases/kernel/syscalls/utils/
Dcompat_tst_16.h64 #define GID16_CHECK(gid, sys_name) ({ \ argument
65 if (!GID_SIZE_CHECK(gid)) { \
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/
Dfstatat.c43 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/musl/libc-test/src/functionalext/supplement/unistd/
Dsetregid.c37 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/testcases/kernel/syscalls/chown/
Dchown05.c26 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()
/third_party/ntfs-3g/libntfs-3g/
Dsecurity.c1134 static BOOL staticgroupmember(struct SECURITY_CONTEXT *scx, uid_t uid, gid_t gid) in staticgroupmember() argument
1149 while ((--grcnt >= 0) && (groups[grcnt] != gid)) { } in staticgroupmember()
1167 static BOOL groupmember(struct SECURITY_CONTEXT *scx, uid_t uid, gid_t gid) in groupmember() argument
1193 ismember = staticgroupmember(scx, uid, gid); in groupmember()
1202 if (basecreds.pr_egid == gid) in groupmember()
1210 && (*p != gid)) { in groupmember()
1254 static BOOL groupmember(struct SECURITY_CONTEXT *scx, uid_t uid, gid_t gid) in groupmember() argument
1270 ismember = staticgroupmember(scx, uid, gid); in groupmember()
1319 ismember = (grp == gid); in groupmember()
1497 || (cached->gid != item->gid) in compare()
[all …]
/third_party/ltp/testcases/kernel/syscalls/fchown/
Dfchown05.c28 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/skia/third_party/externals/harfbuzz/perf/
Dperf-draw.hh85 for (unsigned gid = 0; gid < num_glyphs; ++gid) in draw() local
86 hb_font_draw_glyph (font, gid, draw_funcs, nullptr); in draw()
110 for (unsigned gid = 0; gid < num_glyphs; ++gid) in draw() local
112 FT_Load_Glyph (ft_face, gid, FT_LOAD_NO_HINTING | FT_LOAD_NO_SCALE); in draw()
133 for (unsigned gid = 0; gid < num_glyphs; ++gid) in draw() local
134 ttfp_outline_glyph (tp_font, builder, &builder, gid, &bbox); in draw()

12345678910>>...22