Home
last modified time | relevance | path

Searched refs:cmdline (Results 1 – 25 of 181) sorted by relevance

12345678

/external/syslinux/com32/elflink/ldlinux/
Dcli.c128 char cmdline[MAX_CMDLINE_LEN] = { }; in edit_cmdline() local
182 putchar(at >= len ? ' ' : cmdline[at]); in edit_cmdline()
221 ret = cmdline; in edit_cmdline()
228 memmove(cmdline + cursor - 1, cmdline + cursor, in edit_cmdline()
239 memmove(cmdline + cursor, cmdline + cursor + 1, len - cursor); in edit_cmdline()
248 cmdline[len] = '\0'; in edit_cmdline()
257 while (cursor && my_isspace(cmdline[cursor - 1])) in edit_cmdline()
260 while (cursor && !my_isspace(cmdline[cursor - 1])) in edit_cmdline()
264 memmove(cmdline + cursor, cmdline + prevcursor, in edit_cmdline()
269 char *q = cmdline + cursor; in edit_cmdline()
[all …]
Dldlinux.c146 const char *cmdline; in load_kernel() local
159 size_t len = strlen(me->cmdline) + 1; in load_kernel()
174 snprintf(cmd, len, "%s %s", me->cmdline, args); in load_kernel()
176 strncpy(cmd, me->cmdline, len); in load_kernel()
228 rsprintf(&cmdline, "%s %s", me->cmdline, default_cmd); in load_kernel()
230 rsprintf(&cmdline, "%s %s", onerror, default_cmd); in load_kernel()
232 type = parse_image_type(cmdline); in load_kernel()
233 execute(cmdline, type, true); in load_kernel()
254 const char *cmdline; in enter_cmdline() local
265 cmdline = edit_cmdline("boot:", 1, NULL, cat_help_file, &to); in enter_cmdline()
[all …]
Dkernel.c24 char *initrd_name, *cmdline; in new_linux_kernel() local
43 cmdline = malloc(cmdline_len); in new_linux_kernel()
44 if (!cmdline) { in new_linux_kernel()
49 sprintf(cmdline, "BOOT_IMAGE=%s %s", kernel_name, args); in new_linux_kernel()
55 if (strstr(cmdline, "keeppxe")) in new_linux_kernel()
59 if (strstr(cmdline, "quiet")) in new_linux_kernel()
76 temp = strstr(cmdline, "initrd="); in new_linux_kernel()
124 syslinux_boot_linux(kernel_data, kernel_len, initramfs, NULL, cmdline); in new_linux_kernel()
128 free(cmdline); in new_linux_kernel()
/external/valgrind/none/tests/
Dprocfs-linux.stderr.exp-with-readlinkat2 /proc/self/cmdline:
3 ./procfs-cmdline-exe\0arg1\0arg 2\0arg3\0
4 /proc/<pid>/cmdline:
5 ./procfs-cmdline-exe\0arg1\0arg 2\0arg3\0
6 Result of readlink("/proc/self/exe"): procfs-cmdline-exe
7 Result of readlink("/proc/<pid>/exe"): procfs-cmdline-exe
8 Result of readlinkat("/proc/self/exe"): procfs-cmdline-exe
9 Result of readlinkat("/proc/<pid>/exe"): procfs-cmdline-exe
Dprocfs-linux.stderr.exp-without-readlinkat2 /proc/self/cmdline:
3 ./procfs-cmdline-exe\0arg1\0arg 2\0arg3\0
4 /proc/<pid>/cmdline:
5 ./procfs-cmdline-exe\0arg1\0arg 2\0arg3\0
6 Result of readlink("/proc/self/exe"): procfs-cmdline-exe
7 Result of readlink("/proc/<pid>/exe"): procfs-cmdline-exe
/external/syslinux/com32/menu/
Dmenumain.c447 static char cmdline[MAX_CMDLINE_LEN]; in edit_cmdline() local
451 strlcpy(cmdline, input, MAX_CMDLINE_LEN); in edit_cmdline()
452 cmdline[MAX_CMDLINE_LEN - 1] = '\0'; in edit_cmdline()
454 len = cursor = strlen(cmdline); in edit_cmdline()
470 CMDLINE_ROW, pad_line(cmdline, 0, max(len, prev_len))); in edit_cmdline()
472 CMDLINE_ROW, pad_line(cmdline, 0, cursor)); in edit_cmdline()
486 return cmdline; in edit_cmdline()
495 memmove(cmdline + cursor - 1, cmdline + cursor, in edit_cmdline()
506 memmove(cmdline + cursor, cmdline + cursor + 1, len - cursor); in edit_cmdline()
515 cmdline[len] = '\0'; in edit_cmdline()
[all …]
/external/syslinux/com32/mboot/
Dmboot.c44 const char *cmdline; member
70 dprintf("Module %d cmdline: \"%s\"\n", i, modules[i].cmdline); in map_modules()
72 cmd_map = map_string(modules[i].cmdline); in map_modules()
81 mod_list[i].cmdline = cmd_map; in map_modules()
133 mp->cmdline = strdup(""); in get_modules()
136 mp->cmdline = p = malloc(arglen); in get_modules()
219 if (modules[0].cmdline) { in main()
220 mbinfo.cmdline = map_string(modules[0].cmdline); in main()
221 dprintf("Main cmdline: \"%s\"\n", modules[0].cmdline); in main()
222 if (mbinfo.cmdline) in main()
/external/libopus/
DMakefile.mips70 COMPILE.c.cmdline = $(CC) -c $(CFLAGS) -o $@ $<
72 LINK.o.cmdline = $(LINK.o) $^ $(LDLIBS) -o $@$(EXESUFFIX)
74 ARCHIVE.cmdline = $(AR) $(ARFLAGS) $@ $^ && $(RANLIB) $@
77 $(COMPILE.c.cmdline)
80 $(COMPILE.cpp.cmdline)
122 $(ARCHIVE.cmdline)
125 $(LINK.o.cmdline)
128 $(LINK.o.cmdline)
131 $(LINK.o.cmdline)
134 $(LINK.o.cmdline)
[all …]
DMakefile.unix68 COMPILE.c.cmdline = $(CC) -c $(CFLAGS) -o $@ $<
70 LINK.o.cmdline = $(LINK.o) $^ $(LDLIBS) -o $@$(EXESUFFIX)
72 ARCHIVE.cmdline = $(AR) $(ARFLAGS) $@ $^ && $(RANLIB) $@
75 $(COMPILE.c.cmdline)
78 $(COMPILE.cpp.cmdline)
120 $(ARCHIVE.cmdline)
123 $(LINK.o.cmdline)
126 $(LINK.o.cmdline)
129 $(LINK.o.cmdline)
132 $(LINK.o.cmdline)
[all …]
/external/mesa3d/src/gallium/auxiliary/os/
Dos_process.c125 os_get_command_line(char *cmdline, size_t size) in os_get_command_line() argument
130 strncpy(cmdline, args, size); in os_get_command_line()
132 cmdline[size - 1] = 0; in os_get_command_line()
138 const int n = read(f, cmdline, size - 1); in os_get_command_line()
143 if (cmdline[i] == 0) { in os_get_command_line()
144 cmdline[i] = ' '; in os_get_command_line()
148 cmdline[n] = 0; in os_get_command_line()
156 cmdline[0] = 0; in os_get_command_line()
/external/toybox/toys/other/
Dswitch_root.c46 char *newroot = *toys.optargs, **cmdline = toys.optargs+1; in switch_root_main() local
73 while (**cmdline == '/') (*cmdline)++; in switch_root_main()
76 if (stat(*cmdline, &st1) || !S_ISREG(st1.st_mode) || !(st1.st_mode&0100)) { in switch_root_main()
112 execv(*cmdline, cmdline); in switch_root_main()
113 perror_msg("Failed to exec '%s'", *cmdline); in switch_root_main()
/external/autotest/client/site_tests/security_Minijail_seccomp/
Dsecurity_Minijail_seccomp.py26 cmdline = '/sbin/minijail0'
29 cmdline += ' -u %s' % jail.user
32 cmdline += ' -n'
34 cmdline += ' -S %s/%s %s/%s' % (self.bindir, jail.policy,
38 cmdline += ' %s' % ' '.join(args)
40 logging.info("Command line: " + cmdline)
41 ret = utils.system(cmdline, ignore_status=True)
/external/toybox/toys/pending/
Dsh.c107 char *cmdline; // Unparsed line for display purposes member
151 static char *parse_pipeline(char *cmdline, struct pipeline *line) in parse_pipeline() argument
154 char *start = line->cmdline = cmdline; in parse_pipeline()
156 if (!cmdline) return 0; in parse_pipeline()
158 line->cmdline = cmdline; in parse_pipeline()
167 line->cmdlinelen = start-cmdline; in parse_pipeline()
191 line->cmdlinelen = start-cmdline; in parse_pipeline()
/external/toolchain-utils/go/patch/
Dgo2.patch70 - cmdline := []string{"go", "tool", "compile", "-e", "-o", "a.o"}
72 + cmdline := []string{findGoCmd(), "tool", "compile", "-e", "-o", "a.o"}
73 cmdline = append(cmdline, flags...)
74 cmdline = append(cmdline, long)
75 out, err := runcmd(cmdline...)
144 - cmdline := []string{"go", "tool", "compile", "-e", "-o", "a.o"}
145 + cmdline := []string{findGoCmd(), "tool", "compile", "-e", "-o", "a.o"}
146 cmdline = append(cmdline, flags...)
147 cmdline = append(cmdline, tfile)
148 out, err = runcmd(cmdline...)
/external/google-breakpad/src/common/linux/
Dfile_id_unittest.cc82 char cmdline[4096]; in TEST() local
83 sprintf(cmdline, "cp \"%s\" \"%s\"", exe_name, templ.c_str()); in TEST()
84 ASSERT_EQ(0, system(cmdline)) << "Failed to execute: " << cmdline; in TEST()
85 sprintf(cmdline, "chmod u+w \"%s\"", templ.c_str()); in TEST()
86 ASSERT_EQ(0, system(cmdline)) << "Failed to execute: " << cmdline; in TEST()
87 sprintf(cmdline, "strip \"%s\"", templ.c_str()); in TEST()
88 ASSERT_EQ(0, system(cmdline)) << "Failed to execute: " << cmdline; in TEST()
/external/deqp/execserver/tools/
DxsMain.cpp42 void registerOptions (de::cmdline::Parser& parser) in registerOptions()
44 using de::cmdline::Option; in registerOptions()
45 using de::cmdline::NamedValue; in registerOptions()
55 de::cmdline::CommandLine cmdLine; in main()
68 de::cmdline::Parser parser; in main()
/external/syslinux/core/elflink/
Dload_env32.c181 __export int create_args_and_load(char *cmdline) in create_args_and_load() argument
187 if (!cmdline) in create_args_and_load()
190 for (argc = 0, p = cmdline; *p; argc++) { in create_args_and_load()
211 for (i = 0, p = cmdline; i < argc; i++) { in create_args_and_load()
248 char *cmdline; in pm_env32_run() local
250 cmdline = MK_PTR(regs->es, regs->ebx.w[0]); in pm_env32_run()
251 if (create_args_and_load(cmdline) < 0) in pm_env32_run()
/external/syslinux/gpxe/src/arch/i386/image/
Dbzimage.c250 const char *cmdline ) { in bzimage_parse_cmdline() argument
255 if ( ( vga = strstr ( cmdline, "vga=" ) ) ) { in bzimage_parse_cmdline()
273 if ( ( mem = strstr ( cmdline, "mem=" ) ) ) { in bzimage_parse_cmdline()
311 const char *cmdline ) { in bzimage_set_cmdline() argument
315 cmdline_len = ( strlen ( cmdline ) + 1 ); in bzimage_set_cmdline()
319 cmdline, cmdline_len ); in bzimage_set_cmdline()
320 DBGC ( image, "bzImage %p command line \"%s\"\n", image, cmdline ); in bzimage_set_cmdline()
336 char *filename = initrd->cmdline; in bzimage_load_initrd()
455 const char *cmdline = ( image->cmdline ? image->cmdline : "" ); in bzimage_exec() local
465 if ( ( rc = bzimage_parse_cmdline ( image, &bzimg, cmdline ) ) != 0) in bzimage_exec()
[all …]
/external/strace/tests-m32/
Dkexec_file_load.c80 char *cmdline = tail_memdup(cmdline_str, sizeof(cmdline_str)); in main() local
90 { (uintptr_t) (cmdline + sizeof(cmdline_str)), "", "", in main()
92 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, in main()
93 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, in main()
101 cmdline + sizeof(cmdline_str)); in main()
/external/strace/tests/
Dkexec_file_load.c80 char *cmdline = tail_memdup(cmdline_str, sizeof(cmdline_str)); in main() local
90 { (uintptr_t) (cmdline + sizeof(cmdline_str)), "", "", in main()
92 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, in main()
93 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, in main()
101 cmdline + sizeof(cmdline_str)); in main()
/external/strace/tests-mx32/
Dkexec_file_load.c80 char *cmdline = tail_memdup(cmdline_str, sizeof(cmdline_str)); in main() local
90 { (uintptr_t) (cmdline + sizeof(cmdline_str)), "", "", in main()
92 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, in main()
93 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, in main()
101 cmdline + sizeof(cmdline_str)); in main()
/external/valgrind/none/tests/solaris/
Dproc-cmdline-exe.stderr.exp-with-cmdline2 /proc/self/cmdline:
3 ./../procfs-cmdline-exe\0arg1\0arg 2\0arg3\0
4 /proc/<pid>/cmdline:
5 ./../procfs-cmdline-exe\0arg1\0arg 2\0arg3\0
/external/avb/libavb/
Davb_slot_verify.c821 if (slot_data->cmdline == NULL) { in load_and_verify_vbmeta()
822 slot_data->cmdline = in load_and_verify_vbmeta()
824 if (slot_data->cmdline == NULL) { in load_and_verify_vbmeta()
828 avb_memcpy(slot_data->cmdline, in load_and_verify_vbmeta()
833 size_t orig_size = avb_strlen(slot_data->cmdline); in load_and_verify_vbmeta()
841 avb_memcpy(new_cmdline, slot_data->cmdline, orig_size); in load_and_verify_vbmeta()
846 avb_free(slot_data->cmdline); in load_and_verify_vbmeta()
847 slot_data->cmdline = new_cmdline; in load_and_verify_vbmeta()
896 const char* cmdline, in sub_cmdline() argument
938 ret = avb_replace(cmdline, replace_str[n], guid_buf); in sub_cmdline()
[all …]
/external/python/cpython2/PC/
Dw9xpopen.c35 char *cmdline, *cmdlinefill; in main() local
64 cmdline = cmdlinefill = (char *)malloc(cmdlen+1); in main()
65 if (cmdline == NULL) in main()
93 NULL, cmdline, in main()
100 free(cmdline); in main()
/external/syslinux/com32/modules/
Dlinux.c116 char *cmdline, *p; in make_cmdline() local
123 p = cmdline = malloc(bytes); in make_cmdline()
124 if (!cmdline) in make_cmdline()
134 if (p > cmdline) in make_cmdline()
138 return cmdline; in make_cmdline()
259 char *cmdline; in main() local
318 cmdline = make_cmdline(argp); in main()
319 if (!cmdline) { in main()
398 setup_data, cmdline); in main()

12345678