Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 60) 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.c70 int main(int argc, char **argv) in main() argument
77 if (argc > 2 && !strcmp(argv[1], "-b")) { in main()
79 argc--, argv++; in main()
84 if (!strcmp(argv[4], "CURRENT")) { in main()
91 } else if (strcmp(argv[4], "FLOPPY")) { in main()
92 if (stat(argv[4], &sb)) { in main()
93 perror(argv[4]); in main()
108 file_open(argv[1]); in main()
122 file_open(argv[2]); in main()
146 file_open(argv[3]); in main()
[all …]
/arch/powerpc/boot/
Dmktree.c42 int main(int argc, char *argv[]) in main() argument
51 fprintf(stderr, "usage: %s <zImage-file> <boot-image> <load address> <entry point>\n",argv[0]); in main()
55 if (stat(argv[1], &st) < 0) { in main()
65 bt.bb_dest = htonl(strtoul(argv[3], NULL, 0)); in main()
66 bt.bb_entry_point = htonl(strtoul(argv[4], NULL, 0)); in main()
82 if ((in_fd = open(argv[1], O_RDONLY)) < 0) { in main()
87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
101 argv[1]); in main()
106 fprintf(stderr, "%s is not an ELF image\n", argv[1]); in main()
111 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.c18 int main(int argc, char *argv[]) in main() argument
25 argv[0]); in main()
29 if (stat(argv[1], &sb) == -1) { in main()
36 if (sscanf(argv[2], "%llx", &vmlinux_load_addr) != 1) { in main()
/arch/xtensa/platforms/iss/
Dsetup.c81 static void *argv[COMMAND_LINE_SIZE / sizeof(void *)] __initdata; in platform_setup() local
87 if (argv_size > sizeof(argv)) { in platform_setup()
94 simc_argv((void *)argv); in platform_setup()
99 strcat(cmdline, argv[i]); in platform_setup()
/arch/alpha/boot/tools/
Dmkbb.c86 int main(int argc, char ** argv) in main() argument
96 fprintf(stderr, "Usage: %s device lxboot\n", argv[0]); in main()
101 dev = open(argv[1], O_RDWR); in main()
103 perror(argv[1]); in main()
108 fd = open(argv[2], O_RDONLY); in main()
110 perror(argv[2]); in main()
Dobjstrip.c53 main (int argc, char *argv[]) in main() argument
66 prog_name = argv[0]; in main()
68 for (i = 1; i < argc && argv[i][0] == '-'; ++i) { in main()
69 for (j = 1; argv[i][j]; ++j) { in main()
70 switch (argv[i][j]) { in main()
89 inname = argv[i++]; in main()
99 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.c107 int main(int argc, char ** argv) in main() argument
122 if (!strcmp(argv[4], "CURRENT")) { in main()
129 } else if (strcmp(argv[4], "FLOPPY")) { in main()
130 if (stat(argv[4], &sb)) { in main()
131 perror(argv[4]); in main()
146 if ((id=open(argv[1],O_RDONLY,0))<0) in main()
175 if ((id=open(argv[2],O_RDONLY,0))<0) in main()
232 if ((id=open(argv[3],O_RDONLY,0))<0) in main()
267 perror(argv[1]); in main()
/arch/x86/boot/tools/
Dbuild.c331 int main(int argc, char ** argv) in main() argument
346 parse_zoffset(argv[3]); in main()
348 dest = fopen(argv[4], "w"); in main()
350 die("Unable to write `%s': %m", argv[4]); in main()
353 file = fopen(argv[1], "r"); in main()
355 die("Unable to open `%s': %m", argv[1]); in main()
382 fd = open(argv[2], O_RDONLY); in main()
384 die("Unable to open `%s': %m", argv[2]); in main()
386 die("Unable to stat `%s': %m", argv[2]); in main()
391 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.py18 if len(sys.argv) != 2:
19 print "Usage: %s FILE" % sys.argv[0]
40 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()
/arch/x86/entry/vdso/
Dvdso2c.c211 int main(int argc, char **argv) in main() argument
228 name = strdup(argv[3]); in main()
244 map_input(argv[1], &raw_addr, &raw_len, PROT_READ); in main()
245 map_input(argv[2], &stripped_addr, &stripped_len, PROT_READ); in main()
247 outfilename = argv[3]; in main()
250 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.c18 void __init prom_init_cmdline(s32 argc, s32 *argv, u32 magic) in prom_init_cmdline() argument
31 arg = (void *)(long)(argv[i]); in prom_init_cmdline()
/arch/mips/jz4740/
Dprom.c25 static __init void jz4740_init_cmdline(int argc, char *argv[]) in jz4740_init_cmdline() argument
33 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