aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_files.h
Commit message (Collapse)AuthorAge
* Win32: fixed unique file index calculations.Piotr Sikora2024-02-26
| | | | | | The old code was breaking strict aliasing rules. Signed-off-by: Piotr Sikora <piotr@aviatrix.com>
* Win32: non-ASCII names support in ngx_open_tempfile().Maxim Dounin2023-02-23
| | | | | This makes it possible to use temporary directories with non-ASCII characters, either explicitly or via a prefix with non-ASCII characters in it.
* Win32: non-ASCII names support in ngx_rename_file().Maxim Dounin2023-02-23
| | | | | This makes it possible to upload files with non-ASCII characters when using the dav module (ticket #1433).
* Win32: non-ASCII names support in ngx_delete_file().Maxim Dounin2023-02-23
| | | | | This makes it possible to delete files with non-ASCII characters when using the dav module (ticket #1433).
* Win32: non-ASCII directory names support in ngx_delete_dir().Maxim Dounin2023-02-23
| | | | | This makes it possible to delete directories with non-ASCII characters when using the dav module (ticket #1433).
* Win32: non-ASCII directory names support in ngx_create_dir().Maxim Dounin2023-02-23
| | | | | | | | | | | | This makes it possible to create directories under prefix with non-ASCII characters, as well as makes it possible to create directories with non-ASCII characters when using the dav module (ticket #1433). To ensure that the dav module operations are restricted similarly to other file operations (in particular, short names are not allowed), the ngx_win32_check_filename() function is used. It improved to support checking of just dirname, and now can be used to check paths when creating files or directories.
* Win32: non-ASCII directory names support in ngx_getcwd().Maxim Dounin2023-02-23
| | | | | This makes it possible to start nginx without a prefix explicitly set in a directory with non-ASCII characters in it.
* Win32: non-ASCII names support in "include" with wildcards.Maxim Dounin2023-02-23
| | | | | Notably, ngx_open_glob() now supports opening directories with non-ASCII characters, and pathnames returned by ngx_read_glob() are converted to UTF-8.
* Win32: non-ASCII names support in autoindex (ticket #458).Maxim Dounin2023-02-23
| | | | | | Notably, ngx_open_dir() now supports opening directories with non-ASCII characters, and directory entries returned by ngx_read_dir() are properly converted to UTF-8.
* Cache: introduced min_free cache clearing.Maxim Dounin2020-06-22
| | | | | | | | | | | Clearing cache based on free space left on a file system is expected to allow better disk utilization in some cases, notably when disk space might be also used for something other than nginx cache (including nginx own temporary files) and while loading cache (when cache size might be inaccurate for a while, effectively disabling max_size cache clearing). Based on a patch by Adam Bambuch.
* Win32: removed NGX_DIR_MASK concept.Maxim Dounin2018-12-24
| | | | | | | | | | | | Previous interface of ngx_open_dir() assumed that passed directory name has a room for NGX_DIR_MASK at the end (NGX_DIR_MASK_LEN bytes). While all direct users of ngx_dir_open() followed this interface, this also implied similar requirements for indirect uses - in particular, via ngx_walk_tree(). Currently none of ngx_walk_tree() uses provides appropriate space, and fixing this does not look like a right way to go. Instead, ngx_dir_open() interface was changed to not require any additional space and use appropriate allocations instead.
* Core: added support for writing to stdout.Vladimir Homutov2015-06-16
|
* Win32: ngx_open_dir() and ngx_close_dir() fixes.Maxim Dounin2014-07-05
| | | | | | | The ngx_open_dir() function changed to restore name passed to it. This fixes removing destination directory in dav module, as caught by dav.t. The ngx_close_dir() function introduced to properly convert errors, as FindClose() returns 0 on error.
* Added ngx_filename_cmp() with "/" sorted to the left.Maxim Dounin2013-09-23
| | | | | | | | | | | | | | | | | | | | | | This patch fixes incorrect handling of auto redirect in configurations like: location /0 { } location /a- { } location /a/ { proxy_pass ... } With previously used sorting, this resulted in the following locations tree (as "-" is less than "/"): "/a-" "/0" "/a/" and a request to "/a" didn't match "/a/" with auto_redirect, as it didn't traverse relevant tree node during lookup (it tested "/a-", then "/0", and then falled back to null location). To preserve locale use for non-ASCII characters on case-insensetive systems, libc's tolower() used.
* Fixed win32 build after realpath changes in r4559.Maxim Dounin2012-03-28
|
* Fixed unconditional MAX_PATH usage (ticket #22).Maxim Dounin2012-03-27
| | | | | | POSIX doesn't require it to be defined, and Debian GNU/Hurd doesn't define it. Note that if there is no MAX_PATH defined we have to use realpath() with NULL argument and free() the result.
* Copyright updated.Maxim Konovalov2012-01-18
|
* Introduction of simple ngx_write_stderr() instead of ngx_log_stderr()Igor Sysoev2011-11-14
| | | | | for output of ./configure options, etc., since ngx_log_stderr() output length is limited by 2048 characters defined as NGX_MAX_ERROR_STR.
* elimination of reading cache files by cache loaderIgor Sysoev2011-07-24
|
* Use more precise stat.st_blocks to account cache size on UnixIgor Sysoev2011-04-22
| | | | | instead of file length rounded to a file system block size. There is no similar way on Windows, so rounding to a cache->bsize is kept.
* ngx_create_file_mapping()Igor Sysoev2010-06-29
|
* use lstat() for WebDAV DELETE, COPY, and MOVE to handle symlinksIgor Sysoev2010-04-22
|
* use non-blocking open() not to hang on FIFO files, etc.Igor Sysoev2010-04-21
|
* fix Win32 error messages when an temporary file replaces an existent file:Igor Sysoev2009-12-15
| | | | | | *) do not rename an already renamed file *) now ngx_win32_rename_file() returns error code *) do not log failure inside ngx_win32_rename_file()
* *) reset cached dirent.d_type after stat()Igor Sysoev2009-10-14
| | | | | | | this fixes slash after link to a directory in ngx_http_autoindex_module; *) use cached dirent.d_type as hint on all systems the issues has been introduced in r2235
* read_aheadIgor Sysoev2009-09-30
|
* use caseless regex locations on caseless filesystems: MacOSX, Win32, CygwinIgor Sysoev2009-07-14
|
* introduce ngx_write_console() to support OEM code pagesIgor Sysoev2009-04-28
|
* -p and --prefix=Igor Sysoev2009-04-27
|
* ngx_path_separator()Igor Sysoev2009-04-23
|
* issue start up errors and warning on both stderr and error_logIgor Sysoev2009-04-23
|
* delete win32 ngx_file_append_mode() as we use reliableIgor Sysoev2009-04-08
| | | | FILE_APPEND_DATA|SYNCHRONIZE flags
* adopt NGX_FILE_TRUNCATE for win32Igor Sysoev2009-04-08
|
* win32 ngx_open_file() supports utf8 names and NGX_FILE_APPENDIgor Sysoev2009-03-30
|
* ngx_fs_bsize()Igor Sysoev2009-03-30
|
* a prelimiary proxy cache supportIgor Sysoev2009-03-23
|
* fix win32 ngx_is_dir(), etcIgor Sysoev2009-01-21
|
* $realpath_rootIgor Sysoev2008-09-27
|
* disable directio for unaligned reads in LinuxIgor Sysoev2008-09-12
|
* *) autoconfigure struct dirent capabilitiesIgor Sysoev2008-09-05
| | | | | *) move src/os/.../ngx_types.h's content into src/os/.../ngx_files.h and delete src/os/.../ngx_types.h
* style fixIgor Sysoev2008-09-05
|
* fix building by msvc8 introduced in r2127Igor Sysoev2008-08-04
|
* fix building by bcc broken in r2130Igor Sysoev2008-08-04
|
* directioIgor Sysoev2008-07-30
|
* case insensitive file system location support provided by locale onlyIgor Sysoev2008-07-29
|
* ignore glob no match errorIgor Sysoev2008-04-29
|
* use malloc() in ngx_win32_rename_file, set crit level instead of errorIgor Sysoev2007-12-07
|
* fix win32 ngx_read_fd() and ngx_write_fd()Igor Sysoev2007-11-11
|
* fix win32 globIgor Sysoev2007-11-11
|
* win32 ngx_is_exec() stubIgor Sysoev2007-08-30
|