Lines Matching defs:code

150 	uint_t	code = t->t_sysnum;
160 if (code != 0 && code < NSYSCALL) {
162 nargs = LWP_GETSYSENT(lwp)[code].sy_narg;
173 return (code);
184 uint_t i, code;
186 code = get_syscall_args(lwp, args, nargsp);
189 return (code);
210 uint_t code = t->t_sysnum;
216 if (lwp->lwp_argsaved || code == 0)
219 if (code >= NSYSCALL) {
223 struct sysent *callp = se + code;
240 module_lock = lock_syscall(se, code);
353 unsigned int code;
406 code = t->t_sysnum;
407 if (code == 0 && arg0 != 0) { /* indirect syscall */
408 code = arg0;
420 if (prismember(&PTOU(p)->u_entrymask, code)) {
426 prismember(&PTOU(p)->u_entrymask, code)) {
427 stop(PR_SYSENTRY, code);
460 if (error = audit_start(T_SYSCALL, code, auditing, \
488 if (code >= NSYSCALL)
491 callp = LWP_GETSYSENT(lwp) + code;
495 if (code >= NSYSCALL)
496 printf("0x%x", code);
498 sysname = mod_getsysname(code);
500 sysname, code);
541 int code = t->t_sysnum;
555 if (code == 0)
565 audit_finish(T_SYSCALL, code, error, &rval);
582 if (prismember(&PTOU(p)->u_exitmask, code)) {
658 prismember(&PTOU(p)->u_exitmask, code))
659 stop(PR_SYSEXIT, code);
666 * This code must be here and not in the bowels of the system
670 ASSERT(code == SYS_vfork || code == SYS_forksys);
748 * All code that sets signals and makes ISSIG_PENDING
758 int nargs = (code > 0 && code < NSYSCALL)?
759 LWP_GETSYSENT(lwp)[code].sy_narg : 0;
760 realsigprof(code, nargs, error);
949 lock_syscall(struct sysent *table, uint_t code)
956 module_lock = table[code].sy_lock;
957 callp = &table[code];
969 if ((id = modload("sys", syscallnames[code])) == -1)
982 modp = mod_find_by_filename("sys", syscallnames[code]);
1020 int code;
1022 code = curthread->t_sysnum;
1023 callp = se + code;
1028 module_lock = lock_syscall(se, code);
1056 indir(int code, long a0, long a1, long a2, long a3, long a4)
1061 if (code <= 0 || code >= NSYSCALL)
1066 curthread->t_sysnum = code;
1067 callp = LWP_GETSYSENT(lwp) + code;