Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 52) sorted by relevance

123

/illumos-kvm-cmd/
H A Dqemu-io.c137 char *arg = argv[i]; in create_iovec()
349 read_f(int argc, char **argv) in read_f() argument
414 offset = cvtnum(argv[optind]); in read_f()
421 count = cvtnum(argv[optind]); in read_f()
529 readv_f(int argc, char **argv) in readv_f() argument
654 write_f(int argc, char **argv) in write_f() argument
705 count = cvtnum(argv[optind]); in write_f()
1314 offset = cvtnum(argv[1]); in truncate_f()
1366 info_f(int argc, char **argv) in info_f() argument
1495 offset = cvtnum(argv[1]); in alloc_f()
[all …]
H A Dqemu-img.c323 filename = argv[optind++]; in img_create()
387 filename = argv[optind++]; in img_check()
466 filename = argv[optind++]; in img_commit()
1017 filename = argv[optind++]; in img_info()
1125 filename = argv[optind++]; in img_snapshot()
1221 filename = argv[optind++]; in img_rebase()
1426 filename = argv[optind++]; in img_resize()
1427 size = argv[optind++]; in img_resize()
1505 int main(int argc, char **argv) in main() argument
1515 cmdname = argv[1]; in main()
[all …]
H A Dqemu-nbd.c183 int main(int argc, char **argv) in main() argument
303 version(argv[0]); in main() local
307 usage(argv[0]); in main() local
312 argv[0]); in main()
319 argv[0]); in main()
323 fd = open(argv[optind], O_RDWR); in main()
325 err(EXIT_FAILURE, "Cannot open %s", argv[optind]); in main()
331 printf("%s disconnected\n", argv[optind]); in main()
340 if ((ret = bdrv_open(bs, argv[optind], flags, NULL)) < 0) { in main()
342 err(EXIT_FAILURE, "Failed to bdrv_open '%s'", argv[optind]); in main()
[all …]
H A Dcmd.c85 char **argv) in command() argument
87 char *cmd = argv[0]; in command()
108 return ct->cfunc(argc, argv); in command()
515 char **argv) in quit_f() argument
553 char **argv) in help_f() argument
561 ct = find_command(argv[1]); in help_f()
563 printf(_("command %s not found\n"), argv[1]); in help_f()
566 help_onecmd(argv[1], ct); in help_f() local
H A Dcmd.h22 typedef int (*cfunc_t)(int argc, char **argv);
56 int command(const cmdinfo_t *ci, int argc, char **argv);
H A Dqemu-error.c130 void loc_set_cmdline(char **argv, int idx, int cnt) in loc_set_cmdline() argument
134 cur_loc->ptr = argv + idx; in loc_set_cmdline()
H A Dvl.c102 int qemu_main(int argc, char **argv, char **envp);
103 int main(int argc, char **argv) in main() argument
105 return qemu_main(argc, argv, NULL); in main()
1898 char *r = argv[optind]; in lookup_opt()
1901 loc_set_cmdline(argv, optind, 1); in lookup_opt()
1921 optarg = argv[optind++]; in lookup_opt()
1933 int main(int argc, char **argv, char **envp) in main() argument
1962 error_set_progname(argv[0]); in main() local
1996 if (argv[optind][0] != '-') { in main()
2032 if (argv[optind][0] != '-') { in main()
[all …]
/illumos-kvm-cmd/bsd-user/
H A Dbsdload.c120 abi_ulong argv; in loader_build_argptr() local
125 argv = sp; in loader_build_argptr()
131 put_user_ual(argv, sp); in loader_build_argptr()
139 put_user_ual(stringp, argv); in loader_build_argptr()
140 argv += n; in loader_build_argptr()
144 put_user_ual(0, argv); in loader_build_argptr()
157 int loader_exec(const char * filename, char ** argv, char ** envp, in loader_exec() argument
172 bprm.argc = count(argv); in loader_exec()
173 bprm.argv = argv; in loader_exec()
H A Dmain.c730 int main(int argc, char **argv) in main() argument
770 r = argv[optind]; in main()
784 r = argv[optind++]; in main()
795 r = argv[optind++]; in main()
805 r = argv[optind++]; in main()
809 r = argv[optind++]; in main()
818 interp_prefix = argv[optind++]; in main()
827 gdbstub_port = atoi(argv[optind++]); in main()
829 qemu_uname_release = argv[optind++]; in main()
831 cpu_model = argv[optind++]; in main()
[all …]
/illumos-kvm-cmd/linux-user/
H A Dlinuxload.c118 abi_ulong argv; in loader_build_argptr() local
123 argv = sp; in loader_build_argptr()
129 put_user_ual(argv, sp); in loader_build_argptr()
137 put_user_ual(stringp, argv); in loader_build_argptr()
138 argv += n; in loader_build_argptr()
143 put_user_ual(0, argv); in loader_build_argptr()
156 int loader_exec(const char * filename, char ** argv, char ** envp, in loader_exec() argument
170 bprm->argc = count(argv); in loader_exec()
171 bprm->argv = argv; in loader_exec()
/illumos-kvm-cmd/tests/cris/
H A Dcheck_openpf1.c14 int main (int argc, char *argv[]) in main() argument
16 char *fnam = argv[0]; in main()
18 if (argv[0][0] != '/') in main()
20 fnam = malloc (strlen (argv[0]) + 2); in main()
24 strcat (fnam, argv[0]); in main()
H A Dcheck_openpf5.c16 int main (int argc, char *argv[]) in main() argument
27 char *fn = malloc (strlen (argv[0]) + 2); in main()
31 strcat (fn, argv[0]); in main()
H A Dcheck_stat3.c11 int main (int argc, char *argv[]) in main() argument
16 strcat (path, argv[0]); in main()
H A Dcheck_stat4.c13 int main (int argc, char *argv[]) in main() argument
18 strcat (path, argv[0]); in main()
H A Dcheck_mmap1.c15 int main (int argc, char *argv[]) in main() argument
17 int fd = open (argv[0], O_RDONLY); in main()
H A Dcheck_mmap2.c15 int main (int argc, char *argv[]) in main() argument
17 int fd = open (argv[0], O_RDONLY); in main()
/illumos-kvm-cmd/QMP/
H A Dqmp-shell231 if len(sys.argv) == 2:
232 qemu = QMPShell(sys.argv[1])
233 addr = sys.argv[1]
234 elif len(sys.argv) == 3:
235 if sys.argv[1] != '-H':
236 fail_cmdline(sys.argv[1])
237 qemu = HMPShell(sys.argv[2])
238 addr = sys.argv[2]
/illumos-kvm-cmd/kvm/extboot/
H A Dsignrom.c26 int main(int argc, char **argv) in main() argument
34 printf("Usage: %s ROM OUTPUT\n", argv[0]); in main()
38 fin = fopen(argv[1], "rb"); in main()
39 fout = fopen(argv[2], "wb"); in main()
/illumos-kvm-cmd/kvm/vgabios/
H A Dbiossums.c50 int main(int argc, char* argv[]) in main() argument
62 if ((stream = fopen(argv[1], "rb")) == NULL) { in main()
63 printf("Error opening %s for reading.\n", argv[1]); in main()
69 printf("Error reading max. 65536 Bytes from %s.\n", argv[1]); in main()
159 if ((stream = fopen( argv[1], "wb")) == NULL) { in main()
160 printf("Error opening %s for writing.\n", argv[1]); in main()
164 printf("Error writing %d KBytes to %s.\n", bios_len / 1024, argv[1]); in main()
/illumos-kvm-cmd/slirp/
H A Dmisc.c117 const char *argv[256]; in fork_exec() local
185 argv[i++] = "slirp.telnetd"; in fork_exec()
186 argv[i++] = "-x"; in fork_exec()
187 argv[i++] = bptr; in fork_exec()
196 argv[i++] = strdup(curarg); in fork_exec()
199 argv[i] = NULL; in fork_exec()
200 execvp(argv[0], (char **)argv); in fork_exec() local
204 argv[0], strerror(errno)); in fork_exec()
/illumos-kvm-cmd/scripts/
H A Dsimpletrace.py87 if len(sys.argv) != 3:
88 err('usage: %s <trace-events> <trace-file>' % sys.argv[0])
90 events = parse_events(open(sys.argv[1], 'r'))
92 for rec in read_trace_file(open(sys.argv[2], 'rb')):
/illumos-kvm-cmd/darwin-user/
H A Dmachload.c723 unsigned long setup_arg_pages(void * mh, char ** argv, char ** env) in setup_arg_pages() argument
791 DPRINTF("pushing apple %s (0x%x)\n", (char*)argv[0], (int)argv[0]); in setup_arg_pages()
792 stl(stack, (int) argv[0]); in setup_arg_pages()
856 for(argc = 0; argv[argc]; argc++); in setup_arg_pages()
860 DPRINTF("pushing arg %s (0x%x)\n", (char*)argv[i], (int)argv[i]); in setup_arg_pages()
861 stl(stack, (int) argv[i]); in setup_arg_pages()
865 page_set_flags((int)argv[i], (int)(argv[i]+strlen(argv[i])), PROT_READ | PAGE_VALID); in setup_arg_pages()
879 int mach_exec(const char * filename, char ** argv, char ** envp, in mach_exec() argument
888 stack = setup_arg_pages(mh, argv, envp); in mach_exec()
H A Dmain.c738 int main(int argc, char **argv) in main() argument
759 r = argv[optind]; in main()
773 r = argv[optind++]; in main()
784 r = argv[optind++]; in main()
793 interp_prefix = argv[optind++]; in main()
795 qemu_host_page_size = atoi(argv[optind++]); in main()
805 cpu_model = argv[optind++]; in main()
822 filename = argv[optind]; in main()
855 if (mach_exec(filename, argv+optind, environ, regs) != 0) { in main()
/illumos-kvm-cmd/ui/
H A Dcocoa.m710 - (void)startEmulationWithArgc:(int)argc argv:(char**)argv;
792 - (void)startEmulationWithArgc:(int)argc argv:(char**)argv
797 status = qemu_main(argc, argv);
813 asprintf(&argv[0], "%s", bin);
814 asprintf(&argv[1], "-hda");
815 asprintf(&argv[2], "%s", img);
819 [self startEmulationWithArgc:3 argv:(char**)argv];
859 int main (int argc, const char * argv[]) {
862 gArgv = (char **)argv;
868 if (!strcmp(argv[i], "-vnc") ||
[all …]
/illumos-kvm-cmd/tests/
H A Druncom.c69 int main(int argc, char **argv) in main() argument
79 filename = argv[1]; in main()

Completed in 28 milliseconds

123