/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 | 80 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 D | setpriority.c | 111 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 D | priocntl.c | 55 __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()
|
/illumos-gate/usr/src/cmd/priocntl/ |
H A D | fsspriocntl.c | 83 idtype_t idtype; in main() local 154 if (str2idtyp(idtypnm, &idtype) == -1) in main() 158 idtype = P_PID; in main() 329 if (idtype == P_ALL) { in set_fssprocs() 342 (void) verifyupri(idtype, 0, "FSS", FSS_KY_UPRILIM, in set_fssprocs() 349 (void) idtyp2str(idtype, idtypnm); in set_fssprocs() 359 FSS_DOUPRI && getmyid(idtype, &id) != -1) { in set_fssprocs() 364 (void) idtyp2str(idtype, idtypnm); in set_fssprocs() 366 if (idtype == P_CID) { in set_fssprocs() 383 if (fss_priocntl(idtype, id, PC_SETXPARMS, "FSS", in set_fssprocs() [all …]
|
H A D | tspriocntl.c | 88 idtype_t idtype; in main() local 168 if (str2idtyp(idtypnm, &idtype) == -1) in main() 172 idtype = P_PID; in main() 345 if (idtype == P_ALL) { in set_tsprocs() 358 (void) verifyupri(idtype, 0, "TS", TS_KY_UPRILIM, in set_tsprocs() 365 (void) idtyp2str(idtype, idtypnm); in set_tsprocs() 375 getmyid(idtype, &id) != -1) { in set_tsprocs() 380 (void) idtyp2str(idtype, idtypnm); in set_tsprocs() 382 if (idtype == P_CID) { in set_tsprocs() 398 if (ts_priocntl(idtype, id, PC_SETXPARMS, "TS", in set_tsprocs() [all …]
|
H A D | iapriocntl.c | 90 idtype_t idtype; in main() local 179 if (str2idtyp(idtypnm, &idtype) == -1) in main() 183 idtype = P_PID; in main() 368 if (idtype == P_ALL) { in set_iaprocs() 381 (void) verifyupri(idtype, 0, "IA", IA_KY_UPRILIM, in set_iaprocs() 388 (void) idtyp2str(idtype, idtypnm); in set_iaprocs() 399 getmyid(idtype, &id) != -1) { in set_iaprocs() 404 (void) idtyp2str(idtype, idtypnm); in set_iaprocs() 406 if (idtype == P_CID) { in set_iaprocs() 422 if (ia_priocntl(idtype, id, PC_SETXPARMS, "IA", in set_iaprocs() [all …]
|
H A D | fxpriocntl.c | 93 idtype_t idtype; in main() local 194 if (str2idtyp(idtypnm, &idtype) == -1) in main() 198 idtype = P_PID; in main() 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() 427 (void) idtyp2str(idtype, idtypnm); in set_fxprocs() 437 getmyid(idtype, &id) != -1) { in set_fxprocs() 442 (void) idtyp2str(idtype, idtypnm); in set_fxprocs() 444 if (idtype == P_CID) { in set_fxprocs() [all …]
|
H A D | subr.c | 77 idtype_t idtype; member 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) { 232 idtype_t idtype; in getmyidstr() 237 switch (idtype) { 315 if (idtype == P_PID) { in verifyupri() 358 if (idtype == P_UID || idtype == P_GID) { in verifyupri() [all …]
|
H A D | priocntl.c | 108 idtype_t idtype; in main() local 189 idtype = P_PID; in main() 209 idtype = P_PID; in main() 333 if (idtype == P_ALL) { in print_procs() 351 if (idtype == P_CID) { in print_procs() 579 if (idtype == P_UID || idtype == P_GID) { in set_procs() 604 switch (idtype) { in set_procs() 677 cmdpath, idtype); in set_procs() 837 if (idtype == P_UID || idtype == P_GID) { in ids2pids() 860 switch (idtype) { in ids2pids() [all …]
|
H A D | rtpriocntl.c | 98 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() 346 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1], in rt_priocntl() 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() 433 (void) idtyp2str(idtype, idtypnm); in set_rtprocs() 435 if (idtype == P_CID) { in set_rtprocs() [all …]
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | exacctsys.c | 39 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()
|
/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() 524 mapping.id1.idtype = IDMAP_SID; in kidmap_getgidbysid() 527 mapping.id2.idtype = IDMAP_GID; in kidmap_getgidbysid() 601 mapping.id1.idtype = IDMAP_SID; in kidmap_getpidbysid() 929 result->idtype = IDMAP_UID; in kidmap_batch_getuidbysid() 990 result->idtype = IDMAP_GID; in kidmap_batch_getgidbysid() 1108 result->idtype = IDMAP_SID; in kidmap_batch_getsidbyuid() 1163 result->idtype = IDMAP_SID; in kidmap_batch_getsidbygid() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_idmap.c | 80 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) in smb_idmap_getsid() argument 84 switch (idtype) { in smb_idmap_getsid() 140 smb_idmap_getid(smb_sid_t *sid, uid_t *id, int *idtype) in smb_idmap_getid() argument 151 switch (*idtype) { in smb_idmap_getid() 172 *idtype = sim.sim_idtype; in smb_idmap_getid() 259 smb_sid_t *sid, int idtype) in smb_idmap_batch_getid() argument 273 sim->sim_idtype = idtype; in smb_idmap_batch_getid() 275 switch (idtype) { in smb_idmap_batch_getid() 311 uid_t id, int idtype) in smb_idmap_batch_getsid() argument 315 sim->sim_idtype = idtype; in smb_idmap_batch_getsid() [all …]
|
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | dbutils.c | 1238 res->id.idtype); in lookup_wksids_sid2pid() 1311 switch (res->id.idtype) { in lookup_wksids_sid2pid() 1522 switch (res->id.idtype) { in lookup_cache_sid2pid() 1857 req->id1.idtype = type; in lookup_name_cache() 2220 type = req->id2.idtype; in ad_lookup_batch_int() 2541 res->id.idtype = req->id2.idtype; in sid2pid_first_pass() 2701 &req->id1.idtype); in sid2pid_first_pass() 2889 switch (id->idtype) { in ns_lookup_byname() 3888 idmap_id_type idtype; in lookup_cache_pid2sid() local 3961 res->id.idtype = idtype; in lookup_cache_pid2sid() [all …]
|
H A D | idmapd.h | 251 ((id).idtype == IDMAP_NONE) 254 ((id).idtype == IDMAP_SID || \ 255 (id).idtype == IDMAP_USID || \ 256 (id).idtype == IDMAP_GSID) \ 259 ((id).idtype == IDMAP_UID) 262 ((id).idtype == IDMAP_GID) 265 ((id).idtype == IDMAP_UID || \ 266 (id).idtype == IDMAP_GID || \ 267 (id).idtype == IDMAP_POSIXID) \
|
/illumos-gate/usr/src/ucblib/libucb/port/sys/ |
H A D | wait4.c | 79 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()
|
/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() 443 idtype = IDTYPE_DIR; in process_option_identity() 455 idtype = IDTYPE_FILE; in process_option_identity() 459 idopts->idtype = idtype; in process_option_identity() 461 switch (idtype) { in process_option_identity() 512 int idtype; in process_option_ca_crl() local 524 idtype = IDTYPE_FILE; in process_option_ca_crl() [all …]
|
/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 | 236 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() 350 if ((pccp = get_parms(idtype, id, &pcparm)) == NULL) in getparam() 378 if (priocntl(idtype, id, PC_DOPRIO, &pcprio) == 0) in getparam() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fksmb_idmap.c | 74 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) in smb_idmap_getsid() argument 84 id, idtype); in smb_idmap_getsid() 230 smb_sid_t *sid, int idtype) in smb_idmap_batch_getid() argument 245 sim->sim_idtype = idtype; in smb_idmap_batch_getid() 247 switch (idtype) { in smb_idmap_batch_getid() 288 uid_t id, int idtype) in smb_idmap_batch_getsid() argument 296 sim->sim_idtype = idtype; in smb_idmap_batch_getsid() 297 switch (idtype) { in smb_idmap_batch_getsid()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_idmap.c | 70 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) in smb_idmap_getsid() argument 80 id, idtype); in smb_idmap_getsid() 229 smb_sid_t *sid, int idtype) in smb_idmap_batch_getid() argument 243 sim->sim_idtype = idtype; in smb_idmap_batch_getid() 245 switch (idtype) { in smb_idmap_batch_getid() 286 uid_t id, int idtype) in smb_idmap_batch_getsid() argument 294 sim->sim_idtype = idtype; in smb_idmap_batch_getsid() 295 switch (idtype) { in smb_idmap_batch_getsid()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | pool.c | 595 switch (idtype) { in pool_assoc() 620 switch (idtype) { in pool_dissoc() 707 switch (idtype) { in pool_bind() 727 if (idtype != P_PID) in pool_query_binding() 1387 if (idtype == P_PID) { in pool_do_bind() 1417 id = getmyid(idtype); in pool_do_bind() 1423 if (idtype == P_PID) in pool_do_bind() 1441 switch (idtype) { in pool_do_bind() 1493 if (idtype == P_PID) in pool_do_bind() 1608 if (idtype == P_POOLID || idtype == P_ZONEID) in pool_do_bind() [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() 1114 mapping->id1.idtype = IDMAP_SID; in idmap_getext_gidbysid() 1120 mapping->id2.idtype = IDMAP_GID; in idmap_getext_gidbysid() 1214 mapping->id1.idtype = IDMAP_SID; in idmap_getext_pidbysid() 1310 mapping->id1.idtype = IDMAP_UID; in idmap_getext_sidbyuid() 1312 mapping->id2.idtype = IDMAP_SID; in idmap_getext_sidbyuid() 1467 switch (res_id->idtype) { in idmap_get_mappings() [all …]
|