Home
last modified time | relevance | path

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

1234567

/linux-2.4.37.9/arch/sparc64/boot/
Dpiggyback.c41 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 …]
/linux-2.4.37.9/scripts/lxdialog/
Dlxdialog.c26 typedef int (jumperFn) (const char *title, int argc, const char * const * argv);
57 main (int argc, const char * const * argv) in main() argument
70 Usage (argv[0]); in main()
75 if (!strcmp (argv[offset + 1], "--title")) { in main()
77 Usage (argv[0]); in main()
80 title = argv[offset + 2]; in main()
83 } else if (!strcmp (argv[offset + 1], "--backtitle")) { in main()
85 Usage (argv[0]); in main()
88 backtitle = argv[offset + 2]; in main()
91 } else if (!strcmp (argv[offset + 1], "--clear")) { in main()
[all …]
/linux-2.4.37.9/arch/sparc/boot/
Dpiggyback.c70 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 …]
/linux-2.4.37.9/arch/x86_64/boot/tools/
Dbuild.c72 int main(int argc, char ** argv) in main() argument
79 if (argc > 2 && !strcmp(argv[1], "-b")) in main()
82 argc--, argv++; in main()
87 if (!strcmp(argv[4], "CURRENT")) { in main()
94 } else if (strcmp(argv[4], "FLOPPY")) { in main()
95 if (stat(argv[4], &sb)) { in main()
96 perror(argv[4]); in main()
111 file_open(argv[1]); in main()
124 file_open(argv[2]); /* Copy the setup code */ in main()
147 file_open(argv[3]); in main()
[all …]
/linux-2.4.37.9/arch/i386/boot/tools/
Dbuild.c72 int main(int argc, char ** argv) in main() argument
79 if (argc > 2 && !strcmp(argv[1], "-b")) in main()
82 argc--, argv++; in main()
87 if (!strcmp(argv[4], "CURRENT")) { in main()
94 } else if (strcmp(argv[4], "FLOPPY")) { in main()
95 if (stat(argv[4], &sb)) { in main()
96 perror(argv[4]); in main()
111 file_open(argv[1]); in main()
124 file_open(argv[2]); /* Copy the setup code */ in main()
147 file_open(argv[3]); in main()
[all …]
/linux-2.4.37.9/arch/ppc64/boot/
DaddRamDisk.c34 int main(int argc, char **argv) in main() argument
89 ramDisk = fopen(argv[1], "r"); in main()
91 fprintf(stderr, "RAM disk file \"%s\" failed to open.\n", argv[1]); in main()
95 sysmap = fopen(argv[2], "r"); in main()
97 fprintf(stderr, "System Map file \"%s\" failed to open.\n", argv[2]); in main()
101 inputVmlinux = fopen(argv[3], "r"); in main()
103 fprintf(stderr, "vmlinux file \"%s\" failed to open.\n", argv[3]); in main()
107 outputVmlinux = fopen(argv[4], "w+"); in main()
109 fprintf(stderr, "output vmlinux file \"%s\" failed to open.\n", argv[4]); in main()
144 printf("%s file size = %ld/0x%lx \n", argv[2], sysmapFileLen, sysmapFileLen); in main()
[all …]
DaddSystemMap.c46 int main(int argc, char **argv) in main() argument
83 sysmap = fopen(argv[1], "r"); in main()
86 fprintf(stderr, "System Map file \"%s\" failed to open.\n", argv[1]); in main()
89 inputVmlinux = fopen(argv[2], "r"); in main()
92 fprintf(stderr, "vmlinux file \"%s\" failed to open.\n", argv[2]); in main()
95 outputVmlinux = fopen(argv[3], "w"); in main()
98 fprintf(stderr, "output vmlinux file \"%s\" failed to open.\n", argv[3]); in main()
134 printf("%s file size = %ld\n", argv[1], sysmapFileLen); in main()
244 chmod(argv[3], S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH); in main()
/linux-2.4.37.9/arch/ppc/boot/utils/
Dmktree.c36 int main(int argc, char *argv[]) in main() argument
45 fprintf(stderr, "usage: %s <zImage-file> <boot-image> [entry-point]\n",argv[0]); in main()
49 if (stat(argv[1], &st) < 0) { in main()
60 bt.bb_dest = bt.bb_entry_point = htonl(strtoul(argv[3], NULL, 0)); in main()
78 if ((in_fd = open(argv[1], O_RDONLY)) < 0) { in main()
83 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
97 argv[1]); in main()
102 fprintf(stderr, "%s is not an ELF image\n", argv[1]); in main()
107 fprintf(stderr, "%s failed to seek in ELF image\n", argv[1]); in main()
Dmkprep.c87 int main(int argc, char *argv[]) in main() argument
96 fprintf(stderr, "usage: %s [-pbp] [-asm] <boot-file> <image>\n",argv[0]); in main()
103 if ( !strcmp( argv[argptr], "-pbp" ) ) in main()
110 if ( !strcmp( argv[argptr], "-asm" ) ) in main()
117 if ( !strcmp( argv[argptr], "-" ) ) in main()
120 if ((in_fd = open( argv[argptr] , 0)) < 0) in main()
125 if ( !strcmp( argv[argptr], "-" ) ) in main()
128 if ((out_fd = creat( argv[argptr] , 0755)) < 0) in main()
Dmkbugboot.c127 int main(int argc, char *argv[]) in main() argument
137 fprintf(stderr, "usage: %s <kernel_image> <bugboot>\n",argv[0]); in main()
144 if ((image_fd = open( argv[argptr] , 0)) < 0) in main()
149 if ( !strcmp( argv[argptr], "-" ) ) in main()
152 if ((bugboot_fd = creat( argv[argptr] , 0755)) < 0) in main()
155 strcpy(bugbootname, argv[argptr]); in main()
/linux-2.4.37.9/drivers/atm/
Dfore200e_mkfirm.c35 int main(int argc, char** argv) in main() argument
46 progname = *(argv++); in main()
49 if ((*argv)[0] == '-') { in main()
50 switch ((*argv)[1]) { in main()
54 infname = *(++argv); in main()
59 outfname = *(++argv); in main()
64 basename = *(++argv); in main()
80 argv++; in main()
/linux-2.4.37.9/drivers/sound/
Dbin2hex.c5 int main( int argc, const char * argv [] ) in main() argument
12 if(argv[1] && strcmp(argv[1],"-i")==0) in main()
14 argv++; in main()
25 varname = argv[1]; in main()
Dhex2hex.c68 int main( int argc, const char * argv [] ) in main() argument
74 if(argv[1] && strcmp(argv[1], "-i")==0) in main()
76 argv++; in main()
80 if(argv[1]==NULL) in main()
85 varline = argv[1]; in main()
/linux-2.4.37.9/arch/alpha/boot/tools/
Dmkbb.c84 main(int argc, char ** argv) in main() argument
94 fprintf(stderr, "Usage: %s device lxboot\n", argv[0]); in main()
99 dev = open(argv[1], O_RDWR); in main()
101 perror(argv[1]); in main()
106 fd = open(argv[2], O_RDONLY); in main()
108 perror(argv[2]); in main()
Dobjstrip.c50 main (int argc, char *argv[]) in main() argument
63 prog_name = argv[0]; in main()
65 for (i = 1; i < argc && argv[i][0] == '-'; ++i) { in main()
66 for (j = 1; argv[i][j]; ++j) { in main()
67 switch (argv[i][j]) { in main()
86 inname = argv[i++]; in main()
96 ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666); in main()
/linux-2.4.37.9/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()
/linux-2.4.37.9/kernel/
Dkmod.c95 int exec_usermodehelper(char *program_path, char *argv[], char *envp[]) in exec_usermodehelper() argument
138 if (execve(program_path, argv, envp) < 0) in exec_usermodehelper()
153 char *argv[] = { modprobe_path, "-s", "-k", "--", (char*)module_name, NULL }; in exec_modprobe() local
156 ret = exec_usermodehelper(modprobe_path, argv, envp); in exec_modprobe()
274 char **argv; member
289 retval = exec_usermodehelper(sub_info->path, sub_info->argv, sub_info->envp); in ____call_usermodehelper()
327 int call_usermodehelper(char *path, char **argv, char **envp) in call_usermodehelper() argument
333 argv: argv, in call_usermodehelper()
/linux-2.4.37.9/arch/ppc/kernel/
Dfind_name.c10 int main(int argc, char **argv) in main() argument
18 fprintf(stderr, "Usage: %s <address>\n", argv[0]); in main()
22 for ( i = 1 ; argv[i] ; i++ ) in main()
24 sscanf( argv[i], "%0lx", &addr ); in main()
/linux-2.4.37.9/Documentation/sound/
DMultiSound481 int main(int argc, char *argv[])
491 X if ((fd = open(argv[1], O_RDWR)) < 0) {
492 X perror(argv[1]);
853 static int cfg_dsp(int argc, char *argv[])
858 X sscanf(argv[0], "0x%x", &io) != 1 ||
859 X sscanf(argv[1], "%d", &irq) != 1 ||
860 X sscanf(argv[2], "0x%x", &mem) != 1)
901 static int cfg_mpu(int argc, char *argv[])
906 X sscanf(argv[0], "0x%x", &io) != 1 ||
907 X sscanf(argv[1], "%d", &irq) != 1)
[all …]
/linux-2.4.37.9/arch/mips/tx4927/toshiba_rbtx4927/
Dtoshiba_rbtx4927_prom.c45 void __init prom_init_cmdline(int argc, char **argv) in prom_init_cmdline() argument
58 strcat(arcs_cmdline, argv[i]); in prom_init_cmdline()
62 void __init prom_init(int argc, char **argv, char **envp, int *pvec) in prom_init() argument
69 prom_init_cmdline(argc, argv); in prom_init()
/linux-2.4.37.9/arch/mips/boot/
Daddinitrd.c41 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()
/linux-2.4.37.9/scripts/
Dsplit-include.c44 int main(int argc, const char * argv []) in main() argument
66 fprintf(stderr, "%s: wrong number of arguments.\n", argv[0]); in main()
70 str_my_name = argv[0]; in main()
71 str_file_autoconf = argv[1]; in main()
72 str_dir_config = argv[2]; in main()
Dmkconfigs.c140 int main (int argc, char *argv[]) in main() argument
142 char *progname = argv[0]; in main()
149 configname = argv[1]; in main()
150 sourcename = argv[2]; in main()
Dmkdep.c576 int main(int argc, char **argv) in main() argument
590 while (++argv, --argc > 0) { in main()
591 if (strncmp(*argv, "-I", 2) == 0) { in main()
592 if (*((*argv)+2)) { in main()
593 add_path((*argv)+2); in main()
596 ++argv; in main()
598 add_path(*argv); in main()
601 else if (strcmp(*argv, "--") == 0) { in main()
609 const char * filename = *++argv; in main()
/linux-2.4.37.9/arch/mips/au1000/csb250/
Dinit.c62 int __init prom_init(int argc, char **argv, char **envp, int *prom_vec) in prom_init() argument
69 if (((uint) argc > 0) && ((uint)argv > 0)) { in prom_init()
71 my_initrd_size = (uint)argv; in prom_init()

1234567