/ast/src/cmd/3d/ |
H A D | fchown3d.c | 29 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 D | chown3d.c | 29 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 D | access3d.c | 84 else if (st.st_gid == state.gid)
|
/ast/src/lib/libast/string/ |
H A D | fmtgid.c | 27 * 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 D | chgrp.c | 124 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 D | cksum.c | 124 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 D | atx.c | 78 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 D | regress.c | 69 "[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 D | testar.c | 49 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 D | ardir.h | 75 gid_t gid; member in struct:Ardirent_s
|
H A D | ar-local.c | 126 ar->dirent.gid = ar->st.st_gid;
|
H A D | ar-omf.c | 154 fp->st.gid = ar->st.st_gid; 237 fp->st.gid = (gid_t)ip[4]; 445 fp->st.gid = statb.st_gid;
|
H A D | ar-pdp11.c | 121 ar->dirent.gid = swapget(state->swap, (char*)&state->header.ar_gid, sizeof(state->header.ar_gid));
|
H A D | ar-s5r0.c | 151 ar->dirent.gid = swapget(0, (char*)&state->member.arf_gid, sizeof(state->member.arf_gid));
|
/ast/src/lib/libcs/ |
H A D | csrecv.c | 74 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 D | csslib.h | 78 gid_t gid; \
|
H A D | csopen.c | 51 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 D | vcs_misc.c | 237 int permission(st, uid, gid) 240 register uid_t gid; 245 else if (gid == st->st_gid)
|
/ast/src/lib/libast/include/ |
H A D | tar.h | 75 #define TSGID 02000 /* set gid on exec */ 97 char gid[TGIDLEN]; member in struct:header
|
/ast/src/cmd/pax/ |
H A D | pax-cpio.c | 59 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 D | pax-ar.c | 87 f->st->st_gid = ar->ent->gid;
|
/ast/src/cmd/std/ |
H A D | pss-cygwin.c | 113 pe->gid = pr->gid;
|
H A D | pss-info.c | 175 pe->gid = pr->gid;
|
H A D | pss.h | 127 Pss_id_t gid; member in struct:Pssent_s
|
/ast/src/cmd/paxlib/tp/ |
H A D | tp.c | 44 ui1 gid; member in struct:Dir_s 142 f->st->st_gid = dp->gid;
|