Home
last modified time | relevance | path

Searched refs:narg (Results 1 – 25 of 47) sorted by relevance

12

/freebsd/usr.bin/kdump/
H A Dlinux.c68 int narg = ktr->ktr_narg; in ktrsyscall_linux() local
102 narg--; in ktrsyscall_linux()
110 print_number(ip, narg, c); in ktrsyscall_linux()
114 narg--; in ktrsyscall_linux()
120 print_number(ip, narg, c); in ktrsyscall_linux()
124 narg--; in ktrsyscall_linux()
127 print_number(ip, narg, c); in ktrsyscall_linux()
131 narg--; in ktrsyscall_linux()
137 print_number(ip, narg, c); in ktrsyscall_linux()
141 narg--; in ktrsyscall_linux()
[all …]
H A Dkdump.c819 int narg = ktr->ktr_narg; in ktrsyscall() local
824 if (narg) { in ktrsyscall()
829 ktrsyscall_freebsd(ktr, &ip, &narg, &c, in ktrsyscall()
837 &narg, &c); in ktrsyscall()
840 ktrsyscall_linux(ktr, &ip, &narg, &c); in ktrsyscall()
845 while (narg > 0) in ktrsyscall()
846 print_number(ip, narg, c); in ktrsyscall()
856 int narg = ktr->ktr_narg; in ktrsyscall_freebsd() local
894 narg--; in ktrsyscall_freebsd()
899 print_number(ip, narg, c); in ktrsyscall_freebsd()
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlauxlib.c147 LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) { in luaL_argerror() argument
150 return luaL_error(L, "bad argument #%d (%s)", narg, extramsg); in luaL_argerror()
153 narg--; /* do not count `self' */ in luaL_argerror()
154 if (narg == 0) /* error is in the self argument itself? */ in luaL_argerror()
161 narg, ar.name, extramsg); in luaL_argerror()
165 static int typeerror (lua_State *L, int narg, const char *tname) { in typeerror() argument
167 tname, luaL_typename(L, narg)); in typeerror()
168 return luaL_argerror(L, narg, msg); in typeerror()
172 static void tag_error (lua_State *L, int narg, int tag) { in tag_error() argument
173 typeerror(L, narg, lua_typename(L, tag)); in tag_error()
[all …]
H A Dlcorolib.c18 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume() argument
20 if (!lua_checkstack(co, narg)) { in auxresume()
28 lua_xmove(L, co, narg); in auxresume()
29 status = lua_resume(co, L, narg); in auxresume()
/freebsd/contrib/one-true-awk/
H A Dparse.c56 x->narg[0]=b; in node1()
66 x->narg[0] = b; in node2()
67 x->narg[1] = c; in node2()
77 x->narg[0] = b; in node3()
78 x->narg[1] = c; in node3()
79 x->narg[2] = d; in node3()
89 x->narg[0] = b; in node4()
90 x->narg[1] = c; in node4()
91 x->narg[2] = d; in node4()
92 x->narg[3] = e; in node4()
[all …]
/freebsd/crypto/openssl/crypto/perlasm/
H A Dx86_64-xlate.pl534 my $narg = $current_function->{narg};
535 $narg=6 if (!defined($narg));
536 $func .= " movq %rcx,%rdi\n" if ($narg>0);
537 $func .= " movq %rdx,%rsi\n" if ($narg>1);
538 $func .= " movq %r8,%rdx\n" if ($narg>2);
539 $func .= " movq %r9,%rcx\n" if ($narg>3);
540 $func .= " movq 40(%rsp),%r8\n" if ($narg>4);
541 $func .= " movq 48(%rsp),%r9\n" if ($narg>5);
558 my $narg = $current_function->{narg};
559 $narg=6 if (!defined($narg));
[all …]
/freebsd/lib/libgeom/
H A Dgeom_ctl.c69 for (i = 0; i < req->narg; i++) { in gctl_dump()
140 req->narg++; in gctl_new_arg()
141 req->arg = reallocf(req->arg, sizeof *ap * req->narg); in gctl_new_arg()
144 req->narg = 0; in gctl_new_arg()
147 ap = req->arg + (req->narg - 1); in gctl_new_arg()
229 for (i = 0; i < req->narg; i++) { in gctl_free()
/freebsd/sys/i386/i386/
H A Ddb_trace.c231 db_print_stack_entry(const char *name, int narg, char **argnp, int *argp, in db_print_stack_entry() argument
234 int n = narg >= 0 ? narg : 5; in db_print_stack_entry()
245 if (narg < 0) in db_print_stack_entry()
408 int instr, narg; in db_backtrace() local
516 narg = MAXNARG; in db_backtrace()
517 if (sym != NULL && db_sym_numargs(sym, &narg, argnames)) { in db_backtrace()
520 narg = db_numargs(frame); in db_backtrace()
523 db_print_stack_entry(name, narg, argnp, argp, pc, actframe); in db_backtrace()
/freebsd/sys/arm64/arm64/
H A Delf32_machdep.c197 int error, i, nap, narg; in freebsd32_fetch_syscall_args() local
223 narg = sa->callp->sy_narg; in freebsd32_fetch_syscall_args()
226 if (narg > nap) { in freebsd32_fetch_syscall_args()
227 if (narg - nap > nitems(args)) in freebsd32_fetch_syscall_args()
230 (narg - nap) * sizeof(int)); in freebsd32_fetch_syscall_args()
233 for (i = 0; i < (narg - nap); i++) in freebsd32_fetch_syscall_args()
/freebsd/bin/sh/
H A Dparser.c261 pnext = &n->narg.next; in parsewordexp()
485 app = &n2->narg.next; in command()
497 n2 = (union node *)stalloc(sizeof (struct narg)); in command()
499 n2->narg.text = argvars; in command()
500 n2->narg.backquote = NULL; in command()
501 n2->narg.next = NULL; in command()
542 app = &ap->narg.next; in command()
545 ap->narg.next = NULL; in command()
652 app = &n->narg.next; in simplecmd()
659 } else if (lasttoken == TLP && app == &args->narg.next in simplecmd()
[all …]
H A Deval.c269 defun(n->narg.text, n->narg.next); in evaltree()
353 for (argp = n->nfor.args ; argp ; argp = argp->narg.next) { in evalfor()
396 for (patp = cp->nclist.pattern ; patp ; patp = patp->narg.next) { in evalcase()
727 isdeclarationcmd(struct narg *arg) in isdeclarationcmd()
735 arg = &arg->next->narg; in isdeclarationcmd()
894 for (argp = cmd->ncmd.args ; argp ; argp = argp->narg.next) { in evalcommand()
895 if (varflag && isassignment(argp->narg.text)) { in evalcommand()
900 varflag = isdeclarationcmd(&argp->narg) ? 2 : 0; in evalcommand()
1242 if (goodname(n->ncmd.args->narg.text)) in prehash()
1243 find_command(n->ncmd.args->narg.text, &entry, 0, in prehash()
H A Dshow.c124 for (np = cmd->ncmd.args ; np ; np = np->narg.next) { in shcmd()
178 bqlist = arg->narg.backquote; in sharg()
179 for (p = arg->narg.text ; *p ; p++) { in sharg()
/freebsd/contrib/ncurses/progs/
H A Dtput.c247 int narg; in tput_cmd() local
307 for (narg = 1; narg < argc; ++narg) { in tput_cmd()
309 long check = strtol(argv[narg], &ending, 0); in tput_cmd()
310 if (check < 0 || ending == argv[narg] || *ending != '\0') in tput_cmd()
312 provided = narg; in tput_cmd()
/freebsd/sbin/geom/misc/
H A Dsubr.c411 for (i = 0; i < req->narg; i++) { in gctl_get_param()
485 for (i = 0; i < req->narg; i++) { in gctl_change_param()
512 while (i < req->narg) { in gctl_delete_param()
518 if (i == req->narg) in gctl_delete_param()
522 req->narg--; in gctl_delete_param()
523 while (i < req->narg) { in gctl_delete_param()
539 for (i = 0; i < req->narg; i++) { in gctl_has_param()
/freebsd/contrib/lua/src/
H A Dlcorolib.c32 static int auxresume (lua_State *L, lua_State *co, int narg) { in auxresume() argument
34 if (l_unlikely(!lua_checkstack(co, narg))) { in auxresume()
38 lua_xmove(L, co, narg); in auxresume()
39 status = lua_resume(co, L, narg, &nres); in auxresume()
H A Dlua.c154 static int docall (lua_State *L, int narg, int nres) { in docall() argument
156 int base = lua_gettop(L) - narg; /* function index */ in docall()
161 status = lua_pcall(L, narg, nres, base); in docall()
185 int i, narg; in createargtable() local
186 narg = argc - (script + 1); /* number of positive indices */ in createargtable()
187 lua_createtable(L, narg, script + 1); in createargtable()
H A Dldo.c532 int narg = cast_int(L->top.p - func) - 1; in precallC() local
533 luaD_hook(L, LUA_HOOKCALL, -1, 1, narg); in precallC()
607 int narg = cast_int(L->top.p - func) - 1; /* number of real arguments */ in luaD_precall() local
613 for (; narg < nfixparams; narg++) in luaD_precall()
776 static int resume_error (lua_State *L, const char *msg, int narg) { in resume_error() argument
777 L->top.p -= narg; /* remove args from the stack */ in resume_error()
/freebsd/sys/geom/
H A Dgeom_ctl.c189 if (req->narg > GEOM_CTL_ARG_MAX) { in gctl_copyin()
195 ap = geom_alloc_copyin(req, req->arg, req->narg * sizeof(*ap)); in gctl_copyin()
203 for (i = 0; i < req->narg; i++) { in gctl_copyin()
209 for (i = 0; i < req->narg; i++) { in gctl_copyin()
259 for (i = 0; i < req->narg; i++, ap++) { in gctl_copyout()
279 for (i = 0; i < req->narg; i++) { in gctl_free()
304 for (i = 0; i < req->narg; i++) { in gctl_dump()
335 for (i = 0; i < req->narg; i++) { in gctl_set_param()
377 for (i = 0; i < req->narg; i++) { in gctl_get_param_flags()
H A Dgeom_ctl.h66 u_int narg; member
/freebsd/crypto/heimdal/appl/telnet/telnet/
H A Dcommands.c191 int narg; /* Number of arguments */ member
270 if (i + s->narg >= argc) { in sendcmd()
273 s->narg, s->narg == 1 ? "" : "s", s->name, s->name); in sendcmd()
282 i += s->narg; in sendcmd()
308 success += (*s->handler)((s->narg > 0) ? argv[i+1] : 0, in sendcmd()
309 (s->narg > 1) ? argv[i+2] : 0); in sendcmd()
310 i += s->narg; in sendcmd()
1436 int narg; member
1501 if (c->narg + 2 != argc) { in env_cmd()
1504 c->narg < argc + 2 ? "only " : "", in env_cmd()
[all …]
/freebsd/usr.sbin/lpr/lpd/
H A Dprintjob.c998 int amt, copycnt, filtstat, i, narg, resp, sfd, sfres, sizerr, statrc; in sendfile() local
1056 narg = 0; in sendfile()
1061 av[++narg] = opt_c; in sendfile()
1062 av[++narg] = width; in sendfile()
1063 av[++narg] = length; in sendfile()
1064 av[++narg] = indent; in sendfile()
1065 av[++narg] = opt_n; in sendfile()
1066 av[++narg] = logname; in sendfile()
1067 av[++narg] = opt_h; in sendfile()
1068 av[++narg] = origin_host; in sendfile()
[all …]
/freebsd/sys/dev/aic7xxx/aicasm/
H A Daicasm_macro_gram.y91 if (macro_symbol->info.macroinfo->narg != $4) {
92 printf("Narg == %d", macro_symbol->info.macroinfo->narg);
/freebsd/contrib/telnet/telnet/
H A Dcommands.c282 int narg; /* Number of arguments */ member
361 if (i + s->narg >= argc) { in sendcmd()
364 s->narg, s->narg == 1 ? "" : "s", s->name, s->name); in sendcmd()
373 i += s->narg; in sendcmd()
399 success += (*s->handler)((s->narg > 0) ? argv[i+1] : 0, in sendcmd()
400 (s->narg > 1) ? argv[i+2] : 0); in sendcmd()
401 i += s->narg; in sendcmd()
1511 int narg; member
1592 if (c->narg + 2 != argc) { in env_cmd()
1595 c->narg < argc + 2 ? "only " : "", in env_cmd()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/lua/
H A Dlauxlib.h49 LUALIB_API void (luaL_checktype) (lua_State *L, int narg, int t);
50 LUALIB_API void (luaL_checkany) (lua_State *L, int narg);
60 LUALIB_API int (luaL_checkoption) (lua_State *L, int narg, const char *def,
/freebsd/sys/powerpc/powerpc/
H A Dtrap.c661 int error, n, narg, i; in cpu_fetch_syscall_args() local
703 narg = sa->callp->sy_narg; in cpu_fetch_syscall_args()
718 if (narg > n) in cpu_fetch_syscall_args()
720 (narg - n) * argsz); in cpu_fetch_syscall_args()
725 if (SV_PROC_FLAG(p, SV_ILP32) && narg > n) { in cpu_fetch_syscall_args()
728 for (i = narg; i >= n; i--) in cpu_fetch_syscall_args()

12