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

12345

/freebsd-head/lib/libcasper/services/cap_grp/tests/
H A Dgrp_test.c232 const char *cmds[7], *fields[4], *names[5]; local
254 * cmds: setgrent, getgrent, getgrent_r, getgrnam, getgrnam_r,
264 cmds[0] = "setgrent";
265 cmds[1] = "getgrent";
266 cmds[2] = "getgrent_r";
267 cmds[3] = "getgrnam";
268 cmds[4] = "getgrnam_r";
269 cmds[5] = "getgrgid";
270 cmds[6] = "getgrgid_r";
271 CHECK(cap_grp_limit_cmds(capgrp, cmds,
[all...]
/freebsd-head/lib/libcasper/services/cap_pwd/tests/
H A Dpwd_test.c244 const char *cmds[7], *fields[10], *names[6]; local
273 * cmds: setpwent, getpwent, getpwent_r, getpwnam, getpwnam_r,
282 cmds[0] = "setpwent";
283 cmds[1] = "getpwent";
284 cmds[2] = "getpwent_r";
285 cmds[3] = "getpwnam";
286 cmds[4] = "getpwnam_r";
287 cmds[5] = "getpwuid";
288 cmds[6] = "getpwuid_r";
289 CHECK(cap_pwd_limit_cmds(cappwd, cmds,
[all...]
/freebsd-head/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
179 unsigned long cmds[2]; local
218 unsigned long cmds[2]; local
247 unsigned long cmds[2]; local
[all...]
/freebsd-head/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-head/sys/compat/freebsd32/
H A Dfreebsd32_capability.c58 u_long *cmds; local
70 cmds = NULL;
73 error = copyin(uap->cmds, cmds32, sizeof(cmds32[0]) * ncmds);
78 cmds = malloc(sizeof(cmds[0]) * ncmds, M_FILECAPS, M_WAITOK);
80 cmds[i] = cmds32[i];
84 return (kern_cap_ioctls_limit(td, uap->fd, cmds, ncmds));
94 u_long *cmds; local
100 cmds32 = uap->cmds;
120 cmds
[all...]
/freebsd-head/tests/sys/cddl/zfs/bin/
H A Dchg_usr_exec.c41 char cmds[BUFSIZ] = { 0 }; local
54 (void) snprintf(cmds+len, sizeof (cmds)-len,
72 if (execl("/bin/sh", "sh", "-c", cmds, (char *)0) != 0) {
/freebsd-head/contrib/netbsd-tests/bin/sh/dotcmd/
H A Dt_dotcmd.sh40 cmds='return break continue'
47 for cmd in ${cmds}
/freebsd-head/crypto/openssl/crypto/conf/
H A Dconf_ssl.c26 SSL_CONF_CMD *cmds; member in struct:ssl_conf_name_st
51 OPENSSL_free(tname->cmds[j].cmd);
52 OPENSSL_free(tname->cmds[j].arg);
54 OPENSSL_free(tname->cmds);
87 STACK_OF(CONF_VALUE) *cmds = NCONF_get_section(cnf, sect->value);
89 if (sk_CONF_VALUE_num(cmds) <= 0) {
90 if (cmds == NULL)
102 cnt = sk_CONF_VALUE_num(cmds);
103 ssl_name->cmds = OPENSSL_zalloc(cnt * sizeof(struct ssl_conf_cmd_st));
104 if (ssl_name->cmds
[all...]
/freebsd-head/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-head/lib/libcapsicum/
H A Dcapsicum_helpers.h55 unsigned long cmds[] = { TIOCGETA, TIOCGWINSZ, FIODTYPE }; local
73 if (cap_ioctls_limit(fd, cmds, nitems(cmds)) < 0 && errno != ENOSYS)
150 caph_ioctls_limit(int fd, const unsigned long *cmds, size_t ncmds) argument
153 if (cap_ioctls_limit(fd, cmds, ncmds) < 0 && errno != ENOSYS)
/freebsd-head/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-head/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,
/freebsd-head/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-head/usr.sbin/lpr/lpc/
H A DMakefile8 SRCS= lpc.c cmds.c cmdtab.c movejobs.c
/freebsd-head/tests/sys/cddl/zfs/tests/cli_root/zfs/
H A Dzfs_002_pos.ksh93 set -A cmds "create $fs" "list $fs" "snapshot $snap" "set snapdir=hidden $fs" \
105 typeset -i i=${cmds[#]}
106 cmds[i]="allow everyone snapshot $fs"
107 cmds[((i+1))]="unallow everyone snapshot $fs"
118 for subcmd in "${cmds[@]}" "${badparams[@]}"; do
/freebsd-head/sys/kern/
H A Dsys_capability.c347 u_long *cmds; local
362 cmds = fdep->fde_ioctls;
364 if (cmds[i] == cmd)
375 cap_ioctl_limit_check(struct filedescent *fdep, const u_long *cmds, argument
392 if (cmds[i] == ocmds[j])
403 kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds, size_t ncmds) argument
426 error = cap_ioctl_limit_check(fdep, cmds, ncmds);
431 fdep->fde_ioctls = cmds;
434 cmds = ocmds;
439 free(cmds, M_FILECAP
446 u_long *cmds; local
[all...]
/freebsd-head/sys/ufs/ufs/
H A Dufs_vfsops.c90 ufs_quotactl(mp, cmds, id, arg)
92 int cmds;
97 if ((cmds >> SUBCMDSHIFT) == Q_QUOTAON ||
98 (cmds >> SUBCMDSHIFT) == Q_QUOTAOFF)
107 cmd = cmds >> SUBCMDSHIFT;
108 type = cmds & SUBCMDMASK;
/freebsd-head/usr.sbin/binmiscctl/
H A Dbinmiscctl.c69 } cmds[] = { variable in typeref:struct:__anon811
153 for(i = 0; i < ( sizeof (cmds) / sizeof (cmds[0])); i++) {
154 fprintf(stderr, "%s:\n", cmds[i].desc);
155 fprintf(stderr, "\t%s %s %s\n\n", __progname, cmds[i].name,
156 cmds[i].args);
235 for(i = 0; i < ( sizeof (cmds) / sizeof (cmds[0])); i++) {
236 if (!strcasecmp(cmds[i].name, argv[0])) {
426 error = (*cmds[cm
[all...]
/freebsd-head/crypto/openssl/ssl/
H A Dssl_mcnf.c30 const SSL_CONF_CMD *cmds; local
46 cmds = conf_ssl_get(idx, &name, &cmd_count);
68 conf_ssl_get_cmd(cmds, i, &cmdstr, &arg);
/freebsd-head/usr.sbin/bhyve/
H A Dconsport.c120 cap_ioctl_t cmds[] = { TIOCGETA, TIOCSETA, TIOCGWINSZ }; local
146 if (caph_ioctls_limit(STDIN_FILENO, cmds, nitems(cmds)) == -1)
/freebsd-head/sys/dev/mmc/
H A Dmmc_ioctl.h51 struct mmc_ioc_cmd cmds[0]; member in struct:mmc_ioc_multi_cmd
/freebsd-head/usr.bin/write/
H A Dwrite.c83 unsigned long cmds[] = { TIOCGETA, TIOCGWINSZ, FIODGNAME }; local
112 caph_ioctls_limit(STDIN_FILENO, cmds, nitems(cmds)) < 0 ||
113 caph_ioctls_limit(STDOUT_FILENO, cmds, nitems(cmds)) < 0 ||
114 caph_ioctls_limit(STDERR_FILENO, cmds, nitems(cmds)) < 0 ||
/freebsd-head/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...]

Completed in 2006 milliseconds

12345