/dflybsd-src/usr.bin/whereis/ |
H A D | whereis.c | 237 if ((cp = malloc(s + 1)) == NULL) in colonify() 271 if ((b = malloc(s + 1)) == NULL) in defaults() 285 if ((b = malloc(strlen(cp) + 1)) == NULL) in defaults() 301 if ((b = malloc(strlen(buf) + 1)) == NULL) in defaults() 310 if ((b = malloc(strlen(sourcepath) + 1)) == NULL) in defaults() 331 b = malloc(sizeof PATH_DPORTS + 1 + in defaults() 425 cp = malloc(strlen(*dp) + 1 + s + 1); in main() 463 cp = malloc(sizeof MANWHEREISALLCMD - 2 + s); in main() 465 cp = malloc(sizeof MANWHEREISCMD - 2 + s); in main() 491 cp2 = malloc(rlen + 1); in main() [all …]
|
/dflybsd-src/contrib/gcc-4.7/libstdc++-v3/libsupc++/ |
H A D | new_op.cc | 35 using std::malloc; 39 extern "C" void *malloc (std::size_t); 52 p = (void *) malloc (sz); in operator new() 63 p = (void *) malloc (sz); in operator new()
|
H A D | new_opnt.cc | 33 extern "C" void *malloc (std::size_t); 44 p = (void *) malloc (sz); in operator new() 59 p = (void *) malloc (sz); in operator new()
|
H A D | eh_alloc.cc | 41 using std::malloc; 46 extern "C" void *malloc (std::size_t); 102 ret = malloc (thrown_size); in __cxa_allocate_exception() 160 (malloc (sizeof (__cxa_dependent_exception))); in __cxa_allocate_dependent_exception()
|
/dflybsd-src/lib/libc/stdlib/ |
H A D | Makefile.inc | 43 lsearch.3 malloc.3 memory.3 \ 68 MLINKS+=malloc.3 calloc.3 \ 69 malloc.3 free.3 \ 70 malloc.3 freezero.3 \ 71 malloc.3 malloc_usable_size.3 \ 72 malloc.3 realloc.3 \ 73 malloc.3 reallocf.3
|
/dflybsd-src/usr.bin/truss/ |
H A D | syscalls.c | 159 buf = malloc( size = (max ? max : 64 ) ); in get_string() 218 tmp = malloc(12); in print_arg() 222 tmp = malloc(13); in print_arg() 226 tmp = malloc(12); in print_arg() 233 tmp = malloc(strlen(tmp2) + 3); in print_arg() 245 tmp = malloc(24); in print_arg() 250 tmp = malloc(12); in print_arg() 259 tmp = malloc(12); in print_arg() 269 tmp = malloc(12); in print_arg()
|
/dflybsd-src/stand/boot/common/ |
H A D | rel_open.c | 96 base = malloc(len + 2); /* room for trailing / */ in chdir() 102 base = malloc(dlen + len + 2); /* room for trailing / */ in chdir() 163 ptr = malloc(strlen(DirBase) + strlen(path) + 1); in rel_open() 195 ptr = malloc(strlen(DirBase) + strlen(path) + 1); in rel_stat() 221 rootpath = malloc(strlen(path) + sizeof("/boot")); in rel_rootpath() 224 rootpath = malloc(strlen(DirBase) + strlen(path) + in rel_rootpath()
|
/dflybsd-src/crypto/libressl/crypto/ |
H A D | malloc-wrapper.c | 62 *m = malloc; in CRYPTO_get_mem_functions() 85 *m = malloc; in CRYPTO_get_locked_mem_functions() 123 return malloc(num); in CRYPTO_malloc_locked() 137 return malloc(num); in CRYPTO_malloc() 176 return malloc(num); in CRYPTO_remalloc()
|
/dflybsd-src/stand/lib/ |
H A D | zalloc_malloc.c | 48 #ifdef malloc 49 #undef malloc 54 malloc(size_t bytes) in malloc() function 125 if ((res = malloc(bytes)) != NULL) { in calloc() 143 if ((res = malloc(size)) != NULL) { in realloc()
|
/dflybsd-src/lib/libc/rpc/ |
H A D | getnetconfig.c | 156 nc_addr = (int *)malloc(sizeof (int)); in __nc_error() 192 if ((nc_vars = (struct netconfig_vars *)malloc(sizeof in setnetconfig() 271 stringp = (char *) malloc(MAXNETCONFIGLINE); in getnetconfig() 293 list = (struct netconfig_list *) malloc(sizeof (struct netconfig_list)); in getnetconfig() 298 np = (struct netconfig *) malloc(sizeof (struct netconfig)); in getnetconfig() 437 if ((linep = malloc(MAXNETCONFIGLINE)) == NULL) { in getnetconfigent() 461 malloc(sizeof (struct netconfig))) == NULL) { in getnetconfigent() 648 if ((tmp=malloc(MAXNETCONFIGLINE)) == NULL) in dup_ncp() 650 if ((p=(struct netconfig *)malloc(sizeof(struct netconfig))) == NULL) { in dup_ncp() 671 p->nc_lookups = (char **)malloc((size_t)(p->nc_nlookups+1) * sizeof(char *)); in dup_ncp()
|
/dflybsd-src/sbin/iscontrol/ |
H A D | misc.c | 90 if((tmp = malloc((len+1)/2)) == NULL) { in str2bin() 109 if((tmp = malloc(len)) == NULL) { in str2bin() 141 if((tmp = malloc(len)) == NULL) in str2bin() 164 dst = malloc(len + 3); in bin2str() 180 dst = malloc(len + 3); in bin2str()
|
/dflybsd-src/games/worms/ |
H A D | worms.c | 221 if (!(worm = malloc((size_t)number * in main() 222 sizeof(struct worm))) || !(mp = malloc((size_t)1024))) in main() 229 if (!(ip = malloc((size_t)(LI * CO * sizeof(short))))) in main() 231 if (!(ref = malloc((size_t)(LI * sizeof(short *))))) in main() 241 if (!(ip = malloc((size_t)(length * sizeof(short))))) in main() 246 if (!(ip = malloc((size_t)(length * sizeof(short))))) in main()
|
/dflybsd-src/crypto/openssh/ |
H A D | ssh-ed25519.c | 84 if ((k->ed25519_pk = malloc(ED25519_PK_SZ)) == NULL || in ssh_ed25519_generate() 85 (k->ed25519_sk = malloc(ED25519_SK_SZ)) == NULL) in ssh_ed25519_generate() 96 if ((to->ed25519_pk = malloc(ED25519_PK_SZ)) == NULL) in ssh_ed25519_copy_public() 168 if ((sig = malloc(slen)) == NULL) in ssh_ed25519_sign() 186 if ((*sigp = malloc(len)) == NULL) { in ssh_ed25519_sign() 248 if ((sm = malloc(smlen)) == NULL || (m = malloc(mlen)) == NULL) { in ssh_ed25519_verify()
|
/dflybsd-src/contrib/gcc-8.0/libstdc++-v3/libsupc++/ |
H A D | new_op.cc | 34 using std::malloc; 38 extern "C" void *malloc (std::size_t); 50 while (__builtin_expect ((p = malloc (sz)) == 0, false)) in operator new()
|
/dflybsd-src/contrib/binutils-2.27/libiberty/ |
H A D | objalloc.c | 40 extern PTR malloc (size_t); 91 ret = (struct objalloc *) malloc (sizeof *ret); in objalloc_create() 95 ret->chunks = (PTR) malloc (CHUNK_SIZE); in objalloc_create() 143 ret = (char *) malloc (CHUNK_HEADER_SIZE + len); in _objalloc_alloc() 159 chunk = (struct objalloc_chunk *) malloc (CHUNK_SIZE); in _objalloc_alloc()
|
/dflybsd-src/contrib/binutils-2.34/libiberty/ |
H A D | objalloc.c | 40 extern PTR malloc (size_t); 91 ret = (struct objalloc *) malloc (sizeof *ret); in objalloc_create() 95 ret->chunks = (PTR) malloc (CHUNK_SIZE); in objalloc_create() 143 ret = (char *) malloc (CHUNK_HEADER_SIZE + len); in _objalloc_alloc() 159 chunk = (struct objalloc_chunk *) malloc (CHUNK_SIZE); in _objalloc_alloc()
|
/dflybsd-src/contrib/gcc-8.0/libiberty/ |
H A D | objalloc.c | 40 extern PTR malloc (size_t); 91 ret = (struct objalloc *) malloc (sizeof *ret); in objalloc_create() 95 ret->chunks = (PTR) malloc (CHUNK_SIZE); in objalloc_create() 143 ret = (char *) malloc (CHUNK_HEADER_SIZE + len); in _objalloc_alloc() 159 chunk = (struct objalloc_chunk *) malloc (CHUNK_SIZE); in _objalloc_alloc()
|
/dflybsd-src/contrib/gcc-4.7/libiberty/ |
H A D | objalloc.c | 40 extern PTR malloc (size_t); 91 ret = (struct objalloc *) malloc (sizeof *ret); in objalloc_create() 95 ret->chunks = (PTR) malloc (CHUNK_SIZE); in objalloc_create() 136 ret = (char *) malloc (CHUNK_HEADER_SIZE + len); in _objalloc_alloc() 152 chunk = (struct objalloc_chunk *) malloc (CHUNK_SIZE); in _objalloc_alloc()
|
/dflybsd-src/contrib/gdb-7/libiberty/ |
H A D | objalloc.c | 40 extern PTR malloc (size_t); 91 ret = (struct objalloc *) malloc (sizeof *ret); in objalloc_create() 95 ret->chunks = (PTR) malloc (CHUNK_SIZE); in objalloc_create() 143 ret = (char *) malloc (CHUNK_HEADER_SIZE + len); in _objalloc_alloc() 159 chunk = (struct objalloc_chunk *) malloc (CHUNK_SIZE); in _objalloc_alloc()
|
/dflybsd-src/libexec/revnetgroup/ |
H A D | parse_netgroup.c | 106 malloc(strlen(group) + 1); in __setnetgrent() 209 grp = (struct netgrp *)malloc(sizeof (struct netgrp)); in parse_netgrp() 232 malloc(len + 1); in parse_netgrp() 306 lp = (struct linelist *)malloc(sizeof (*lp)); in read_for_group() 308 lp->l_groupname = (char *)malloc(len + 1); in read_for_group() 325 linep = (char *)malloc(olen + len + 1); in read_for_group()
|
/dflybsd-src/share/examples/sunrpc/dir/ |
H A D | dir_proc.c | 10 extern char *malloc(); 42 nl = *nlp = (namenode *) malloc(sizeof(namenode)); 43 nl->name = malloc(strlen(d->d_name)+1);
|
/dflybsd-src/contrib/libarchive/tar/ |
H A D | subst.c | 63 bsdtar->substitution = subst = malloc(sizeof(*subst)); in init_substitution() 83 rule = malloc(sizeof(*rule)); in add_substitution() 101 pattern = malloc(end_pattern - rule_text); in add_substitution() 119 rule->result = malloc(end_pattern - start_subst + 1); in add_substitution() 177 new_str = malloc(old_len + len + 1); in realloc_strncat() 199 new_str = malloc(old_len + strlen(append) + 1); in realloc_strcat()
|
/dflybsd-src/usr.bin/du/ |
H A D | du.c | 233 p->fts_pointer = malloc(sizeof(du_number_t)); in main() 239 p->fts_parent->fts_pointer = malloc(sizeof(du_number_t)); in main() 286 p->fts_parent->fts_pointer = malloc(sizeof(du_number_t)); in main() 340 buckets = malloc(number_buckets * sizeof(buckets[0])); in linkchk() 350 new_buckets = malloc(new_size * sizeof(struct links_entry *)); in linkchk() 359 new_buckets = malloc(new_size * sizeof(new_buckets[0])); in linkchk() 427 le = malloc(sizeof(struct links_entry)); in linkchk()
|
/dflybsd-src/usr.bin/top/ |
H A D | color.c | 131 color_ansi = (char **)malloc(COLOR_ANSI_SLOTS * sizeof(char *)); in color_env_parse() 146 ce = (color_entry *)malloc(sizeof(color_entry)); in color_env_parse() 148 ce->tag = (char *)malloc(len + 1); in color_env_parse() 202 bytag = (color_entry **)malloc(totaltags * sizeof(color_entry *)); in color_tag() 203 bytag_names = (char **)malloc(totaltags * sizeof(char *)); in color_tag()
|
/dflybsd-src/contrib/zstd/programs/ |
H A D | benchzstd.c | 342 *resultBufferPtr = malloc(decodedSize); in BMK_benchMemAdvancedNoAlloc() 571 const void ** const srcPtrs = (const void**)malloc(maxNbBlocks * sizeof(void*)); in BMK_benchMemAdvanced() 572 size_t* const srcSizes = (size_t*)malloc(maxNbBlocks * sizeof(size_t)); in BMK_benchMemAdvanced() 575 void ** const cPtrs = (void**)malloc(maxNbBlocks * sizeof(void*)); in BMK_benchMemAdvanced() 576 size_t* const cSizes = (size_t*)malloc(maxNbBlocks * sizeof(size_t)); in BMK_benchMemAdvanced() 577 size_t* const cCapacities = (size_t*)malloc(maxNbBlocks * sizeof(size_t)); in BMK_benchMemAdvanced() 579 void ** const resPtrs = (void**)malloc(maxNbBlocks * sizeof(void*)); in BMK_benchMemAdvanced() 580 size_t* const resSizes = (size_t*)malloc(maxNbBlocks * sizeof(size_t)); in BMK_benchMemAdvanced() 590 void* const internalDstBuffer = dstBuffer ? NULL : malloc(maxCompressedSize); in BMK_benchMemAdvanced() 595 void* resultBuffer = srcSize ? malloc(srcSize) : NULL; in BMK_benchMemAdvanced() [all …]
|