Home
last modified time | relevance | path

Searched refs:idtype (Results 1 – 25 of 70) sorted by relevance

123

/titanic_41/usr/src/lib/libast/common/features/
H A Dmode.c41 int idtype; in main() local
43 idperm = idtype = 1; in main()
52 if (!S_ISBLK(X_IFBLK)) idtype = 0; in main()
61 if (!S_ISCHR(X_IFCHR)) idtype = 0; in main()
70 if (!S_ISCTG(X_IFCTG)) idtype = 0; in main()
77 if (!S_ISDIR(X_IFDIR)) idtype = 0; in main()
86 if (!S_ISFIFO(X_IFIFO)) idtype = 0; in main()
95 if (!S_ISLNK(X_IFLNK)) idtype = 0; in main()
104 if (!S_ISREG(X_IFREG)) idtype = 0; in main()
113 if (!S_ISSOCK(X_IFSOCK)) idtype = 0; in main()
[all …]
/titanic_41/usr/src/lib/libc/port/gen/
H A Dwaitpid.c80 idtype_t idtype; in waitpid() local
86 idtype = P_PID; in waitpid()
89 idtype = P_PGID; in waitpid()
92 idtype = P_ALL; in waitpid()
95 idtype = P_PGID; in waitpid()
101 if ((error = waitid(idtype, id, &info, options)) < 0) in waitpid()
124 idtype_t idtype; in wait4() local
149 idtype = P_PGID; in wait4()
151 idtype = P_ALL; in wait4()
153 idtype = P_PID; in wait4()
[all …]
H A Dsetpriority.c111 idtype_t idtype; in getpriority() local
114 if ((idtype = prio_to_idtype(which)) == -1) { in getpriority()
142 if (priocntl(idtype, id, PC_DONICE, &pcnice) == -1) in getpriority()
152 idtype_t idtype; in setpriority() local
156 if ((idtype = prio_to_idtype(which)) == -1) { in setpriority()
184 ret = priocntl(idtype, id, PC_DONICE, &pcnice); in setpriority()
202 if (priocntl(idtype, id, PC_DONICE, &gpcnice) == 0 && in setpriority()
H A Dpriocntl.c55 __priocntl(int pc_version, idtype_t idtype, id_t id, int cmd, caddr_t arg) in __priocntl() argument
59 setprocset(&procset, POP_AND, idtype, id, P_ALL, 0); in __priocntl()
67 priocntl(idtype_t idtype, id_t id, int cmd, ...) in priocntl() argument
75 setprocset(&procset, POP_AND, idtype, id, P_ALL, 0); in priocntl()
/titanic_41/usr/src/cmd/priocntl/
H A Dfsspriocntl.c83 idtype_t idtype; in main() local
154 if (str2idtyp(idtypnm, &idtype) == -1) in main()
158 idtype = P_PID; in main()
171 return (set_fssprocs(idtype, idargc, &argv[optind], cflags, in main()
278 fss_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) in fss_priocntl() argument
280 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1], in fss_priocntl()
290 set_fssprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, in set_fssprocs() argument
329 if (idtype == P_ALL) { in set_fssprocs()
342 (void) verifyupri(idtype, 0, "FSS", FSS_KY_UPRILIM, in set_fssprocs()
346 if (fss_priocntl(idtype, P_MYID, PC_SETXPARMS, "FSS", in set_fssprocs()
[all …]
H A Dtspriocntl.c88 idtype_t idtype; in main() local
168 if (str2idtyp(idtypnm, &idtype) == -1) in main()
172 idtype = P_PID; in main()
185 return (set_tsprocs(idtype, idargc, &argv[optind], cflags, in main()
293 ts_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) in ts_priocntl() argument
295 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1], in ts_priocntl()
306 set_tsprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, in set_tsprocs() argument
345 if (idtype == P_ALL) { in set_tsprocs()
358 (void) verifyupri(idtype, 0, "TS", TS_KY_UPRILIM, in set_tsprocs()
362 if (ts_priocntl(idtype, P_MYID, PC_SETXPARMS, "TS", in set_tsprocs()
[all …]
H A Diapriocntl.c90 idtype_t idtype; in main() local
179 if (str2idtyp(idtypnm, &idtype) == -1) in main()
183 idtype = P_PID; in main()
199 return (set_iaprocs(idtype, idargc, &argv[optind], cflags, in main()
313 ia_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) in ia_priocntl() argument
315 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1], in ia_priocntl()
326 set_iaprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, in set_iaprocs() argument
368 if (idtype == P_ALL) { in set_iaprocs()
381 (void) verifyupri(idtype, 0, "IA", IA_KY_UPRILIM, in set_iaprocs()
385 if (ia_priocntl(idtype, P_MYID, PC_SETXPARMS, "IA", in set_iaprocs()
[all …]
H A Dfxpriocntl.c93 idtype_t idtype; in main() local
194 if (str2idtyp(idtypnm, &idtype) == -1) in main()
198 idtype = P_PID; in main()
216 return (set_fxprocs(idtype, idargc, &argv[optind], cflags, in main()
342 fx_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) in fx_priocntl() argument
344 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1], in fx_priocntl()
354 set_fxprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, in set_fxprocs() argument
407 if (idtype == P_ALL) { in set_fxprocs()
420 (void) verifyupri(idtype, 0, "FX", FX_KY_UPRILIM, in set_fxprocs()
424 if (fx_priocntl(idtype, P_MYID, PC_SETXPARMS, "FX", in set_fxprocs()
[all …]
H A Dpriocntl.c110 idtype_t idtype; in main() local
187 if (str2idtyp(idtypnm, &idtype) == -1) in main()
191 idtype = P_PID; in main()
201 return (print_procs(idtype, idargc, idargv)); in main()
207 if (str2idtyp(idtypnm, &idtype) == -1) in main()
211 idtype = P_PID; in main()
224 set_procs(clname, idtype, idargc, idargv, argv); in main()
316 print_procs(idtype_t idtype, int idargc, char *idargv[]) in print_procs() argument
335 if (idtype == P_ALL) { in print_procs()
346 if (getmyid(idtype, &idlist[0]) == -1) in print_procs()
[all …]
H A Dsubr.c80 idtype_t idtype; member
110 *idtypep = curp->idtype;
119 idtyp2str(idtype, idtypnm) in idtyp2str() argument
120 idtype_t idtype; in idtyp2str()
127 if (idtype == curp->idtype) {
165 getmyid(idtype, idptr) in getmyid() argument
166 idtype_t idtype; in getmyid()
171 switch (idtype) {
234 getmyidstr(idtype, idstr) in getmyidstr() argument
235 idtype_t idtype; in getmyidstr()
[all …]
H A Drtpriocntl.c98 idtype_t idtype; in main() local
197 if (str2idtyp(idtypnm, &idtype) == -1) in main()
201 idtype = P_PID; in main()
220 return (set_rtprocs(idtype, idargc, &argv[optind], cflags, in main()
344 rt_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) in rt_priocntl() argument
346 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1], in rt_priocntl()
358 set_rtprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, in set_rtprocs() argument
405 if (idtype == P_ALL) { in set_rtprocs()
419 if (rt_priocntl(idtype, P_MYID, PC_SETXPARMS, "RT", in set_rtprocs()
422 (void) idtyp2str(idtype, idtypnm); in set_rtprocs()
[all …]
/titanic_41/usr/src/lib/libc/port/sys/
H A Dexacctsys.c39 getacct(idtype_t idtype, id_t id, void *buf, size_t bufsize) in getacct() argument
45 0, idtype, id, buf, bufsize, 0); in getacct()
52 putacct(idtype_t idtype, id_t id, void *buf, size_t bufsize, int flags) in putacct() argument
54 return (syscall(SYS_exacctsys, 1, idtype, id, buf, bufsize, flags)); in putacct()
58 wracct(idtype_t idtype, id_t id, int flags) in wracct() argument
60 return (syscall(SYS_exacctsys, 2, idtype, id, NULL, 0, flags)); in wracct()
/titanic_41/usr/src/cmd/pools/poolbind/
H A Dpoolbind.c62 idtype_t idtype; member
110 idtype_t idtype = P_PID; in main() local
135 idtype = idtypes[i].idtype; in main()
182 process_ids(pool_name, flags, idtype, idstr, argc, argv); in main()
203 process_ids(char *pool_name, uint_t flags, idtype_t idtype, char *idstr, in process_ids() argument
217 (idtype == P_ZONEID && in process_ids()
228 if (idtype == P_ZONEID) { in process_ids()
242 } else if (idtype == P_PROJID) { in process_ids()
258 if (pool_set_binding(pool_name, idtype, id) != in process_ids()
/titanic_41/usr/src/uts/common/idmap/
H A Didmap_kapi.c66 idmap_id_type idtype; member
446 mapping.id1.idtype = IDMAP_SID; in kidmap_getuidbysid()
449 mapping.id2.idtype = IDMAP_UID; in kidmap_getuidbysid()
464 results.ids.ids_val[0].id.idtype == IDMAP_UID) { in kidmap_getuidbysid()
523 mapping.id1.idtype = IDMAP_SID; in kidmap_getgidbysid()
526 mapping.id2.idtype = IDMAP_GID; in kidmap_getgidbysid()
541 results.ids.ids_val[0].id.idtype == IDMAP_GID) { in kidmap_getgidbysid()
600 mapping.id1.idtype = IDMAP_SID; in kidmap_getpidbysid()
603 mapping.id2.idtype = IDMAP_POSIXID; in kidmap_getpidbysid()
619 results.ids.ids_val[0].id.idtype == IDMAP_UID || in kidmap_getpidbysid()
[all …]
/titanic_41/usr/src/ucblib/libucb/port/sys/
H A Dwait4.c79 idtype_t idtype; in wait4() local
104 idtype = P_PGID; in wait4()
106 idtype = P_ALL; in wait4()
108 idtype = P_PID; in wait4()
110 error = waitid(idtype, pid, &info, noptions); in wait4()
/titanic_41/usr/src/cmd/idmap/idmapd/
H A Ddbutils.c1235 req->id1.idmap_id_u.sid.rid, res->id.idtype); in lookup_wksids_sid2pid()
1238 res->id.idtype); in lookup_wksids_sid2pid()
1286 req->id1.idtype = wksid->is_wuser ? IDMAP_USID : IDMAP_GSID; in lookup_wksids_sid2pid()
1288 if (res->id.idtype == IDMAP_POSIXID) { in lookup_wksids_sid2pid()
1289 res->id.idtype = wksid->is_wuser ? IDMAP_UID : IDMAP_GID; in lookup_wksids_sid2pid()
1311 switch (res->id.idtype) { in lookup_wksids_sid2pid()
1348 if (res->id.idtype == IDMAP_SID) { in lookup_wksids_pid2sid()
1349 res->id.idtype = wksid->is_wuser ? IDMAP_USID : IDMAP_GSID; in lookup_wksids_pid2sid()
1522 switch (res->id.idtype) { in lookup_cache_sid2pid()
1594 res->id.idtype = IDMAP_UID; in lookup_cache_sid2pid()
[all …]
H A Didmapd.h245 ((id).idtype == IDMAP_NONE)
248 ((id).idtype == IDMAP_SID || \
249 (id).idtype == IDMAP_USID || \
250 (id).idtype == IDMAP_GSID) \
253 ((id).idtype == IDMAP_UID)
256 ((id).idtype == IDMAP_GID)
259 ((id).idtype == IDMAP_UID || \
260 (id).idtype == IDMAP_GID || \
261 (id).idtype == IDMAP_POSIXID) \
/titanic_41/usr/src/uts/common/fs/smbsrv/
H A Dsmb_idmap.c80 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) in smb_idmap_getsid() argument
84 switch (idtype) { in smb_idmap_getsid()
132 smb_idmap_getid(smb_sid_t *sid, uid_t *id, int *idtype) in smb_idmap_getid() argument
143 switch (*idtype) { in smb_idmap_getid()
164 *idtype = sim.sim_idtype; in smb_idmap_getid()
247 smb_sid_t *sid, int idtype) in smb_idmap_batch_getid() argument
261 switch (idtype) { in smb_idmap_batch_getid()
296 uid_t id, int idtype) in smb_idmap_batch_getsid() argument
300 switch (idtype) { in smb_idmap_batch_getsid()
/titanic_41/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_identity.c93 idtype2string(int idtype) in idtype2string() argument
96 switch(idtype) { in idtype2string()
421 int idtype; in process_option_identity() local
435 idtype = IDTYPE_FILE; in process_option_identity()
438 idtype = IDTYPE_PKCS11; in process_option_identity()
441 idtype = IDTYPE_PKCS12; in process_option_identity()
443 idtype = IDTYPE_DIR; in process_option_identity()
445 idtype = IDTYPE_ENVVAR; in process_option_identity()
455 idtype = IDTYPE_FILE; in process_option_identity()
459 idopts->idtype = idtype; in process_option_identity()
[all …]
/titanic_41/usr/src/lib/libbc/libc/sys/common/
H A Dwait.c94 typedef enum idtype { enum
176 idtype_t idtype; in wait4() local
205 idtype = P_PGID; in wait4()
207 idtype = P_ALL; in wait4()
209 idtype = P_PID; in wait4()
211 error = _waitid(idtype, pid, &info, noptions); in wait4()
/titanic_41/usr/src/uts/common/syscall/
H A Dexacctsys.c146 getacct(idtype_t idtype, id_t id, void *buf, size_t bufsize) in getacct() argument
156 switch (idtype) { in getacct()
171 putacct(idtype_t idtype, id_t id, void *buf, size_t bufsize, int flags) in putacct() argument
190 switch (idtype) { in putacct()
290 wracct(idtype_t idtype, id_t id, int flags) in wracct() argument
308 switch (idtype) { in wracct()
326 exacct(int code, idtype_t idtype, id_t id, void *buf, size_t bufsize, in exacct() argument
337 return (getacct(idtype, id, buf, bufsize)); in exacct()
339 return (putacct(idtype, id, buf, bufsize, flags)); in exacct()
341 return (wracct(idtype, id, flags)); in exacct()
/titanic_41/usr/src/lib/libc/port/rt/
H A Dsched.c236 get_parms(idtype_t idtype, id_t id, pcparms_t *pcparmp) in get_parms() argument
239 if (priocntl(idtype, id, PC_GETPARMS, pcparmp) == -1) in get_parms()
248 set_priority(idtype_t idtype, id_t id, int policy, int prio, in set_priority() argument
282 rv = priocntl(idtype, id, PC_DOPRIO, &pcprio); in set_priority()
289 rv = priocntl(idtype, id, PC_SETPARMS, pcparmp); in set_priority()
300 setprio(idtype_t idtype, id_t id, int prio, int *policyp) in setprio() argument
306 if ((pccp = get_parms(idtype, id, &pcparm)) == NULL) in setprio()
320 if (set_priority(idtype, id, policy, prio, &pcparm, 0) == -1) in setprio()
343 getparam(idtype_t idtype, id_t id, int *policyp, struct sched_param *param) in getparam() argument
350 if ((pccp = get_parms(idtype, id, &pcparm)) == NULL) in getparam()
[all …]
/titanic_41/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_idmap.c73 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) in smb_idmap_getsid() argument
83 id, idtype); in smb_idmap_getsid()
222 smb_sid_t *sid, int idtype) in smb_idmap_batch_getid() argument
235 sim->sim_idtype = idtype; in smb_idmap_batch_getid()
237 switch (idtype) { in smb_idmap_batch_getid()
279 uid_t id, int idtype) in smb_idmap_batch_getsid() argument
287 switch (idtype) { in smb_idmap_batch_getsid()
/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_idmap.c70 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) in smb_idmap_getsid() argument
80 id, idtype); in smb_idmap_getsid()
221 smb_sid_t *sid, int idtype) in smb_idmap_batch_getid() argument
234 sim->sim_idtype = idtype; in smb_idmap_batch_getid()
236 switch (idtype) { in smb_idmap_batch_getid()
278 uid_t id, int idtype) in smb_idmap_batch_getsid() argument
286 switch (idtype) { in smb_idmap_batch_getsid()
/titanic_41/usr/src/uts/common/os/
H A Dpool.c588 pool_assoc(poolid_t poolid, int idtype, id_t id) in pool_assoc() argument
595 switch (idtype) { in pool_assoc()
613 pool_dissoc(poolid_t poolid, int idtype) in pool_dissoc() argument
620 switch (idtype) { in pool_dissoc()
696 pool_bind(poolid_t poolid, idtype_t idtype, id_t id) in pool_bind() argument
707 switch (idtype) { in pool_bind()
716 return (pool_do_bind(pool, idtype, id, POOL_BIND_ALL)); in pool_bind()
723 pool_query_binding(idtype_t idtype, id_t id, id_t *poolid) in pool_query_binding() argument
727 if (idtype != P_PID) in pool_query_binding()
1350 pool_do_bind(pool_t *pool, idtype_t idtype, id_t id, int flags) in pool_do_bind() argument
[all …]

123