| /openbsd-src/gnu/llvm/libcxx/include/__support/ibm/ |
| H A D | xlocale.h | 102 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()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_file.cpp | 127 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 D | sanitizer_file.h | 63 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 D | sanitizer_posix.cpp | 182 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() argument 184 uptr res = internal_read(fd, buff, buff_size); in ReadFromFile() 192 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() argument 194 uptr res = internal_write(fd, buff, buff_size); in WriteToFile() 202 void *MapFileToMemory(const char *file_name, uptr *buff_size) { in MapFileToMemory() argument 208 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory() 209 uptr map = internal_mmap(nullptr, *buff_size, PROT_READ, MAP_PRIVATE, fd, 0); in MapFileToMemory()
|
| H A D | sanitizer_win.cpp | 435 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 D | sanitizer_fuchsia.cpp | 388 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size, in ReadFileToBuffer() argument
|
| H A D | sanitizer_linux.cpp | 649 uptr buff_size; in ReadNullSepFileToArray() local 652 if (!ReadFileToBuffer(path, &buff, &buff_size, &buff_len, 1024 * 1024)) { in ReadNullSepFileToArray()
|
| H A D | sanitizer_common.h | 756 bool ReadFileToBuffer(const char *file_name, char **buff, uptr *buff_size,
|
| /openbsd-src/gnu/llvm/libcxx/src/filesystem/ |
| H A D | posix_compat.h | 358 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()
|
| /openbsd-src/sys/dev/pci/drm/amd/display/dc/dsc/ |
| H A D | dc_dsc.c | 332 int buff_size; in dc_dsc_parse_dsc_dpcd() local 338 buff_size = dpcd_dsc_basic_data[DP_DSC_RC_BUF_SIZE - DP_DSC_SUPPORT] + 1; in dc_dsc_parse_dsc_dpcd() 339 dsc_sink_caps->rc_buffer_size = buff_size * buff_block_size; in dc_dsc_parse_dsc_dpcd()
|
| /openbsd-src/sys/dev/pci/ |
| H A D | if_aq_pci.c | 2750 uint32_t buff_size; in aq_hw_qos_set() local 2781 buff_size = HWTYPE_AQ2_P(sc) ? AQ2_HW_TXBUF_MAX : AQ_HW_TXBUF_MAX; in aq_hw_qos_set() 2783 buff_size); in aq_hw_qos_set() 2785 (buff_size * (1024 / 32) * 66) / 100); in aq_hw_qos_set() 2787 (buff_size * (1024 / 32) * 50) / 100); in aq_hw_qos_set() 2791 buff_size = HWTYPE_AQ2_P(sc) ? AQ2_HW_RXBUF_MAX : AQ_HW_RXBUF_MAX; in aq_hw_qos_set() 2793 buff_size); in aq_hw_qos_set() 2796 (buff_size * (1024 / 32) * 66) / 100); in aq_hw_qos_set() 2798 (buff_size * (1024 / 32) * 50) / 100); in aq_hw_qos_set()
|