| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | MemAlloc.h | 25 LLVM_ATTRIBUTE_RETURNS_NONNULL inline void *safe_malloc(size_t Sz) { in safe_malloc() function 32 return safe_malloc(1); in safe_malloc() 46 return safe_malloc(1); in safe_calloc() 59 return safe_malloc(1); in safe_realloc()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | SmallPtrSet.cpp | 34 CurArray = (const void**)safe_malloc(sizeof(void*) * CurArraySize); in shrink_and_clear() 100 const void **NewBuckets = (const void**) safe_malloc(sizeof(void*) * NewSize); in Grow() 130 CurArray = (const void**)safe_malloc(sizeof(void*) * that.CurArraySize); in SmallPtrSetImplBase() 159 CurArray = (const void**)safe_malloc(sizeof(void*) * RHS.CurArraySize); in CopyFrom()
|
| H A D | SmallVector.cpp | 115 void *NewEltsReplace = llvm::safe_malloc(NewCapacity * TSize); in replaceAllocation() 130 void *NewElts = llvm::safe_malloc(NewCapacity * TSize); in mallocForGrow() 143 NewElts = llvm::safe_malloc(NewCapacity * TSize); in grow_pod()
|
| H A D | RWMutex.cpp | 47 static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl()
|
| /freebsd/sys/contrib/openzfs/cmd/zfs/ |
| H A D | zfs_util.h | 35 void *safe_malloc(size_t size);
|
| H A D | zfs_iter.c | 102 zfs_node_t *node = safe_malloc(sizeof (zfs_node_t)); in zfs_callback() 181 col = safe_malloc(sizeof (zfs_sort_column_t)); in zfs_add_sort_column() 186 col->sc_user_prop = safe_malloc(strlen(name) + 1); in zfs_add_sort_column()
|
| H A D | zfs_project.c | 55 zpi = safe_malloc(sizeof (zfs_project_item_t) + strlen(name) + 1); in zfs_project_item_alloc()
|
| H A D | zfs_main.c | 471 safe_malloc(size_t size) in safe_malloc() function 3034 node = safe_malloc(sizeof (us_node_t)); in userspace_cb() 5651 safe_malloc(sizeof (deleg_perm_node_t)); in parse_who_perm() 5701 who_perm_node_t *node = safe_malloc( in parse_fs_perm() 5771 fs_perm_node_t *node = safe_malloc(sizeof (fs_perm_node_t)); in parse_fs_perm_set() 7405 options = safe_malloc(MNT_LINE_MAX + 1); in share_mount() 7889 node = safe_malloc(sizeof (unshare_unmount_node_t)); in unshare_unmount() 8399 char *progbuf = safe_malloc(progsize); in zfs_do_channel_program() 9355 newargv = safe_malloc((argc + 1) * sizeof (newargv[0])); in main()
|
| /freebsd/sys/contrib/openzfs/cmd/zstream/ |
| H A D | zstream.h | 30 extern void *safe_malloc(size_t size);
|
| H A D | zstream_dump.c | 64 safe_malloc(size_t size) in safe_malloc() function 211 char *buf = safe_malloc(SPA_MAXBLOCKSIZE); in zstream_do_dump() 394 buf = safe_malloc(sz); in zstream_do_dump()
|
| H A D | zstream_recompress.c | 70 char *buf = safe_malloc(bufsz); in zstream_do_recompress()
|
| H A D | zstream_decompress.c | 71 char *buf = safe_malloc(bufsz); in zstream_do_decompress()
|
| /freebsd/sys/contrib/openzfs/cmd/zpool/ |
| H A D | zpool_iter.c | 84 zpool_node_t *node, *new = safe_malloc(sizeof (zpool_node_t)); in add_pool() 135 zlp = safe_malloc(sizeof (zpool_list_t)); in pool_list_get() 360 uniq_cols_width = safe_malloc(sizeof (*uniq_cols_width) * cnt); in process_unique_cmd_columns() 687 vcdl = safe_malloc(sizeof (vdev_cmd_data_list_t)); in all_pools_for_each_vdev_run()
|
| H A D | zpool_util.c | 41 safe_malloc(size_t size) in safe_malloc() function
|
| H A D | zpool_util.h | 43 void *safe_malloc(size_t);
|
| H A D | zpool_main.c | 2466 async_export_args_t *aea = safe_malloc(sizeof (async_export_args_t)); in zpool_export_one_async() 3992 import_parameters_t *ip = safe_malloc( in import_pools() 5226 newnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex() 5227 oldnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex() 5228 calcnva = safe_malloc(alloc_size); in calc_and_alloc_stats_ex() 5235 calcnva[j].data = safe_malloc(alloc_size); in calc_and_alloc_stats_ex() 5560 calcvs = safe_malloc(sizeof (*calcvs)); in print_vdev_stats() 9682 errl[i] = safe_malloc(len); in errors_nvlist() 10381 pathname = safe_malloc(len); in print_error_log() 13872 newargv = safe_malloc((argc + 1) * sizeof (newargv[0])); in main()
|
| H A D | zpool_vdev.c | 478 ret = safe_malloc(sizeof (replication_level_t)); in get_replication()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | ParsedTemplate.h | 205 TemplateIdAnnotation *TemplateId = new (llvm::safe_malloc( in Create()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | LiveIntervalUnion.cpp | 201 safe_malloc(sizeof(LiveIntervalUnion)*NSize)); in init()
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | MacroArgs.cpp | 52 llvm::safe_malloc(totalSizeToAlloc<Token>(UnexpArgTokens.size()))) in create()
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | Object.cpp | 347 char *str = static_cast<char*>(safe_malloc(ret.size())); in LLVMGetRelocationTypeName()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | OrcV2CBindings.cpp | 487 safe_malloc(Symbols.size() * sizeof(LLVMOrcCSymbolFlagsMapPair))); in LLVMOrcMaterializationResponsibilityGetSymbols() 516 static_cast<LLVMOrcSymbolStringPoolEntryRef *>(safe_malloc( in LLVMOrcMaterializationResponsibilityGetRequestedSymbols()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | NestedNameSpecifier.cpp | 475 char *NewBuffer = static_cast<char *>(llvm::safe_malloc(NewCapacity)); in Append()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | DataLayout.cpp | 730 StructLayout *L = (StructLayout *)safe_malloc( in getStructLayout()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/Unix/ |
| H A D | Signals.inc | 279 AltStack.ss_sp = static_cast<char *>(safe_malloc(AltStackSize));
|