Searched refs:uid (Results 1 - 25 of 79) sorted by relevance

1234

/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.c78 if (st.st_uid == state.uid)
/ast/src/lib/libast/string/
H A Dfmtuid.c27 * uid number -> name
56 * return uid name given uid number
60 fmtuid(int uid) argument
76 else if (ip = (Id_t*)dtmatch(dict, &uid))
78 if (pw = getpwuid(uid))
86 else if (uid == 0)
90 name = fmtbuf(z = sizeof(uid) * 3 + 1);
91 sfsprintf(name, z, "%I*d", sizeof(uid), uid);
[all...]
/ast/src/cmd/cs/vcs_src/
H A Dvcs.c99 "\n-- connect( fd=%d hid=%s pid=%d uid=%d gid=%d )\n",
100 fd, csntoa(id->hid), id->pid, id->uid, id->gid );
104 CST->userid[ fd ] = id->uid;
121 version_info( buf, size, uid, own, uptm )
124 int uid;
129 fmtuid(uid), getpid(), fmtuid(own), csname(0), fmttime(NiL, uptm), id + 10 );
141 int uid, n, argc; local
145 uid = CST->userid[fd];
160 n = IfsConnect( ret, n, uid, argc, argv );
163 n = IfsDisconnect( ret, n, uid, arg
[all...]
H A Difs_agent.c128 MountListSearch( uid )
129 int uid;
135 if( ml->uid == uid )
142 ml->uid = uid;
455 ag_parsepath( srv, uid, argc, argv, proxy )
457 int uid, argc;
469 ml = MountListSearch( uid );
581 IfsMount( ret, retsize, uid, arg
[all...]
H A Dvcs_misc.c237 int permission(st, uid, gid)
239 register uid_t uid;
242 if (uid == st->st_uid)
H A Difs_agent.h78 int uid; member in struct:mount_list
/ast/src/lib/libcmd/
H A Dchgrp.c124 typedef struct Key_s /* uid/gid key */
126 int uid; /* uid */ member in struct:Key_s
130 typedef struct Map_s /* uid/gid map */
146 #define OPT_UID 0x0080 /* have uid */
148 #define OPT_VERBOSE 0x0200 /* have uid */
153 * parse uid and gid from s
165 key->uid = key->gid = NOID;
188 key->uid = n;
231 int uid; local
[all...]
H A Dcksum.c138 uid_t uid; /* caller uid */ member in struct:State_s
243 (st->st_uid != state->uid && ((st->st_mode & S_ISUID) || (st->st_mode & S_IRUSR) && !(st->st_mode & (S_IRGRP|S_IROTH)) || (st->st_mode & S_IXUSR) && !(st->st_mode & (S_IXGRP|S_IXOTH)))) ? fmtuid(st->st_uid) : "-",
265 int uid; local
284 uid = -1;
288 uid = struid(e);
329 if (uid < 0 || uid == st.st_uid)
330 uid = -1;
336 error(2, "%s: uid shoul
[all...]
H A Drm.c93 int uid; /* caller uid */ member in struct:State_s
274 ent->fts_statp->st_uid != state->uid ? "``not owner''" :
397 state.uid = geteuid();
/ast/src/cmd/at/
H A Datx.c77 unsigned long uid; local
95 ++n && sfsscanf(argv[2], "%..36lu.%..36lu.%..36lu", &uid, &gid, &tid) != 3)
99 if (setuid(uid))
100 error(ERROR_SYSTEM|3, "%s %s user denied (uid=%u euid=%u => uid=%d)", argv[2], error_info.id, getuid(), geteuid(), uid);
H A Datd.c34 * job names are encoded with <uid.gid.time> base 64 where
72 unsigned long uid; member in struct:__anon33
147 Table_t uid; /* user by uid */ member in struct:__anon39::__anon40
188 * return user info given name or uid
192 user(register State_t* state, char* name, unsigned long uid) argument
202 if (!(usr = name ? (User_t*)dtmatch(state->table.user.handle, name) : (User_t*)dtmatch(state->table.uid.handle, &uid)))
204 if (pwd = name ? getpwnam(name) : getpwuid(uid))
206 if (name) uid
[all...]
/ast/src/lib/libtk/generic/
H A DtkConfig.c337 Tk_Uid uid;
383 uid = valueIsUid ? (Tk_Uid) value : Tk_GetUid(value);
384 *((Tk_Uid *) ptr) = uid;
393 uid = valueIsUid ? (Tk_Uid) value : Tk_GetUid(value);
394 newPtr = Tk_GetColor(interp, tkwin, uid);
412 uid = valueIsUid ? (Tk_Uid) value : Tk_GetUid(value);
413 newPtr = Tk_GetFontStruct(interp, tkwin, uid);
431 uid = valueIsUid ? (Tk_Uid) value : Tk_GetUid(value);
432 new = Tk_GetBitmap(interp, tkwin, uid);
450 uid
334 Tk_Uid uid; local
782 Tk_Uid uid = *((Tk_Uid *) ptr); local
[all...]
/ast/src/cmd/ksh93/bltins/
H A Dregress.c81 "[102:euid?The intercept effective uid is set to \aoriginal-euid\a. The "
82 "effective uid of the underlying system process is not affected. The "
86 "[+geteuid()?The intercept effecive uid is returned. The "
87 "\bsetuid\b() intercept may change this between the real uid and "
89 "[+setuid(uid)?Sets the intercept effective uid to \auid\a. "
90 "Fails if \auid\a is neither the real uid nor "
94 "than the non-privileged-uid disable the priveleged mode. The intercepts "
95 "are:]#?[non-privileged-uid:=1]"
211 int setuid(uid_t uid) argument
[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.h74 uid_t uid; member in struct:Ardirent_s
H A Dar-local.c125 ar->dirent.uid = ar->st.st_uid;
/ast/src/lib/libcs/
H A Dcsrecv.c73 id->uid = id->uid;
207 id->uid = st.st_uid;
285 id->uid = rcv.uid;
317 id->uid = st.st_uid;
360 id->uid = st.st_uid;
365 id->uid = geteuid();
H A Dcsslib.h79 uid_t uid; \
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)))
622 int uid = -1; local
866 if ((uid = struid(s)) < 0)
868 uid = strtol(s, &t, 0);
875 if (n && uid != n)
882 uid = n;
1085 if (uid >= 0)
1086 b += sfsprintf(b, sizeof(state->mount) - (b - path), "%d-", uid);
[all...]
/ast/src/lib/libast/include/
H A Dtar.h74 #define TSUID 04000 /* set uid on exec */
96 char uid[TUIDLEN]; member in struct:header
/ast/src/cmd/std/
H A Dpss.h42 #define PSS_UID (1<<7) /* match disc.uid */
128 Pss_id_t uid; member in struct:Pssent_s
160 Pss_id_t uid; /* PSS_UID match value */ member in struct:Pssdisc_s
/ast/src/cmd/pax/
H A Dpax-cpio.c58 unsigned short uid; member in struct:Binary_header_s
72 long uid; member in struct:Localstat_s
365 &lst.uid,
376 f->st->st_uid = lst.uid;
438 error(1, "%s: uid number truncated", f->name);
534 &lst.uid,
550 f->st->st_uid = lst.uid;
616 &lst.uid,
632 f->st->st_uid = lst.uid;
736 f->st->st_uid = hdr.uid;
[all...]
/ast/src/cmd/ksh93/
H A DMakefile44 SHOPT_P_SUID == /* real uid's that require -p for set[ug]id */

Completed in 95 milliseconds

1234