Searched refs:cmdline (Results 1 - 13 of 13) sorted by relevance

/system/core/mkbootimg/
H A Dbootimg.h47 unsigned char cmdline[BOOT_ARGS_SIZE]; member in struct:boot_img_hdr
H A Dmkbootimg.c64 " [ --cmdline <kernel-commandline> ]\n"
105 char *cmdline = ""; local
139 } else if(!strcmp(arg, "--cmdline")) {
140 cmdline = val;
194 if(strlen(cmdline) > (BOOT_ARGS_SIZE - 1)) {
198 strcpy((char*)hdr.cmdline, cmdline);
/system/core/fastboot/
H A Dbootimg.c35 void bootimg_set_cmdline(boot_img_hdr *h, const char *cmdline) argument
37 strcpy((char*) h->cmdline, cmdline);
H A Dfastboot.c59 void bootimg_set_cmdline(boot_img_hdr *h, const char *cmdline);
70 static const char *cmdline = 0; variable
298 " -c <cmdline> override kernel commandline\n"
308 unsigned *sz, const char *cmdline)
328 if(cmdline) bootimg_set_cmdline((boot_img_hdr*) kdata, cmdline);
353 if(cmdline) bootimg_set_cmdline((boot_img_hdr*) bdata, cmdline);
854 cmdline = optarg;
947 data = load_bootable_image(page_size, kname, rname, &sz, cmdline);
307 load_bootable_image(unsigned page_size, const char *kernel, const char *ramdisk, unsigned *sz, const char *cmdline) argument
[all...]
/system/core/toolbox/
H A Dlsof.c51 char cmdline[CMD_DISPLAY_MAX]; member in struct:pid_info_t
91 info->cmdline, info->pid, info->user, type,
123 info->cmdline, info->pid, info->user, "mem",
147 info->cmdline, info->pid, info->user, "FDS",
190 strncat(info.path, "cmdline", sizeof(info.path));
197 char cmdline[PATH_MAX]; local
198 int numRead = read(fd, cmdline, sizeof(cmdline) - 1);
202 fprintf(stderr, "Error reading cmdline: %s: %s\n", info.path, strerror(errno));
206 cmdline[numRea
[all...]
H A Dps.c37 char cmdline[1024]; local
54 cmdline[0] = 0;
58 sprintf(cmdline, "/proc/%d/cmdline", pid);
60 fd = open(cmdline, O_RDONLY);
64 r = read(fd, cmdline, 1023);
68 cmdline[r] = 0;
157 printf("%-30s %-9s %-5d %-5d %s\n", macline, user, pid, ppid, cmdline[0] ? cmdline : name);
173 printf(" %08x %08x %s %s", wchan, eip, state, cmdline[
[all...]
/system/core/init/
H A Dbootchart.c126 char cmdline[1024]; local
139 proc_read("/proc/cmdline", cmdline, sizeof(cmdline));
156 fprintf(out, "system.kernel.options = %s\n", cmdline);
256 char cmdline[1024]; local
261 snprintf(filename,sizeof(filename),"/proc/%d/cmdline",pid);
262 proc_read(filename, cmdline, sizeof(cmdline));
271 int len2 = strlen(cmdline);
316 char cmdline[1024]; local
[all...]
H A Dutil.c440 char cmdline[1024]; local
444 fd = open("/proc/cmdline", O_RDONLY);
446 int n = read(fd, cmdline, 1023);
450 if (n > 0 && cmdline[n-1] == '\n') n--;
452 cmdline[n] = 0;
455 cmdline[0] = 0;
458 ptr = cmdline;
/system/extras/procrank/
H A Dprocrank.c125 char cmdline[256]; // this must be within the range of int local
224 printf("%5s %7s %7s %7s %s\n", "PID", "WRss", "WPss", "WUss", "cmdline");
226 printf("%5s %7s %7s %7s %7s %s\n", "PID", "Vss", "Rss", "Pss", "Uss", "cmdline");
232 if (getprocname(procs[i]->pid, cmdline, (int)sizeof(cmdline)) < 0) {
250 cmdline
259 cmdline
309 * 1 on failure to create string to examine proc cmdline entry
310 * 2 on failure to open proc cmdline entry
311 * 3 on failure to read proc cmdline entr
[all...]
/system/extras/librank/
H A Dlibrank.c31 char cmdline[MAX_CMDLINE]; member in struct:process_info
160 getprocname(pid, process->cmdline, sizeof(process->cmdline));
166 char cmdline[256]; local
289 pi->cmdline,
318 sprintf(filename, "/proc/%d/cmdline", pid);
/system/core/sh/
H A Doptions.c152 options(int cmdline) argument
159 if (cmdline)
166 if (!cmdline) {
183 if (c == 'c' && cmdline) {
/system/core/logcat/
H A Dlogcat.cpp599 static char cmdline[1024]; local
601 fd = open("/proc/cmdline", O_RDONLY);
603 int n = read(fd, cmdline, sizeof(cmdline)-1 );
605 cmdline[n] = 0;
608 cmdline[0] = 0;
611 logcat = strstr( cmdline, KERNEL_OPTION );
612 console = strstr( cmdline, CONSOLE_OPTION );
/system/vold/
H A Dcryptfs.c1004 char cmdline[256]; local
1008 snprintf(cmdline, sizeof(cmdline), "/system/bin/make_ext4fs -a /data -l %lld %s",
1010 SLOGI("Making empty filesystem with command %s\n", cmdline);
1012 snprintf(cmdline, sizeof(cmdline), "/system/bin/newfs_msdos -F 32 -O android -c 8 -s %lld %s",
1014 SLOGI("Making empty filesystem with command %s\n", cmdline);
1020 if (system(cmdline)) {

Completed in 6106 milliseconds