Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/contrib/ast/src/lib/libast/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 …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dwaitpid.c78 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 Dsetpriority.c109 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 Dpriocntl.c53 __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 Dtspriocntl.c86 idtype_t idtype; in main() local
166 if (str2idtyp(idtypnm, &idtype) == -1) in main()
170 idtype = P_PID; in main()
343 if (idtype == P_ALL) { in set_tsprocs()
356 (void) verifyupri(idtype, 0, "TS", TS_KY_UPRILIM, in set_tsprocs()
363 (void) idtyp2str(idtype, idtypnm); in set_tsprocs()
373 getmyid(idtype, &id) != -1) { in set_tsprocs()
378 (void) idtyp2str(idtype, idtypnm); in set_tsprocs()
380 if (idtype == P_CID) { in set_tsprocs()
396 if (ts_priocntl(idtype, id, PC_SETXPARMS, "TS", in set_tsprocs()
[all …]
H A Dfsspriocntl.c81 idtype_t idtype; in main() local
152 if (str2idtyp(idtypnm, &idtype) == -1) in main()
156 idtype = P_PID; in main()
327 if (idtype == P_ALL) { in set_fssprocs()
340 (void) verifyupri(idtype, 0, "FSS", FSS_KY_UPRILIM, in set_fssprocs()
347 (void) idtyp2str(idtype, idtypnm); in set_fssprocs()
357 FSS_DOUPRI && getmyid(idtype, &id) != -1) { in set_fssprocs()
362 (void) idtyp2str(idtype, idtypnm); in set_fssprocs()
364 if (idtype == P_CID) { in set_fssprocs()
381 if (fss_priocntl(idtype, id, PC_SETXPARMS, "FSS", in set_fssprocs()
[all …]
H A Diapriocntl.c88 idtype_t idtype; in main() local
177 if (str2idtyp(idtypnm, &idtype) == -1) in main()
181 idtype = P_PID; in main()
366 if (idtype == P_ALL) { in set_iaprocs()
379 (void) verifyupri(idtype, 0, "IA", IA_KY_UPRILIM, in set_iaprocs()
386 (void) idtyp2str(idtype, idtypnm); in set_iaprocs()
397 getmyid(idtype, &id) != -1) { in set_iaprocs()
402 (void) idtyp2str(idtype, idtypnm); in set_iaprocs()
404 if (idtype == P_CID) { in set_iaprocs()
420 if (ia_priocntl(idtype, id, PC_SETXPARMS, "IA", in set_iaprocs()
[all …]
H A Dfxpriocntl.c91 idtype_t idtype; in main() local
192 if (str2idtyp(idtypnm, &idtype) == -1) in main()
196 idtype = P_PID; in main()
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()
425 (void) idtyp2str(idtype, idtypnm); in set_fxprocs()
435 getmyid(idtype, &id) != -1) { in set_fxprocs()
440 (void) idtyp2str(idtype, idtypnm); in set_fxprocs()
442 if (idtype == P_CID) { in set_fxprocs()
[all …]
H A Dsubr.c77 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 Dpriocntl.c108 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 Drtpriocntl.c96 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()
344 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1], in rt_priocntl()
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()
431 (void) idtyp2str(idtype, idtypnm); in set_rtprocs()
433 if (idtype == P_CID) { in set_rtprocs()
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dexacctsys.c37 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 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()
/illumos-gate/usr/src/uts/common/idmap/
H A Didmap_kapi.c68 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 Dsmb_idmap.c81 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 Ddbutils.c1313 res->id.idtype); in lookup_wksids_sid2pid()
1386 switch (res->id.idtype) { in lookup_wksids_sid2pid()
1597 switch (res->id.idtype) { in lookup_cache_sid2pid()
1932 req->id1.idtype = type; in lookup_name_cache()
2295 type = req->id2.idtype; in ad_lookup_batch_int()
2616 res->id.idtype = req->id2.idtype; in sid2pid_first_pass()
2776 &req->id1.idtype); in sid2pid_first_pass()
2964 switch (id->idtype) { in ns_lookup_byname()
3963 idmap_id_type idtype; in lookup_cache_pid2sid() local
4036 res->id.idtype = idtype; in lookup_cache_pid2sid()
[all …]
H A Didmapd.h252 ((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/ucblib/libucb/port/sys/
H A Dwait4.c77 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/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()
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 Dexacctsys.c144 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 Dsched.c234 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()
348 if ((pccp = get_parms(idtype, id, &pcparm)) == NULL) in getparam()
376 if (priocntl(idtype, id, PC_DOPRIO, &pcprio) == 0) in getparam()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_idmap.c71 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/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_idmap.c75 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/uts/common/os/
H A Dpool.c595 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 Didmap_api.c864 .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 …]

123