/lxc/src/lxc/tools/ |
H A D | lxc_wait.c | 48 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument
|
H A D | lxc_console.c | 58 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument 62 if (lxc_safe_uint(arg, &args->ttynum) < 0) 66 args->escape = etoc(arg);
|
H A D | lxc_execute.c | 58 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument 62 args->rcfile = arg; 65 return lxc_config_define_add(&defines, arg); 68 if (lxc_safe_uint(arg, &args->uid) < 0) 72 if (lxc_safe_uint(arg, &args->gid) < 0)
|
H A D | lxc_create.c | 70 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument 73 case 'B': args->bdevtype = arg; break; 74 case 'f': args->configfile = arg; break; 75 case 't': args->template = arg; break; 76 case '0': args->lvname = arg; break; 77 case '1': args->vgname = arg; break; 78 case '2': args->thinpool = arg; break; 79 case '3': args->fstype = arg; break; 80 case '4': args->fssize = get_fssize(arg); break; 81 case '5': args->zfsroot = arg; brea [all...] |
H A D | lxc_checkpoint.c | 69 static int my_parser(struct lxc_arguments *args, int c, char *arg) argument 73 checkpoint_dir = strdup(arg);
|
H A D | lxc_destroy.c | 37 static int my_parser(struct lxc_arguments* args, int c, char* arg); 138 static int my_parser(struct lxc_arguments *args, int c, char *arg) argument
|
H A D | lxc_monitor.c | 43 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument
|
H A D | lxc_snapshot.c | 38 static int my_parser(struct lxc_arguments *args, int c, char *arg); 167 static int my_parser(struct lxc_arguments *args, int c, char *arg) argument 175 args->snapname = arg; 178 args->newname = arg; 182 args->snapname = arg; 185 args->commentfile = arg;
|
H A D | lxc_stop.c | 41 static int my_parser(struct lxc_arguments *args, int c, char *arg) argument 51 if (lxc_safe_long(arg, &args->timeout) < 0)
|
H A D | lxc_start.c | 143 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument 146 case 'c': args->console = arg; break; 147 case 'L': args->console_log = arg; break; 150 case 'f': args->rcfile = arg; break; 152 case 's': return lxc_config_define_add(&defines, arg); 153 case 'p': args->pidfile = arg; break; 154 case OPT_SHARE_NET: args->share_ns[LXC_NS_NET] = arg; break; 155 case OPT_SHARE_IPC: args->share_ns[LXC_NS_IPC] = arg; break; 156 case OPT_SHARE_UTS: args->share_ns[LXC_NS_UTS] = arg; break;
|
H A D | lxc_unshare.c | 122 static int do_start(void *arg) argument 124 struct start_arg *start_arg = arg;
|
H A D | lxc_attach.c | 109 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument 117 ret = lxc_fill_elevated_privileges(arg, &elevated_privileges); 123 new_personality = lxc_config_parse_arch(arg); 125 lxc_error(args, "invalid architecture specified: %s", arg); 148 while ((del = strstr(arg, "MOUNT"))) 152 while ((del = strstr(arg, *it))) 155 ret = lxc_fill_namespace_flags(arg, &namespace_flags); 168 ret = add_to_simple_array(&extra_keep, &extra_keep_size, arg); 175 ret = add_to_simple_array(&extra_env, &extra_env_size, arg); 182 args->console_log = arg; [all...] |
H A D | lxc_autostart.c | 36 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument 58 cmd_groups_list = accumulate_list(arg, ",", cmd_groups_list); 61 if (lxc_safe_long(arg, &args->timeout) < 0)
|
H A D | lxc_info.c | 51 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument 60 key[keys] = arg;
|
H A D | lxc_copy.c | 74 static int my_parser(struct lxc_arguments *args, int c, char *arg); 138 struct lxc_arguments *arg); 145 struct lxc_arguments *arg, char **args, 255 static int mk_rand_ovl_dirs(struct mnts *mnts, unsigned int num, struct lxc_arguments *arg) argument 266 arg->newpath, arg->newname); 278 arg->newpath, arg->newname); 384 struct lxc_arguments *arg, char **args, int flags) 395 if (!arg 383 do_clone_ephemeral(struct lxc_container *c, struct lxc_arguments *arg, char **args, int flags) argument 558 my_parser(struct lxc_arguments *args, int c, char *arg) argument [all...] |
H A D | lxc_top.c | 74 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument 78 if (lxc_safe_int(arg, &delay) < 0) 82 sort_by = arg[0];
|
H A D | lxc_ls.c | 160 static int my_parser(struct lxc_arguments *args, int c, char *arg); 908 static int my_parser(struct lxc_arguments *args, int c, char *arg) argument 939 if (arg && !(*arg == '-')) { 941 m = strtoul(arg, &invalid, 0); 949 args->groups = arg; 952 args->ls_filter = arg; 955 args->ls_fancy_format = arg;
|
/lxc/src/lxc/bdev/ |
H A D | lxcrsync.c | 90 struct rsync_data_char *arg = data; local 91 return rsync_delta(arg); 139 struct rsync_data *arg = data; local 140 return rsync_rootfs(arg);
|
H A D | lxcbtrfs.c | 346 struct rsync_data_char *arg = data; local 357 return btrfs_snapshot(arg->src, arg->dest);
|
H A D | lxcoverlay.c | 764 struct rsync_data *arg = data; local 765 return ovl_rsync(arg);
|
/lxc/src/tests/ |
H A D | reboot.c | 34 int clone(int (*fn)(void *), void *child_stack, int flags, void *arg, ...); 36 static int do_reboot(void *arg) argument 38 int *cmd = arg;
|
/lxc/src/lxc/ |
H A D | namespace.c | 40 void *arg; member in struct:clone_arg 43 static int do_clone(void *arg) argument 45 struct clone_arg *clone_arg = arg; 46 return clone_arg->fn(clone_arg->arg); 49 pid_t lxc_clone(int (*fn)(void *), void *arg, int flags) argument 53 .arg = arg,
|
H A D | criu.c | 229 #define DECLARE_ARG(arg) \ 231 if (arg == NULL) { \ 235 argv[argc++] = strdup(arg); \ 316 ERROR("sprintf of cgroup root arg failed"); 338 char arg[2 * PATH_MAX + 2]; local 360 ret = snprintf(arg, sizeof(arg), fmt, key, val); 361 if (ret < 0 || ret >= sizeof(arg)) { 368 DECLARE_ARG(arg);
|
H A D | start.c | 595 static int container_reboot_supported(void *arg) argument 597 int *cmd = arg; 1434 struct start_args *arg = data; local 1436 NOTICE("Exec'ing \"%s\".", arg->argv[0]); 1438 execvp(arg->argv[0], arg->argv); 1439 SYSERROR("Failed to exec \"%s\".", arg->argv[0]); 1445 struct start_args *arg = data; local 1447 NOTICE("Started \"%s\" with pid \"%d\".", arg->argv[0], handler->pid); 1515 char *arg local [all...] |
/lxc/src/lua-lxc/ |
H A D | core.c | 158 const char *arg = luaL_checkstring(L, i+2); local 160 if (!strcmp(arg, "useinit")) 163 argv[j++] = strdupa(arg); 412 const char *arg = luaL_checkstring(L, i+2); local 413 argv[i] = strdupa(arg);
|