Searched defs:cmd (Results 1 - 12 of 12) sorted by relevance

/lxc/src/lxc/tools/
H A Dlxc_device.c104 char *cmd, *dev_name, *dst_name; local
152 cmd = my_args.argv[0];
159 if (strcmp(cmd, "add") == 0) {
170 } else if (strcmp(cmd, "del") == 0) {
H A Dlxc_unshare.c69 static void usage(char *cmd) argument
71 fprintf(stderr, "%s <options> command [command_arguments]\n", basename(cmd));
/lxc/src/tests/
H A Dreboot.c38 int *cmd = arg; local
40 if (reboot(*cmd))
41 printf("failed to reboot(%d): %m\n", *cmd);
45 static int test_reboot(int cmd, int sig) argument
52 ret = clone(do_reboot, stack, CLONE_NEWPID | SIGCHLD, &cmd);
/lxc/src/lxc/
H A Dcommands.h50 lxc_cmd_t cmd; member in struct:lxc_cmd_req
H A Dcommands.c66 * adding information to the end of cmd.data, then you must introduce a new
133 static const char *lxc_cmd_str(lxc_cmd_t cmd) argument
147 if (cmd >= LXC_CMD_MAX)
148 return "Unknown cmd";
149 return cmdname[cmd];
156 * @cmd : command to put response in
169 static int lxc_cmd_rsp_recv(int sock, struct lxc_cmd_rr *cmd) argument
172 struct lxc_cmd_rsp *rsp = &cmd->rsp;
177 lxc_cmd_str(cmd->req.cmd), strerro
279 lxc_cmd(const char *name, struct lxc_cmd_rr *cmd, int *stopped, const char *lxcpath, const char *hashed_sock_name) argument
351 struct lxc_cmd_rr cmd = { local
391 struct lxc_cmd_rr cmd = { local
421 struct lxc_cmd_rr cmd = { local
456 struct lxc_cmd_rr cmd = { local
515 struct lxc_cmd_rr cmd = { local
569 struct lxc_cmd_rr cmd = { local
610 struct lxc_cmd_rr cmd = { local
672 struct lxc_cmd_rr cmd = { local
707 struct lxc_cmd_rr cmd = { local
780 struct lxc_cmd_rr cmd = { local
818 struct lxc_cmd_rr cmd = { local
[all...]
H A Dattach.c693 /* Fetch the current profile path over the cmd interface. */
1289 lxc_attach_command_t* cmd = (lxc_attach_command_t*)payload; local
1291 execvp(cmd->program, cmd->argv);
1292 SYSERROR("Failed to exec \"%s\".", cmd->program);
H A Dstart.c597 int *cmd = arg; local
600 ret = reboot(*cmd);
609 int ret, cmd, v, flags; local
627 cmd = v ? LINUX_REBOOT_CMD_CAD_ON : LINUX_REBOOT_CMD_CAD_OFF;
634 pid = __clone2(container_reboot_supported, stack, stack_size, flags, &cmd);
637 pid = clone(container_reboot_supported, stack, flags, &cmd);
H A Dnetwork.c207 char *cmd; local
213 cmd = on_path("iw", NULL);
214 if (!cmd)
216 free(cmd);
1424 char *cmd; local
1427 cmd = on_path("ovs-vsctl", NULL);
1428 if (!cmd)
1430 free(cmd);
H A Dutils.c1202 char *on_path(const char *cmd, const char *rootfs) { argument
1220 ret = snprintf(cmdpath, MAXPATHLEN, "%s/%s/%s", rootfs, entry, cmd);
1222 ret = snprintf(cmdpath, MAXPATHLEN, "%s/%s", entry, cmd);
H A Dlxccontainer.c3968 static int do_lxcapi_migrate(struct lxc_container *c, unsigned int cmd, argument
4004 switch (cmd) {
4027 ERROR("invalid migrate command %u", cmd);
/lxc/src/lxc/bdev/
H A Dlxclvm.c186 char *cmd, output[12]; local
190 cmd = alloca(len);
192 ret = snprintf(cmd, len, lvscmd, path);
196 f = lxc_popen(cmd);
/lxc/src/python-lxc/
H A Dlxc.c295 lxc_attach_command_t cmd = { local
300 if (!PyArg_ParseTuple(arg, "sO", (const char**)&cmd.program, &args_obj))
303 cmd.argv = convert_tuple_to_char_pointer_array(args_obj);
310 if (!cmd.argv)
313 rv = lxc_attach_run_command(&cmd);
315 for (i = 0; cmd.argv[i]; i++)
316 free(cmd.argv[i]);
317 free(cmd.argv);
1464 "cmd", NULL};
1796 "cmd
[all...]

Completed in 1248 milliseconds