Lines Matching refs:name

38     nxt_array_t *modules, const char *name);
44 const char *name);
123 .name = "discovery",
201 char *name; in nxt_discovery_modules() local
236 name = glb.gl_pathv[i]; in nxt_discovery_modules()
238 ret = nxt_discovery_module(task, mp, modules, name); in nxt_discovery_modules()
271 + nxt_strlen(mnt[j].name) + (2 * NXT_INT_T_LEN) in nxt_discovery_modules()
300 mnt[j].src, mnt[j].dst, mnt[j].name, mnt[j].type, in nxt_discovery_modules()
329 const char *name) in nxt_discovery_module() argument
348 dl = dlopen(name, RTLD_GLOBAL | RTLD_NOW); in nxt_discovery_module()
351 nxt_alert(task, "dlopen(\"%s\"), failed: \"%s\"", name, dlerror()); in nxt_discovery_module()
359 &app->type, app->version, name); in nxt_discovery_module()
364 nxt_log(task, NXT_LOG_NOTICE, "incompatible module %s", name); in nxt_discovery_module()
390 name, &app->type, &version, &module[i].file); in nxt_discovery_module()
408 module->file.length = nxt_strlen(name); in nxt_discovery_module()
415 nxt_memcpy(module->file.start, name, module->file.length); in nxt_discovery_module()
443 to->name = nxt_cstr_dup(mp, to->name, from->name); in nxt_discovery_module()
444 if (nxt_slow_path(to->name == NULL)) { in nxt_discovery_module()
461 nxt_alert(task, "dlsym(\"%s\"), failed: \"%s\"", name, dlerror()); in nxt_discovery_module()
471 nxt_alert(task, "dlclose(\"%s\"), failed: \"%s\"", name, dlerror()); in nxt_discovery_module()
615 process->name = nxt_mp_alloc(process->mem_pool, nxt_app_conf->name.length in nxt_proto_start_process_handler()
618 if (nxt_slow_path(process->name == NULL)) { in nxt_proto_start_process_handler()
626 init->name = (const char *) nxt_app_conf->name.start; in nxt_proto_start_process_handler()
628 p = (u_char *) process->name; in nxt_proto_start_process_handler()
630 p = nxt_cpymem(p, nxt_app_conf->name.start, nxt_app_conf->name.length); in nxt_proto_start_process_handler()
821 nxt_app_module_load(nxt_task_t *task, const char *name) in nxt_app_module_load() argument
827 dl = dlopen(name, RTLD_GLOBAL | RTLD_LAZY); in nxt_app_module_load()
832 name, err != NULL ? err : "(null)"); in nxt_app_module_load()
841 name, err != NULL ? err : "(null)"); in nxt_app_module_load()
846 name, err != NULL ? err : "(null)"); in nxt_app_module_load()
859 nxt_str_t name, value; in nxt_app_set_environment() local
866 value_obj = nxt_conf_next_object_member(environment, &name, &next); in nxt_app_set_environment()
873 env = nxt_malloc(name.length + value.length + 2); in nxt_app_set_environment()
878 p = nxt_cpymem(env, name.start, name.length); in nxt_app_set_environment()
929 nxt_app_lang_module(nxt_runtime_t *rt, nxt_str_t *name) in nxt_app_lang_module() argument
937 end = name->start + name->length; in nxt_app_lang_module()
940 for (p = name->start; p < end; p++) { in nxt_app_lang_module()
952 type = nxt_app_parse_type(name->start, p - name->start); in nxt_app_lang_module()