/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 | pathreal.c | 503 static int gid; local 510 gid = getegid(); 513 st->st_gid = gid;
|
H A D | 3d.h | 472 gid_t gid; member in struct:__anon7
|
/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/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 | ardir.h | 75 gid_t gid; member in struct:Ardirent_s
|
/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/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/paxlib/tp/ |
H A D | tp.c | 44 ui1 gid; member in struct:Dir_s 142 f->st->st_gid = dp->gid;
|
/ast/src/lib/libcs/ |
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...] |
H A D | cs.h | 162 unsigned long gid; /* group id */ member in struct:__anon334
|
/ast/src/cmd/coshell/ |
H A D | misc.c | 315 gid_t gid; local 322 gid = strgid(sb); 325 if (gid == state.gids[no])
|
/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 | paxlib.h | 188 int gid; /* current group id */ member in struct:Pax_s
|
H A D | pax.h | 139 #define SETIDS (1<<0) /* set explicit uid and gid */ 356 int gid; /* group id */ member in struct:Post_s 613 int setgid; /* set file gid to this value */ \
|
/ast/src/cmd/std/ |
H A D | pss.h | 127 Pss_id_t gid; member in struct:Pssent_s
|