Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 58) sorted by relevance

123

/unit/src/
H A Dnxt_file.c21 file->fd = open((char *) file->name, mode, access); in nxt_file_open()
23 file->error = (file->fd == -1) ? nxt_errno : 0; 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()
65 file->error = (file->fd == -1) ? nxt_errno : 0; in nxt_file_openat2()
72 file->fd, file->error); in nxt_file_openat2()
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()
[all …]
H A Dnxt_job_file.c41 jbf->file.fd = NXT_FILE_INVALID; in nxt_job_file_init()
65 nxt_file_t *file; in nxt_job_file_open_and_read() local
70 file = &jbf->file; in nxt_job_file_open_and_read()
75 nxt_file_close(file); in nxt_job_file_open_and_read()
76 file->fd = NXT_FILE_INVALID; in nxt_job_file_open_and_read()
96 if (file->size > 0) { in nxt_job_file_open_and_read()
132 nxt_file_close(file); in nxt_job_file_open_and_read()
143 nxt_file_close(file); in nxt_job_file_open_and_read()
209 nxt_file_t *file; in nxt_job_file_info() local
212 file = &jbf->file; in nxt_job_file_info()
[all …]
H A Dnxt_mem_pool_cleanup.c14 nxt_mem_pool_file_cleanup(nxt_mem_pool_t *mp, nxt_file_t *file) in nxt_mem_pool_file_cleanup() argument
22 mpcl->data = file; in nxt_mem_pool_file_cleanup()
32 nxt_file_t *file; in nxt_mem_pool_file_cleanup_handler() local
34 file = data; in nxt_mem_pool_file_cleanup_handler()
36 if (file->fd != NXT_FILE_INVALID) { in nxt_mem_pool_file_cleanup_handler()
37 nxt_file_close(task, file); in nxt_mem_pool_file_cleanup_handler()
H A Dnxt_file.h102 NXT_EXPORT nxt_int_t nxt_file_open(nxt_task_t *task, nxt_file_t *file,
106 NXT_EXPORT nxt_int_t nxt_file_openat2(nxt_task_t *task, nxt_file_t *file,
154 NXT_EXPORT void nxt_file_close(nxt_task_t *task, nxt_file_t *file);
155 NXT_EXPORT ssize_t nxt_file_write(nxt_file_t *file, const u_char *buf,
157 NXT_EXPORT ssize_t nxt_file_read(nxt_file_t *file, u_char *buf, size_t size,
159 NXT_EXPORT void nxt_file_read_ahead(nxt_file_t *file, nxt_off_t offset,
161 NXT_EXPORT nxt_int_t nxt_file_info(nxt_file_t *file, nxt_file_info_t *fi);
189 NXT_EXPORT nxt_int_t nxt_file_redirect(nxt_file_t *file, nxt_fd_t fd);
190 NXT_EXPORT nxt_int_t nxt_file_stderr(nxt_file_t *file);
H A Dnxt_http_static.c287 nxt_file_t *f, file; in nxt_http_static_send_ready() local
352 file.name = fname; in nxt_http_static_send_ready()
373 file.name = chr->start; in nxt_http_static_send_ready()
383 file.name = (u_char *) "/"; in nxt_http_static_send_ready()
388 file.fd = AT_FDCWD; in nxt_http_static_send_ready()
395 af = file; in nxt_http_static_send_ready()
397 file.name = fname; in nxt_http_static_send_ready()
417 switch (file.error) { in nxt_http_static_send_ready()
480 nxt_file_close(task, &file); in nxt_http_static_send_ready()
484 *f = file; in nxt_http_static_send_ready()
[all …]
H A Dnxt_macosx_sendfile.c106 fb->file->fd, c->socket.fd, fb->file_pos, sent, in nxt_macosx_event_conn_io_sendfile()
109 n = nxt_sys_sendfile(fb->file->fd, c->socket.fd, in nxt_macosx_event_conn_io_sendfile()
130 fb->file->fd, c->socket.fd, fb->file_pos, sent, err, in nxt_macosx_event_conn_io_sendfile()
131 fb->file->name, nhd, ntr); in nxt_macosx_event_conn_io_sendfile()
143 "file \"%FN\" was truncated while sendfile()", fb->file->name); in nxt_macosx_event_conn_io_sendfile()
H A Dnxt_freebsd_sendfile.c96 fb->file->fd, c->socket.fd, fb->file_pos, file_size, in nxt_freebsd_event_conn_io_sendfile()
100 n = nxt_sys_sendfile(fb->file->fd, c->socket.fd, fb->file_pos, in nxt_freebsd_event_conn_io_sendfile()
121 fb->file->fd, c->socket.fd, fb->file_pos, file_size, err, in nxt_freebsd_event_conn_io_sendfile()
122 fb->file->name, nhd, ntr); in nxt_freebsd_event_conn_io_sendfile()
133 "file \"%FN\" was truncated while sendfile()", fb->file->name); in nxt_freebsd_event_conn_io_sendfile()
H A Dnxt_aix_send_file.c65 sfp.file_descriptor = fb->file->fd; in nxt_aix_event_conn_io_send_file()
75 c->socket.fd, fb->file->fd, fb->file_pos, file_size, nhd, ntr); in nxt_aix_event_conn_io_send_file()
106 c->socket.fd, err, fb->file->name, fb->file->fd, fb->file_pos, in nxt_aix_event_conn_io_send_file()
H A Dnxt_runtime.c84 lang->file = NULL; in nxt_runtime_create()
1184 nxt_file_t *file; in nxt_runtime_log_files_init() local
1209 nxt_file_t *file; in nxt_runtime_log_file_add() local
1222 if (file->name != NULL in nxt_runtime_log_file_add()
1225 return file; in nxt_runtime_log_file_add()
1236 file->fd = NXT_FILE_INVALID; in nxt_runtime_log_file_add()
1240 return file; in nxt_runtime_log_file_add()
1248 nxt_file_t *file; in nxt_runtime_log_files_create() local
1365 nxt_file_t file; in nxt_runtime_pid_file_create() local
1370 file.name = pid_file; in nxt_runtime_pid_file_create()
[all …]
H A Dnxt_hpux_sendfile.c97 c->socket.fd, fb->file->fd, fb->file_pos, file_size, in nxt_hpux_event_conn_io_sendfile()
100 n = nxt_sys_sendfile(c->socket.fd, fb->file->fd, fb->file_pos, in nxt_hpux_event_conn_io_sendfile()
121 c->socket.fd, fb->file_pos, file_size, &fb->file->name, in nxt_hpux_event_conn_io_sendfile()
H A Dnxt_mem_pool_cleanup.h12 nxt_file_t *file);
H A Dnxt_file_event.h12 nxt_file_t *file; member
H A Dnxt_linux_sendfile.c99 c->socket.fd, fb->file->fd, fb->file_pos, size); in nxt_linux_event_conn_io_sendfile()
103 n = nxt_sys_sendfile(c->socket.fd, fb->file->fd, &offset, size); in nxt_linux_event_conn_io_sendfile()
123 c->socket.fd, fb->file->fd, fb->file_pos, size, in nxt_linux_event_conn_io_sendfile()
124 err, fb->file->name); in nxt_linux_event_conn_io_sendfile()
H A Dnxt_main_process.c790 nxt_file_t *file, *new_file; in nxt_main_process_sigusr1_handler() local
819 nxt_list_each(file, rt->log_files) { in nxt_main_process_sigusr1_handler()
824 new_file->name = file->name; in nxt_main_process_sigusr1_handler()
1541 nxt_file_t file; in nxt_main_file_store() local
1543 nxt_memzero(&file, sizeof(nxt_file_t)); in nxt_main_file_store()
1545 file.name = (nxt_file_name_t *) name; in nxt_main_file_store()
1555 nxt_file_close(task, &file); in nxt_main_file_store()
1558 (void) nxt_file_delete(file.name); in nxt_main_file_store()
1571 nxt_file_t file; in nxt_main_port_access_log_handler() local
1581 file.name = (nxt_file_name_t *) path; in nxt_main_port_access_log_handler()
[all …]
H A Dnxt_job_cache_file.c19 jbc->file.fd = NXT_FILE_INVALID; in nxt_job_cache_file_create()
H A Dnxt_buf_filter.c241 jbf->file = *f->input->file; in nxt_buf_filter_file_read_start()
293 b->file = f->input->file; in nxt_buf_filter_file_read()
346 jbf->file.name, b->file_pos, b->file_end); in nxt_buf_filter_file_job_completion()
411 b, f->filter_file->job_file.file.name, b->file_pos, b->file_end); in nxt_buf_filter_buf_completion()
H A Dnxt_cert.c821 nxt_file_t file; in nxt_cert_store_load() local
888 nxt_memzero(&file, sizeof(nxt_file_t)); in nxt_cert_store_load()
890 file.name = buf; in nxt_cert_store_load()
901 item->fd = file.fd; in nxt_cert_store_load()
1129 nxt_file_t file; in nxt_cert_store_get_handler() local
1151 nxt_memzero(&file, sizeof(nxt_file_t)); in nxt_cert_store_get_handler()
1153 file.fd = -1; in nxt_cert_store_get_handler()
1166 file.name = nxt_malloc(rt->certs.length + name.length + 1); in nxt_cert_store_get_handler()
1168 if (nxt_slow_path(file.name == NULL)) { in nxt_cert_store_get_handler()
1178 nxt_free(file.name); in nxt_cert_store_get_handler()
[all …]
H A Dnxt_job_file_cache.c13 nxt_file_t file; member
H A Dnxt_application.c29 nxt_str_t file; member
250 module[i].type, &module[i].version, &module[i].file); in nxt_discovery_modules()
259 + module[i].file.length; in nxt_discovery_modules()
292 module[i].type, &module[i].version, &module[i].file); in nxt_discovery_modules()
390 name, &app->type, &version, &module[i].file); in nxt_discovery_module()
408 module->file.length = nxt_strlen(name); in nxt_discovery_module()
410 module->file.start = nxt_mp_alloc(mp, module->file.length); in nxt_discovery_module()
411 if (module->file.start == NULL) { in nxt_discovery_module()
415 nxt_memcpy(module->file.start, name, module->file.length); in nxt_discovery_module()
521 lang->version, lang->file); in nxt_proto_setup()
[all …]
H A Dnxt_job_file.h49 nxt_file_t file; member
/unit/test/ruby/body_file/
H A Dconfig.ru2 file = File.open('file', 'r')
3 ['200', {'Content-Length' => '5'}, file]
/unit/test/python/upload/
H A Dwsgi.py17 file = read(environ)
19 form = cgi.FieldStorage(fp=file, environ=environ, keep_blank_values=True)
22 data = filename.encode() + form['file'].file.read()
/unit/auto/
H A Dsummary19 pid file: .................. "$NXT_PID"
20 log file: .................. "$NXT_LOG"
/unit/auto/os/
H A Dconf30 # "-Wl,-E" exports symbols of executable file.
53 # "-Wl,-E" exports symbols of executable file.
138 # "-Wl,-E" exports symbols of executable file.
160 # "-Wl,-E" exports symbols of executable file.
182 # "-Wl,-E" exports symbols of executable file.
265 # "-Wl,-E" exports symbols of executable file.
/unit/src/java/nginx/unit/websocket/server/
H A DLocalStrings.properties2 # contributor license agreements. See the NOTICE file distributed with
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with

123