/external/ltp/testscripts/ |
adp_test.sh | 5 cat /proc/[0-9]*/cmdline > /dev/null 2>/dev/null
|
/external/mesa3d/src/gallium/auxiliary/os/ |
os_process.h | 41 os_get_command_line(char *cmdline, size_t size);
|
os_process.c | 120 * \param cmdline returns the command line string 121 * \param size size of the cmdline buffer 125 os_get_command_line(char *cmdline, size_t size) 130 strncpy(cmdline, args, size); 132 cmdline[size - 1] = 0; 136 int f = open("/proc/self/cmdline", O_RDONLY); 138 const int n = read(f, cmdline, size - 1); 143 if (cmdline[i] == 0) { 144 cmdline[i] = ' '; 148 cmdline[n] = 0 [all...] |
/external/python/cpython3/Lib/test/libregrtest/ |
__init__.py | 4 from test.libregrtest.cmdline import _parse_args, RESOURCE_NAMES
|
/external/syslinux/com32/elflink/ldlinux/ |
kernel.c | 24 char *initrd_name, *cmdline; local 43 cmdline = malloc(cmdline_len); 44 if (!cmdline) { 45 printf("Failed to alloc memory for cmdline\n"); 49 sprintf(cmdline, "BOOT_IMAGE=%s %s", kernel_name, args); 55 if (strstr(cmdline, "keeppxe")) 59 if (strstr(cmdline, "quiet")) 76 temp = strstr(cmdline, "initrd="); 124 syslinux_boot_linux(kernel_data, kernel_len, initramfs, NULL, cmdline); 128 free(cmdline); [all...] |
cli.c | 128 char cmdline[MAX_CMDLINE_LEN] = { }; local 182 putchar(at >= len ? ' ' : cmdline[at]); 221 ret = cmdline; 228 memmove(cmdline + cursor - 1, cmdline + cursor, 239 memmove(cmdline + cursor, cmdline + cursor + 1, len - cursor); 248 cmdline[len] = '\0'; 257 while (cursor && my_isspace(cmdline[cursor - 1])) 260 while (cursor && !my_isspace(cmdline[cursor - 1]) [all...] |
ldlinux.c | 146 const char *cmdline; local 159 size_t len = strlen(me->cmdline) + 1; 174 snprintf(cmd, len, "%s %s", me->cmdline, args); 176 strncpy(cmd, me->cmdline, len); 228 rsprintf(&cmdline, "%s %s", me->cmdline, default_cmd); 230 rsprintf(&cmdline, "%s %s", onerror, default_cmd); 232 type = parse_image_type(cmdline); 233 execute(cmdline, type, true); 254 const char *cmdline; local 303 const char *cmdline; local [all...] |
/external/syslinux/com32/lib/syslinux/ |
runimage.c | 40 void syslinux_run_kernel_image(const char *filename, const char *cmdline, 48 len = strlen(filename) + strlen(cmdline) + 2; 53 rv = snprintf(bbcmdline, len, "%s %s", filename, cmdline);
|
/external/lisa/ |
init_env | 20 grep "bash" /proc/$$/cmdline &>/dev/null
|
/toolchain/binutils/binutils-2.27/ld/ |
ldfile.h | 38 bfd_boolean cmdline; member in struct:search_dirs 46 (const char *, bfd_boolean cmdline);
|
/external/curl/tests/ |
http2-server.pl | 77 my $cmdline="$nghttpx --backend=$connect ". 82 print "RUN: $cmdline\n" if($verbose); 83 system("$cmdline 2>/dev/null");
|
/external/autotest/client/site_tests/security_Minijail_seccomp/ |
security_Minijail_seccomp.py | 26 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/other/ |
switch_root.c | 46 char *newroot = *toys.optargs, **cmdline = toys.optargs+1; local 70 // trim any / characters from the init cmdline, as we want to test it with 71 // stat(), relative to newroot. *cmdline is also used below, but by that 73 while (**cmdline == '/') (*cmdline)++; 76 if (stat(*cmdline, &st1) || !S_ISREG(st1.st_mode) || !(st1.st_mode&0100)) { 112 execv(*cmdline, cmdline); 113 perror_msg("Failed to exec '%s'", *cmdline);
|
/external/deqp/execserver/tools/ |
xsMain.cpp | 42 void registerOptions (de::cmdline::Parser& parser) 44 using de::cmdline::Option; 45 using de::cmdline::NamedValue; 55 de::cmdline::CommandLine cmdLine; 68 de::cmdline::Parser parser; 71 if (!parser.parse(argc, argv, &cmdLine, std::cerr)) 80 const xs::ExecutionServer::RunMode runMode = cmdLine.getOption<opt::SingleExec>() 83 const int port = cmdLine.getOption<opt::Port>();
|
/external/python/cpython2/PC/ |
w9xpopen.c | 35 char *cmdline, *cmdlinefill; local 64 cmdline = cmdlinefill = (char *)malloc(cmdlen+1); 65 if (cmdline == NULL) 93 NULL, cmdline, 100 free(cmdline);
|
/external/strace/tests/ |
kexec_file_load.c | 80 char *cmdline = tail_memdup(cmdline_str, sizeof(cmdline_str)); local 90 { (uintptr_t) (cmdline + sizeof(cmdline_str)), "", "", 92 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, 93 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, 101 cmdline + sizeof(cmdline_str));
|
/external/strace/tests-m32/ |
kexec_file_load.c | 80 char *cmdline = tail_memdup(cmdline_str, sizeof(cmdline_str)); local 90 { (uintptr_t) (cmdline + sizeof(cmdline_str)), "", "", 92 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, 93 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, 101 cmdline + sizeof(cmdline_str));
|
/external/strace/tests-mx32/ |
kexec_file_load.c | 80 char *cmdline = tail_memdup(cmdline_str, sizeof(cmdline_str)); local 90 { (uintptr_t) (cmdline + sizeof(cmdline_str)), "", "", 92 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, 93 { (uintptr_t) cmdline, "", "", "\"deadcodeb\"..." }, 101 cmdline + sizeof(cmdline_str));
|
/system/core/fastboot/ |
bootimg_utils.cpp | 37 void bootimg_set_cmdline(boot_img_hdr_v1* h, const char* cmdline) { 38 if (strlen(cmdline) >= sizeof(h->cmdline)) die("command line too large: %zu", strlen(cmdline)); 39 strcpy(reinterpret_cast<char*>(h->cmdline), cmdline);
|
/external/syslinux/com32/mboot/ |
mboot.c | 44 const char *cmdline; member in struct:module_data 70 dprintf("Module %d cmdline: \"%s\"\n", i, modules[i].cmdline); 72 cmd_map = map_string(modules[i].cmdline); 81 mod_list[i].cmdline = cmd_map; 133 mp->cmdline = strdup(""); 136 mp->cmdline = p = malloc(arglen); 219 if (modules[0].cmdline) { 220 mbinfo.cmdline = map_string(modules[0].cmdline); [all...] |
/frameworks/native/cmds/lshal/libprocpartition/ |
procpartition.cpp | 49 if (!android::base::ReadFileToString("/proc/" + std::to_string(pid) + "/cmdline", &content, 82 const auto& cmdline = getCmdline(pid); local 83 if (cmdline == "system_server") { 86 if (cmdline.empty() || cmdline.front() != '/') { 89 return getPartitionFromRealpath(cmdline);
|
/external/libopus/ |
Makefile.mips | 70 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...] |
Makefile.unix | 68 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...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_popen.py | 19 def _do_test_commandline(self, cmdline, expected):
20 cmd = '%s -c "import sys;print sys.argv" %s' % (python, cmdline)
|
/external/lisa/tools/scripts/ |
cgroup_tasks_move.sh | 34 CMDLINE=`cat /proc/$TID/cmdline` 35 echo "$TID : $CMDLINE"
|