Searched refs:capacity (Results 1 – 5 of 5) sorted by relevance
/bionic/libc/stdio/ |
D | fmemopen.cpp | 42 size_t capacity; member 71 if (static_cast<size_t>(n) + space_for_null > ck->capacity - ck->offset) { in fmemopen_write() 72 n = ck->capacity - ck->offset - space_for_null; in fmemopen_write() 95 if (whence == SEEK_SET && (offset >= 0 && static_cast<size_t>(offset) <= ck->capacity)) { in fmemopen_seek() 97 } else if (whence == SEEK_CUR && (ck->offset + offset <= ck->capacity)) { in fmemopen_seek() 113 FILE* fmemopen(void* buf, size_t capacity, const char* mode) { in fmemopen() argument 124 ck->capacity = capacity; in fmemopen() 126 if (ck->buf == nullptr) ck->buf = ck->allocation = static_cast<char*>(calloc(capacity, 1)); in fmemopen() 143 ck->size = strnlen(ck->buf, ck->capacity); in fmemopen() 147 ck->size = capacity; in fmemopen() [all …]
|
D | vfscanf.cpp | 57 size_t capacity = 0; // Number of char/wchar_t units allocated in `allocation`. in __svfscanf() local 400 capacity = MIN(width, 32); in __svfscanf() 401 allocation = wcp = reinterpret_cast<wchar_t*>(malloc(sizeof(wchar_t) * capacity)); in __svfscanf() 434 if (allocation != nullptr && n == capacity) { in __svfscanf() 435 capacity *= 2; in __svfscanf() 437 reinterpret_cast<wchar_t*>(realloc(allocation, sizeof(wchar_t) * capacity)); in __svfscanf() 474 capacity = MIN(width, 32); in __svfscanf() 475 allocation = p = reinterpret_cast<char*>(malloc(capacity)); in __svfscanf() 484 if (allocation != nullptr && n == capacity) { in __svfscanf() 485 capacity *= 2; in __svfscanf() [all …]
|
/bionic/libc/bionic/ |
D | atexit.cpp | 85 static bool next_capacity(size_t capacity, size_t* result); 168 bool AtexitArray::next_capacity(size_t capacity, size_t* result) { in next_capacity() argument 169 if (capacity == 0) { in next_capacity() 174 if (__builtin_mul_overflow(page_end_of_index(capacity), 2, &num_bytes)) { in next_capacity()
|
/bionic/libc/kernel/uapi/linux/ |
D | blkzoned.h | 38 __u64 capacity; member
|
D | virtio_blk.h | 33 __virtio64 capacity; member
|