Searched refs:fm (Results 1 - 6 of 6) sorted by relevance

/tldk/app/nginx/src/os/win32/
H A Dngx_files.c327 ngx_create_file_mapping(ngx_file_mapping_t *fm) argument
331 fm->fd = ngx_open_file(fm->name, NGX_FILE_RDWR, NGX_FILE_TRUNCATE,
333 if (fm->fd == NGX_INVALID_FILE) {
334 ngx_log_error(NGX_LOG_CRIT, fm->log, ngx_errno,
335 ngx_open_file_n " \"%s\" failed", fm->name);
339 fm->handle = NULL;
341 size.QuadPart = fm->size;
343 if (SetFilePointerEx(fm->fd, size, NULL, FILE_BEGIN) == 0) {
344 ngx_log_error(NGX_LOG_CRIT, fm
397 ngx_close_file_mapping(ngx_file_mapping_t *fm) argument
[all...]
H A Dngx_files.h171 ngx_int_t ngx_create_file_mapping(ngx_file_mapping_t *fm);
172 void ngx_close_file_mapping(ngx_file_mapping_t *fm);
/tldk/app/nginx/src/os/unix/
H A Dngx_files.c619 ngx_create_file_mapping(ngx_file_mapping_t *fm) argument
621 fm->fd = ngx_open_file(fm->name, NGX_FILE_RDWR, NGX_FILE_TRUNCATE,
623 if (fm->fd == NGX_INVALID_FILE) {
624 ngx_log_error(NGX_LOG_CRIT, fm->log, ngx_errno,
625 ngx_open_file_n " \"%s\" failed", fm->name);
629 if (ftruncate(fm->fd, fm->size) == -1) {
630 ngx_log_error(NGX_LOG_CRIT, fm->log, ngx_errno,
631 "ftruncate() \"%s\" failed", fm
656 ngx_close_file_mapping(ngx_file_mapping_t *fm) argument
[all...]
H A Dngx_files.h193 ngx_int_t ngx_create_file_mapping(ngx_file_mapping_t *fm);
194 void ngx_close_file_mapping(ngx_file_mapping_t *fm);
/tldk/app/nginx/src/stream/
H A Dngx_stream_geo_module.c1489 ngx_file_mapping_t fm; local
1494 fm.name = ngx_pnalloc(ctx->temp_pool, ctx->include_name.len + 5);
1495 if (fm.name == NULL) {
1499 ngx_sprintf(fm.name, "%V.bin%Z", &ctx->include_name);
1501 fm.size = ctx->data_size;
1502 fm.log = ctx->pool->log;
1504 ngx_log_error(NGX_LOG_NOTICE, fm.log, 0,
1505 "creating binary geo range base \"%s\"", fm.name);
1507 if (ngx_create_file_mapping(&fm) != NGX_OK) {
1511 p = ngx_cpymem(fm
[all...]
/tldk/app/nginx/src/http/modules/
H A Dngx_http_geo_module.c1561 ngx_file_mapping_t fm; local
1566 fm.name = ngx_pnalloc(ctx->temp_pool, ctx->include_name.len + 5);
1567 if (fm.name == NULL) {
1571 ngx_sprintf(fm.name, "%V.bin%Z", &ctx->include_name);
1573 fm.size = ctx->data_size;
1574 fm.log = ctx->pool->log;
1576 ngx_log_error(NGX_LOG_NOTICE, fm.log, 0,
1577 "creating binary geo range base \"%s\"", fm.name);
1579 if (ngx_create_file_mapping(&fm) != NGX_OK) {
1583 p = ngx_cpymem(fm
[all...]

Completed in 8 milliseconds