Home
last modified time | relevance | path

Searched refs:cmdtab (Results 1 – 25 of 36) sorted by relevance

12

/netbsd-src/usr.sbin/timed/timedc/
H A Dtimedc.c149 extern const struct cmd cmdtab[]; in getcmd()
155 for (c = cmdtab; c < &cmdtab[NCMDS]; c++) { in getcmd()
212 extern const struct cmd cmdtab[]; in help()
220 for (c = cmdtab; c < &cmdtab[NCMDS]; c++) { in help()
233 c = cmdtab + j * lines + i; in help()
235 if (c + lines >= &cmdtab[NCMDS]) { in help()
H A Dcmdtab.c50 const struct cmd cmdtab[] = { variable
60 int NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]);
H A DMakefile5 SRCS= cmds.c cmdtab.c timedc.c byteorder.c measure.c cksum.c tspname.c
/netbsd-src/sys/arch/alpha/stand/standtest/
H A Dtest.c40 struct cmdtab { struct
50 int dispatch_cmd(const char *buf, const struct cmdtab *cmds); argument
55 void print_cmds(const struct cmdtab *cmds, const char *match,
85 static const struct cmdtab toplevel_cmds[] = { in main()
174 dispatch_cmd(const char *buf, const struct cmdtab *cmds) in dispatch_cmd()
176 const struct cmdtab *try, *winner; in dispatch_cmd()
231 print_cmds(const struct cmdtab *cmds, const char *match, size_t matchlen) in print_cmds()
233 const struct cmdtab *try; in print_cmds()
403 static const struct cmdtab show_cmds[] = { in toplevel_show()
/netbsd-src/usr.sbin/mlxctl/
H A Dmain.c68 static const struct cmd cmdtab[] = { variable
119 cmd = &cmdtab[0]; in main()
120 maxcmd = &cmdtab[sizeof(cmdtab) / sizeof(cmdtab[0])]; in main()
/netbsd-src/usr.sbin/lpr/lpc/
H A Dcmdtab.c63 struct cmd cmdtab[] = { variable
82 int NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]);
H A Dlpc.c211 for (c = cmdtab; (p = c->c_name) != NULL; c++) { in getcmd()
273 for (c = cmdtab; c->c_name; c++) { in help()
286 c = cmdtab + j * lines + i; in help()
288 if (c + lines >= &cmdtab[NCMDS - 1]) { in help()
H A Dextern.h56 extern struct cmd cmdtab[];
H A DMakefile6 SRCS= lpc.c cmds.c cmdtab.c
/netbsd-src/usr.sbin/iopctl/
H A Diopctl.c92 } const cmdtab[] = { variable
137 for (i = 0; i < sizeof(cmdtab) / sizeof(cmdtab[0]); i++) in main()
138 if (strcmp(argv[optind], cmdtab[i].label) == 0) { in main()
139 if (cmdtab[i].takesargs == 0 && in main()
142 (*cmdtab[i].func)(argv + optind + 1); in main()
146 if (i == sizeof(cmdtab) / sizeof(cmdtab[0])) in main()
/netbsd-src/sys/arch/ews4800mips/stand/common/
H A Dcmd.c41 } cmdtab[] = { variable
79 for (cmd = cmdtab; cmd->name; cmd++) { in cmd_exec()
139 for (cmd = cmdtab; cmd->name; cmd++) in cmd_help()
/netbsd-src/usr.bin/cdplay/
H A Dcdplay.c94 static struct cmdtab { struct
99 } const cmdtab[] = { variable
339 const struct cmdtab *c, *mc; in help()
343 mc = cmdtab + sizeof(cmdtab) / sizeof(cmdtab[0]); in help()
344 for (c = cmdtab; c < mc; c++) { in help()
1315 const struct cmdtab *c, *mc; in parse()
1342 mc = cmdtab + sizeof(cmdtab) / sizeof(cmdtab[0]); in parse()
1343 for (c = cmdtab; c < mc; c++) { in parse()
/netbsd-src/usr.sbin/nvmmctl/
H A Dnvmmctl.c57 static struct cmdtab { struct
73 const struct cmdtab *ct; in main() argument
/netbsd-src/usr.bin/tip/
H A DMakefile42 SRCS= acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c partab.c \
H A DREADME31 The command dispatch table is defined in cmdtab.c. Commands
/netbsd-src/usr.bin/tftp/
H A Dmain.c153 static const struct cmd cmdtab[] = { variable
698 for (c = cmdtab; (p = c->name) != NULL; c++) { in getcmd()
760 for (c = cmdtab; c->name; c++) in help()
/netbsd-src/usr.sbin/cpuctl/
H A Dcpuctl.c69 static struct cmdtab { struct
91 const struct cmdtab *ct; in main() argument
/netbsd-src/usr.bin/ftp/
H A DMakefile9 SRCS= cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c \
H A Dftp_var.h332 extern struct cmd cmdtab[];
/netbsd-src/usr.sbin/intrctl/
H A Dintrctl.c60 static struct cmdtab { struct
74 const struct cmdtab *ct; in main() argument
/netbsd-src/usr.bin/systat/
H A DMakefile14 SRCS= bufcache.c cmds.c cmdtab.c convtbl.c disks.c df.c drvstats.c \
/netbsd-src/usr.sbin/tprof/
H A Dtprof.c104 static struct cmdtab { struct
558 const struct cmdtab *ct; in main()
/netbsd-src/usr.bin/mail/
H A DMakefile27 SRCS= version.c support.c cmd1.c cmd2.c cmd3.c cmd4.c cmdtab.c collect.c \
H A Dextern.h134 extern const struct cmd cmdtab[];
/netbsd-src/libexec/ftpd/
H A Dftpcmd.y715 help(cmdtab, NULL);
731 help(cmdtab, $3);
1223 struct tab cmdtab[] = {
1528 p = lookup(cmdtab, cmdp);

12