Searched refs:malloc (Results 1 – 25 of 123) sorted by relevance
12345
28 Buffer* buffer = malloc(sizeof(Buffer)); in bufferCreate()34 buffer->data = malloc(capacity); in bufferCreate()48 Buffer* buffer = malloc(sizeof(Buffer)); in bufferWrap()
149 char *name = malloc(strlen(de->d_name) + 1); in recurse()150 struct list *node = malloc(sizeof(struct list)); in recurse()181 name = malloc(strlen(f->name) + strlen(directory_path) + 2); in recurse()207 keep = malloc(len + strlen(name) + 3); in recurse()208 res = malloc(sizeof(struct list)); in recurse()285 list = malloc(count * sizeof(struct list *)); in get_recursive_hash_manifest()303 buf = malloc(len + 1); in get_recursive_hash_manifest()
37 data = (char*) malloc(sz + 1); in load_file()
30 native_handle_t* h = malloc( in native_handle_create()
44 char* copy = (char*) malloc(len + 1); in set_process_name()
161 ret = malloc(len + 1); in strndup16to8()
8 backtrace_frame_t* frames = (backtrace_frame_t*) malloc(sizeof(backtrace_frame_t) * MAX_DEPTH); in do_backtrace()12 …backtrace_symbol_t* backtrace_symbols = (backtrace_symbol_t*) malloc(sizeof(backtrace_symbol_t) * … in do_backtrace()
43 char *buffer = (char *) malloc(1024 * 64); in dumpState()50 char *buffer2 = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in dumpState()134 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in lookupActive()168 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in create()265 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in destroy()
44 buf = malloc(size); in main()77 scratch = malloc(size); in main()
14 Zipfile *file = malloc(sizeof(Zipfile)); in init_zipfile()67 char* s = malloc(l+1); in get_zipentry_name()
108 old_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main()110 new_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main()115 new_cpus[i].freqs = malloc(sizeof(struct freq_info) * new_cpus[i].freq_count); in main()117 old_cpus[i].freqs = malloc(sizeof(struct freq_info) * old_cpus[i].freq_count); in main()127 new_total_cpu.freqs = malloc(sizeof(struct freq_info) * new_total_cpu.freq_count); in main()129 old_total_cpu.freqs = malloc(sizeof(struct freq_info) * old_total_cpu.freq_count); in main()
352 ub_ctx = malloc(sizeof(struct ublock_ctx)); in ublock_init()359 in_buf = malloc(size); in ublock_init()360 out_buf = malloc(size); in ublock_init()392 ub_ctx->in_buf = malloc(ub_ctx->max_buf); in ublock_init()393 ub_ctx->out_buf = malloc(ub_ctx->max_buf); in ublock_init()
108 f = malloc(sizeof(struct file)); in import_file()168 item = malloc(sizeof(struct item)); in alloc_item()222 d = malloc(sizeof(struct dir)); in import_dir()307 d->entries = malloc(sizeof(struct fat_dirent) * (count + (is_root ? 0 : 2))); in import_dir()
108 range = malloc(numpages * sizeof(uint64_t)); in pm_process_pagemap_range()144 maps = malloc(proc->num_maps * sizeof(pm_map_t*)); in pm_process_maps()267 map->name = malloc(strlen(name) + 1); in read_maps()
50 char **args = (char **)malloc(sizeof(char *) * 4); in startClatd()
91 using ::malloc;
77 char *log_device = malloc(strlen(LOG_FILE_DIR) + strlen(log_name) + 1); in get_log_file_path()
335 file_buffer = (char *)malloc(size); in sync_send()580 copyinfo *ci = malloc(sizeof(copyinfo) + ssize + dsize); in mkcopyinfo()684 char *tmp = malloc(tmplen); in copy_local_dir_remote()691 char *tmp = malloc(tmplen); in copy_local_dir_remote()783 char *tmp = malloc(strlen(name) + strlen(rpath) + 2); in do_sync_push()883 char *tmp = malloc(tmplen); in copy_remote_dir_local()890 char *tmp = malloc(tmplen); in copy_remote_dir_local()977 char *tmp = malloc(tmplen); in do_sync_pull()
149 char* src = (char*)malloc(MAX_SIZE+4+8+32); in memcpy_test()150 char* dst = (char*)malloc(MAX_SIZE+4+8+32); in memcpy_test()278 char* dst = (char*)malloc(MAX_SIZE+4+8); in memset_test()415 char* src = (char*)malloc(MAX_SIZE+4+8+32); in memcmp_test()416 char* dst = (char*)malloc(MAX_SIZE+4+8+32); in memcmp_test()590 #pragma mark malloc599 void* addr = malloc(size); in malloc_test()
28 cb = (struct nl_cb *) malloc(sizeof(struct nl_cb)); in nl_cb_alloc()
47 char *mem = malloc((N_PAGES+1) * 4096); in main()
34 if (!(item = malloc(sizeof(struct write_list) + data_len))) { in alloc_wl()
95 data = (char*) malloc( sz ); in load_file()
64 fds = malloc(nfiles * sizeof(int)); in main()
170 char** names = malloc(size * sizeof(char*)); in _archive_dir()243 tmp = (char*) malloc(s.st_size); in _archive()285 (struct fs_config_entry*)malloc(allocated * sizeof(struct fs_config_entry)); in read_canned_config()