/src/sys/arch/xen/xenbus/ |
xenbus_client.c | 134 char *path_buffer = kmem_alloc(*len, KM_NOSLEEP); local in function:error_path 135 if (path_buffer == NULL) 138 strcpy(path_buffer, "error/"); 139 strcpy(path_buffer + strlen("error/"), dev->xbusd_path); 141 return path_buffer; 151 char *printf_buffer = NULL, *path_buffer = NULL; local in function:_dev_error 165 path_buffer = error_path(dev, &path_buffer_sz); 166 if (path_buffer == NULL) { 172 if (xenbus_write(NULL, path_buffer, "error", printf_buffer) != 0) { 181 if (path_buffer) [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
sanitizer_symbolizer_win.cc | 108 static wchar_t path_buffer[kSymPathSize + 1 + MAX_PATH]; local in function:__sanitizer::InitializeDbgHelpIfNeeded 109 if (!SymGetSearchPathW(GetCurrentProcess(), path_buffer, kSymPathSize)) { 113 size_t sz = wcslen(path_buffer); 115 CHECK_EQ(0, wcscat_s(path_buffer, L";")); 118 DWORD res = GetModuleFileNameW(NULL, path_buffer + sz, MAX_PATH); 124 // directory of the main module at the end of path_buffer. 125 wchar_t *last_bslash = wcsrchr(path_buffer + sz, L'\\'); 128 if (!SymSetSearchPathW(GetCurrentProcess(), path_buffer)) {
|