| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61180 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
tree with C::Scan)
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61179 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
(testfile.c:74: warning: missing braces around initializer for `vfi[0]')
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61178 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61177 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
function for consistency [required a small, slightly ugly hack.]
- reverted the protection change from earlier today. Apache no longer
requests protections (unless they truly need it, say in mod_dav_fs),
and no longer assumes that the protection member reflects existance.
- Added the name member to apr_stat, such that if APR_FINFO_NAME is
requested from apr_stat/lstat, the name in true case is returned.
This patch prepares for canonical optmization of Apache. [The code
chooses to FindFirstFile instead of GetFileAttributesEx iff that
field is required.]
- Remaining needs; return name from apr_getfileinfo if it is reasonable,
return device/inode/nlink from stat/dir_read if reasonable.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61176 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61175 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
values from
the file. Modify apr_stat() under windows to accomodate apr_stat( APR_FINFO_MIN)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61174 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
(like those in apr_user.h).
Submitted by: Brian Havard
Reviewed by: Jeff Trawick
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61173 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
where we didn't think bzero() was implemented;
it turns out that on SVR4 it is implemented but we spit out
the macro anyway and clashed with a system header file
As APR doesn't need to guarantee the existence of bzero(),
the macro is gone.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61172 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61171 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Some of the code improvements were suggested by Carlos Hasan
<chasan@acm.org>.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61170 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61169 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
exports.c now compiles on Unix, as it no longer tries to reference
the macros apr_compare_users() or apr_compare_groups()
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61168 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
file [absurd? yes.] This patch eliminates emits for Win32, shouldn't
harm other platforms, and optimizes structure alignment in any case.
My first reaction was to simply call it an int, feel free to offer up
that change if you agree.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61167 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
and implement protections. The only bit missing, according to testfile.c
are the dir_read/stat inode/dev/nlink fields [these are in getfileinfo]
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61166 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61165 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Return the expected result. Also noted the headers/os2errno changes
from early this morning.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61164 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
save debugging agrivation. Shout if I broke it. Win32 users should
find the aprtest.dsw DevStudio workspace a lovely little place to get
work done. [No help from MS - notice the .pl Makefile.in rewriter :-]
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61163 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
implementation of apr_compare_users/groups - feel free to add saftey.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61162 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61161 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61160 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61159 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61158 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
projects.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61157 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
but apr_errno.h is public. It also called in <os.h> with possibly
inappropriate headers, and if os2.h follows any other header's usual
conventions, calling it the second time for more declarations can be
dicey. Relocated <os2.h> into apr.h.in (accessable to all, since it's
later leveraged by most), which simplifies a bunch of code, and relocate
all of the os2errno values into apr_errno.h for APR_STATUS_IS_FOO tests.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61156 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61155 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
from OtherBill. Thanks :)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61154 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
built.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61153 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
have been obvious if dependencies were in the Makefile.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61152 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61151 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
since they serve no useful purpose.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61150 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
the second argument of iconv (the Linux man pages show an incorrect
prototype -- the header files and single Unix spec say that there
is no const).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61149 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61148 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61147 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
native fd type is an unsigned long.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61146 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61145 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Next patch will reintroduce the stat()-by-open() - but only after
we optimize it to do so when -required- (for inode, dev, or nlink).
But not tonight.
Adds User and Group results as PSID data. This is only meaningful
through the apr/user package, which right now only returns names.
apr/user still needs (minimally) a compare function.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61144 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61143 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61142 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61141 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61140 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61139 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
moment.
Note: I have no clue if getgrgid_r is implemented by anyone anywhere,
it was a best guess at a threadsafe flavor.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61138 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61137 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
HAVE_GETPWNAM_R is likely the wrong test for HAVE_GETPWUID_R, but I have
no clue if that featuretest is already compiled. Unix folk, please
adjust accordingly.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61136 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it still expects APR_SUCCESS responses to an APR_FINFO_NORM apr_stat.
Most of those are gone, those that remain are hiding in the modules.
Radically refactored apr_stat/lstat/getfileinfo/dir_read for Win32
to assure we are retrieving what we expect to retrieve, and reporting
the correct result (APR_SUCCESS or APR_INCOMPLETE). The potential
for a bit more optimization still remains.
While we have the future opportunity to cache the apr_stat'ed file
handle for a very fast open (dup handle) on Win32, patched to close
that file after a stat always. Needs a new semantic before we leave
handles dangling when the user intends to rm.
Correct Win32 apr_stat/lstat/getfileinfo/dir_read to all zero out
the finfo buffer on success (or incomplete success).
Fix Win32/Unix apr_lstat to throw the .valid bit APR_FINFO_LINK to
indicate we attempted to open the link. Only the .filetype APR_LNK
reflects if the file found was, in fact, a link.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61135 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
on stdout.
Submitted by: cmpilato@collab.net
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61134 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
info->type & APR_FINFO_LINK - ok, we looked for a link
info->filetype == APR_LNK - yup, we got a link
This is likely why unix users were reporting 'unexpected'
APR_INCOMPLETE return values.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61133 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61132 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NULL. using an existing file doesn't normally work: where would you get a
blank file to shove an FD into? expecting the user to assign to NULL is
error-prone (mod_isapi didn't).
*) always create and return a new file from apr_put_os_file()
*) reimplement apr_open_stderr() in terms of apr_put_os_file()
[ except for win32... some issues there ]
*) remove some (obsolete) inits to NULL
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61131 13f79535-47bb-0310-9956-ffa450edef68
|