Home
last modified time | relevance | path

Searched refs:st_gid (Results 1 – 25 of 111) sorted by relevance

12345

/openbsd/gnu/usr.bin/perl/lib/File/
H A Dstat.pm18 $st_nlink, $st_uid, $st_gid,
28 $st_nlink $st_uid $st_gid
203 $st_dev, $st_ino, $st_mode, $st_nlink, $st_uid, $st_gid, $st_rdev,
/openbsd/usr.bin/ssh/
H A Dsftp-common.c71 a->gid = st->st_gid; in stat_to_attrib()
89 st->st_gid = a->gid; in attrib_to_stat()
228 snprintf(gbuf, sizeof gbuf, "%u", (u_int)st->st_gid); in ls_file()
234 group = group_from_gid(st->st_gid, 0); in ls_file()
H A Dsftp-usergroup.c160 if (rgroup_name(g->gl_statv[i]->st_gid) != NULL) in collect_ids_from_glob()
162 id = (u_int)g->gl_statv[i]->st_gid; in collect_ids_from_glob()
H A Dsshpty.c158 if (st.st_uid != pw->pw_uid || st.st_gid != gid) { in pty_setowner()
/openbsd/usr.sbin/mtree/
H A Dcompare.c130 if (s->flags & (F_GID | F_GNAME) && s->st_gid != p->fts_statp->st_gid) { in compare()
133 tab, s->st_gid, p->fts_statp->st_gid); in compare()
135 if (chown(p->fts_accpath, -1, s->st_gid)) in compare()
H A Dcreate.c170 if (p->fts_statp->st_gid != gid) { in statf()
172 name = group_from_gid(p->fts_statp->st_gid, 1); in statf()
177 p->fts_statp->st_gid); in statf()
181 output(indent, &offset, "gid=%u", p->fts_statp->st_gid); in statf()
304 sgid = p->fts_statp->st_gid; in statd()
H A Dmtree.h59 gid_t st_gid; /* gid */ member
H A Dspec.c203 ip->st_gid = strtoul(val, &ep, 10); in set()
208 if (gid_from_group(val, &ip->st_gid) == -1) in set()
/openbsd/regress/sys/kern/ptmget/
H A Dptmget.c53 if (sb.st_gid != ttygid) in main()
55 sb.st_gid, ttygid); in main()
/openbsd/bin/cp/
H A Dutils.c185 } else if (fs->st_gid == to_stat.st_gid && in copy_file()
296 if (fd >= 0 ? fchown(fd, fs->st_uid, fs->st_gid) : in setfile()
297 lchown(to.p_path, fs->st_uid, fs->st_gid)) { in setfile()
/openbsd/bin/pax/
H A Dfile_subs.c110 if (nodirs || chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid, 0) < 0) { in file_creat()
141 arcn->sb.st_gid); in file_close()
324 if (!nodirs && chk_path(from, to_sb->st_uid, to_sb->st_gid, ign) == 0) in mk_link()
466 if (nodirs || chk_path(nm,arcn->sb.st_uid,arcn->sb.st_gid, 0) < 0) { in node_creat()
476 res = set_ids(nm, arcn->sb.st_uid, arcn->sb.st_gid); in node_creat()
598 chk_path(char *name, uid_t st_uid, gid_t st_gid, int ign) in chk_path() argument
665 (void)set_ids(name, st_uid, st_gid); in chk_path()
H A Dcpio.c291 arcn->sb.st_gid = (gid_t)asc_ul(hd->c_gid, sizeof(hd->c_gid), OCT); in cpio_rd()
430 ul_asc(arcn->sb.st_gid, hd->c_gid, sizeof(hd->c_gid), OCT) || in cpio_wr()
565 arcn->sb.st_gid = (gid_t)asc_ul(hd->c_gid, sizeof(hd->c_gid), HEX); in vcpio_rd()
735 ul_asc(arcn->sb.st_gid, hd->c_gid, sizeof(hd->c_gid), HEX) || in vcpio_wr()
849 arcn->sb.st_gid = (gid_t)(RSHRT_EXT(hd->h_gid)); in bcpio_rd()
864 arcn->sb.st_gid = (gid_t)(SHRT_EXT(hd->h_gid)); in bcpio_rd()
1033 hd->h_gid[0] = CHR_WR_2(arcn->sb.st_gid); in bcpio_wr()
1034 hd->h_gid[1] = CHR_WR_3(arcn->sb.st_gid); in bcpio_wr()
1035 if (arcn->sb.st_gid != (gid_t)(SHRT_EXT(hd->h_gid))) in bcpio_wr()
H A Dtar.c423 arcn->sb.st_gid = (gid_t)asc_ul(hd->gid, sizeof(hd->gid), OCT); in tar_rd()
650 ul_oct(arcn->sb.st_gid, hd->gid, sizeof(hd->gid), 0)) in tar_wr()
821 if (Nflag || gid_from_group(hd->gname, &(arcn->sb.st_gid)) == -1) in ustar_rd()
822 arcn->sb.st_gid = (gid_t)asc_ul(hd->gid, sizeof(hd->gid), OCT); in ustar_rd()
1074 ul_oct(arcn->sb.st_gid, hd->gid, sizeof(hd->gid), 0)) in wr_xheader()
1284 if (ul_oct(arcn->sb.st_gid, hd->gid, sizeof(hd->gid), 3)) { in wr_ustar_or_pax()
1289 if (gid_warn != arcn->sb.st_gid) { in wr_ustar_or_pax()
1290 gid_warn = arcn->sb.st_gid; in wr_ustar_or_pax()
1293 "using nobody", (u_long)arcn->sb.st_gid); in wr_ustar_or_pax()
1331 if ((name = group_from_gid(arcn->sb.st_gid, 1)) != NULL) in wr_ustar_or_pax()
H A Dsel_subs.c301 pt = grptb[((unsigned)arcn->sb.st_gid) % GRP_TB_SZ]; in grp_match()
303 if (pt->gid == arcn->sb.st_gid) in grp_match()
/openbsd/regress/lib/libc/sys/
H A Dt_mkdir.c154 if (st_b.st_gid != st_a.st_gid) in ATF_TC_BODY()
H A Dt_stat.c264 if (sa.st_gid != sb.st_gid) in ATF_TC_BODY()
/openbsd/gnu/usr.bin/binutils/include/mpw/sys/
H A Dstat.h15 gid_t st_gid; member
/openbsd/libexec/login_token/
H A Dtokendb.c184 if (statb.st_uid != 0 || statb.st_gid != grp->gr_gid) { in tokendb_open()
190 "Group was %u", tt->db, statb.st_uid, statb.st_gid); in tokendb_open()
/openbsd/bin/mv/
H A Dmv.c189 group_from_gid(sb.st_gid, 0), to); in do_move()
289 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) { in fastcopy()
/openbsd/gnu/usr.bin/binutils/include/mpw/
H A Dstat.h19 short int st_gid; /* gid; TEMPORARY HACK: should be gid_t */ member
/openbsd/usr.bin/find/
H A Dls.c66 NAME_WIDTH, UT_NAMESIZE, group_from_gid(sb->st_gid, 0)); in printlong()
/openbsd/usr.bin/stat/
H A Dstat.c599 small = (sizeof(st->st_gid) == 4); in format1()
600 data = st->st_gid; in format1()
601 sdata = group_from_gid(st->st_gid, 1); in format1()
603 snprintf(sid, sizeof(sid), "(%ld)", (long)st->st_gid); in format1()
/openbsd/usr.bin/rdist/
H A Dclient.c991 if (strcmp(group, getgroupname(statp->st_gid, in update()
995 getgroupname(statp->st_gid, in update()
1005 if (group && (gid_t)atoi(group) != statp->st_gid) { in update()
1008 statp->st_gid, group); in update()
1177 group = getgroupname(stb.st_gid, target, opts); in sendit()
/openbsd/sbin/mount_ntfs/
H A Dmount_ntfs.c124 args.gid = sb.st_gid; in main()
/openbsd/sbin/mount_msdos/
H A Dmount_msdos.c126 args.gid = sb.st_gid; in main()

12345