/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/ |
H A D | MetricsTests.java | 40 for (int gid = 0; gid < 100; gid++) { in testBasicHmtxValidity() 41 int width = hmtxTable.advanceWidth(gid); in testBasicHmtxValidity()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-ot-cmap-table.hh | 46 hb_codepoint_t gid = codepoint < 256 ? glyphIdArray[codepoint] : 0; in get_glyph() local 47 if (!gid) in get_glyph() 49 *glyph = gid; in get_glyph() 234 HBUINT16 gid; in serialize_rangeoffset_glyid() local 235 gid = cp_to_gid[cp]; in serialize_rangeoffset_glyid() 236 c->copy<HBUINT16> (gid); in serialize_rangeoffset_glyid() 346 hb_codepoint_t gid; in get_glyph() local 349 gid = codepoint + this->idDelta[i]; in get_glyph() 356 gid = this->glyphIdArray[index]; in get_glyph() 357 if (unlikely (!gid)) in get_glyph() 385 hb_codepoint_t gid = (codepoint + this->idDelta[i]) & 0xFFFFu; collect_unicodes() local 398 hb_codepoint_t gid = this->glyphIdArray[index]; collect_unicodes() local 422 hb_codepoint_t gid = (codepoint + this->idDelta[i]) & 0xFFFFu; collect_mapping() local 436 hb_codepoint_t gid = this->glyphIdArray[index]; collect_mapping() local 560 hb_codepoint_t gid = glyphIdArray[codepoint - startCharCode]; get_glyph() local 624 hb_codepoint_t gid = T::group_get_glyph (groups.bsearch (codepoint), codepoint); get_glyph() local 643 hb_codepoint_t gid = this->groups[i].glyphID; collect_unicodes() local 668 hb_codepoint_t gid = this->groups[i].glyphID; collect_mapping() local [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
H A D | fd5_query.c | 258 uint8_t gid; /* group-id */ member 283 const struct fd_perfcntr_group *g = &screen->perfcntr_groups[entry->gid]; 284 unsigned counter_idx = counters_per_group[entry->gid]++; 297 const struct fd_perfcntr_group *g = &screen->perfcntr_groups[entry->gid]; 298 unsigned counter_idx = counters_per_group[entry->gid]++; 325 const struct fd_perfcntr_group *g = &screen->perfcntr_groups[entry->gid]; 326 unsigned counter_idx = counters_per_group[entry->gid]++; 403 entry->gid = pq->group_id; in fd5_create_batch_query() 415 if (pq->group_id == entry->gid) in fd5_create_batch_query() 419 if (counters_per_group[entry->gid] > in fd5_create_batch_query() [all...] |
/third_party/ltp/testcases/kernel/syscalls/fchown/ |
H A D | fchown04.c | 60 gid_t gid; in run() local 63 GID16_CHECK((gid = getegid()), "fchown"); in run() 65 TST_EXP_FAIL(FCHOWN(*tc[i].fd, uid, gid), tc[i].exp_errno, in run() 66 "fchown(%i, %i, %i)", *tc[i].fd, uid, gid); in run()
|
/test/xts/hats/kernel/syscalls/user/ |
H A D | UserApiTest.cpp | 68 gid_t gid = getgid(); in HWTEST_F() local 69 EXPECT_TRUE(gid >= 0); in HWTEST_F() 71 ret = setpgid(gid, gid); in HWTEST_F() 74 ret = setpgid(0, gid); in HWTEST_F() 77 ret = setpgid(gid, 0); in HWTEST_F() 256 * @tc.desc : Setfsgid set current gid. 314 gid_t gid = getgid(); in HWTEST_F() local 315 EXPECT_TRUE(gid >= 0); in HWTEST_F() 317 gid_t setGid = gid in HWTEST_F() [all...] |
/third_party/eudev/src/udev/ |
H A D | udev-node.c | 253 mode_t mode, uid_t uid, gid_t gid, in node_permissions_apply() 283 if ((stats.st_mode & 0777) != (mode & 0777) || stats.st_uid != uid || stats.st_gid != gid) { in node_permissions_apply() 284 log_debug("set permissions %s, %#o, uid=%u, gid=%u", devnode, mode, uid, gid); in node_permissions_apply() 288 err = chown(devnode, uid, gid); in node_permissions_apply() 290 log_warning_errno(errno, "setting owner of %s to uid=%u, gid=%u failed: %m", devnode, uid, gid); in node_permissions_apply() 292 log_debug("preserve permissions %s, %#o, uid=%u, gid=%u", devnode, mode, uid, gid); in node_permissions_apply() 339 mode_t mode, uid_t uid, gid_t gid, in udev_node_add() 252 node_permissions_apply(struct udev_device *dev, bool apply, mode_t mode, uid_t uid, gid_t gid, struct udev_list *seclabel_list) node_permissions_apply() argument 338 udev_node_add(struct udev_device *dev, bool apply, mode_t mode, uid_t uid, gid_t gid, struct udev_list *seclabel_list) udev_node_add() argument [all...] |
H A D | udev-rules.c | 47 gid_t gid; member 75 /* during rule parsing, uid/gid lookup results are cached */ 211 gid_t gid; member 409 log_debug("%s %s %u", token_str(type), operation_str(op), token->key.gid); in dump_token() 522 gid_t gid = 0; in add_gid() local 530 gid = rules->gids[i].gid; in add_gid() 531 return gid; in add_gid() 534 r = get_group_creds(&group, &gid); in add_gid() 554 return gid; in add_gid() 1490 gid_t gid; add_rule() local 2630 gid_t gid = 0; udev_rules_apply_static_dev_perms() local [all...] |
/third_party/node/deps/npm/node_modules/graceful-fs/ |
H A D | polyfills.js | 81 fs.lchown = function (path, uid, gid, cb) { 273 return function (target, uid, gid, cb) { 274 return orig.call(fs, target, uid, gid, function (er) { 283 return function (target, uid, gid) { 285 return orig.call(fs, target, uid, gid) 295 // uid + gid. 304 if (stats.gid < 0) stats.gid += 0x100000000 316 // uid + gid. 322 if (stats.gid < [all...] |
/third_party/musl/src/passwd/ |
H A D | getgr_a.c | 20 int __getgr_a(const char *name, gid_t gid, struct group *gr, char **buf, size_t *size, char ***mem, size_t *nmem, struct group **res) in __getgr_a() argument 37 || !name && (*res)->gr_gid == gid) { in __getgr_a() 57 if (gid < 0 || gid > UINT32_MAX) { in __getgr_a() 61 key = itoa(gidbuf, gid); in __getgr_a() 153 || !name && gid != gr->gr_gid) { in __getgr_a()
|
H A D | getgr_r.c | 6 static int getgr_r(const char *name, gid_t gid, struct group *gr, char *buf, size_t size, struct group **res) in getgr_r() argument 18 rv = __getgr_a(name, gid, gr, &line, &len, &mem, &nmem, res); in getgr_r() 46 int getgrgid_r(gid_t gid, struct group *gr, char *buf, size_t size, struct group **res) in getgrgid_r() argument 48 return getgr_r(0, gid, gr, buf, size, res); in getgrgid_r()
|
/third_party/mesa3d/src/panfrost/ds/ |
H A D | pan_pps_driver.cc | 59 for (uint32_t gid = 0; gid < perf.perf->cfg->n_categories; ++gid) { in create_available_counters() 60 const auto &category = perf.perf->cfg->categories[gid]; in create_available_counters() 62 group.id = gid; in create_available_counters() 68 counter.group = gid; in create_available_counters()
|
/third_party/skia/third_party/externals/freetype/src/gxvalid/ |
H A D | gxvcommn.c | 498 FT_UShort gid; in gxv_LookupTable_fmt2_validate() local 516 for ( unit = 0, gid = 0; unit < nUnits; unit++ ) in gxv_LookupTable_fmt2_validate() 526 if ( lastGlyph < gid ) in gxv_LookupTable_fmt2_validate() 530 unit, lastGlyph, unit - 1 , gid )); in gxv_LookupTable_fmt2_validate() 545 gid = firstGlyph; in gxv_LookupTable_fmt2_validate() 547 lastGlyph = gid; in gxv_LookupTable_fmt2_validate() 550 for ( gid = firstGlyph; gid <= lastGlyph; gid++ ) in gxv_LookupTable_fmt2_validate() 551 gxvalid->lookupval_func( gid, in gxv_LookupTable_fmt2_validate() 570 FT_UShort gid; gxv_LookupTable_fmt4_validate() local 845 gxv_ctlPoint_validate( FT_UShort gid, FT_UShort ctl_point, GXV_Validator gxvalid ) gxv_ctlPoint_validate() argument [all...] |
/third_party/ltp/testcases/kernel/syscalls/utils/ |
H A D | compat_gid.h | 30 int GID_SIZE_CHECK(gid_t gid) in GID_SIZE_CHECK() argument 33 Return 0 if gid is too large to store in GID_SIZE_CHECK() 35 return ((gid) & ~0xFFFF)? 0: 1; in GID_SIZE_CHECK() 41 int GID_SIZE_CHECK(gid_t gid LTP_ATTRIBUTE_UNUSED) in GID_SIZE_CHECK()
|
/third_party/toybox/toys/posix/ |
H A D | id.c | 91 gid_t gid = getgid(), egid = getegid(), *groups; in do_id() local 99 gid = egid = pw->pw_gid; in do_id() 107 grp = xgetgrgid(i ? gid : egid); in do_id() 112 showid(" gid=", grp->gr_gid, grp->gr_name); in do_id() 119 if (gid != egid) { in do_id() 131 ngroups = username ? getgrouplist(username, gid, groups, &i) in do_id()
|
/third_party/musl/src/unistd/ |
H A D | chown.c | 5 int chown(const char *path, uid_t uid, gid_t gid) in chown() argument 8 return syscall(SYS_chown, path, uid, gid); in chown() 10 return syscall(SYS_fchownat, AT_FDCWD, path, uid, gid, 0); in chown()
|
H A D | lchown.c | 6 int lchown(const char *path, uid_t uid, gid_t gid) in lchown() argument 10 return syscall(SYS_lchown, path, uid, gid); in lchown() 12 return syscall(SYS_fchownat, AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW); in lchown()
|
/third_party/musl/porting/liteos_a/user/src/unistd/ |
H A D | lchown.c | 6 int lchown(const char *path, uid_t uid, gid_t gid) in lchown() argument 10 return syscall(SYS_lchown, path, uid, gid); in lchown() 12 return syscall(SYS_fchownat, AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW); in lchown()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | setgid.c | 22 * @tc.desc : Call the setgid method to set the process gid 27 uid_t gid = 0; in setgid_0100() local 28 int result = setgid(gid); in setgid_0100() 32 if (getgid() != gid) { in setgid_0100()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | syscall.c | 37 * @tc.desc : Test used syscall to get gid 42 gid_t gid; in syscall_0200() local 43 gid = syscall(SYS_getgid); in syscall_0200() 44 if (gid != 0) { in syscall_0200()
|
/third_party/selinux/libselinux/src/ |
H A D | seusers.c | 98 gid_t gid = -1; in get_default_gid() local 107 gid = pwent->pw_gid; in get_default_gid() 110 return gid; in get_default_gid() 113 static int check_group(const char *group, const char *name, const gid_t gid) { in check_group() argument 143 if (getgrouplist(name, gid, NULL, &ng) < 0) { in check_group() 149 if (getgrouplist(name, gid, groups, &ng) < 0) in check_group() 186 gid_t gid = get_default_gid(name); in getseuserbyname() local 210 check_group(&username[1], name, gid)) { in getseuserbyname()
|
/third_party/node/src/ |
H A D | node_credentials.cc | 194 static const char* name_by_gid(gid_t gid) { 203 if ((rc = getgrgid_r(gid, &pwd, buf, sizeof(buf), &pp)) == 0 && 270 gid_t gid = gid_by_name(env->isolate(), args[0]); in SetGid() local 272 if (gid == gid_not_found) { in SetGid() 275 } else if (setgid(gid)) { in SetGid() 289 gid_t gid = gid_by_name(env->isolate(), args[0]); in SetEGid() local 291 if (gid == gid_not_found) { in SetEGid() 294 } else if (setegid(gid)) { in SetEGid() 372 gid_t gid = gid_by_name( in SetGroups() local 375 if (gid in SetGroups() [all...] |
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authsys_create/ |
H A D | tirpc_authsys_create.c | 48 gid_t gid, aup_gids[NGRPS]; in main() local 53 gid = getegid(); in main() 57 authSys = authsys_create(argc[1], uid, gid, len, aup_gids); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/passwd/ |
H A D | getgrgid.c | 31 gid_t gid = 0; in getgrgid_0100() local 33 struct group *grp = getgrgid(gid); in getgrgid_0100() 43 if (grp->gr_gid != gid) { in getgrgid_0100() 54 * (gid argument is invalid)
|
/third_party/skia/third_party/externals/freetype/tests/issue-1063/ |
H A D | main.c | 37 FT_UInt gid = FT_Get_Char_Index( face, i ); in main() local 38 FT_Error code = FT_Load_Glyph( face, gid, FT_LOAD_DEFAULT ); in main() 42 printf( "unknown %d for char %lu, gid %u\n", code, i, gid ); in main()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
H A D | fd6_query.c | 463 uint8_t gid; /* group-id */ member 488 const struct fd_perfcntr_group *g = &screen->perfcntr_groups[entry->gid]; 489 unsigned counter_idx = counters_per_group[entry->gid]++; 502 const struct fd_perfcntr_group *g = &screen->perfcntr_groups[entry->gid]; 503 unsigned counter_idx = counters_per_group[entry->gid]++; 530 const struct fd_perfcntr_group *g = &screen->perfcntr_groups[entry->gid]; 531 unsigned counter_idx = counters_per_group[entry->gid]++; 608 entry->gid = pq->group_id; in fd6_create_batch_query() 620 if (pq->group_id == entry->gid) in fd6_create_batch_query() 624 if (counters_per_group[entry->gid] > in fd6_create_batch_query() [all...] |