Home
last modified time | relevance | path

Searched refs:name (Results 1 – 25 of 160) sorted by relevance

1234567

/unit/test/unit/
H A Dlog.py8 def open(name=UNIT_LOG, encoding=None): argument
9 f = open(Log.get_path(name), 'r', encoding=encoding, errors='ignore')
10 f.seek(Log.pos.get(name, 0))
14 def set_pos(pos, name=UNIT_LOG): argument
15 Log.pos[name] = pos
17 def swap(name): argument
19 Log.pos[UNIT_LOG] = Log.pos.get(name, 0)
20 Log.pos[name] = pos
22 def get_path(name=UNIT_LOG): argument
23 return Log.temp_dir + '/' + name
H A Doption.py7 def __setattr__(self, name, value): argument
8 Options._options[name] = value
10 def __getattr__(self, name): argument
11 if name in Options._options:
12 return Options._options[name]
/unit/src/
H A Dnxt_dyld.c15 dyld->handle = dlopen(dyld->name, RTLD_NOW | RTLD_GLOBAL); in nxt_dyld_load()
18 nxt_thread_log_debug("dlopen(\"%s\")", dyld->name); in nxt_dyld_load()
27 nxt_thread_log_alert("dlopen(\"%s\") failed: %s", dyld->name, err); in nxt_dyld_load()
37 const char *name; in nxt_dyld_symbol() local
42 name = "RTLD_DEFAULT"; in nxt_dyld_symbol()
46 name = dyld->name; in nxt_dyld_symbol()
52 nxt_thread_log_debug("dlsym(\"%s\", \"%s\")", name, symbol); in nxt_dyld_symbol()
61 nxt_thread_log_alert("dlsym(\"%s\", \"%s\") failed: %s", name, symbol, err); in nxt_dyld_symbol()
73 nxt_thread_log_debug("dlclose(\"%s\")", dyld->name); in nxt_dyld_unload()
83 nxt_thread_log_alert("dlclose(\"%s\") failed: %s", dyld->name, err); in nxt_dyld_unload()
H A Dnxt_conf_validation.c1259 if (name == NULL) { in nxt_conf_vldt_type()
1377 *ctx->type = *name; in nxt_conf_vldt_mtypes_type()
1636 nxt_str_t name, temp; in nxt_conf_vldt_share() local
1662 p = nxt_cpymem(temp.start, name.start, name.length); in nxt_conf_vldt_share()
1699 nxt_str_t name; in nxt_conf_vldt_proxy() local
1705 name.length -= 7; in nxt_conf_vldt_proxy()
1706 name.start += 7; in nxt_conf_vldt_proxy()
2005 end = nxt_decode_uri(p, name->start, name->length); in nxt_conf_vldt_match_encoded_patterns_set_member()
2435 if (!nxt_strstr_eq(&vals->name, &name)) { in nxt_conf_vldt_object()
2649 if (nxt_memchr(name->start, '\0', name->length) != NULL) { in nxt_conf_vldt_environment()
[all …]
H A Dnxt_service.c106 if (nxt_strcmp(s->name, service->name) != 0) { in nxt_service_add()
111 service->type, service->name); in nxt_service_add()
131 nxt_service_get(nxt_array_t *services, const char *type, const char *name) in nxt_service_get() argument
148 if (name == NULL) { in nxt_service_get()
152 if (nxt_strcmp(s->name, name) == 0) { in nxt_service_get()
162 type, (name != NULL) ? ":" : "", name); in nxt_service_get()
H A Dnxt_cert.c384 name = nxt_str_dup(mp, &info->name, name); in nxt_cert_info_save()
397 lhq.key_hash = nxt_djb_hash(name->start, name->length); in nxt_cert_info_save()
399 lhq.key = *name; in nxt_cert_info_save()
429 lhq.key_hash = nxt_djb_hash(name->start, name->length); in nxt_cert_info_get()
797 lhq.key_hash = nxt_djb_hash(name->start, name->length); in nxt_cert_info_delete()
886 p = nxt_cpymem(p, name.start, name.length + 1); in nxt_cert_store_load()
1164 name.length = nxt_strlen(name.start); in nxt_cert_store_get_handler()
1166 file.name = nxt_malloc(rt->certs.length + name.length + 1); in nxt_cert_store_get_handler()
1173 p = nxt_cpymem(p, name.start, name.length + 1); in nxt_cert_store_get_handler()
1242 name.length = nxt_strlen(name.start); in nxt_cert_store_delete_handler()
[all …]
H A Dnxt_file.c21 file->fd = open((char *) file->name, mode, access); in nxt_file_open()
30 file->name, mode, access, file->fd, file->error); in nxt_file_open()
38 file->name, file->error); in nxt_file_open()
80 file->name, file->error); in nxt_file_openat2()
96 file->fd, file->name, nxt_errno); in nxt_file_close()
123 file->fd, file->name, buf, size, in nxt_file_write()
151 file->fd, file->name, buf, size, in nxt_file_read()
262 n = stat((char *) file->name, fi); in nxt_file_info()
301 nxt_file_delete(nxt_file_name_t *name) in nxt_file_delete() argument
303 nxt_thread_log_debug("unlink(\"%FN\")", name); in nxt_file_delete()
[all …]
H A Dnxt_cert.h17 nxt_int_t nxt_cert_info_save(nxt_str_t *name, nxt_cert_t *cert);
18 nxt_conf_value_t *nxt_cert_info_get(nxt_str_t *name);
20 nxt_int_t nxt_cert_info_delete(nxt_str_t *name);
25 void nxt_cert_store_get(nxt_task_t *task, nxt_str_t *name, nxt_mp_t *mp,
27 void nxt_cert_store_delete(nxt_task_t *task, nxt_str_t *name, nxt_mp_t *mp);
H A Dnxt_upstream.c24 nxt_str_t name, *string; in nxt_upstreams_create() local
54 upcf = nxt_conf_next_object_member(upstreams_conf, &name, &next); in nxt_upstreams_create()
56 string = nxt_str_dup(mp, &upstreams->upstream[i].name, &name); in nxt_upstreams_create()
75 nxt_upstream_find(nxt_upstreams_t *upstreams, nxt_str_t *name, in nxt_upstream_find() argument
89 if (nxt_strstr_eq(&upstream[i].name, name)) { in nxt_upstream_find()
148 nxt_debug(task, "upstream handler: \"%V\"", &u->name); in nxt_upstream_handler()
H A Dnxt_application.c44 const char *name);
201 char *name; in nxt_discovery_modules() local
236 name = glb.gl_pathv[i]; in nxt_discovery_modules()
329 const char *name) in nxt_discovery_module() argument
443 to->name = nxt_cstr_dup(mp, to->name, from->name); in nxt_discovery_module()
615 process->name = nxt_mp_alloc(process->mem_pool, nxt_app_conf->name.length in nxt_proto_start_process_handler()
626 init->name = (const char *) nxt_app_conf->name.start; 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()
878 p = nxt_cpymem(env, name.start, name.length); in nxt_app_set_environment()
937 end = name->start + name->length; in nxt_app_lang_module()
[all …]
/unit/src/java/nginx/unit/
H A DIncludeResponseWrapper.java28 public void addDateHeader(String name, long date) in addDateHeader() argument
30 trace("addDateHeader: " + name + ": " + date); in addDateHeader()
34 public void addHeader(String name, String value) in addHeader() argument
36 trace("addHeader: " + name + ": " + value); in addHeader()
40 public void addIntHeader(String name, int value) in addIntHeader() argument
42 trace("addIntHeader: " + name + ": " + value); in addIntHeader()
52 public void setDateHeader(String name, long date) in setDateHeader() argument
54 trace("setDateHeader: " + name + ": " + date); in setDateHeader()
58 public void setHeader(String name, String value) in setHeader() argument
60 trace("setHeader: " + name + ": " + value); in setHeader()
[all …]
H A DResponse.java92 final String name, in addSetRFC6265Cookie() argument
101 if (name == null || name.length() == 0) { in addSetRFC6265Cookie()
230 public void addHeader(String name, String value) in addHeader() argument
232 trace("addHeader: " + name + ": " + value); in addHeader()
242 if (CONTENT_TYPE.equalsIgnoreCase(name)) { in addHeader()
270 public boolean containsHeader(String name) in containsHeader() argument
272 trace("containsHeader: " + name); in containsHeader()
311 public String getHeader(String name) in getHeader() argument
313 trace("getHeader: " + name); in getHeader()
340 trace("getHeaders: " + name); in getHeaders()
[all …]
H A DRequest.java202 trace("getDateHeader: " + name); in getDateHeader()
204 String value = getHeader(name); in getDateHeader()
236 String res = getHeader(req_ptr, name, name.length()); in getHeader()
260 trace("getHeaders: " + name); in getHeaders()
262 return getHeaders(req_ptr, name, name.length()); in getHeaders()
271 trace("getIntHeader: " + name); in getIntHeader()
273 return getIntHeader(req_ptr, name, name.length()); in getIntHeader()
293 trace("getPart: " + name); in getPart()
667 if (BARE.equals(name)) { in getAttribute()
1179 attributes.put(name, o); in setAttribute_()
[all …]
H A DUnitSessionCookieConfig.java19 private String name = default_name; field in UnitSessionCookieConfig
28 public void setName(String name) in setName() argument
30 this.name = name; in setName()
36 return name; in getName()
/unit/test/unit/applications/lang/
H A Dgo.py11 def prepare_env(script, name='app', static=False): argument
27 option.test_dir + '/go/' + script + '/' + name + '.go', temp_dir
39 temp_dir + name,
40 temp_dir + name + '.go',
47 temp_dir + name,
48 temp_dir + name + '.go',
75 def load(self, script, name='app', **kwargs): argument
79 executable = option.temp_dir + "/go/" + name
83 executable = "/go/" + name
86 TestApplicationGo.prepare_env(script, name, static=static_build)
H A Dpython.py13 def load(self, script, name=None, module=None, **kwargs): argument
14 if name is None:
15 name = script
31 if not os.path.exists(rootfs + '/app/python/' + name):
32 shutil.copytree(script_path, rootfs + '/app/python/' + name)
34 script_path = '/app/python/' + name
60 "*:7080": {"pass": "applications/" + quote(name, '')}
62 "applications": {name: app},
/unit/src/java/nginx/unit/websocket/pojo/
H A DPojoPathParam.java30 private final String name; field in PojoPathParam
33 public PojoPathParam(Class<?> type, String name) { in PojoPathParam() argument
35 this.name = name; in PojoPathParam()
45 return name; in getName()
/unit/test/unit/applications/
H A Dtls.py15 def certificate(self, name='default', load=True): argument
25 '/CN=' + name + '/',
29 option.temp_dir + '/' + name + '.crt',
31 option.temp_dir + '/' + name + '.key',
37 self.certificate_load(name)
94 def load(self, script, name=None): argument
95 if name is None:
96 name = script
102 "listeners": {"*:7080": {"pass": "applications/" + name}},
104 name: {
H A Dproto.py19 def findall(self, pattern, name='unit.log'): argument
20 with Log.open(name) as f:
23 def search_in_log(self, pattern, name='unit.log'): argument
24 with Log.open(name) as f:
27 def wait_for_record(self, pattern, name='unit.log', wait=150): argument
28 with Log.open(name) as f:
/unit/src/java/nginx/unit/websocket/
H A DWsExtensionParameter.java23 private final String name; field in WsExtensionParameter
26 WsExtensionParameter(String name, String value) { in WsExtensionParameter() argument
27 this.name = name; in WsExtensionParameter()
33 return name; in getName()
H A DWsExtension.java26 private final String name; field in WsExtension
29 WsExtension(String name) { in WsExtension() argument
30 this.name = name; in WsExtension()
39 return name; in getName()
/unit/auto/
H A Dshmem23 static char name[] = \"/unit.configure\";
25 shm_unlink(name);
27 int fd = shm_open(name, O_CREAT | O_EXCL | O_RDWR,
32 ret = (access(name, F_OK) == 0);
33 shm_unlink(name);
66 static char name[] = \"/tmp/unit.configure\";
68 shm_unlink(name);
70 int fd = shm_open(name, O_CREAT | O_EXCL | O_RDWR,
75 shm_unlink(name);
123 static char name[] = \"/unit.configure\";
[all …]
/unit/src/java/
H A Dnxt_jni_Response.c41 jlong req_info_ptr, jarray name);
47 jlong req_info_ptr, jarray name);
68 jlong req_info_ptr, jarray name);
71 const char *name, jint name_len);
262 jarray name, jarray value) in nxt_java_Response_addHeader() argument
361 jarray name, jint value) in nxt_java_Response_addIntHeader() argument
403 nxt_unit_sptr_set(&f->name, p); in nxt_java_add_int_header()
404 memcpy(p, name, name_len); in nxt_java_add_int_header()
461 jarray name) in nxt_java_Response_getHeader() argument
527 jlong req_info_ptr, jarray name) in nxt_java_Response_getHeaders() argument
[all …]
H A Dnxt_jni_HeaderNamesEnumeration.c116 char *name, tmp; in nxt_java_HeaderNamesEnumeration_nextElement() local
139 name = nxt_unit_sptr_get(&f->name); in nxt_java_HeaderNamesEnumeration_nextElement()
140 tmp = name[f->name_length]; in nxt_java_HeaderNamesEnumeration_nextElement()
143 name[f->name_length] = '\0'; in nxt_java_HeaderNamesEnumeration_nextElement()
146 res = (*env)->NewStringUTF(env, name); in nxt_java_HeaderNamesEnumeration_nextElement()
149 name[f->name_length] = tmp; in nxt_java_HeaderNamesEnumeration_nextElement()
/unit/pkg/docker/
H A Ddocker-entrypoint.sh35 for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -name "*.pem"); do
41 for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -name "*.json"); do
47 for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -name "*.sh"); do
53 …in $(/usr/bin/find /docker-entrypoint.d/ -type f -not -name "*.sh" -not -name "*.json" -not -name

1234567