/build/kati/ |
H A D | testutil.h | 35 static char buf[64]; local 36 sprintf(buf, "%zd", v); 37 return buf;
|
H A D | file.h | 32 const string& buf() const { return buf_; } function in class:Makefile
|
H A D | rule.cc | 86 string buf; local 98 buf = line.as_string(); 100 buf += term; 101 buf += after_term_fn(); 102 line = buf;
|
H A D | stmt.cc | 71 string buf; local 72 lhs->Eval(ev, &buf); 73 return Intern(buf);
|
H A D | command.cc | 131 string buf; local 132 wrapped_->Eval(ev, &buf); 134 for (StringPiece tok : WordScanner(buf)) { 140 string buf; local 141 wrapped_->Eval(ev, &buf); 143 for (StringPiece tok : WordScanner(buf)) {
|
H A D | string_piece.cc | 56 size_type StringPiece::copy(char* buf, size_type n, size_type pos) const { argument 58 memcpy(buf, ptr_ + pos, ret);
|
H A D | strutil_test.cc | 152 char buf[10] = {'f', 'o', '\\', '\0', 'x', 'y'}; local 153 ASSERT_EQ(FindEndOfLine(StringPiece(buf, 6), 0, &lf_cnt), 3); 154 ASSERT_EQ(FindEndOfLine(StringPiece(buf, 2), 0, &lf_cnt), 2);
|
H A D | var.cc | 68 string buf; local 69 v->Eval(ev, &buf); 71 v_ += buf;
|
H A D | fileutil.cc | 97 char buf[4096]; local 98 ssize_t r = HANDLE_EINTR(read(pipefd[0], buf, 4096)); 103 s->append(buf, buf + r);
|
H A D | main.cc | 139 char buf[11]; local 140 char* ptr = buf + sizeof(buf) - 1; 151 while (ptr > buf && i > 0) { 337 char buf[PATH_MAX]; local 339 if (realpath(argv[i], buf)) 340 printf("%s\n", buf);
|
H A D | strutil.cc | 382 char buf[PATH_MAX]; local 383 if (!getcwd(buf, PATH_MAX)) { 388 CHECK(buf[0] == '/'); 389 *o = buf; 508 string buf; 512 buf += "\\\\\\\\"; 515 buf += "\\n"; 518 buf += "\\\""; 521 buf += *in; 524 return buf; [all...] |
/build/make/tools/ziptime/ |
H A D | ZipEntry.cpp | 89 uint8_t buf[kLFHLen]; local 91 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) 94 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { 99 ZipEntry::putShortLE(&buf[0x0a], STATIC_TIME); 100 ZipEntry::putShortLE(&buf[0x0c], STATIC_DATE); 105 if (fwrite(buf, 1, kLFHLen, fp) != kLFHLen) 126 uint8_t buf[kCDELen]; local 129 if (fread(buf, 1, kCDELen, fp) != kCDELen) 132 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { 137 ZipEntry::putShortLE(&buf[ [all...] |
H A D | ZipEntry.h | 53 static inline uint16_t getShortLE(const uint8_t* buf) { argument 54 return buf[0] | (buf[1] << 8); 56 static inline uint32_t getLongLE(const uint8_t* buf) { argument 57 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); 59 static inline void putShortLE(uint8_t* buf, uint16_t val) { argument 60 buf[ [all...] |
H A D | ZipFile.cpp | 76 uint8_t* buf = NULL; local 92 buf = new uint8_t[EndOfCentralDir::kMaxEOCDSearch]; 93 if (buf == NULL) { 114 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) { 122 if (buf[i] == 0x50 && 123 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature) 135 result = mEOCD.readBuf(buf + i, readAmount - i); 196 delete[] buf; 209 * "buf" should be positioned at the EOCD signature, and should contain 212 status_t ZipFile::EndOfCentralDir::readBuf(const uint8_t* buf, in argument [all...] |
/build/tools/ziptime/ |
H A D | ZipEntry.cpp | 89 uint8_t buf[kLFHLen]; local 91 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) 94 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { 99 ZipEntry::putShortLE(&buf[0x0a], STATIC_TIME); 100 ZipEntry::putShortLE(&buf[0x0c], STATIC_DATE); 105 if (fwrite(buf, 1, kLFHLen, fp) != kLFHLen) 126 uint8_t buf[kCDELen]; local 129 if (fread(buf, 1, kCDELen, fp) != kCDELen) 132 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { 137 ZipEntry::putShortLE(&buf[ [all...] |
H A D | ZipEntry.h | 53 static inline uint16_t getShortLE(const uint8_t* buf) { argument 54 return buf[0] | (buf[1] << 8); 56 static inline uint32_t getLongLE(const uint8_t* buf) { argument 57 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); 59 static inline void putShortLE(uint8_t* buf, uint16_t val) { argument 60 buf[ [all...] |
H A D | ZipFile.cpp | 76 uint8_t* buf = NULL; local 92 buf = new uint8_t[EndOfCentralDir::kMaxEOCDSearch]; 93 if (buf == NULL) { 114 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) { 122 if (buf[i] == 0x50 && 123 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature) 135 result = mEOCD.readBuf(buf + i, readAmount - i); 196 delete[] buf; 209 * "buf" should be positioned at the EOCD signature, and should contain 212 status_t ZipFile::EndOfCentralDir::readBuf(const uint8_t* buf, in argument [all...] |
/build/make/tools/zipalign/ |
H A D | ZipEntry.cpp | 407 uint8_t buf[kLFHLen]; local 412 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { 417 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { 423 mVersionToExtract = ZipEntry::getShortLE(&buf[0x04]); 424 mGPBitFlag = ZipEntry::getShortLE(&buf[0x06]); 425 mCompressionMethod = ZipEntry::getShortLE(&buf[0x08]); 426 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0a]); 427 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0c]); 428 mCRC32 = ZipEntry::getLongLE(&buf[0x0e]); 429 mCompressedSize = ZipEntry::getLongLE(&buf[ 473 uint8_t buf[kLFHLen]; local 541 uint8_t buf[kCDELen]; local 631 uint8_t buf[kCDELen]; local [all...] |
H A D | ZipEntry.h | 113 static inline uint16_t getShortLE(const uint8_t* buf) { argument 114 return buf[0] | (buf[1] << 8); 116 static inline uint32_t getLongLE(const uint8_t* buf) { argument 117 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); 119 static inline void putShortLE(uint8_t* buf, uint16_t val) { argument 120 buf[ 123 putLongLE(uint8_t* buf, uint32_t val) argument [all...] |
/build/tools/zipalign/ |
H A D | ZipEntry.cpp | 407 uint8_t buf[kLFHLen]; local 412 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { 417 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { 423 mVersionToExtract = ZipEntry::getShortLE(&buf[0x04]); 424 mGPBitFlag = ZipEntry::getShortLE(&buf[0x06]); 425 mCompressionMethod = ZipEntry::getShortLE(&buf[0x08]); 426 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0a]); 427 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0c]); 428 mCRC32 = ZipEntry::getLongLE(&buf[0x0e]); 429 mCompressedSize = ZipEntry::getLongLE(&buf[ 473 uint8_t buf[kLFHLen]; local 541 uint8_t buf[kCDELen]; local 631 uint8_t buf[kCDELen]; local [all...] |
H A D | ZipEntry.h | 113 static inline uint16_t getShortLE(const uint8_t* buf) { argument 114 return buf[0] | (buf[1] << 8); 116 static inline uint32_t getLongLE(const uint8_t* buf) { argument 117 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); 119 static inline void putShortLE(uint8_t* buf, uint16_t val) { argument 120 buf[ 123 putLongLE(uint8_t* buf, uint32_t val) argument [all...] |
/build/make/tools/libhost/ |
H A D | CopyFile.c | 118 unsigned char buf[8192]; local 125 readCount = read(srcFd, buf, sizeof(buf)); 133 writeCount = write(dstFd, buf, readCount); 146 if (readCount < (ssize_t) sizeof(buf))
|
/build/make/tools/makeparallel/ |
H A D | makeparallel.cpp | 209 char buf; local 210 int read_ret = read(dup_fd, &buf, 1); 277 char buf = '+'; local 279 int ret = TEMP_FAILURE_RETRY(write(out_fd, &buf, 1));
|
/build/tools/libhost/ |
H A D | CopyFile.c | 118 unsigned char buf[8192]; local 125 readCount = read(srcFd, buf, sizeof(buf)); 133 writeCount = write(dstFd, buf, readCount); 146 if (readCount < (ssize_t) sizeof(buf))
|
/build/tools/makeparallel/ |
H A D | makeparallel.cpp | 209 char buf; local 210 int read_ret = read(dup_fd, &buf, 1); 277 char buf = '+'; local 279 int ret = TEMP_FAILURE_RETRY(write(out_fd, &buf, 1));
|