summaryrefslogtreecommitdiff
path: root/include/apr_file_info.h
Commit message (Collapse)AuthorAgeFilesLines
* Re-order the fields of 'struct apr_finfo_t' to avoid a hole and some padding.jailletc362023-02-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On x86_64, this shrinks the size of the struct from 120 to 112 bytes. Before the patch, pahole states that: struct apr_finfo_t { apr_pool_t * pool; /* 0 8 */ apr_int32_t valid; /* 8 4 */ apr_fileperms_t protection; /* 12 4 */ apr_filetype_e filetype; /* 16 4 */ apr_uid_t user; /* 20 4 */ apr_gid_t group; /* 24 4 */ /* XXX 4 bytes hole, try to pack */ apr_ino_t inode; /* 32 8 */ apr_dev_t device; /* 40 8 */ apr_int32_t nlink; /* 48 4 */ /* XXX 4 bytes hole, try to pack */ apr_off_t size; /* 56 8 */ /* --- cacheline 1 boundary (64 bytes) --- */ apr_off_t csize; /* 64 8 */ apr_time_t atime; /* 72 8 */ apr_time_t mtime; /* 80 8 */ apr_time_t ctime; /* 88 8 */ const char * fname; /* 96 8 */ const char * name; /* 104 8 */ struct apr_file_t * filehand; /* 112 8 */ /* size: 120, cachelines: 2, members: 17 */ /* sum members: 112, holes: 2, sum holes: 8 */ /* last cacheline: 56 bytes */ }; git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1907750 13f79535-47bb-0310-9956-ffa450edef68
* Remove trailing whitespaces in all *.h.ivan2022-11-191-37/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905407 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1862435, r1862071 per veto from ivanjorton2019-08-281-28/+0
| | | | | | | msgid: <CABw-3YcK0qbeYWDOwE684XtBj3rCT2CuVOBWWqda4gMtRyRJEw@mail.gmail.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1866019 13f79535-47bb-0310-9956-ffa450edef68
* * include/apr_file_info.h: Clarify pool handling for apr_dir_read andjorton2019-07-021-3/+9
| | | | | | | | | | | | | | apr_dir_pread. * file_io/win32/dir.c, file_io/os2/dir.c (apr_dir_read): Duplicate the returned filename so the call has no side-effects on apr_finfo_t structures passed to previous invocations of the function. * test/testdir.c (test_read_side_effects): Add test case for side-effects of apr_dir_read. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1862435 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_dir_pread(), a variant of apr_dir_read() which allows callersjorton2019-06-251-0/+22
| | | | | | | | | | | | | | | | | to read a directory with constant memory consumption: * include/apr_file_info.h: Add warning on memory consumption for apr_dir_read; declare apr_dir_pread. * file_io/unix/dir.c (apr_dir_pread): Rename from apr_dir_read and take pool argument. (apr_dir_read): Reimplement using it. * file_io/win32/dir.c, file_io/os2/dir.c: Likewise, but untested. * test/testdir.c (test_pread) [APR_POOL_DEBUG]: Add test case. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1862071 13f79535-47bb-0310-9956-ffa450edef68
* Slightly improve doxygen generated documentation.jailletc362018-08-261-2/+2
| | | | | | Add some links to function git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1839182 13f79535-47bb-0310-9956-ffa450edef68
* minor API doc improvementstrawick2014-04-151-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1587545 13f79535-47bb-0310-9956-ffa450edef68
* Fix doc errors in APR header files.trawick2013-06-251-3/+3
| | | | | | | | PR: 55133 Submitted by: Mike Rumph <mike.rumph oracle.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1496407 13f79535-47bb-0310-9956-ffa450edef68
* Clarify the return code for apr_dir_read.minfrin2009-09-091-1/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@813081 13f79535-47bb-0310-9956-ffa450edef68
* Define apr_ino_t in such a way that it doesn't change definitionwrowe2007-10-241-6/+0
| | | | | | | | | | based on the library consumer's -D'efines to the filesystem. Submitted by: Lucian Adrian Grijincu <lucian.grijincu gmail.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@587779 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.jorton2006-08-031-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.jorton2006-08-031-6/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* After a bit of discussion on list, it seems this flag's behaviorwrowe2006-03-021-1/+5
| | | | | | should be documented, not changed, until APR 2.0 is released. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@382540 13f79535-47bb-0310-9956-ffa450edef68
* Clean up the documentation surrounding the APR_INCOMPLETE status code,rooneg2005-12-131-2/+12
| | | | | | | | | | | | | | | | * include/apr_file_info.h (apr_stat, apr_dir_read): Note that APR_INCOMPLETE can be returned, and that if it is you can use the finfo->valid bitfield to determine which parts of the finfo are filled in. Also break some overly long lines. * include/apr_errno.h (APR_STATUS_IS_INCOMPLETE): Update docs since this is no longer specific to the xlate code. * CHANGES: Note change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@356615 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.jerenkrantz2005-02-041-1/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* rename the apr_file_permissions defines (APR_UREAD,stas2004-12-101-15/+31
| | | | | | | | APR_FPROT_UWRITE, etc.) to have prefix APR_FPROT_ (keeping the old defines) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@111457 13f79535-47bb-0310-9956-ffa450edef68
* This must hit 1.0 - note the ambiguity of ctime.wrowe2004-08-121-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65302 13f79535-47bb-0310-9956-ffa450edef68
* * include/apr_file_info.h: Move new APR_USETID, APR_GSETID andjorton2004-06-251-3/+3
| | | | | | | | | | APR_WSTICKY constants outside 0xFFF so they are not implied by APR_OS_DEFAULT. Submitted by: Greg Hudson <ghudson MIT.EDU> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65219 13f79535-47bb-0310-9956-ffa450edef68
* * include/apr_file_io.h, include/apr_file_info.h: cont->pooljorton2004-05-171-4/+4
| | | | | | | conversions. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65099 13f79535-47bb-0310-9956-ffa450edef68
* * include/apr_file_info.h, file_io/unix/fileacc.c (apr_unix_mode2perms,jorton2004-04-211-0/+3
| | | | | | | | | apr_unix_perms2mode): Support setuid, setgid and sticky bits. Submitted by: Andr�� Malo <nd@perlig.de> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65074 13f79535-47bb-0310-9956-ffa450edef68
* * include/apr_file_info.h: Remove misleading @remark about dot/dot-dotjorton2004-02-191-1/+1
| | | | | | | | | | entries returned by apr_dir_read(); reported by Philip Martin. * test/testdir.c (test_readdir_onedot, test_readdir_twodot): Remove tests. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64912 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0jerenkrantz2004-02-131-49/+10
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* Unix propagates the fname from the apr_file_t to apr_file_info_twrowe2003-11-191-1/+1
| | | | | | | | on an apr_file_info_get() call. Do the same on Win32, but be warned that this is informative, and is not a canonical representation. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64771 13f79535-47bb-0310-9956-ffa450edef68
* remove these interfaces:trawick2003-09-031-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | apr_compare_groups apr_compare_users apr_current_userid apr_explode_localtime apr_explode_time apr_filename_of_pathname apr_get_groupid apr_get_groupname apr_get_home_directory apr_get_userid apr_get_username apr_group_name_get apr_implode_gmt apr_lstat FNM_NOMATCH FNM_NOESCAPE FNM_PATHNAME FNM_PERIOD FNM_CASE_BLIND change the function args to this interface: apr_mmap_dup this function's args changed in a previous commit, so mention that in CHANGES apr_socket_create git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64607 13f79535-47bb-0310-9956-ffa450edef68
* Rebalance our exposed headers such that everything is nested properlywrowe2003-03-051-37/+15
| | | | | | | | | | | | | | between extern "C" blocks and doxygen blocks, that we never include other headers within our own header's extern "C" block, that we always tag the entire file contents for doxygen (within the APR_HEADER_H only-once block), and generally clean up doxygen so that it is all consistent and generates respectable (although not yet 'great') results. Major TODO after 0.9.2 releases; fill in the apr.h APR_HAVE/APR_HAS and apr_type_t documentation!!! git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64397 13f79535-47bb-0310-9956-ffa450edef68
* Added two new functions, apr_filepath_list_split and apr_filepath_list_merge,brane2003-02-121-0/+31
| | | | | | | | | | for managing search paths. The common implementation is in a new file, file_io/unix/filepath_util.c. Also added tests for these functions a new file in the test suite, testpath.c. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64349 13f79535-47bb-0310-9956-ffa450edef68
* Added a new function, apr_filepath_encoding, to determine the characterbrane2003-01-031-0/+26
| | | | | | | | | encoding used internally by the file_io and file_info functions. In most cases, the encoding is locale-dependent; on Windows, though, it's usually (but not always!) UTF-8. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64260 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.thommay2003-01-011-1/+1
| | | | | | | No functional changes git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Grudgingly accept that folks may want to merge paths containing wildcardwrowe2002-12-281-0/+5
| | | | | | | | | characters... fail similarly to ENOENT/ENOTDIR, where we return the path but emit the error as a precaution. Folks interested in the results of an invalid path merge need to look for those APR_STATUS_IS_xxx() results. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64213 13f79535-47bb-0310-9956-ffa450edef68
* Ryan correctly reminds me I didn't get this straight...wrowe2002-12-171-4/+21
| | | | | | | | | | | Clarify the distinction between APR_NOFILE and APR_UNKFILE. APR_NOFILE is the traditional 'no type known' or 'not a file'. APR_UNKFILE is the 'we have a filetype, and can't represent it!' git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64182 13f79535-47bb-0310-9956-ffa450edef68
* Introduce an APR_UNKFILE distinct from APR_NOFILE (which was misleading).wrowe2002-12-141-1/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64167 13f79535-47bb-0310-9956-ffa450edef68
* Go through doxygen output and remove as many errors and warnings as I could.jerenkrantz2002-11-101-18/+19
| | | | | | | | | | | No code changes. (Note removal of #define duplication in apr_poll.h/apr_network_io.h of the APR_POLL* values. This appears to have been an oversight and is now just in apr_poll.h) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64009 13f79535-47bb-0310-9956-ffa450edef68
* Rename the "cntxt" members of the fileio structures to "pool".striker2002-03-201-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63164 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.fielding2002-03-131-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* Added NetWare to the WIN32 definition of types used in the apr_stat andbnicholes2002-03-051-1/+1
| | | | | | | | other file_io areas. Also removed the #define of sleep since it is now included in LibC git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63084 13f79535-47bb-0310-9956-ffa450edef68
* some more Doxygen goodnessianh2002-02-151-5/+5
| | | | | | | still alot more #defines to go git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62990 13f79535-47bb-0310-9956-ffa450edef68
* document ino_t & dev_t for Doxygenianh2002-02-041-1/+4
| | | | | | | | | | PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62908 13f79535-47bb-0310-9956-ffa450edef68
* I mangled the APR_U* permission bits the other day, when I folded ingstein2002-02-011-4/+4
| | | | | | | | | | | | Philip's patch. This puts them back to their original values (which matches the OS_DEFAULT mask, and does not conflict with the FILE_SOURCE_PERMS flag). Also corrected the change to APR_OS_DEFAULT -- it should not have been changed to 0xFFFF. That fixed the symptom, not the cause. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62897 13f79535-47bb-0310-9956-ffa450edef68
* change APR_OS_DEFAULT to coincide with recent changes to the permissiontrawick2002-02-011-1/+1
| | | | | | | flags git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62893 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_file_copy() and apr_file_append() functions. These are writtengstein2002-02-011-10/+15
| | | | | | | | | | | | | | | | in terms of APR itself, so each platform just uses the one function. A future improvement would use CopyFile(Ex) on Windows and sendfile() on sendfile-capable systems. Also add apr_file_attrs_set() for setting file attributes in a logical fashion, rather than based on (Posix) permission bits. This is not (yet) implemented for Windows, and still needs a way to turn *off* the readonly and executable modes. Submitted by: Philip Martin <philip@codematters.co.uk> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62886 13f79535-47bb-0310-9956-ffa450edef68
* Fix the apr_proc_create for win32. In order to do so, this patchwrowe2001-09-091-2/+5
| | | | | | | | | | | | | | | introduces a flags arg for apr_filepath_get(), like apr_filepath_merge(), that allows the APR_FILEPATH_NATIVE result format. This launches win32 processes with the Unicode semantics (although it runs sbcs apps equally well) and changes the default to 'not detached', in sync with the unix default. Finally, assures apr_filepath_get() uses the '/' semantics on OS2 by default. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62296 13f79535-47bb-0310-9956-ffa450edef68
* Changes to make Doxygen workianh2001-08-181-3/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62196 13f79535-47bb-0310-9956-ffa450edef68
* fix some homophonic issues in comments, as well as sometrawick2001-08-151-1/+1
| | | | | | | | | | mispelings found near "its" or "it's" (helping our 4th grader with homework, couldn't help but grep) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62170 13f79535-47bb-0310-9956-ffa450edef68
* Begin to move the APR documentation to Doxygen.rbb2001-08-111-47/+70
| | | | | | | Submitted by: Ian Holsman <ianh@cnet.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62141 13f79535-47bb-0310-9956-ffa450edef68
* fix some apr_filepath_root() doctrawick2001-07-031-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61863 13f79535-47bb-0310-9956-ffa450edef68
* Add the flags argument to apr_filepath_root, to allow finer control ofwrowe2001-06-271-7/+17
| | | | | | | | canonicalization and os-native formatting. Renamed a bunch of local functions in the win32 implementation so it's clear they are not external. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61805 13f79535-47bb-0310-9956-ffa450edef68
* (apr_finfo_t): revert comment. my bad, I misunderstood the 'valid' field.sussman2001-05-231-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61676 13f79535-47bb-0310-9956-ffa450edef68
* (apr_finfo_t): note that this field doesn't work.sussman2001-05-231-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61675 13f79535-47bb-0310-9956-ffa450edef68
* APR_FILEPATH_CANONICAL is senseless, so it's gone.wrowe2001-04-101-3/+3
| | | | | | | OTOH, APR_FILEPATH_NATIVE does make sense, so it's added (noop on unix). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61494 13f79535-47bb-0310-9956-ffa450edef68
* First draft implementation of unix apr_filepath_ get, set, merge, andwrowe2001-03-311-4/+41
| | | | | | | parse_root. [William Rowe] git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61403 13f79535-47bb-0310-9956-ffa450edef68