/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
H A D | file.c | 146 size_t off; local 171 for (len = bufrem, off = 0; ; len += bufrem) { 175 memcpy(lnbuf + off, bufpos, len - off); 176 off = len; 190 memcpy(lnbuf + off, bufpos, diff);
|
H A D | grep.h | 90 off_t off; member in struct:str
|
/system/extras/libpagemap/ |
H A D | pm_kernel.c | 117 off64_t off; local 122 off = lseek64(ker->kpagecount_fd, pfn * sizeof(uint64_t), SEEK_SET); 123 if (off == (off_t)-1) 133 off64_t off; local 138 off = lseek64(ker->kpageflags_fd, pfn * sizeof(uint64_t), SEEK_SET); 139 if (off == (off_t)-1)
|
H A D | pm_process.c | 113 off64_t off; local 132 off = lseek64(proc->pagemap_fd, firstpage * sizeof(uint64_t), SEEK_SET); 133 if (off == (off_t)-1) {
|
/system/core/libcutils/tests/ |
H A D | AshmemTest.cpp | 40 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { 43 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, off); 168 auto off = lseek(fd, cfg.offset, cfg.whence); local 169 ASSERT_EQ(cfg.ret, off) << "lseek(" << cfg.offset << ", " << cfg.whence << ") failed" 172 if (off >= dataStart && off < dataEnd) { 173 off_t dataOff = off - dataStart;
|
/system/core/libmemunreachable/ |
H A D | ThreadCapture.cpp | 134 ssize_t off = 0; local 135 while (off < nread) { 136 linux_dirent64* dirent = reinterpret_cast<linux_dirent64*>(dirent_buf + off); 137 off += dirent->d_reclen;
|
/system/core/trusty/storage/lib/ |
H A D | storage.c | 191 static int _read_chunk(file_handle_t fh, storage_off_t off, void *buf, size_t size) argument 194 struct storage_file_read_req req = { .handle = _to_handle(fh), .size = size, .offset = off }; 202 ssize_t storage_read(file_handle_t fh, storage_off_t off, void *buf, size_t size) argument 212 rc = _read_chunk(fh, off, ptr, chunk); 217 off += rc; 225 static int _write_req(file_handle_t fh, storage_off_t off, argument 229 struct storage_file_write_req req = { .handle = _to_handle(fh), .offset = off, }; 238 ssize_t storage_write(file_handle_t fh, storage_off_t off, argument 253 rc = _write_req(fh, off, ptr, chunk, msg_flags); 260 off [all...] |
/system/extras/tests/directiotest/ |
H A D | directiotest.c | 143 int off = i % 16; local 145 if (off == 0) 148 ascii_buf[off] = isprint(val) ? val : '.'; 149 if (off == 15)
|
/system/libhwbinder/ |
H A D | Debug.cpp | 37 ssize_t off = sizeof(indentStr)-1-(indentLevel*2); local 38 return indentStr + (off < 0 ? 0 : off);
|
/system/core/adb/ |
H A D | sysdeps.h | 632 int off = 1; local 633 adb_setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &off, sizeof(off));
|
/system/core/trusty/storage/tests/ |
H A D | main.cpp | 36 static bool is_valid_offset(storage_off_t off) argument 38 return (off & 0x3) == 0ULL; 41 static void fill_pattern32(uint32_t *buf, size_t len, storage_off_t off) argument 44 uint32_t pattern = (uint32_t)(off / sizeof(uint32_t)); 50 static bool check_pattern32(const uint32_t *buf, size_t len, storage_off_t off) argument 53 uint32_t pattern = (uint32_t)(off / sizeof(uint32_t)); 104 void WriteZeroChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete ); 105 void WritePatternChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete); 106 void WritePattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len, bool complete); 108 void ReadChunk(file_handle_t handle, storage_off_t off, size_ 125 WriteZeroChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete) argument 141 WritePatternChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete) argument 157 WritePattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len, bool complete) argument 173 ReadChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, size_t head_len, size_t pattern_len, size_t tail_len) argument 205 ReadPattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len) argument 226 ReadPatternEOF(file_handle_t handle, storage_off_t off, size_t chunk_len, size_t exp_len) argument [all...] |
/system/extras/ksmutils/ |
H A D | ksminfo.c | 199 off_t off; local 248 off = lseek(fd, vaddr, SEEK_SET); 249 if (off == (off_t)-1) {
|
/system/core/libsparse/ |
H A D | output_file.c | 280 static int callback_file_skip(struct output_file *out, int64_t off) argument 286 while (off > 0) { 287 to_write = min(off, (int64_t)INT_MAX); 292 off -= to_write;
|
/system/chre/external/flatbuffers/include/flatbuffers/ |
H A D | flatbuffers.h | 832 template<typename T> uoffset_t PushElement(Offset<T> off) { 834 return PushElement(ReferTo(off.o)); 839 void TrackField(voffset_t field, uoffset_t off) { 840 FieldLoc fl = { off, field }; 848 auto off = PushElement(e); 849 TrackField(field, off); 852 template<typename T> void AddOffset(voffset_t field, Offset<T> off) { 853 if (!off.o) return; // An offset of 0 means NULL, don't store. 854 AddElement(field, ReferTo(off.o), static_cast<uoffset_t>(0)); 864 void AddStructOffset(voffset_t field, uoffset_t off) { 1036 auto off = CreateString(str, len); local 1365 uoffset_t off; member in struct:flatbuffers::Vector::FieldLoc [all...] |
/system/vold/ |
H A D | cryptfs.cpp | 443 static int get_crypt_ftr_info(char **metadata_fname, off64_t *off) argument 487 if (off) { 488 *off = cached_off; 1296 EVP_CIPHER_CTX_set_padding(&e_ctx, 0); /* Turn off padding as our data is block aligned */ 1361 EVP_CIPHER_CTX_set_padding(&d_ctx, 0); /* Turn off padding as our data is block aligned */ 2052 off64_t off; local 2078 if (get_crypt_ftr_info(NULL, &off) == 0) { 2079 ftr->persist_data_offset[0] = off + CRYPT_FOOTER_TO_PERSIST_OFFSET; 2080 ftr->persist_data_offset[1] = off + CRYPT_FOOTER_TO_PERSIST_OFFSET +
|