Home
last modified time | relevance | path

Searched refs:buff_size (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/libcxx/test/libcxx/strings/basic.string/string.modifiers/
H A Dresize_default_initialized.pass.cpp28 unsigned buff_size = 125; in test_buffer_usage() local
29 unsigned used_size = buff_size - 16; in test_buffer_usage()
31 s.__resize_default_init(buff_size); in test_buffer_usage()
33 assert(s.size() == buff_size); in test_buffer_usage()
/llvm-project-15.0.7/libcxx/include/__support/ibm/
H A Dxlocale.h102 const size_t buff_size = 256; in vasprintf() local
103 if ((*strp = (char *)malloc(buff_size)) == NULL) { in vasprintf()
114 int str_size = vsnprintf(*strp, buff_size, fmt, ap_copy); in vasprintf()
117 if ((size_t) str_size >= buff_size) { in vasprintf()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_file.cpp127 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size, in ReadFileToBuffer() argument
130 *buff_size = 0; in ReadFileToBuffer()
139 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer()
141 *buff_size = size; in ReadFileToBuffer()
144 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer()
154 UnmapOrDie(*buff, *buff_size); in ReadFileToBuffer()
H A Dsanitizer_file.h63 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
65 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size,
104 void *MapFileToMemory(const char *file_name, uptr *buff_size);
H A Dsanitizer_posix.cpp175 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() argument
177 uptr res = internal_read(fd, buff, buff_size); in ReadFromFile()
185 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() argument
187 uptr res = internal_write(fd, buff, buff_size); in WriteToFile()
195 void *MapFileToMemory(const char *file_name, uptr *buff_size) { in MapFileToMemory() argument
201 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
202 uptr map = internal_mmap(nullptr, *buff_size, PROT_READ, MAP_PRIVATE, fd, 0); in MapFileToMemory()
H A Dsanitizer_win.cpp435 void *MapFileToMemory(const char *file_name, uptr *buff_size) { in MapFileToMemory() argument
764 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() argument
772 bool success = ::ReadFile(fd, buff, buff_size, &num_read_long, nullptr); in ReadFromFile()
785 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() argument
810 if (!WriteFile(fd, buff, buff_size, &bytes_written_32, 0)) { in WriteToFile()
H A Dsanitizer_fuchsia.cpp388 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size, in ReadFileToBuffer() argument
H A Dsanitizer_linux.cpp649 uptr buff_size; in ReadNullSepFileToArray() local
652 if (!ReadFileToBuffer(path, &buff, &buff_size, &buff_len, 1024 * 1024)) { in ReadNullSepFileToArray()
H A Dsanitizer_common.h755 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size,
/llvm-project-15.0.7/libcxx/src/filesystem/
H A Dposix_compat.h358 size_t buff_size = MAX_PATH + 10; in realpath() local
360 static_cast<wchar_t *>(malloc(buff_size * sizeof(wchar_t))), &::free); in realpath()
362 h, buff.get(), buff_size, FILE_NAME_NORMALIZED | VOLUME_NAME_DOS); in realpath()
363 if (retval > buff_size) { in realpath()
364 buff_size = retval; in realpath()
365 buff.reset(static_cast<wchar_t *>(malloc(buff_size * sizeof(wchar_t)))); in realpath()
366 retval = GetFinalPathNameByHandleW(h, buff.get(), buff_size, in realpath()
/llvm-project-15.0.7/openmp/runtime/src/
H A Dz_Windows_NT_util.cpp1560 ULONG buff_size = 0; in __kmp_get_load_balance() local
1590 buff_size = glb_buff_size; in __kmp_get_load_balance()
1592 buff_size = 2 * buff_size; in __kmp_get_load_balance()
1595 buffer = KMP_INTERNAL_REALLOC(buffer, buff_size); in __kmp_get_load_balance()
1601 buff_size, &info_size); in __kmp_get_load_balance()
1605 glb_buff_size = buff_size; in __kmp_get_load_balance()
1616 CHECK(buff_size >= info_size); in __kmp_get_load_balance()