Searched refs:argc (Results 1 - 25 of 54) sorted by relevance

123

/lxc/src/tests/
H A Dmay_control.c30 int main(int argc, char *argv[]) argument
36 if (argc < 2)
39 if (argc == 3)
H A Dlist.c81 int main(int argc, char *argv[]) argument
85 if (argc > 1)
H A Ddestroytest.c63 int main(int argc, char *argv[]) argument
H A Dgetkeys.c32 int main(int argc, char *argv[]) argument
H A Ddevice_add_remove.c26 int main(int argc, char *argv[]) argument
/lxc/src/lxc/tools/
H A Dlxc_config.c60 int main(int argc, char *argv[]) argument
65 if (argc < 2)
H A Dlxc_clone.c112 int main(int argc, char *argv[]) argument
126 if (argc < 3)
130 c = getopt_long(argc, argv, "sB:L:o:n:v:KMHp:P:Rt:h", options, &option_index);
150 if (optind < argc && !orig)
152 if (optind < argc && !new)
154 if (optind < argc)
H A Dlxc_cgroup.c39 if (!args->argc) {
66 int main(int argc, char *argv[]) argument
71 if (lxc_arguments_parse(&my_args, argc, argv))
115 if ((my_args.argc) > 1) {
H A Dlxc_unfreeze.c55 int main(int argc, char *argv[]) argument
59 if (lxc_arguments_parse(&my_args, argc, argv))
H A Dlxc_execute.c50 if (!args->argc) {
105 int main(int argc, char *argv[]) argument
116 if (lxc_arguments_parse(&my_args, argc, argv))
H A Dlxc_device.c101 int main(int argc, char *argv[]) argument
112 if (lxc_arguments_parse(&my_args, argc, argv))
147 if (my_args.argc < 2) {
154 if (my_args.argc < 3)
H A Dlxc_freeze.c57 int main(int argc, char *argv[]) argument
61 if (lxc_arguments_parse(&my_args, argc, argv))
H A Dlxc_wait.c83 int main(int argc, char *argv[]) argument
87 if (lxc_arguments_parse(&my_args, argc, argv))
H A Dlxc_usernsexec.c265 int main(int argc, char *argv[]) argument
301 while ((c = getopt(argc, argv, "m:h")) != EOF) {
318 argc = argc - optind;
319 if (argc < 1) {
321 argc = 1;
H A Dlxc_console.c97 int main(int argc, char *argv[]) argument
102 ret = lxc_arguments_parse(&my_args, argc, argv);
H A Dlxc_snapshot.c81 int main(int argc, char *argv[]) argument
86 if (lxc_arguments_parse(&my_args, argc, argv))
264 if ((!args->newname) && (args->argc > 1)) {
269 if ((!args->newname) && (args->argc == 1))
H A Dlxc_checkpoint.c195 int main(int argc, char *argv[]) argument
200 if (lxc_arguments_parse(&my_args, argc, argv))
H A Dlxc_init.c77 int main(int argc, char *argv[]) argument
87 while ((opt = getopt_long(argc, argv, "n:l:qP:", options, NULL)) != -1) {
H A Dlxc_monitor.c86 int main(int argc, char *argv[]) argument
97 if (lxc_arguments_parse(&my_args, argc, argv))
H A Dlxc_stop.c155 int main(int argc, char *argv[]) argument
161 if (lxc_arguments_parse(&my_args, argc, argv))
/lxc/src/lxc/
H A Dexecute.c47 int argc = 0, argc_add; local
50 while (my_args->argv[argc++]);
61 argv = malloc((argc + argc_add) * sizeof(*argv));
86 for (j = 0; j < argc; j++)
H A Darguments.h136 int argc; member in struct:lxc_arguments
160 int argc, char *const argv[]);
H A Darguments.c183 int argc, char * const argv[])
198 c = getopt_long(argc, argv, shortopts, args->options, &index);
230 args->argc = argc - optind;
182 lxc_arguments_parse(struct lxc_arguments *args, int argc, char * const argv[]) argument
/lxc/src/lua-lxc/
H A Dcore.c69 int argc = lua_gettop(L); local
71 if (argc > 1)
125 int argc = lua_gettop(L); local
129 argv = alloca((argc+1) * sizeof(char *));
130 for (i = 0; i < argc-2; i++)
150 int argc = lua_gettop(L); local
155 if (argc > 1) {
156 argv = alloca((argc+1) * sizeof(char *));
157 for (i = 0, j = 0; i < argc-1; i++) {
204 int argc local
405 int argc = lua_gettop(L); local
459 int argc = lua_gettop(L); local
[all...]
/lxc/hooks/
H A Dunmount-namespace.c163 int main(int argc, char **argv) { argument
169 if (argc < 4 || strcmp(argv[2], "lxc") != 0) {
177 for (i = 4; i != argc; ++i) {

Completed in 23 milliseconds

123