/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | mode.c | 41 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 …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | waitpid.c | 78 idtype_t idtype; in waitpid() local 84 idtype = P_PID; in waitpid() 87 idtype = P_PGID; in waitpid() 90 idtype = P_ALL; in waitpid() 93 idtype = P_PGID; in waitpid() 99 if ((error = waitid(idtype, id, &info, options)) < 0) in waitpid() 122 idtype_t idtype; in wait4() local 147 idtype = P_PGID; in wait4() 149 idtype = P_ALL; in wait4() 151 idtype = P_PID; in wait4() [all …]
|
H A D | setpriority.c | 109 idtype_t idtype; in getpriority() local 112 if ((idtype = prio_to_idtype(which)) == -1) { in getpriority() 140 if (priocntl(idtype, id, PC_DONICE, &pcnice) == -1) in getpriority() 150 idtype_t idtype; in setpriority() local 154 if ((idtype = prio_to_idtype(which)) == -1) { in setpriority() 182 ret = priocntl(idtype, id, PC_DONICE, &pcnice); in setpriority() 200 if (priocntl(idtype, id, PC_DONICE, &gpcnice) == 0 && in setpriority()
|
H A D | priocntl.c | 53 __priocntl(int pc_version, idtype_t idtype, id_t id, int cmd, caddr_t arg) in __priocntl() argument 57 setprocset(&procset, POP_AND, idtype, id, P_ALL, 0); in __priocntl() 65 priocntl(idtype_t idtype, id_t id, int cmd, ...) in priocntl() argument 73 setprocset(&procset, POP_AND, idtype, id, P_ALL, 0); in priocntl()
|
/illumos-gate/usr/src/cmd/priocntl/ |
H A D | fsspriocntl.c | 81 idtype_t idtype; in main() local 152 if (str2idtyp(idtypnm, &idtype) == -1) in main() 156 idtype = P_PID; in main() 169 return (set_fssprocs(idtype, idargc, &argv[optind], cflags, in main() 276 fss_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) in fss_priocntl() argument 278 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1], in fss_priocntl() 288 set_fssprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, in set_fssprocs() argument 327 if (idtype == P_ALL) { in set_fssprocs() 340 (void) verifyupri(idtype, 0, "FSS", FSS_KY_UPRILIM, in set_fssprocs() 344 if (fss_priocntl(idtype, P_MYID, PC_SETXPARMS, "FSS", in set_fssprocs() [all …]
|
H A D | tspriocntl.c | 86 idtype_t idtype; in main() local 166 if (str2idtyp(idtypnm, &idtype) == -1) in main() 170 idtype = P_PID; in main() 183 return (set_tsprocs(idtype, idargc, &argv[optind], cflags, in main() 291 ts_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) in ts_priocntl() argument 293 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1], in ts_priocntl() 304 set_tsprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, in set_tsprocs() argument 343 if (idtype == P_ALL) { in set_tsprocs() 356 (void) verifyupri(idtype, 0, "TS", TS_KY_UPRILIM, in set_tsprocs() 360 if (ts_priocntl(idtype, P_MYID, PC_SETXPARMS, "TS", in set_tsprocs() [all …]
|
H A D | iapriocntl.c | 88 idtype_t idtype; in main() local 177 if (str2idtyp(idtypnm, &idtype) == -1) in main() 181 idtype = P_PID; in main() 197 return (set_iaprocs(idtype, idargc, &argv[optind], cflags, in main() 311 ia_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) in ia_priocntl() argument 313 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1], in ia_priocntl() 324 set_iaprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, in set_iaprocs() argument 366 if (idtype == P_ALL) { in set_iaprocs() 379 (void) verifyupri(idtype, 0, "IA", IA_KY_UPRILIM, in set_iaprocs() 383 if (ia_priocntl(idtype, P_MYID, PC_SETXPARMS, "IA", in set_iaprocs() [all …]
|
H A D | fxpriocntl.c | 91 idtype_t idtype; in main() local 192 if (str2idtyp(idtypnm, &idtype) == -1) in main() 196 idtype = P_PID; in main() 214 return (set_fxprocs(idtype, idargc, &argv[optind], cflags, in main() 340 fx_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) in fx_priocntl() argument 342 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1], in fx_priocntl() 352 set_fxprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, in set_fxprocs() argument 405 if (idtype == P_ALL) { in set_fxprocs() 418 (void) verifyupri(idtype, 0, "FX", FX_KY_UPRILIM, in set_fxprocs() 422 if (fx_priocntl(idtype, P_MYID, PC_SETXPARMS, "FX", in set_fxprocs() [all …]
|
H A D | subr.c | 77 idtype_t idtype; member 107 *idtypep = curp->idtype; 116 idtyp2str(idtype, idtypnm) in idtyp2str() argument 117 idtype_t idtype; in idtyp2str() 124 if (idtype == curp->idtype) { 162 getmyid(idtype, idptr) in getmyid() argument 163 idtype_t idtype; in getmyid() 168 switch (idtype) { 231 getmyidstr(idtype, idstr) in getmyidstr() argument 232 idtype_t idtype; in getmyidstr() [all …]
|
H A D | priocntl.c | 108 idtype_t idtype; in main() local 185 if (str2idtyp(idtypnm, &idtype) == -1) in main() 189 idtype = P_PID; in main() 199 return (print_procs(idtype, idargc, idargv)); in main() 205 if (str2idtyp(idtypnm, &idtype) == -1) in main() 209 idtype = P_PID; in main() 222 set_procs(clname, idtype, idargc, idargv, argv); in main() 314 print_procs(idtype_t idtype, int idargc, char *idargv[]) in print_procs() argument 333 if (idtype == P_ALL) { in print_procs() 344 if (getmyid(idtype, &idlist[0]) == -1) in print_procs() [all …]
|
H A D | rtpriocntl.c | 96 idtype_t idtype; in main() local 195 if (str2idtyp(idtypnm, &idtype) == -1) in main() 199 idtype = P_PID; in main() 218 return (set_rtprocs(idtype, idargc, &argv[optind], cflags, in main() 342 rt_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) in rt_priocntl() argument 344 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1], in rt_priocntl() 356 set_rtprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, in set_rtprocs() argument 403 if (idtype == P_ALL) { in set_rtprocs() 417 if (rt_priocntl(idtype, P_MYID, PC_SETXPARMS, "RT", in set_rtprocs() 420 (void) idtyp2str(idtype, idtypnm); in set_rtprocs() [all …]
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | exacctsys.c | 37 getacct(idtype_t idtype, id_t id, void *buf, size_t bufsize) in getacct() argument 43 0, idtype, id, buf, bufsize, 0); in getacct() 50 putacct(idtype_t idtype, id_t id, void *buf, size_t bufsize, int flags) in putacct() argument 52 return (syscall(SYS_exacctsys, 1, idtype, id, buf, bufsize, flags)); in putacct() 56 wracct(idtype_t idtype, id_t id, int flags) in wracct() argument 58 return (syscall(SYS_exacctsys, 2, idtype, id, NULL, 0, flags)); in wracct()
|
/illumos-gate/usr/src/cmd/pools/poolbind/ |
H A D | poolbind.c | 62 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()
|
/illumos-gate/usr/src/uts/common/idmap/ |
H A D | idmap_kapi.c | 68 idmap_id_type idtype; member 447 mapping.id1.idtype = IDMAP_SID; in kidmap_getuidbysid() 450 mapping.id2.idtype = IDMAP_UID; in kidmap_getuidbysid() 465 results.ids.ids_val[0].id.idtype == IDMAP_UID) { in kidmap_getuidbysid() 524 mapping.id1.idtype = IDMAP_SID; in kidmap_getgidbysid() 527 mapping.id2.idtype = IDMAP_GID; in kidmap_getgidbysid() 542 results.ids.ids_val[0].id.idtype == IDMAP_GID) { in kidmap_getgidbysid() 601 mapping.id1.idtype = IDMAP_SID; in kidmap_getpidbysid() 604 mapping.id2.idtype = IDMAP_POSIXID; in kidmap_getpidbysid() 620 results.ids.ids_val[0].id.idtype == IDMAP_UID || in kidmap_getpidbysid() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_idmap.c | 81 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) in smb_idmap_getsid() argument 85 switch (idtype) { in smb_idmap_getsid() 141 smb_idmap_getid(smb_sid_t *sid, uid_t *id, int *idtype) in smb_idmap_getid() argument 152 switch (*idtype) { in smb_idmap_getid() 173 *idtype = sim.sim_idtype; in smb_idmap_getid() 260 smb_sid_t *sid, int idtype) in smb_idmap_batch_getid() argument 274 sim->sim_idtype = idtype; in smb_idmap_batch_getid() 276 switch (idtype) { in smb_idmap_batch_getid() 312 uid_t id, int idtype) in smb_idmap_batch_getsid() argument 316 sim->sim_idtype = idtype; in smb_idmap_batch_getsid() [all …]
|
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | dbutils.c | 1310 req->id1.idmap_id_u.sid.rid, res->id.idtype); in lookup_wksids_sid2pid() 1313 res->id.idtype); in lookup_wksids_sid2pid() 1361 req->id1.idtype = wksid->is_wuser ? IDMAP_USID : IDMAP_GSID; in lookup_wksids_sid2pid() 1363 if (res->id.idtype == IDMAP_POSIXID) { in lookup_wksids_sid2pid() 1364 res->id.idtype = wksid->is_wuser ? IDMAP_UID : IDMAP_GID; in lookup_wksids_sid2pid() 1386 switch (res->id.idtype) { in lookup_wksids_sid2pid() 1423 if (res->id.idtype == IDMAP_SID) { in lookup_wksids_pid2sid() 1424 res->id.idtype = wksid->is_wuser ? IDMAP_USID : IDMAP_GSID; in lookup_wksids_pid2sid() 1597 switch (res->id.idtype) { in lookup_cache_sid2pid() 1669 res->id.idtype = IDMAP_UID; in lookup_cache_sid2pid() [all …]
|
H A D | idmapd.h | 252 ((id).idtype == IDMAP_NONE) 255 ((id).idtype == IDMAP_SID || \ 256 (id).idtype == IDMAP_USID || \ 257 (id).idtype == IDMAP_GSID) \ 260 ((id).idtype == IDMAP_UID) 263 ((id).idtype == IDMAP_GID) 266 ((id).idtype == IDMAP_UID || \ 267 (id).idtype == IDMAP_GID || \ 268 (id).idtype == IDMAP_POSIXID) \
|
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/ |
H A D | pkinit_identity.c | 93 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 …]
|
/illumos-gate/usr/src/ucblib/libucb/port/sys/ |
H A D | wait4.c | 77 idtype_t idtype; in wait4() local 102 idtype = P_PGID; in wait4() 104 idtype = P_ALL; in wait4() 106 idtype = P_PID; in wait4() 108 error = waitid(idtype, pid, &info, noptions); in wait4()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | exacctsys.c | 144 getacct(idtype_t idtype, id_t id, void *buf, size_t bufsize) in getacct() argument 154 switch (idtype) { in getacct() 169 putacct(idtype_t idtype, id_t id, void *buf, size_t bufsize, int flags) in putacct() argument 188 switch (idtype) { in putacct() 288 wracct(idtype_t idtype, id_t id, int flags) in wracct() argument 306 switch (idtype) { in wracct() 324 exacct(int code, idtype_t idtype, id_t id, void *buf, size_t bufsize, in exacct() argument 335 return (getacct(idtype, id, buf, bufsize)); in exacct() 337 return (putacct(idtype, id, buf, bufsize, flags)); in exacct() 339 return (wracct(idtype, id, flags)); in exacct()
|
/illumos-gate/usr/src/lib/libc/port/rt/ |
H A D | sched.c | 234 get_parms(idtype_t idtype, id_t id, pcparms_t *pcparmp) in get_parms() argument 237 if (priocntl(idtype, id, PC_GETPARMS, pcparmp) == -1) in get_parms() 246 set_priority(idtype_t idtype, id_t id, int policy, int prio, in set_priority() argument 280 rv = priocntl(idtype, id, PC_DOPRIO, &pcprio); in set_priority() 287 rv = priocntl(idtype, id, PC_SETPARMS, pcparmp); in set_priority() 298 setprio(idtype_t idtype, id_t id, int prio, int *policyp) in setprio() argument 304 if ((pccp = get_parms(idtype, id, &pcparm)) == NULL) in setprio() 318 if (set_priority(idtype, id, policy, prio, &pcparm, 0) == -1) in setprio() 341 getparam(idtype_t idtype, id_t id, int *policyp, struct sched_param *param) in getparam() argument 348 if ((pccp = get_parms(idtype, id, &pcparm)) == NULL) in getparam() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fksmb_idmap.c | 75 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) in smb_idmap_getsid() argument 85 id, idtype); in smb_idmap_getsid() 233 smb_sid_t *sid, int idtype) in smb_idmap_batch_getid() argument 248 sim->sim_idtype = idtype; in smb_idmap_batch_getid() 250 switch (idtype) { in smb_idmap_batch_getid() 291 uid_t id, int idtype) in smb_idmap_batch_getsid() argument 299 sim->sim_idtype = idtype; in smb_idmap_batch_getsid() 300 switch (idtype) { in smb_idmap_batch_getsid()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_idmap.c | 71 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) in smb_idmap_getsid() argument 81 id, idtype); in smb_idmap_getsid() 232 smb_sid_t *sid, int idtype) in smb_idmap_batch_getid() argument 246 sim->sim_idtype = idtype; in smb_idmap_batch_getid() 248 switch (idtype) { in smb_idmap_batch_getid() 289 uid_t id, int idtype) in smb_idmap_batch_getsid() argument 297 sim->sim_idtype = idtype; in smb_idmap_batch_getsid() 298 switch (idtype) { in smb_idmap_batch_getsid()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | pool.c | 588 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 …]
|
/illumos-gate/usr/src/lib/libidmap/common/ |
H A D | idmap_api.c | 864 .idtype == IDMAP_UID)?1:0; in idmap_iter_next_mapping() 867 .idtype == IDMAP_USID)?1:0; in idmap_iter_next_mapping() 1019 mapping->id1.idtype = IDMAP_SID; in idmap_getext_uidbysid() 1025 mapping->id2.idtype = IDMAP_UID; in idmap_getext_uidbysid() 1028 gh->retlist[gh->next].idtype = IDMAP_UID; in idmap_getext_uidbysid() 1114 mapping->id1.idtype = IDMAP_SID; in idmap_getext_gidbysid() 1120 mapping->id2.idtype = IDMAP_GID; in idmap_getext_gidbysid() 1123 gh->retlist[gh->next].idtype = IDMAP_GID; in idmap_getext_gidbysid() 1214 mapping->id1.idtype = IDMAP_SID; in idmap_getext_pidbysid() 1220 mapping->id2.idtype = IDMAP_POSIXID; in idmap_getext_pidbysid() [all …]
|