/arch/sparc/boot/ |
D | piggyback_64.c | 41 int main(int argc,char **argv) in main() argument 49 if (stat (argv[3], &s) < 0) die (argv[3]); in main() 50 map = fopen (argv[2], "r"); in main() 51 if (!map) die(argv[2]); in main() 59 if ((image = open(argv[1],O_RDWR)) < 0) die(argv[1]); in main() 60 if (read(image,buffer,512) != 512) die(argv[1]); in main() 66 if (read(image,buffer,512) != 512) die(argv[1]); in main() 80 if (read(image,buffer,1024) != 1024) die(argv[1]); in main() 96 if (write(image,buffer+2,14) != 14) die (argv[1]); in main() 101 if (write(image,buffer,12) != 12) die (argv[1]); in main() [all …]
|
D | piggyback_32.c | 70 int main(int argc,char **argv) in main() argument 81 if (stat (argv[3], &s) < 0) die (argv[3]); in main() 82 map = fopen (argv[2], "r"); in main() 83 if (!map) die(argv[2]); in main() 95 if ((image = open(argv[1],O_RDWR)) < 0) die(argv[1]); in main() 96 if (read(image,buffer,512) != 512) die(argv[1]); in main() 101 if (read(image,buffer,512) != 512) die(argv[1]); in main() 112 if (read(image,buffer,1024) != 1024) die(argv[1]); in main() 129 if (write(image,buffer+2,14) != 14) die (argv[1]); in main() 131 if ((tail = open(argv[3],O_RDONLY)) < 0) die(argv[3]); in main() [all …]
|
/arch/mn10300/boot/tools/ |
D | build.c | 69 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/x86/boot/tools/ |
D | build.c | 136 int main(int argc, char ** argv) in main() argument 148 if (argc > 2 && !strcmp(argv[1], "-b")) in main() 151 argc--, argv++; in main() 156 if (!strcmp(argv[3], "CURRENT")) { in main() 163 } else if (strcmp(argv[3], "FLOPPY")) { in main() 164 if (stat(argv[3], &sb)) { in main() 165 perror(argv[3]); in main() 181 file = fopen(argv[1], "r"); in main() 183 die("Unable to open `%s': %m", argv[1]); in main() 207 fd = open(argv[2], O_RDONLY); in main() [all …]
|
/arch/powerpc/boot/ |
D | mktree.c | 41 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/ |
D | execvp.c | 39 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()
|
D | helper.c | 23 char **argv; member 31 char **argv = data->argv; in helper_child() local 36 err = execvp_noalloc(data->buf, argv[0], argv); in helper_child() 45 int run_helper(void (*pre_exec)(void *), void *pre_data, char **argv) in run_helper() argument 73 data.argv = argv; in run_helper()
|
/arch/um/kernel/ |
D | exec.c | 46 static long execve1(char *file, char __user * __user *argv, in execve1() argument 51 error = do_execve(file, argv, env, ¤t->thread.regs); in execve1() 63 long um_execve(char *file, char __user *__user *argv, char __user *__user *env) in um_execve() argument 67 err = execve1(file, argv, env); in um_execve() 73 long sys_execve(char __user *file, char __user *__user *argv, in sys_execve() argument 83 error = execve1(filename, argv, env); in sys_execve()
|
/arch/alpha/boot/tools/ |
D | mkbb.c | 85 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()
|
D | objstrip.c | 49 main (int argc, char *argv[]) in main() argument 62 prog_name = argv[0]; in main() 64 for (i = 1; i < argc && argv[i][0] == '-'; ++i) { in main() 65 for (j = 1; argv[i][j]; ++j) { in main() 66 switch (argv[i][j]) { in main() 85 inname = argv[i++]; in main() 95 ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666); in main()
|
/arch/mips/cobalt/ |
D | setup.c | 102 char **argv; in prom_init() local 109 argv = (char **) fw_arg1; in prom_init() 112 nchr = strlen(argv[indx]); in prom_init() 117 strcpy(arcs_cmdline + posn, argv[indx]); in prom_init()
|
/arch/cris/arch-v10/boot/tools/ |
D | build.c | 106 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/mips/nxp/pnx833x/common/ |
D | prom.c | 32 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/mips/vr41xx/common/ |
D | init.c | 63 char **argv; in prom_init() local 66 argv = (char **)fw_arg1; in prom_init() 69 strcat(arcs_cmdline, argv[i]); in prom_init()
|
/arch/mips/boot/ |
D | addinitrd.c | 41 int main(int argc, char *argv[]) in main() argument 55 printf("Usage: %s <vmlinux> <initrd> <outfile>\n", argv[0]); in main() 59 if ((fd_vmlinux = open (argv[1], O_RDONLY)) < 0) in main() 88 if ((fd_initrd = open (argv[2], O_RDONLY)) < 0) in main() 101 if ((fd_outfile = open (argv[3], O_RDWR|O_CREAT|O_TRUNC, 0666)) < 0) in main()
|
/arch/x86/mach-voyager/ |
D | voyager_thread.c | 44 char *argv[] = { in execute() local 52 call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC)) != 0) { in execute()
|
/arch/ia64/scripts/ |
D | unwcheck.py | 17 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/um/drivers/ |
D | slirp_kern.c | 43 for (i = 0; spri->argw.argv[i] != NULL; i++) in slirp_init() 44 printk(" '%s'",spri->argw.argv[i]); in slirp_init() 90 init->argw.argv[i++] = str; in slirp_setup() 101 init->argw.argv[i] = NULL; in slirp_setup()
|
D | slip_user.c | 76 static int slip_tramp(char **argv, int fd) in slip_tramp() argument 93 err = run_helper(slip_pre_exec, &pe_data, argv); in slip_tramp() 131 char *argv[] = { "uml_net", version_buf, "slip", "up", gate_buf, in slip_open() local 161 err = slip_tramp(argv, sfd); in slip_open() 197 char *argv[] = { "uml_net", version_buf, "slip", "down", pri->name, in slip_close() local 206 err = slip_tramp(argv, pri->slave); in slip_close()
|
D | slirp_user.c | 39 static int slirp_tramp(char **argv, int fd) in slirp_tramp() argument 46 pid = run_helper(slirp_pre_exec, &pe_data, argv); in slirp_tramp() 60 err = slirp_tramp(pri->argw.argv, fds[1]); in slirp_open()
|
D | xterm.c | 92 char *argv[] = { terminal_emulator, title_switch, title, exec_switch, in xterm_open() local 96 if (access(argv[4], X_OK) < 0) in xterm_open() 97 argv[4] = "port-helper"; in xterm_open() 138 pid = run_helper(NULL, NULL, argv); in xterm_open()
|
/arch/sh/kernel/ |
D | sys_sh64.c | 37 int kernel_execve(const char *filename, char *const argv[], char *const envp[]) in kernel_execve() argument 41 register unsigned long __sc3 __asm__ ("r3") = (unsigned long) argv; in kernel_execve()
|
/arch/mips/dec/prom/ |
D | cmdline.c | 17 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/avr32/kernel/ |
D | sys_avr32.c | 41 int kernel_execve(const char *file, char **argv, char **envp) in kernel_execve() argument 45 register long sc2 asm("r11") = (long)argv; in kernel_execve()
|
/arch/m68k/tools/amiga/ |
D | dmesg.c | 41 int main(int argc, char *argv[]) in main() argument 48 end = strtoul(argv[1], NULL, 0); in main()
|