Home
last modified time | relevance | path

Searched refs:nxt_malloc (Results 1 – 25 of 34) sorted by relevance

12

/unit/src/
H A Dnxt_process_title.c82 argv = nxt_malloc(argv_size); in nxt_process_arguments()
119 p = nxt_malloc(strings_size); in nxt_process_arguments()
150 env = nxt_malloc(environ_size); in nxt_process_arguments()
H A Dnxt_java.c106 path = nxt_malloc(jars_dir_len + rootfs_len + 1); in nxt_java_setup()
152 res = nxt_malloc(jar_count * sizeof(char*)); in nxt_java_module_jars()
166 jurl = nxt_malloc(jlen); in nxt_java_module_jars()
223 jvm_opt = nxt_malloc(jvm_args.nOptions * sizeof(JavaVMOption)); in nxt_java_start()
259 opt = nxt_malloc(str.length + 1); in nxt_java_start()
274 classpath_arr = nxt_malloc(classpath_count * sizeof(char *)); in nxt_java_start()
291 opt = nxt_malloc(opt_len); in nxt_java_start()
313 opt = nxt_malloc(opt_len); in nxt_java_start()
H A Dnxt_malloc.c31 nxt_malloc(size_t size) in nxt_malloc() function
54 p = nxt_malloc(size); in nxt_zalloc()
H A Dnxt_malloc.h11 NXT_EXPORT void *nxt_malloc(size_t size)
H A Dnxt_php_sapi.c540 tmp = nxt_malloc(str.length + 1); in nxt_php_set_target()
570 tmp = nxt_malloc(target->root.length + 1 + str.length + 1); in nxt_php_set_target()
618 tmp = nxt_malloc(str.length); in nxt_php_set_target()
644 p = nxt_malloc(ini_path->length + 1); in nxt_php_set_ini_path()
654 p = nxt_malloc(wdlen + ini_path->length + 2); in nxt_php_set_ini_path()
768 cstr = nxt_malloc(value->length + 1); in nxt_php_alter_option()
804 p = nxt_malloc(str->length + 1); in nxt_php_disable_functions()
826 p = nxt_malloc(value->length + 1); in nxt_php_disable()
890 dir->start = nxt_malloc(length + 1); in nxt_php_dirname()
941 url = nxt_malloc(sizeof("https://") - 1 in nxt_php_do_301()
[all …]
H A Dnxt_errno.c105 nxt_sys_errlist = nxt_malloc(n + size); in nxt_strerror_start()
H A Dnxt_clone.c137 mapinfo = nxt_malloc(len); in nxt_clone_credential_map_set()
164 mapinfo = nxt_malloc(len); in nxt_clone_credential_map_set()
H A Dnxt_pollset_engine.c99 changes = nxt_malloc(sizeof(nxt_pollset_change_t) * mchanges); in nxt_pollset_create()
110 changes = nxt_malloc(2 * sizeof(struct poll_ctl) * mchanges); in nxt_pollset_create()
117 engine->u.pollset.events = nxt_malloc(sizeof(struct pollfd) * mevents); in nxt_pollset_create()
H A Dnxt_devpoll_engine.c105 changes = nxt_malloc(sizeof(nxt_devpoll_change_t) * mchanges); in nxt_devpoll_create()
116 changes = nxt_malloc(2 * sizeof(struct pollfd) * mchanges); in nxt_devpoll_create()
123 engine->u.devpoll.events = nxt_malloc(sizeof(struct pollfd) * mevents); in nxt_devpoll_create()
H A Dnxt_script.c583 file.name = nxt_malloc(rt->scripts.length + name.length + 1); in nxt_script_store_get_handler()
660 path = nxt_malloc(rt->scripts.length + name.length + 1); in nxt_script_store_delete_handler()
696 str->start = nxt_malloc(str->length); in nxt_script_file_read()
H A Dnxt_router_access_log.c108 access_log = nxt_malloc(sizeof(nxt_router_access_log_t) in nxt_router_access_log_create()
128 str.start = nxt_malloc(str.length); in nxt_router_access_log_create()
H A Dnxt_external.c172 argv = nxt_malloc(argc * sizeof(argv[0]) + size); in nxt_external_start()
H A Dnxt_work_queue.c129 chunk = nxt_malloc(size); in nxt_work_queue_allocate()
H A Dnxt_eventport_engine.c98 changes = nxt_malloc(sizeof(nxt_eventport_change_t) * mchanges); in nxt_eventport_create()
105 engine->u.eventport.events = nxt_malloc(sizeof(port_event_t) * mevents); in nxt_eventport_create()
H A Dnxt_file.c349 buf = nxt_malloc(bufsize); in nxt_file_chown()
375 buf = nxt_malloc(bufsize); in nxt_file_chown()
H A Dnxt_isolation.c916 mounts = nxt_malloc(nmounts * sizeof(uintptr_t)); in nxt_isolation_make_private_mount()
921 shared = nxt_malloc(nmounts); in nxt_isolation_make_private_mount()
975 parent_mnt = nxt_malloc(len + 1); in nxt_isolation_make_private_mount()
H A Dnxt_poll_engine.c113 engine->u.poll.changes = nxt_malloc(sizeof(nxt_poll_change_t) * mchanges); in nxt_poll_create()
408 phe = nxt_malloc(sizeof(nxt_poll_hash_entry_t)); in nxt_poll_set_add()
H A Dnxt_timer.c41 timers->changes = nxt_malloc(sizeof(nxt_timer_change_t) * mchanges); in nxt_timers_init()
H A Dnxt_sendbuf.c232 bm->pos = nxt_malloc(bsize); in nxt_sendbuf_copy_coalesce()
/unit/src/test/
H A Dnxt_rbtree_test.c42 items = nxt_malloc(n * sizeof(nxt_rbtree_test_t)); in nxt_rbtree_test()
47 keys = nxt_malloc(n * sizeof(uint32_t)); in nxt_rbtree_test()
211 mb_nodes = nxt_malloc(NXT_RBT_NODES * n * sizeof(nxt_rbtree_test_t)); in nxt_rbtree_mb_start()
H A Dnxt_rbtree1_test.c70 nodes = nxt_malloc(n * sizeof(nxt_rbtree1_node_t)); in nxt_rbtree1_test()
75 keys = nxt_malloc(n * sizeof(uint32_t)); in nxt_rbtree1_test()
273 mb_nodes = nxt_malloc(NXT_RBT_NODES * n * sizeof(nxt_rbtree1_node_t)); in nxt_rbtree1_mb_start()
H A Dnxt_mem_zone_test.c38 blocks = nxt_malloc(nblocks * sizeof(void *)); in nxt_mem_zone_test()
H A Dnxt_mp_test.c31 blocks = nxt_malloc(nblocks * sizeof(void *)); in nxt_mp_test()
H A Dnxt_malloc_test.c35 p[i] = nxt_malloc(size); in nxt_malloc_run_test()
/unit/src/python/
H A Dnxt_python.c180 path = nxt_malloc(len + sizeof(pyvenv)); in nxt_python_start()
200 nxt_py_home = nxt_malloc(size); in nxt_python_start()
221 nxt_py_home = nxt_malloc(len + 1); in nxt_python_start()
501 prefix = nxt_malloc(str.length); in nxt_python_set_prefix()

12