Searched defs:arg (Results 1 - 25 of 33) sorted by relevance

12

/lxc/src/lxc/tools/
H A Dlxc_wait.c48 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument
H A Dlxc_console.c58 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 Dlxc_execute.c58 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 Dlxc_create.c70 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 Dlxc_checkpoint.c69 static int my_parser(struct lxc_arguments *args, int c, char *arg) argument
73 checkpoint_dir = strdup(arg);
H A Dlxc_destroy.c37 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 Dlxc_monitor.c43 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument
H A Dlxc_snapshot.c38 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 Dlxc_stop.c41 static int my_parser(struct lxc_arguments *args, int c, char *arg) argument
51 if (lxc_safe_long(arg, &args->timeout) < 0)
H A Dlxc_start.c143 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 Dlxc_unshare.c122 static int do_start(void *arg) argument
124 struct start_arg *start_arg = arg;
H A Dlxc_attach.c109 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 Dlxc_autostart.c36 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 Dlxc_info.c51 static int my_parser(struct lxc_arguments* args, int c, char* arg) argument
60 key[keys] = arg;
H A Dlxc_copy.c74 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 Dlxc_top.c74 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 Dlxc_ls.c160 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 Dlxcrsync.c90 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 Dlxcbtrfs.c346 struct rsync_data_char *arg = data; local
357 return btrfs_snapshot(arg->src, arg->dest);
H A Dlxcoverlay.c764 struct rsync_data *arg = data; local
765 return ovl_rsync(arg);
/lxc/src/tests/
H A Dreboot.c34 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 Dnamespace.c40 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 Dcriu.c229 #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 Dstart.c595 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 Dcore.c158 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);

Completed in 136 milliseconds

12