Searched refs:idtype (Results 1 - 25 of 71) sorted by relevance

123

/illumos-gate/usr/src/lib/libc/port/sys/
H A Dexacctsys.c39 getacct(idtype_t idtype, id_t id, void *buf, size_t bufsize) argument
45 0, idtype, id, buf, bufsize, 0);
52 putacct(idtype_t idtype, id_t id, void *buf, size_t bufsize, int flags) argument
54 return (syscall(SYS_exacctsys, 1, idtype, id, buf, bufsize, flags));
58 wracct(idtype_t idtype, id_t id, int flags) argument
60 return (syscall(SYS_exacctsys, 2, idtype, id, NULL, 0, flags));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dsigsend.c40 sigsend(idtype_t idtype, id_t id, int sig) argument
43 setprocset(&set, POP_AND, idtype, id, P_ALL, P_MYID);
H A Dwaitpid.c80 idtype_t idtype; local
86 idtype = P_PID;
89 idtype = P_PGID;
92 idtype = P_ALL;
95 idtype = P_PGID;
101 if ((error = waitid(idtype, id, &info, options)) < 0)
124 idtype_t idtype; local
149 idtype = P_PGID;
151 idtype = P_ALL;
153 idtype
[all...]
H A Dsetpriority.c111 idtype_t idtype; local
114 if ((idtype = prio_to_idtype(which)) == -1) {
142 if (priocntl(idtype, id, PC_DONICE, &pcnice) == -1)
152 idtype_t idtype; local
156 if ((idtype = prio_to_idtype(which)) == -1) {
184 ret = priocntl(idtype, id, PC_DONICE, &pcnice);
202 if (priocntl(idtype, id, PC_DONICE, &gpcnice) == 0 &&
H A Dpriocntl.c55 __priocntl(int pc_version, idtype_t idtype, id_t id, int cmd, caddr_t arg) argument
59 setprocset(&procset, POP_AND, idtype, id, P_ALL, 0);
67 priocntl(idtype_t idtype, id_t id, int cmd, ...) argument
75 setprocset(&procset, POP_AND, idtype, id, P_ALL, 0);
/illumos-gate/usr/src/lib/libast/common/features/
H A Dmode.c41 int idtype; local
43 idperm = idtype = 1;
52 if (!S_ISBLK(X_IFBLK)) idtype = 0;
61 if (!S_ISCHR(X_IFCHR)) idtype = 0;
70 if (!S_ISCTG(X_IFCTG)) idtype = 0;
77 if (!S_ISDIR(X_IFDIR)) idtype = 0;
86 if (!S_ISFIFO(X_IFIFO)) idtype = 0;
95 if (!S_ISLNK(X_IFLNK)) idtype = 0;
104 if (!S_ISREG(X_IFREG)) idtype = 0;
113 if (!S_ISSOCK(X_IFSOCK)) idtype
[all...]
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dwait4.c79 idtype_t idtype; local
104 idtype = P_PGID;
106 idtype = P_ALL;
108 idtype = P_PID;
110 error = waitid(idtype, pid, &info, noptions);
/illumos-gate/usr/src/cmd/priocntl/
H A Dfsspriocntl.c65 " priocntl -d [-d idtype] [idlist]\n"
66 " priocntl -s [-c FSS] [-m fssuprilim] [-p fssupri] [-i idtype] "
83 idtype_t idtype; local
154 if (str2idtyp(idtypnm, &idtype) == -1)
155 fatalerr("%s: Bad idtype %s\n", basenm,
158 idtype = P_PID;
171 return (set_fssprocs(idtype, idargc, &argv[optind], cflags,
278 fss_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) argument
280 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1],
285 * Set all processes in the set specified by idtype/idarg
290 set_fssprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, short fssuprilim, short fssupri) argument
[all...]
H A Diapriocntl.c71 priocntl -d [-i idtype] [idlist]\n\
73 [-i idtype] [idlist]\n\
90 idtype_t idtype; local
179 if (str2idtyp(idtypnm, &idtype) == -1)
180 fatalerr("%s: Bad idtype %s\n", basenm,
183 idtype = P_PID;
199 return (set_iaprocs(idtype, idargc, &argv[optind], cflags,
313 ia_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) argument
315 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1],
321 * Set all processes in the set specified by idtype/idarg
326 set_iaprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, pri_t iauprilim, pri_t iaupri, int iamode) argument
[all...]
H A Dtspriocntl.c72 priocntl -d [-d idtype] [idlist]\n\
73 priocntl -s [-c TS] [-m tsuprilim] [-p tsupri] [-i idtype] [idlist]\n\
88 idtype_t idtype; local
168 if (str2idtyp(idtypnm, &idtype) == -1)
169 fatalerr("%s: Bad idtype %s\n", basenm,
172 idtype = P_PID;
185 return (set_tsprocs(idtype, idargc, &argv[optind], cflags,
293 ts_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) argument
295 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1],
301 * Set all processes in the set specified by idtype/idarg
306 set_tsprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, pri_t tsuprilim, pri_t tsupri) argument
[all...]
H A Dsubr.c74 * The idtype values themselves are defined in <sys/procset.h>.
77 idtype_t idtype; member in struct:idtypes
107 *idtypep = curp->idtype;
116 idtyp2str(idtype, idtypnm)
117 idtype_t idtype;
124 if (idtype == curp->idtype) {
162 getmyid(idtype, idptr)
163 idtype_t idtype;
168 switch (idtype) {
300 verifyupri(idtype_t idtype, id_t id, char *clname, int key, pri_t upri, char *basenm) argument
[all...]
H A Drtpriocntl.c77 " priocntl -d [-i idtype] [idlist]\n"
79 " [-i idtype] [idlist]\n"
98 idtype_t idtype; local
197 if (str2idtyp(idtypnm, &idtype) == -1)
198 fatalerr("%s: Bad idtype %s\n", basenm,
201 idtype = P_PID;
220 return (set_rtprocs(idtype, idargc, &argv[optind], cflags,
344 rt_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) argument
346 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1],
352 * Set all processes in the set specified by idtype/idarg
358 set_rtprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, pri_t rtpri, long tqntm, long res, int rtqsig) argument
[all...]
H A Dfxpriocntl.c72 priocntl -d [-d idtype] [idlist]\n\
74 [-i idtype] [idlist]\n\
93 idtype_t idtype; local
194 if (str2idtyp(idtypnm, &idtype) == -1)
195 fatalerr("%s: Bad idtype %s\n", basenm,
198 idtype = P_PID;
216 return (set_fxprocs(idtype, idargc, &argv[optind], cflags,
342 fx_priocntl(idtype_t idtype, id_t id, int cmd, char *clname, uintptr_t *argsp) argument
344 return (priocntl(idtype, id, cmd, clname, argsp[0], argsp[1],
349 * Set all processes in the set specified by idtype/idarg
354 set_fxprocs(idtype_t idtype, int idargc, char **idargv, uint_t cflags, pri_t fxuprilim, pri_t fxupri, long tqntm, long res) argument
[all...]
H A Dpriocntl.c75 priocntl -d [-i idtype] [idlist]\n\
76 priocntl -s [-c class] [c.s.o.] [-i idtype] [idlist]\n\
110 idtype_t idtype; local
187 if (str2idtyp(idtypnm, &idtype) == -1)
188 fatalerr("%s: bad idtype %s\n", cmdpath,
191 idtype = P_PID;
201 return (print_procs(idtype, idargc, idargv));
207 if (str2idtyp(idtypnm, &idtype) == -1)
208 fatalerr("%s: bad idtype %s\n", cmdpath,
211 idtype
316 print_procs(idtype_t idtype, int idargc, char *idargv[]) argument
[all...]
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_pbind.c36 pr_processor_bind(struct ps_prochandle *Pr, idtype_t idtype, id_t id, argument
45 return (processor_bind(idtype, id, processorid, obind));
47 adp->arg_value = idtype; /* idtype */
H A Dpr_waitid.c46 idtype_t idtype, id_t id, siginfo_t *infop, int options)
57 return (waitid(idtype, id, infop, options));
59 adp = &argd[0]; /* idtype argument */
60 adp->arg_value = idtype;
45 pr_waitid(struct ps_prochandle *Pr, idtype_t idtype, id_t id, siginfo_t *infop, int options) argument
/illumos-gate/usr/src/cmd/pools/poolbind/
H A Dpoolbind.c62 idtype_t idtype; member in struct:__anon1257
110 idtype_t idtype = P_PID; local
135 idtype = idtypes[i].idtype;
182 process_ids(pool_name, flags, idtype, idstr, argc, argv);
203 process_ids(char *pool_name, uint_t flags, idtype_t idtype, char *idstr, argument
217 (idtype == P_ZONEID &&
228 if (idtype == P_ZONEID) {
242 } else if (idtype == P_PROJID) {
258 if (pool_set_binding(pool_name, idtype, i
[all...]
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dwait.c94 typedef enum idtype { enum
176 idtype_t idtype; local
205 idtype = P_PGID;
207 idtype = P_ALL;
209 idtype = P_PID;
211 error = _waitid(idtype, pid, &info, noptions);
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_idmap.c80 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) argument
84 switch (idtype) {
132 smb_idmap_getid(smb_sid_t *sid, uid_t *id, int *idtype) argument
143 switch (*idtype) {
164 *idtype = sim.sim_idtype;
242 * If requested ID type is known, it's passed as 'idtype',
247 smb_sid_t *sid, int idtype)
261 switch (idtype) {
296 uid_t id, int idtype)
300 switch (idtype) {
246 smb_idmap_batch_getid(idmap_get_handle_t *idmaph, smb_idmap_t *sim, smb_sid_t *sid, int idtype) argument
295 smb_idmap_batch_getsid(idmap_get_handle_t *idmaph, smb_idmap_t *sim, uid_t id, int idtype) argument
[all...]
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Didmapd.h251 ((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/uts/common/idmap/
H A Didmap_kapi.c66 idmap_id_type idtype; member in struct:idmap_get_res
446 mapping.id1.idtype = IDMAP_SID;
449 mapping.id2.idtype = IDMAP_UID;
464 results.ids.ids_val[0].id.idtype == IDMAP_UID) {
523 mapping.id1.idtype = IDMAP_SID;
526 mapping.id2.idtype = IDMAP_GID;
541 results.ids.ids_val[0].id.idtype == IDMAP_GID) {
600 mapping.id1.idtype = IDMAP_SID;
603 mapping.id2.idtype = IDMAP_POSIXID;
619 results.ids.ids_val[0].id.idtype
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dexacctsys.c146 getacct(idtype_t idtype, id_t id, void *buf, size_t bufsize) argument
156 switch (idtype) {
171 putacct(idtype_t idtype, id_t id, void *buf, size_t bufsize, int flags) argument
190 switch (idtype) {
290 wracct(idtype_t idtype, id_t id, int flags) argument
308 switch (idtype) {
326 exacct(int code, idtype_t idtype, id_t id, void *buf, size_t bufsize, argument
337 return (getacct(idtype, id, buf, bufsize));
339 return (putacct(idtype, id, buf, bufsize, flags));
341 return (wracct(idtype, i
[all...]
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dsched.c236 get_parms(idtype_t idtype, id_t id, pcparms_t *pcparmp) argument
239 if (priocntl(idtype, id, PC_GETPARMS, pcparmp) == -1)
248 set_priority(idtype_t idtype, id_t id, int policy, int prio, argument
282 rv = priocntl(idtype, id, PC_DOPRIO, &pcprio);
289 rv = priocntl(idtype, id, PC_SETPARMS, pcparmp);
300 setprio(idtype_t idtype, id_t id, int prio, int *policyp) argument
306 if ((pccp = get_parms(idtype, id, &pcparm)) == NULL)
320 if (set_priority(idtype, id, policy, prio, &pcparm, 0) == -1)
343 getparam(idtype_t idtype, id_t id, int *policyp, struct sched_param *param) argument
350 if ((pccp = get_parms(idtype, i
416 setparam(idtype_t idtype, id_t id, int policy, int prio) argument
[all...]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_idmap.c73 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) argument
83 id, idtype);
217 * If requested ID type is known, it's passed as 'idtype',
222 smb_sid_t *sid, int idtype)
235 sim->sim_idtype = idtype;
237 switch (idtype) {
279 uid_t id, int idtype)
287 switch (idtype) {
221 smb_idmap_batch_getid(idmap_get_handle_t *idmaph, smb_idmap_t *sim, smb_sid_t *sid, int idtype) argument
278 smb_idmap_batch_getsid(idmap_get_handle_t *idmaph, smb_idmap_t *sim, uid_t id, int idtype) argument
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_idmap.c70 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) argument
80 id, idtype);
216 * If requested ID type is known, it's passed as 'idtype',
221 smb_sid_t *sid, int idtype)
234 sim->sim_idtype = idtype;
236 switch (idtype) {
278 uid_t id, int idtype)
286 switch (idtype) {
220 smb_idmap_batch_getid(idmap_get_handle_t *idmaph, smb_idmap_t *sim, smb_sid_t *sid, int idtype) argument
277 smb_idmap_batch_getsid(idmap_get_handle_t *idmaph, smb_idmap_t *sim, uid_t id, int idtype) argument

Completed in 1183 milliseconds

123