Home
last modified time | relevance | path

Searched refs:content (Results 1 – 16 of 16) sorted by relevance

/bionic/libc/tools/
Dgenerate-NOTICE.py42 def is_auto_generated(content): argument
43 if "Generated by gensyscalls.py" in content or "generated by genserv.py" in content:
45 if "This header was automatically generated from a Linux kernel header" in content:
124 content = open(path, "r").read().decode("utf-8")
127 content = open(path, "r").read().decode("iso-8859-1")
129 lines = content.split("\n")
135 if is_auto_generated(content):
139 if not "Copyright" in content:
140 if "public domain" in content.lower():
/bionic/libc/kernel/tools/
Dupdate_all.py104 content = '/* Generated file. Do not edit. */\n'
105 content += '#pragma once\n'
109 content += '#if defined(%s)\n' % nr_name
110 content += ' #define SYS_%s %s\n' % (syscall, nr_name)
111 content += '#endif\n'
115 updater.editFile(syscall_file, content)
/bionic/linker/
Dlinker_config.cpp62 explicit ConfigParser(std::string&& content) in ConfigParser() argument
63 : content_(std::move(content)), p_(0), lineno_(0), was_end_of_file_(false) {} in ConfigParser()
186 std::string content; in parse_config_file() local
187 if (!android::base::ReadFileToString(ld_config_file_path, &content)) { in parse_config_file()
195 ConfigParser cp(std::move(content)); in parse_config_file()
491 std::string content; in read_binary_config() local
492 if (!android::base::ReadFileToString(version_file, &content)) { in read_binary_config()
499 content = android::base::Trim(content); in read_binary_config()
502 const char* content_str = content.c_str(); in read_binary_config()
508 *error_msg = std::string("invalid version \"") + version_file + "\": \"" + content +"\""; in read_binary_config()
Dlinker_config_test.cpp98 std::string content = android::base::StringPrintf("%d", version); in write_version() local
99 return android::base::WriteStringToFile(content, path); in write_version()
/bionic/tests/
Dspawn_test.cpp253 std::string content; in TEST() local
254 ASSERT_TRUE(android::base::ReadFdToString(fds[0], &content)); in TEST()
262 for (const auto& line : android::base::Split(content, "\n")) { in TEST()
268 static void CatFileToString(posix_spawnattr_t* sa, const char* path, std::string* content) { in CatFileToString() argument
285 ASSERT_TRUE(android::base::ReadFdToString(fds[0], content)); in CatFileToString()
298 std::string content; in GetChildStat() local
299 CatFileToString(sa, "/proc/self/stat", &content); in GetChildStat()
301 ASSERT_EQ(4, sscanf(content.c_str(), "%d (cat) %*c %d %d %d", &ps->pid, &ps->ppid, &ps->pgrp, in GetChildStat()
313 std::string content; in GetChildStatus() local
314 CatFileToString(sa, "/proc/self/status", &content); in GetChildStatus()
[all …]
Dutils.h167 std::string content; in WaitUntilThreadSleep() local
168 ASSERT_TRUE(android::base::ReadFileToString(filename, &content)); in WaitUntilThreadSleep()
169 if (std::regex_search(content, regex)) { in WaitUntilThreadSleep()
Ddlext_test.cpp944 std::string content; in TEST() local
945 ASSERT_TRUE(android::base::ReadFileToString(lib_path, &content)) << strerror(errno); in TEST()
946 ASSERT_TRUE(android::base::WriteStringToFd(content, tmpfd)) << strerror(errno); in TEST()
992 std::string content; in TEST() local
993 ASSERT_TRUE(android::base::ReadFileToString(lib_path, &content)) << strerror(errno); in TEST()
994 ASSERT_TRUE(android::base::WriteStringToFd(content, memfd)) << strerror(errno); in TEST()
Dpthread_test.cpp2234 std::string content; in GetThreadPriority() local
2236 if (!android::base::ReadFileToString(filename, &content)) { in GetThreadPriority()
2239 std::vector<std::string> strs = android::base::Split(content, " "); in GetThreadPriority()
Dstdio_test.cpp61 static void SetFileTo(const char* path, const char* content) { in SetFileTo() argument
64 ASSERT_NE(EOF, fputs(content, fp)); in SetFileTo()
/bionic/libc/kernel/uapi/linux/
Ddns_resolver.h56 __u8 content; member
Datmlec.h79 } content; member
Datmmpc.h69 } content; member
/bionic/libc/kernel/
DREADME.md42 content has changed. You can also process more than one file with -u.
45 Automatically update all clean headers from the content of
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp971 std::string content; in write_dump() local
972 if (!android::base::ReadFileToString("/proc/self/maps", &content)) { in write_dump()
975 dprintf(fd, "%s", content.c_str()); in write_dump()
DREADME_marshmallow_and_earlier.md64 the content of allocations.
/bionic/libdl/
DNOTICE142 origin of the Work and reproducing the content of the NOTICE file.