Searched refs:cmds (Results 1 - 25 of 106) sorted by relevance

12345

/freebsd-11-stable/lib/libcasper/services/cap_grp/tests/
H A Dgrp_test.c229 const char *cmds[7], *fields[4], *names[5]; local
251 * cmds: setgrent, getgrent, getgrent_r, getgrnam, getgrnam_r,
261 cmds[0] = "setgrent";
262 cmds[1] = "getgrent";
263 cmds[2] = "getgrent_r";
264 cmds[3] = "getgrnam";
265 cmds[4] = "getgrnam_r";
266 cmds[5] = "getgrgid";
267 cmds[6] = "getgrgid_r";
268 CHECK(cap_grp_limit_cmds(capgrp, cmds,
[all...]
/freebsd-11-stable/lib/libcasper/services/cap_pwd/tests/
H A Dpwd_test.c241 const char *cmds[7], *fields[10], *names[6]; local
270 * cmds: setpwent, getpwent, getpwent_r, getpwnam, getpwnam_r,
279 cmds[0] = "setpwent";
280 cmds[1] = "getpwent";
281 cmds[2] = "getpwent_r";
282 cmds[3] = "getpwnam";
283 cmds[4] = "getpwnam_r";
284 cmds[5] = "getpwuid";
285 cmds[6] = "getpwuid_r";
286 CHECK(cap_pwd_limit_cmds(cappwd, cmds,
[all...]
/freebsd-11-stable/tools/regression/capsicum/syscalls/
H A Dcap_ioctls_limit.c52 unsigned long cmds[2]; local
62 cmds[0] = FIOCLEX;
63 cmds[1] = FIONCLEX;
64 CHECK(cap_ioctls_limit(fd, cmds, nitems(cmds)) == 0);
65 cmds[0] = cmds[1] = 0;
66 CHECK(cap_ioctls_get(fd, cmds, nitems(cmds)) == nitems(cmds));
133 unsigned long cmds[2]; local
175 unsigned long cmds[2]; local
210 unsigned long cmds[2]; local
239 unsigned long cmds[2]; local
[all...]
/freebsd-11-stable/crypto/heimdal/lib/sl/
H A Dsl.h58 int sl_command_loop (SL_cmd *cmds, const char *prompt, void **data);
59 int sl_command (SL_cmd *cmds, int argc, char **argv);
62 SL_cmd *sl_match (SL_cmd *cmds, char *cmd, int exactp);
63 void sl_slc_help (SL_cmd *cmds, int argc, char **argv);
H A Dsl.c40 mandoc_template(SL_cmd *cmds, argument
70 for(c = cmds; c->name; ++c) {
83 for(c = cmds; c->name; ++c) {
109 sl_match (SL_cmd *cmds, char *cmd, int exactp) argument
114 for (c = cmds; c->name; ++c) {
132 sl_help (SL_cmd *cmds, int argc, char **argv) argument
137 mandoc_template(cmds, NULL);
143 for (c = cmds; c->name; ++c) {
157 c = sl_match (cmds, argv[1], 0);
203 sl_command(SL_cmd *cmds, in argument
308 sl_command_loop(SL_cmd *cmds, const char *prompt, void **data) argument
340 sl_loop(SL_cmd *cmds, const char *prompt) argument
362 sl_slc_help(SL_cmd *cmds, int argc, char **argv) argument
[all...]
/freebsd-11-stable/sys/compat/freebsd32/
H A Dfreebsd32_capability.c55 u_long *cmds; local
67 cmds = NULL;
70 error = copyin(uap->cmds, cmds32, sizeof(cmds32[0]) * ncmds);
75 cmds = malloc(sizeof(cmds[0]) * ncmds, M_FILECAPS, M_WAITOK);
77 cmds[i] = cmds32[i];
81 return (kern_cap_ioctls_limit(td, uap->fd, cmds, ncmds));
91 u_long *cmds; local
97 cmds32 = uap->cmds;
117 cmds
[all...]
/freebsd-11-stable/contrib/netbsd-tests/bin/sh/dotcmd/
H A Dt_dotcmd.sh40 cmds='return break continue'
47 for cmd in ${cmds}
/freebsd-11-stable/contrib/tnftp/src/
H A DMakefile.am6 cmds.c \
/freebsd-11-stable/contrib/bmake/
H A Dfor.c363 for_substitute(Buffer *cmds, strlist_t *items, unsigned int item_no, char ech)
373 Buf_AddBytes(cmds, strlen(item), item);
382 Buf_AddBytes(cmds, len + 1, item - 1);
386 Buf_AddByte(cmds, '\\');
388 Buf_AddByte(cmds, '\\');
389 Buf_AddByte(cmds, ch);
403 Buffer cmds;
428 Buf_Init(&cmds, len + 256);
442 Buf_AddBytes(&cmds, cp - cmd_cp, cmd_cp);
443 Buf_AddBytes(&cmds,
361 for_substitute(Buffer *cmds, strlist_t *items, unsigned int item_no, char ech) argument
401 Buffer cmds; local
[all...]
/freebsd-11-stable/usr.sbin/timed/timedc/
H A DMakefile8 SRCS= cmds.c cmdtab.c timedc.c byteorder.c measure.c cksum.c
/freebsd-11-stable/sys/kern/
H A Dsys_capability.c340 u_long *cmds; local
352 cmds = fdp->fd_ofiles[fd].fde_ioctls;
354 if (cmds[i] == cmd)
365 cap_ioctl_limit_check(struct filedesc *fdp, int fd, const u_long *cmds, argument
382 if (cmds[i] == ocmds[j])
393 kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds, size_t ncmds) argument
409 error = cap_ioctl_limit_check(fdp, fd, cmds, ncmds);
414 fdp->fd_ofiles[fd].fde_ioctls = cmds;
417 cmds = ocmds;
421 free(cmds, M_FILECAP
428 u_long *cmds; local
456 u_long *cmds; local
[all...]
/freebsd-11-stable/contrib/nvi/ex/
H A Dex_usage.c73 for (cp = cmds; cp->name != NULL &&
89 if (cp != &cmds[C_VISUAL_EX] &&
90 cp != &cmds[C_VISUAL_VI])
92 if (cp == &cmds[C_VISUAL_EX])
93 cp = &cmds[C_VISUAL_VI];
95 cp = &cmds[C_VISUAL_EX];
101 for (cp = cmds; cp->name != NULL && !INTERRUPTED(sp); ++cp) {
110 if (cp == &cmds[C_SCROLL])
H A Dex_edit.c87 if (F_ISSET(cmdp, E_NEWSCREEN) || cmdp->cmd == &cmds[C_VSPLIT])
120 if ((cmdp->cmd == &cmds[C_VSPLIT] && vs_vsplit(sp, new)) ||
121 (cmdp->cmd != &cmds[C_VSPLIT] && vs_split(sp, new, 0))) {
/freebsd-11-stable/sys/dev/iwm/
H A Dif_iwm_notif_wait.h88 * @cmds: command IDs
111 uint16_t cmds[IWM_MAX_NOTIF_CMDS]; member in struct:iwm_notification_wait
129 const uint16_t *cmds, int n_cmds,
H A Dif_iwm_notif_wait.c144 if (cmd == wait_entry->cmds[i]) {
176 struct iwm_notification_wait *wait_entry, const uint16_t *cmds, int n_cmds,
185 memcpy(wait_entry->cmds, cmds, n_cmds * sizeof(uint16_t));
175 iwm_init_notification_wait(struct iwm_notif_wait_data *notif_data, struct iwm_notification_wait *wait_entry, const uint16_t *cmds, int n_cmds, int (*fn)(struct iwm_softc *sc, struct iwm_rx_packet *pkt, void *data), void *fn_data) argument
/freebsd-11-stable/contrib/gdb/gdb/cli/
H A Dcli-script.h26 /* Exported to cli/cli-cmds.c */
48 extern struct command_line * copy_command_lines (struct command_line *cmds);
/freebsd-11-stable/usr.sbin/lpr/lpc/
H A DMakefile8 SRCS= lpc.c cmds.c cmdtab.c movejobs.c
/freebsd-11-stable/lib/libcapsicum/
H A Dcapsicum_helpers.h51 unsigned long cmds[] = { TIOCGETA, TIOCGWINSZ, FIODTYPE }; local
69 if (cap_ioctls_limit(fd, cmds, nitems(cmds)) < 0 && errno != ENOSYS)
/freebsd-11-stable/sys/ufs/ufs/
H A Dufs_vfsops.c88 ufs_quotactl(mp, cmds, id, arg)
90 int cmds;
95 if ((cmds >> SUBCMDSHIFT) == Q_QUOTAON ||
96 (cmds >> SUBCMDSHIFT) == Q_QUOTAOFF)
105 cmd = cmds >> SUBCMDSHIFT;
106 type = cmds & SUBCMDMASK;
/freebsd-11-stable/usr.sbin/binmiscctl/
H A Dbinmiscctl.c68 } cmds[] = { variable in typeref:struct:__anon13930
152 for(i = 0; i < ( sizeof (cmds) / sizeof (cmds[0])); i++) {
153 fprintf(stderr, "%s:\n", cmds[i].desc);
154 fprintf(stderr, "\t%s %s %s\n\n", __progname, cmds[i].name,
155 cmds[i].args);
234 for(i = 0; i < ( sizeof (cmds) / sizeof (cmds[0])); i++) {
235 if (!strcasecmp(cmds[i].name, argv[0])) {
423 error = (*cmds[cm
[all...]
/freebsd-11-stable/usr.sbin/bhyve/
H A Dconsport.c117 cap_ioctl_t cmds[] = { TIOCGETA, TIOCSETA, TIOCGWINSZ }; local
144 if (cap_ioctls_limit(STDIN_FILENO, cmds, nitems(cmds)) == -1 &&
/freebsd-11-stable/sys/dev/mmc/
H A Dmmc_ioctl.h51 struct mmc_ioc_cmd cmds[0]; member in struct:mmc_ioc_multi_cmd
/freebsd-11-stable/usr.bin/usbhidaction/
H A Dusbhidaction.c243 struct command *cmds = local
245 if (cmds) {
247 commands = cmds;
284 struct command *cmd, *cmds; local
293 cmds = NULL;
312 freecommands(cmds);
329 cmd->next = cmds;
330 cmds = cmd;
343 freecommands(cmds);
359 freecommands(cmds);
[all...]
/freebsd-11-stable/tests/sys/capsicum/
H A Dioctls_test.c70 u_long cmds[] = { FIONREAD }; local
95 ATF_REQUIRE(cap_ioctls_limit(s[0], cmds, nitems(cmds)) == 0);
/freebsd-11-stable/lib/libedit/
H A Dparse.c68 } cmds[] = { variable in typeref:struct:__anon4674
130 for (i = 0; cmds[i].name != NULL; i++)
131 if (Strcmp(cmds[i].name, ptr) == 0) {
132 i = (*cmds[i].func) (el, argc, argv);

Completed in 451 milliseconds

12345