Searched refs:file (Results 1 - 25 of 82) sorted by relevance

1234

/tldk/app/nginx/src/os/win32/
H A Dngx_stat.c12 int ngx_file_type(char *file, ngx_file_info_t *sb) argument
14 sb->dwFileAttributes = GetFileAttributes(file);
24 int ngx_stat(char *file, ngx_stat_t *sb)
26 *sb = GetFileAttributes(file);
H A Dngx_files.c62 ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) argument
76 if (ReadFile(file->fd, buf, size, &n, povlp) == 0) {
83 ngx_log_error(NGX_LOG_ERR, file->log, err,
84 "ReadFile() \"%s\" failed", file->name.data);
88 file->offset += n;
95 ngx_write_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) argument
108 if (WriteFile(file->fd, buf, size, &n, povlp) == 0) {
109 ngx_log_error(NGX_LOG_ERR, file->log, ngx_errno,
110 "WriteFile() \"%s\" failed", file->name.data);
115 ngx_log_error(NGX_LOG_CRIT, file
128 ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *cl, off_t offset, ngx_pool_t *pool) argument
261 ngx_file_info(u_char *file, ngx_file_info_t *sb) argument
[all...]
/tldk/app/nginx/src/core/
H A Dngx_open_file_cache.c14 * open file cache caches
15 * open file handles with stat() info;
41 ngx_cached_open_file_t *file, ngx_open_file_info_t *of, ngx_log_t *log);
44 ngx_cached_open_file_t *file, ngx_uint_t min_uses, ngx_log_t *log);
45 static void ngx_open_file_del_event(ngx_cached_open_file_t *file);
94 ngx_cached_open_file_t *file; local
97 "open file cache cleanup");
107 file = ngx_queue_data(q, ngx_cached_open_file_t, queue);
111 ngx_rbtree_delete(&cache->rbtree, &file->node);
116 "delete cached open file
152 ngx_cached_open_file_t *file; local
954 ngx_open_file_add_event(ngx_open_file_cache_t *cache, ngx_cached_open_file_t *file, ngx_open_file_info_t *of, ngx_log_t *log) argument
1032 ngx_close_cached_file(ngx_open_file_cache_t *cache, ngx_cached_open_file_t *file, ngx_uint_t min_uses, ngx_log_t *log) argument
1078 ngx_open_file_del_event(ngx_cached_open_file_t *file) argument
1100 ngx_cached_open_file_t *file; local
1150 ngx_cached_open_file_t *file, *file_temp; local
1192 ngx_cached_open_file_t *file; local
1229 ngx_cached_open_file_t *file; local
[all...]
H A Dngx_cycle.c16 static ngx_int_t ngx_test_lockfile(u_char *file, ngx_log_t *log);
51 ngx_open_file_t *file; local
282 ngx_log_stderr(0, "the configuration file %s syntax is ok",
320 * we do not create the pid file in the first ngx_init_cycle() call
329 /* new pid file name */
357 file = part->elts;
366 file = part->elts;
370 if (file[i].name.len == 0) {
374 file[i].fd = ngx_open_file(file[
871 u_char *file; local
938 ngx_file_t file; local
1000 ngx_file_t file; local
1050 ngx_test_lockfile(u_char *file, ngx_log_t *log) argument
1086 ngx_open_file_t *file; local
[all...]
H A Dngx_file.c113 if (tf->file.fd == NGX_INVALID_FILE) {
114 rc = ngx_create_temp_file(&tf->file, tf->path, tf->pool,
122 ngx_log_error(tf->log_level, tf->file.log, 0, "%s %V",
123 tf->warn, &tf->file.name);
130 return ngx_thread_write_chain_to_file(&tf->file, chain, tf->offset,
136 return ngx_write_chain_to_file(&tf->file, chain, tf->offset, tf->pool);
141 ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path, ngx_pool_t *pool, argument
153 if (file->name.len) {
154 name = file->name;
164 file
241 ngx_create_hashed_filename(ngx_path_t *path, u_char *file, size_t len) argument
266 ngx_create_path(ngx_file_t *file, ngx_path_t *path) argument
952 ngx_str_t file, buf; local
[all...]
H A Dngx_output_chain.c34 ngx_file_t *file);
118 ctx->in->buf->file,
238 buf->file->thread_handler = ctx->thread_handler;
239 buf->file->thread_ctx = ctx->filter_ctx;
243 if (buf->in_file && buf->file->directio) {
268 (void) ngx_output_chain_aio_setup(ctx, buf->file);
287 ngx_output_chain_aio_setup(ngx_output_chain_ctx_t *ctx, ngx_file_t *file) argument
291 if (file->aio == NULL && ngx_file_aio_init(file, ctx->pool) != NGX_OK) {
295 aio = file
[all...]
H A Dngx_file.h28 ngx_file_t *file);
72 ngx_file_t file; member in struct:__anon18
139 ngx_int_t ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path,
142 void ngx_create_hashed_filename(ngx_path_t *path, u_char *file, size_t len);
143 ngx_int_t ngx_create_path(ngx_file_t *file, ngx_path_t *path);
H A Dngx_conf_file.c86 conf_file.file.fd = NGX_INVALID_FILE;
87 conf_file.file.name.data = NULL;
130 size = ngx_file_size(&cf->conf_file->file.info);
178 /* open configuration file */
192 if (ngx_fd_info(fd, &cf->conf_file->file.info) == NGX_FILE_ERROR) {
209 cf->conf_file->file.fd = fd;
210 cf->conf_file->file.name.len = filename->len;
211 cf->conf_file->file.name.data = filename->data;
212 cf->conf_file->file.offset = 0;
213 cf->conf_file->file
818 ngx_str_t *value, file, name; local
896 ngx_open_file_t *file; local
959 ngx_open_file_t *file; local
[all...]
H A Dngx_buf.h29 ngx_file_t *file; member in struct:ngx_buf_s
76 ngx_file_t *file);
94 ssize_t (*aio_preload)(ngx_buf_t *file);
100 ngx_file_t *file);
/tldk/app/nginx/src/os/unix/
H A Dngx_file_aio_read.c14 * FreeBSD file AIO features and quirks:
27 * aio_cancel() cannot cancel file AIO: it returns AIO_NOTCANCELED always.
34 static ssize_t ngx_file_aio_result(ngx_file_t *file, ngx_event_aio_t *aio,
40 ngx_file_aio_init(ngx_file_t *file, ngx_pool_t *pool) argument
49 aio->file = file;
50 aio->fd = file->fd;
53 aio->event.log = file->log;
55 file->aio = aio;
62 ngx_file_aio_read(ngx_file_t *file, u_cha argument
149 ngx_file_aio_result(ngx_file_t *file, ngx_event_aio_t *aio, ngx_event_t *ev) argument
[all...]
H A Dngx_linux_aio_read.c28 ngx_file_aio_init(ngx_file_t *file, ngx_pool_t *pool) argument
37 aio->file = file;
38 aio->fd = file->fd;
41 aio->event.log = file->log;
43 file->aio = aio;
50 ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset, argument
59 return ngx_read_file(file, buf, size, offset);
62 if (file->aio == NULL && ngx_file_aio_init(file, poo
[all...]
H A Dngx_files.c19 static ssize_t ngx_writev_file(ngx_file_t *file, ngx_iovec_t *vec,
31 ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) argument
35 ngx_log_debug4(NGX_LOG_DEBUG_CORE, file->log, 0,
36 "read: %d, %p, %uz, %O", file->fd, buf, size, offset);
40 n = pread(file->fd, buf, size, offset);
43 ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno,
44 "pread() \"%s\" failed", file->name.data);
50 if (file->sys_offset != offset) {
51 if (lseek(file->fd, offset, SEEK_SET) == -1) {
52 ngx_log_error(NGX_LOG_CRIT, file
95 ngx_thread_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset, ngx_pool_t *pool) argument
193 ngx_write_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset) argument
293 ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *cl, off_t offset, ngx_pool_t *pool) argument
392 ngx_writev_file(ngx_file_t *file, ngx_iovec_t *vec, off_t offset) argument
477 ngx_thread_write_chain_to_file(ngx_file_t *file, ngx_chain_t *cl, off_t offset, ngx_pool_t *pool) argument
[all...]
H A Dngx_linux_sendfile_chain.c13 static ssize_t ngx_linux_sendfile(ngx_connection_t *c, ngx_buf_t *file,
23 static ssize_t ngx_linux_sendfile_thread(ngx_connection_t *c, ngx_buf_t *file,
33 * parameter is int32_t, and use sendfile() for the file parts below 2G only,
54 ngx_buf_t *file; local
92 /* set TCP_CORK if there is a header before a file */
157 /* get the file buf */
160 file = cl->buf;
162 /* coalesce the neighbouring file bufs */
174 n = ngx_linux_sendfile(c, file, file_size);
230 ngx_linux_sendfile(ngx_connection_t *c, ngx_buf_t *file, size_ argument
305 ngx_buf_t *file; member in struct:__anon383
315 ngx_linux_sendfile_thread(ngx_connection_t *c, ngx_buf_t *file, size_t size) argument
410 ngx_buf_t *file; local
[all...]
H A Dngx_freebsd_sendfile_chain.c15 * it cannot send a header with a part of the file in one packet until
17 * may send the partially filled packets, i.e. the 8 file pages may be sent
23 * the file in one packet, but also sends the file pages in the full packets.
41 ngx_buf_t *file; local
82 file = NULL;
109 file = cl->buf;
111 /* coalesce the neighbouring file bufs */
183 aio = file->file
[all...]
H A Dngx_darwin_sendfile_chain.c19 * with both a header and a trailer, then sendfile() ignores a file part
24 * it may send the header or the trailer and a part of the file
39 ngx_buf_t *file; local
93 file = cl->buf;
95 /* coalesce the neighbouring file bufs */
133 file->file_pos, sent, header.size);
135 rc = sendfile(file->file->fd, c->fd, file->file_pos,
163 * has truncated the file, s
[all...]
H A Dngx_solaris_sendfilev_chain.c51 ngx_buf_t *file; local
81 file = NULL;
141 if (fd == cl->buf->file->fd && fprev == cl->buf->file_pos) {
151 fd = cl->buf->file->fd;
158 file = cl->buf;
190 * set to EINVAL if svf_len is greater than the file size,
194 if (file) {
197 file->file->name.data, file
[all...]
H A Dngx_files.h122 ssize_t ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset);
129 ssize_t ngx_write_file(ngx_file_t *file, u_char *buf, size_t size,
132 ssize_t ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *ce,
173 #define ngx_file_info(file, sb) stat((const char *) file, sb)
179 #define ngx_link_info(file, sb) lstat((const char *) file, sb)
263 * some file systems (e.g. XFS on Linux and CD9660 on FreeBSD)
379 ngx_int_t ngx_file_aio_init(ngx_file_t *file, ngx_pool_t *pool);
380 ssize_t ngx_file_aio_read(ngx_file_t *file, u_cha
[all...]
/tldk/app/nginx/contrib/vim/indent/
H A Dnginx.vim8 " cindent actually works for nginx' simple file structure
/tldk/app/nginx/src/http/modules/
H A Dngx_http_mp4_module.c120 ngx_file_t file; member in struct:__anon180
571 mp4->file.fd = of.fd;
572 mp4->file.name = path;
573 mp4->file.log = r->connection->log;
623 mp4->file.directio = 1;
644 b->file = ngx_pcalloc(r->pool, sizeof(ngx_file_t));
645 if (b->file == NULL) {
667 b->file->fd = of.fd;
668 b->file->name = path;
669 b->file
[all...]
H A Dngx_http_auth_basic_module.c33 static void ngx_http_auth_basic_close(ngx_file_t *file);
105 ngx_file_t file; local
174 ngx_memzero(&file, sizeof(ngx_file_t));
176 file.fd = fd;
177 file.name = user_file;
178 file.log = r->connection->log;
189 n = ngx_read_file(&file, buf + left, NGX_HTTP_AUTH_BUF_SIZE - left,
193 ngx_http_auth_basic_close(&file);
235 ngx_http_auth_basic_close(&file);
268 ngx_http_auth_basic_close(&file);
380 ngx_http_auth_basic_close(ngx_file_t *file) argument
[all...]
H A Dngx_http_ssl_module.h58 u_char *file; member in struct:__anon231
/tldk/app/nginx/src/http/
H A Dngx_http_copy_filter_module.c20 ngx_file_t *file);
23 static ssize_t ngx_http_copy_aio_sendfile_preload(ngx_buf_t *file);
29 ngx_file_t *file);
171 ngx_http_copy_aio_handler(ngx_output_chain_ctx_t *ctx, ngx_file_t *file) argument
177 file->aio->data = r;
178 file->aio->handler = ngx_http_copy_aio_event_handler;
214 ngx_http_copy_aio_sendfile_preload(ngx_buf_t *file) argument
222 n = ngx_file_aio_read(file->file, buf, 1, file
263 ngx_http_copy_thread_handler(ngx_thread_task_t *task, ngx_file_t *file) argument
[all...]
H A Dngx_http_file_cache.c28 ngx_file_t *file);
189 c->file.log = r->connection->log;
190 c->file.fd = NGX_INVALID_FILE;
299 "http file cache exists: %i e:%d", rc, c->exists);
356 if (ngx_open_cached_file(clcf->open_file_cache, &c->file.name, &of, r->pool)
370 ngx_open_file_n " \"%s\" failed", c->file.name.data);
376 "http file cache fd: %d", of.fd);
378 c->file.fd = of.fd;
379 c->file.log = r->connection->log;
429 "http file cach
751 ngx_http_cache_thread_handler(ngx_thread_task_t *task, ngx_file_t *file) argument
1434 ngx_file_t file; local
[all...]
/tldk/mk/
H A Dtle.cpp-pre.mk3 # you may not use this file except in compliance with the License.
14 # convert source to obj file
18 # add a dot in front of the file name
51 # command to compile a .cpp file to generate an object
72 # Compile .cpp file if needed
73 # Note: dep_$$@ is from the .d file and DEP_$$@ can be specified by
/tldk/app/nginx/src/mail/
H A Dngx_mail_ssl_module.h56 u_char *file; member in struct:__anon372

Completed in 17 milliseconds

1234