summaryrefslogtreecommitdiffhomepage
path: root/src/os/unix/ngx_files.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2012-03-27Fixed unconditional MAX_PATH usage (ticket #22).Maxim Dounin1-1/+12
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.
2012-02-28Workaround for fs_size on ZFS (ticket #46).Maxim Dounin1-2/+3
ZFS reports incorrect st_blocks until file settles on disk, and this may take a while (i.e. just after creation of a file the st_blocks value is incorrect). As a workaround we now use st_blocks only if st_blocks * 512 > st_size, this should fix ZFS problems while still preserving accuracy for other filesystems. The problem had appeared in r3900 (1.0.1).
2012-02-21Disable symlinks: use O_SEARCH|O_DIRECTORY to open path components.Valentin Bartenev1-0/+17
2012-02-20Disable symlinks: added explicit cast of AT_FDCWD (ticket #111).Maxim Dounin1-0/+2
Solaris has AT_FDCWD defined to unsigned value, and comparison of a file descriptor with it causes warnings in modern versions of gcc. Explicitly cast AT_FDCWD to ngx_fd_t to resolve these warnings.
2012-02-13Added openat()/fstatat().Andrey Belov1-0/+19
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2011-11-14Introduction of simple ngx_write_stderr() instead of ngx_log_stderr()Igor Sysoev1-0/+1
for output of ./configure options, etc., since ngx_log_stderr() output length is limited by 2048 characters defined as NGX_MAX_ERROR_STR.
2011-07-24elimination of reading cache files by cache loaderIgor Sysoev1-0/+1
2011-04-22Use more precise stat.st_blocks to account cache size on UnixIgor Sysoev1-0/+1
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.
2010-06-29ngx_create_file_mapping()Igor Sysoev1-0/+13
2010-04-22use lstat() for WebDAV DELETE, COPY, and MOVE to handle symlinksIgor Sysoev1-0/+3
2010-04-21use non-blocking open() not to hang on FIFO files, etc.Igor Sysoev1-0/+1
2009-11-15fix posix_fadvise() error handlingIgor Sysoev1-1/+1
2009-11-05export aio presence knowledge to prevent using "aio sendfile",Igor Sysoev1-0/+2
if aio does not present
2009-11-03fix "if (!-x ...)"Igor Sysoev1-1/+1
2009-10-14*) reset cached dirent.d_type after stat()Igor Sysoev1-14/+13
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
2009-09-30read_aheadIgor Sysoev1-0/+22
2009-08-28FreeBSD and Linux AIO supportIgor Sysoev1-0/+8
2009-06-11style fixIgor Sysoev1-6/+6
2009-04-28introduce ngx_write_console() to support OEM code pagesIgor Sysoev1-0/+4
2009-04-27-p and --prefix=Igor Sysoev1-1/+1
2009-04-23ngx_path_separator()Igor Sysoev1-0/+2
2009-04-23issue start up errors and warning on both stderr and error_logIgor Sysoev1-1/+5
2009-04-08adopt NGX_FILE_TRUNCATE for win32Igor Sysoev1-1/+1
2009-03-31Win32 appends synchronized if only FILE_APPEND_DATA and SYNCHRONIZE are setIgor Sysoev1-1/+1
without any other flags. On the other hand, Unix requires at least the write flag to be set together with O_APPEND.
2009-03-30ngx_fs_bsize()Igor Sysoev1-0/+3
2009-03-23a prelimiary proxy cache supportIgor Sysoev1-0/+1
2009-03-06XFS on Linux does not set dirent.d_type,Igor Sysoev1-0/+15
therefore fallback to stat() if dirent.d_type is not set, this fixes slash after directory name in ngx_http_autoindex_module; the issue has been introduced in r2235
2008-11-11compatibility with glibc 2.3, warn_unused_result attribute for write()Igor Sysoev1-1/+11
2008-09-27$realpath_rootIgor Sysoev1-0/+2
2008-09-12disable directio for unaligned reads in LinuxIgor Sysoev1-8/+11
2008-09-05*) autoconfigure struct dirent capabilitiesIgor Sysoev1-12/+39
*) move src/os/.../ngx_types.h's content into src/os/.../ngx_files.h and delete src/os/.../ngx_types.h
2008-09-05style fixIgor Sysoev1-5/+5
2008-08-15fix log messageIgor Sysoev1-0/+4
2008-08-04Solaris directio()Igor Sysoev1-0/+5
2008-07-30directioIgor Sysoev1-0/+18
2008-07-29case insensitive file system location support provided by locale onlyIgor Sysoev1-0/+12
2008-04-29ignore glob no match errorIgor Sysoev1-4/+5
2008-04-24Cygwin O_BINARY modeIgor Sysoev1-0/+10
2007-01-29use ngx_dir_access() to enable search bits for directoryIgor Sysoev1-0/+3
2007-01-18ngx_read_fd()Igor Sysoev1-0/+5
2007-01-18NGX_FILE_WRONLYIgor Sysoev1-0/+1
2007-01-18ngx_file_access() and ngx_de_access()Igor Sysoev1-0/+2
2007-01-18ngx_open_file(name, access, create) > ngx_open_file(name, mode, create, access)Igor Sysoev1-2/+4
2007-01-18rename mode to accessIgor Sysoev1-1/+1
2006-10-02fix building on Linux and SolarisIgor Sysoev1-1/+1
2006-10-02glob support in includeIgor Sysoev1-0/+14
2006-09-14backout O_NOATIME support, it requires CAP_FOWNER capabilityIgor Sysoev1-5/+0
2006-09-01Linux O_NOATIME supportIgor Sysoev1-0/+5
2006-08-30nginx-0.4.0-RELEASE importrelease-0.4.0Igor Sysoev1-2/+6
*) Change in internal API: the HTTP modules initialization was moved from the init module phase to the HTTP postconfiguration phase. *) Change: now the request body is not read beforehand for the ngx_http_perl_module: it's required to start the reading using the $r->has_request_body method. *) Feature: the ngx_http_perl_module supports the DECLINED return code. *) Feature: the ngx_http_dav_module supports the incoming "Date" header line for the PUT method. *) Feature: the "ssi" directive is available inside the "if" block. *) Bugfix: a segmentation fault occurred if there was an "index" directive with variables and the first index name was without variables; the bug had appeared in 0.1.29.