Searched refs:gid (Results 1 - 25 of 62) sorted by relevance

123

/ast/src/cmd/3d/
H A Dfchown3d.c29 fchown3d(int fd, uid_t uid, gid_t gid) argument
34 if (!fscall(NiL, MSG_fchown, 0, fd, uid, gid))
38 if (FCHOWN(fd, uid, gid))
42 fscall(mp, MSG_fchown, 0, fd, uid, gid);
45 fscall(mp, MSG_fchown, 0, fd, uid, gid);
H A Dchown3d.c29 chown3d(const char* path, uid_t uid, gid_t gid) argument
37 if (!fscall(NiL, MSG_chown, 0, path, uid, gid))
43 r = CHOWN(sp, uid, gid);
48 fscall(mp, MSG_chown, 0, path, uid, gid);
51 fscall(mp, MSG_chown, 0, path, uid, gid);
H A Daccess3d.c84 else if (st.st_gid == state.gid)
/ast/src/lib/libast/string/
H A Dfmtgid.c27 * cached gid number -> name
56 * return gid name given gid number
60 fmtgid(int gid) argument
76 else if (ip = (Id_t*)dtmatch(dict, &gid))
78 if (gr = getgrgid(gid))
86 else if (gid == 0)
90 name = fmtbuf(z = sizeof(gid) * 3 + 1);
91 sfsprintf(name, z, "%I*d", sizeof(gid), gid);
[all...]
/ast/src/lib/libcmd/
H A Dchgrp.c124 typedef struct Key_s /* uid/gid key */
127 int gid; /* gid */ member in struct:Key_s
130 typedef struct Map_s /* uid/gid map */
141 #define OPT_GID 0x0004 /* have gid */
153 * parse uid and gid from s
165 key->uid = key->gid = NOID;
208 key->gid = n;
232 int gid; local
301 gid
[all...]
H A Dcksum.c124 gid_t gid; /* caller gid */ member in struct:State_s
244 (st->st_gid != state->gid && ((st->st_mode & S_ISGID) || (st->st_mode & S_IRGRP) && !(st->st_mode & S_IROTH) || (st->st_mode & S_IXGRP) && !(st->st_mode & S_IXOTH))) ? fmtgid(st->st_gid) : "-");
266 int gid; local
294 gid = -1;
298 gid = struid(t);
338 if (gid < 0 || gid == st.st_gid)
339 gid = -1;
345 error(2, "%s: gid shoul
[all...]
/ast/src/cmd/at/
H A Datx.c78 unsigned long gid; local
95 ++n && sfsscanf(argv[2], "%..36lu.%..36lu.%..36lu", &uid, &gid, &tid) != 3)
97 if (setgid(gid))
98 error(ERROR_SYSTEM|3, "%s %s group denied (gid=%u egid=%u => gid=%d)", argv[2], error_info.id, getgid(), getegid(), gid);
/ast/src/cmd/ksh93/bltins/
H A Dregress.c69 "[101:egid?The intercept effective gid is set to \aoriginal-egid\a. The "
70 "effective gid of the underlying system process is not affected. The "
74 "[+getegid()?The intercept effecive gid is returned. The "
75 "\bsetgid\b() intercept may change this between the real gid and "
77 "[+setgid(gid)?Sets the intercept effective gid to \agid\a. "
78 "Fails if \agid\a is neither the real gid nor "
168 int setgid(gid_t gid) argument
174 if (gid != intercept_rgid && gid !
[all...]
/ast/src/lib/libardir/
H A Dtestar.c49 sfprintf(sfstdout, "%s %8u %8u %8llu %8llu %s %s\n", fmtmode(ent->mode, 1), ent->uid, ent->gid, ent->size, ent->offset, fmttime("%k", ent->mtime), ent->name);
H A Dardir.h75 gid_t gid; member in struct:Ardirent_s
H A Dar-local.c126 ar->dirent.gid = ar->st.st_gid;
H A Dar-omf.c154 fp->st.gid = ar->st.st_gid;
237 fp->st.gid = (gid_t)ip[4];
445 fp->st.gid = statb.st_gid;
H A Dar-pdp11.c121 ar->dirent.gid = swapget(state->swap, (char*)&state->header.ar_gid, sizeof(state->header.ar_gid));
H A Dar-s5r0.c151 ar->dirent.gid = swapget(0, (char*)&state->member.arf_gid, sizeof(state->member.arf_gid));
/ast/src/lib/libcs/
H A Dcsrecv.c74 id->gid = id->gid;
208 id->gid = st.st_gid;
286 id->gid = rcv.gid;
318 id->gid = st.st_gid;
361 id->gid = st.st_gid;
366 id->gid = getegid();
H A Dcsslib.h78 gid_t gid; \
H A Dcsopen.c51 mkmount(register Cs_t* state, int mode, int uid, int gid, char* endserv, char* endhost, char* endtype) argument
84 if (mode != (S_IRWXU|S_IRWXG|S_IRWXO) && (uid >= 0 || gid >= 0 && (mode |= S_ISGID)) && (chown(state->mount, uid, gid) || chmod(state->mount, mode)))
623 int gid = -1; local
890 if ((gid = strgid(s)) < 0)
892 gid = strtol(s, &t, 0);
899 if (geteuid() && gid != n)
902 if (gid == groups[n])
912 gid = n;
1087 else if (gid >
[all...]
/ast/src/cmd/cs/vcs_src/
H A Dvcs_misc.c237 int permission(st, uid, gid)
240 register uid_t gid;
245 else if (gid == st->st_gid)
/ast/src/lib/libast/include/
H A Dtar.h75 #define TSGID 02000 /* set gid on exec */
97 char gid[TGIDLEN]; member in struct:header
/ast/src/cmd/pax/
H A Dpax-cpio.c59 unsigned short gid; member in struct:Binary_header_s
73 long gid; member in struct:Localstat_s
366 &lst.gid,
377 f->st->st_gid = lst.gid;
436 error(1, "%s: gid number truncated", f->name);
535 &lst.gid,
551 f->st->st_gid = lst.gid;
617 &lst.gid,
633 f->st->st_gid = lst.gid;
737 f->st->st_gid = hdr.gid;
[all...]
H A Dpax-ar.c87 f->st->st_gid = ar->ent->gid;
/ast/src/cmd/std/
H A Dpss-cygwin.c113 pe->gid = pr->gid;
H A Dpss-info.c175 pe->gid = pr->gid;
H A Dpss.h127 Pss_id_t gid; member in struct:Pssent_s
/ast/src/cmd/paxlib/tp/
H A Dtp.c44 ui1 gid; member in struct:Dir_s
142 f->st->st_gid = dp->gid;

Completed in 620 milliseconds

123