Home
last modified time | relevance | path

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

123

/arch/x86/boot/compressed/
Dmkpiggy.c33 int main(int argc, char *argv[]) in main() argument
41 fprintf(stderr, "Usage: %s compressed_file\n", argv[0]); in main()
47 f = fopen(argv[1], "r"); in main()
49 perror(argv[1]); in main()
55 perror(argv[1]); in main()
59 perror(argv[1]); in main()
74 printf(".incbin \"%s\"\n", argv[1]); in main()
/arch/sparc/boot/
Dpiggyback.c184 int main(int argc,char **argv) in main() argument
195 if (strcmp(argv[1], "64") == 0) in main()
197 if (stat (argv[4], &s) < 0) in main()
198 die(argv[4]); in main()
200 if (!get_start_end(argv[3], &start, &end)) { in main()
202 argv[3]); in main()
205 if ((image = open(argv[2], O_RDWR)) < 0) in main()
206 die(argv[2]); in main()
208 die(argv[2]); in main()
221 offset = get_hdrs_offset(image, argv[2]); in main()
[all …]
/arch/mn10300/boot/tools/
Dbuild.c69 int main(int argc, char **argv) in main() argument
76 if (argc > 2 && !strcmp(argv[1], "-b")) { in main()
78 argc--, argv++; in main()
83 if (!strcmp(argv[4], "CURRENT")) { in main()
90 } else if (strcmp(argv[4], "FLOPPY")) { in main()
91 if (stat(argv[4], &sb)) { in main()
92 perror(argv[4]); in main()
107 file_open(argv[1]); in main()
121 file_open(argv[2]); in main()
145 file_open(argv[3]); in main()
[all …]
/arch/powerpc/boot/
Dmktree.c41 int main(int argc, char *argv[]) in main() argument
50 fprintf(stderr, "usage: %s <zImage-file> <boot-image> <load address> <entry point>\n",argv[0]); in main()
54 if (stat(argv[1], &st) < 0) { in main()
64 bt.bb_dest = htonl(strtoul(argv[3], NULL, 0)); in main()
65 bt.bb_entry_point = htonl(strtoul(argv[4], NULL, 0)); in main()
81 if ((in_fd = open(argv[1], O_RDONLY)) < 0) { in main()
86 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
100 argv[1]); in main()
105 fprintf(stderr, "%s is not an ELF image\n", argv[1]); in main()
110 fprintf(stderr, "%s failed to seek in ELF image\n", argv[1]); in main()
/arch/um/os-Linux/
Dexecvp.c39 int execvp_noalloc(char *buf, const char *file, char *const argv[]) in execvp_noalloc() argument
47 execv(file, argv); in execvp_noalloc()
83 execv(startp, argv); in execvp_noalloc()
133 int main(int argc, char**argv) in main() argument
142 argv++; in main()
143 if (ret = execvp_noalloc(buf, argv[0], argv)) { in main()
Dhelper.c20 char **argv; member
28 char **argv = data->argv; in helper_child() local
33 err = execvp_noalloc(data->buf, argv[0], argv); in helper_child()
42 int run_helper(void (*pre_exec)(void *), void *pre_data, char **argv) in run_helper() argument
70 data.argv = argv; in run_helper()
/arch/mips/ralink/
Dprom.c36 char **argv; in prom_init_cmdline() local
44 argv = (char **) KSEG1ADDR(fw_arg1); in prom_init_cmdline()
46 if (!argv) { in prom_init_cmdline()
48 argv); in prom_init_cmdline()
53 char *p = (char *) KSEG1ADDR(argv[i]); in prom_init_cmdline()
/arch/mips/boot/compressed/
Dcalc_vmlinuz_load_addr.c17 int main(int argc, char *argv[]) in main() argument
24 argv[0]); in main()
28 if (stat(argv[1], &sb) == -1) { in main()
35 if (sscanf(argv[2], "%llx", &vmlinux_load_addr) != 1) { in main()
/arch/alpha/boot/tools/
Dmkbb.c85 int main(int argc, char ** argv) in main() argument
95 fprintf(stderr, "Usage: %s device lxboot\n", argv[0]); in main()
100 dev = open(argv[1], O_RDWR); in main()
102 perror(argv[1]); in main()
107 fd = open(argv[2], O_RDONLY); in main()
109 perror(argv[2]); in main()
Dobjstrip.c52 main (int argc, char *argv[]) in main() argument
65 prog_name = argv[0]; in main()
67 for (i = 1; i < argc && argv[i][0] == '-'; ++i) { in main()
68 for (j = 1; argv[i][j]; ++j) { in main()
69 switch (argv[i][j]) { in main()
88 inname = argv[i++]; in main()
98 ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666); in main()
/arch/mips/netlogic/xlr/
Dsetup.c102 static void __init build_arcs_cmdline(int *argv) in build_arcs_cmdline() argument
109 for (i = 0; argv[i] != 0; i++) { in build_arcs_cmdline()
110 arg = (char *)(long)argv[i]; in build_arcs_cmdline()
177 int *argv, *envp; /* passed as 32 bit ptrs */ in prom_init() local
185 argv = (int *)(long)(int)fw_arg1; in prom_init()
198 build_arcs_cmdline(argv); in prom_init()
/arch/mips/pnx833x/common/
Dprom.c32 char **argv = (char **)fw_arg1; in prom_init_cmdline() local
37 strcpy(c, argv[i]); in prom_init_cmdline()
38 c += strlen(argv[i]); in prom_init_cmdline()
/arch/cris/boot/tools/
Dbuild.c106 int main(int argc, char ** argv) in main() argument
121 if (!strcmp(argv[4], "CURRENT")) { in main()
128 } else if (strcmp(argv[4], "FLOPPY")) { in main()
129 if (stat(argv[4], &sb)) { in main()
130 perror(argv[4]); in main()
145 if ((id=open(argv[1],O_RDONLY,0))<0) in main()
174 if ((id=open(argv[2],O_RDONLY,0))<0) in main()
231 if ((id=open(argv[3],O_RDONLY,0))<0) in main()
266 perror(argv[1]); in main()
/arch/x86/boot/tools/
Dbuild.c330 int main(int argc, char ** argv) in main() argument
345 parse_zoffset(argv[3]); in main()
347 dest = fopen(argv[4], "w"); in main()
349 die("Unable to write `%s': %m", argv[4]); in main()
352 file = fopen(argv[1], "r"); in main()
354 die("Unable to open `%s': %m", argv[1]); in main()
381 fd = open(argv[2], O_RDONLY); in main()
383 die("Unable to open `%s': %m", argv[2]); in main()
385 die("Unable to stat `%s': %m", argv[2]); in main()
390 die("Unable to mmap '%s': %m", argv[2]); in main()
/arch/mips/vr41xx/common/
Dinit.c63 char **argv; in prom_init() local
66 argv = (char **)fw_arg1; in prom_init()
69 strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE); in prom_init()
/arch/ia64/scripts/
Dunwcheck.py17 if len(sys.argv) != 2:
18 print "Usage: %s FILE" % sys.argv[0]
39 for line in os.popen("%s -u %s" % (readelf, sys.argv[1])):
/arch/mips/cobalt/
Dsetup.c103 char **argv; in prom_init() local
107 argv = (char **)fw_arg1; in prom_init()
110 strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE); in prom_init()
/arch/x86/tools/
Dtest_get_len.c88 static void parse_args(int argc, char **argv) in parse_args() argument
91 prog = argv[0]; in parse_args()
92 while ((c = getopt(argc, argv, "ynv")) != -1) { in parse_args()
111 int main(int argc, char **argv) in main() argument
119 parse_args(argc, argv); in main()
/arch/um/drivers/
Dslirp_kern.c42 for (i = 0; spri->argw.argv[i] != NULL; i++) in slirp_init()
43 printk(" '%s'",spri->argw.argv[i]); in slirp_init()
89 init->argw.argv[i++] = str; in slirp_setup()
100 init->argw.argv[i] = NULL; in slirp_setup()
Dslip_user.c74 static int slip_tramp(char **argv, int fd) in slip_tramp() argument
91 err = run_helper(slip_pre_exec, &pe_data, argv); in slip_tramp()
128 char *argv[] = { "uml_net", version_buf, "slip", "up", gate_buf, in slip_open() local
158 err = slip_tramp(argv, sfd); in slip_open()
194 char *argv[] = { "uml_net", version_buf, "slip", "down", pri->name, in slip_close() local
203 err = slip_tramp(argv, pri->slave); in slip_close()
/arch/x86/entry/vdso/
Dvdso2c.c208 int main(int argc, char **argv) in main() argument
225 name = strdup(argv[3]); in main()
241 map_input(argv[1], &raw_addr, &raw_len, PROT_READ); in main()
242 map_input(argv[2], &stripped_addr, &stripped_len, PROT_READ); in main()
244 outfilename = argv[3]; in main()
247 err(1, "%s", argv[2]); in main()
/arch/arm/vdso/
Dvdsomunge.c129 int main(int argc, char **argv) in main() argument
143 argv0 = argv[0]; in main()
146 fail("Usage: %s [infile] [outfile]\n", argv[0]); in main()
148 infile = argv[1]; in main()
149 outfile = argv[2]; in main()
/arch/mips/dec/prom/
Dcmdline.c17 void __init prom_init_cmdline(s32 argc, s32 *argv, u32 magic) in prom_init_cmdline() argument
30 arg = (void *)(long)(argv[i]); in prom_init_cmdline()
/arch/mips/jz4740/
Dprom.c26 static __init void jz4740_init_cmdline(int argc, char *argv[]) in jz4740_init_cmdline() argument
34 src = argv[i]; in jz4740_init_cmdline()
/arch/mips/vdso/
Dgenvdso.c203 int main(int argc, char **argv) in main() argument
209 program_name = argv[0]; in main()
218 dbg_vdso_path = argv[1]; in main()
219 vdso_path = argv[2]; in main()
220 out_path = argv[3]; in main()
221 vdso_name = (argc > 4) ? argv[4] : ""; in main()

123