summaryrefslogtreecommitdiff
path: root/user
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces in *.c.Ivan Zhakov2022-11-205-25/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
* Stage 1 in cleaning win95 code ... cleanup utilsMladen Turk2021-12-021-51/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1895509 13f79535-47bb-0310-9956-ffa450edef68
* Stage 3 in dismantling _WIN32_WCE ... cleanup codeMladen Turk2021-12-022-32/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1895508 13f79535-47bb-0310-9956-ffa450edef68
* Fix handle leak in the Win32 apr_uid_current implementation.Ivan Zhakov2019-05-261-8/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1860057 13f79535-47bb-0310-9956-ffa450edef68
* Use 'apr_pstrmemdup' instead of 'apr_pstrndup' when applicable in order to ↵Christophe Jaillet2015-10-242-4/+4
| | | | | | save a few cycles. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1710307 13f79535-47bb-0310-9956-ffa450edef68
* fix some gcc warnings on WindowsJeff Trawick2011-03-191-1/+1
| | | | | | | | | the return of APR_EGENERAL is to bypass a theoretical reference to an unset variable (sizelo) in a should-not-occur path, following an existing example git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1083227 13f79535-47bb-0310-9956-ffa450edef68
* fix low-hanging gcc warnings, mostly for WindowsJeff Trawick2011-03-192-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1083183 13f79535-47bb-0310-9956-ffa450edef68
* clean up some low hanging gcc warnings on WinJeff Trawick2011-03-191-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1083169 13f79535-47bb-0310-9956-ffa450edef68
* Provide the correct buffer size (in wchars) to ExpandEnvironmentStringsWWilliam A. Rowe Jr2008-03-171-1/+2
| | | | | | | Reported by: Sebastian Gottschalk <seppi seppig.de> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@638031 13f79535-47bb-0310-9956-ffa450edef68
* * user/unix/groupinfo.c (apr_gid_name_get, apr_gid_get): UseJoe Orton2007-04-261-2/+4
| | | | | | | | | GRBUF_SIZE for getgr*_r buffer size and bump to 8192 bytes. PR: 41105 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@532789 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-036-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-036-36/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* * user/unix/userinfo.c (PWBUF_SIZE): Bump to 2048 to avoid issues withJoe Orton2006-03-311-1/+1
| | | | | | | | | LDAP-backed lookups on FreeBSD. PR: 39075 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@390410 13f79535-47bb-0310-9956-ffa450edef68
* * user/unix/userinfo.c (getpwnam_safe, apr_uid_name_get): Fix errorJoe Orton2005-08-242-8/+10
| | | | | | | | | | handling for platforms which do not set errno on non-threadsafe get{pw,gr}* failures; always return APR_ENOENT for that case. * user/unix/groupinfo.c (apr_gid_name_get, apr_gid_get): Likewise. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@239574 13f79535-47bb-0310-9956-ffa450edef68
* Bring all get{pw,gr}*_r error handling in line with POSIX:Joe Orton2005-08-232-8/+35
| | | | | | | | | | | | | | | | | * user/unix/userinfo.c (getpwnam_safe): Fix error handling; always use the getpwnam_r return value as the error code, and ignore errno, since POSIX does not require that getpwnam_r sets errno. * user/unix/groupinfo.c (apr_gid_name_get, apr_gid_get): Fix error handling as above; and check for the NULL -> "no entry" cases here too. * test/testuser.c (fail_userinfo): Add test cases for error handling (only one of them actually trips on the bugs in the old code with glibc). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@239390 13f79535-47bb-0310-9956-ffa450edef68
* As suggested by Joe on dev@apr, don't return errno, since its not correct ↵Paul Querna2005-07-191-2/+11
| | | | | | according to the specs. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@219667 13f79535-47bb-0310-9956-ffa450edef68
* These functions can return no-error, but still contain a NULL entry, on some ↵Paul Querna2005-07-192-2/+2
| | | | | | | | | crazy unix that some people use called Linux. PR: 34053 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@219635 13f79535-47bb-0310-9956-ffa450edef68
* An internal API - buffer len values should be size_tWilliam A. Rowe Jr2005-05-161-5/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@170455 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-046-6/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* Remove .cvsignore files.Joe Orton2004-11-181-4/+0
| | | | | | | Tipped-of-by: Uwe Zeisberger git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0Justin Erenkrantz2004-02-136-294/+60
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* First whack at switching to a single top-level make. This adds a dependencyGreg Stein2004-02-051-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | upon Python at packaging time, but not at end-user config/build time. As far as I can tell, the build continues to function properly. (out-of-dir config/make not tested, and apr-iconv prolly needs some work) The buildconf scripts now generate a build-outputs.mk file which is included by the root's Makefile (via the build/gen-build.py script). bulid-outputs.mk specifies all of the various files present in the distribution. The top-level Makefiles were simplified to use an $(OBJECTS) symbol rather than 'find'ing them. Similarly, a $(HEADERS) symbol is used for the exports. The corresponding delete-* targets were eliminated since we have a precise set of inputs. The subdirs' Makefiles were removed since they are no longer called/used. The apr-util/uri Makefile was responsible for compiling a C program to generate the uri_delims.h file. That process was replaced by a Python script to generate the header (called by buildconf). The .c and .dsp were left for the Windows build to continue, but that should be revamped. build/apr_rules.mk was revamped somewhat to avoid recursion, but a lot of cleanup is still needed. Much of the recursive/local/x- logic is no longer needed and can be elimianated. rules.mk was created for inclusion by N makefiles, but that isn't really true any more, so it could probably be tossed (caveat: test/Makefile). Saved for a phase 2. Some additional work was added to properly clean up files in */build/, rather than relying on a makefile in there. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64891 13f79535-47bb-0310-9956-ffa450edef68
* Rumours of the demise of group information on BeOS have beenDavid Reid2003-11-231-4/+0
| | | | | | | | greatly exaggerated :) Well, after this patch they have been anyway. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64791 13f79535-47bb-0310-9956-ffa450edef68
* remove these interfaces:Jeff Trawick2003-09-036-156/+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: https://svn.apache.org/repos/asf/apr/apr/trunk@64607 13f79535-47bb-0310-9956-ffa450edef68
* rename apr_arch_fileio.h to apr_arch_file_io.h for consistencyThom May2003-01-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64275 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesThom May2003-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aix/dso.h -> -> aix/apr_arch_dso.h beos/dso.h -> beos/apr_arch_dso.h beos/proc_mutex.h -> beos/apr_arch_proc_mutex.h beos/thread_cond.h -> beos/apr_arch_thread_cond.h beos/thread_mutex.h -> beos/apr_arch_thread_mutex.h beos/threadproc.h -> beos/apr_arch_threadproc.h beos/thread_rwlock.h -> beos/apr_arch_thread_rwlock.h netware/dso.h -> -> netware/apr_arch_dso.h netware/fileio.h -> -> netware/apr_arch_fileio.h netware/global_mutex.h -> netware/apr_arch_global_mutex.h netware/internal_time.h -> netware/apr_arch_internal_time.h netware/networkio.h -> netware/apr_arch_networkio.h netware/pre_nw.h -> netware/apr_arch_pre_nw.h netware/proc_mutex.h -> netware/apr_arch_proc_mutex.h netware/thread_cond.h -> netware/apr_arch_thread_cond.h netware/thread_mutex.h -> netware/apr_arch_thread_mutex.h netware/threadproc.h -> netware/apr_arch_threadproc.h netware/thread_rwlock.h -> netware/apr_arch_thread_rwlock.h os2/dso.h -> os2/apr_arch_dso.h os2/fileio.h -> os2/apr_arch_fileio.h os2/networkio.h -> os2/apr_arch_networkio.h os2/os2calls.h -> os2/apr_arch_os2calls.h os2/proc_mutex.h -> os2/apr_arch_proc_mutex.h os2/thread_cond.h -> os2/apr_arch_thread_cond.h os2/thread_mutex.h -> os2/apr_arch_thread_mutex.h os2/threadproc.h -> os2/apr_arch_threadproc.h os2/thread_rwlock.h -> os2/apr_arch_thread_rwlock.h os390/dso.h -> os390/apr_arch_dso.h unix/dso.h -> unix/apr_arch_dso.h unix/fileio.h -> unix/apr_arch_fileio.h unix/global_mutex.h -> unix/apr_arch_global_mutex.h unix/inherit.h -> unix/apr_arch_inherit.h unix/internal_time.h -> unix/apr_arch_internal_time.h unix/misc.h -> unix/apr_arch_misc.h unix/networkio.h -> unix/apr_arch_networkio.h unix/proc_mutex.h -> unix/apr_arch_proc_mutex.h unix/shm.h -> unix/apr_arch_shm.h unix/thread_cond.h -> unix/apr_arch_thread_cond.h unix/thread_mutex.h -> unix/apr_arch_thread_mutex.h unix/threadproc.h -> unix/apr_arch_threadproc.h unix/thread_rwlock.h -> unix/apr_arch_thread_rwlock.h win32/atime.h -> win32/apr_arch_atime.h win32/dso.h -> win32/apr_arch_dso.h win32/fileio.h -> win32/apr_arch_fileio.h win32/inherit.h -> win32/apr_arch_inherit.h win32/misc.h -> win32/apr_arch_misc.h win32/networkio.h -> win32/apr_arch_networkio.h win32/proc_mutex.h -> win32/apr_arch_proc_mutex.h win32/thread_cond.h -> win32/apr_arch_thread_cond.h win32/thread_mutex.h -> win32/apr_arch_thread_mutex.h win32/threadproc.h -> win32/apr_arch_threadproc.h win32/thread_rwlock.h -> win32/apr_arch_thread_rwlock.h win32/utf8.h -> win32/apr_arch_utf8.h git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64271 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.Thom May2003-01-016-6/+6
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* apr_get_groupname() is declared twice in apr/user/win32/groupinfo.cThom May2002-11-201-3/+3
| | | | | | | | | the second one should have been apr_group_name_get() Submitted by: Sebastian Bergmann (lists@sebastian-bergmann.de) Reviewed by: Thom May git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64048 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a variable name mismatchBradley Nicholes2002-11-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64047 13f79535-47bb-0310-9956-ffa450edef68
* *) Renames done (deprecated functions wrapped):Thom May2002-11-206-39/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | apr_filename_of_pathname -> apr_filepath_name_get apr_get_groupid -> apr_gid_get apr_get_groupname -> apr_gid_name_get apr_compare_groups -> apr_gid_compare apr_parse_addr_port -> apr_port_addr_parse apr_shutdown -> apr_socket_shutdown apr_bind -> apr_socket_bind apr_listen -> apr_socket_listen apr_accept -> apr_socket_accept apr_connect -> apr_socket_connect apr_send -> apr_socket_send apr_sendv -> apr_socket_sendv apr_sendto -> apr_socket_sendto apr_implode_gmt -> apr_time_exp_gmt_get apr_get_home_directory -> apr_uid_homepath_get apr_get_userid -> apr_uid_get apr_current_userid -> apr_uid_current apr_compare_users -> apr_uid_compare apr_get_username -> apr_uid_name_get apr_recvfrom -> apr_socket_recvfrom apr_sendfile -> apr_socket_sendfile apr_recv -> apr_socket_recv git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64043 13f79535-47bb-0310-9956-ffa450edef68
* Fix the userid functions on Irix to handle the way that IrixJeff Trawick2002-07-011-1/+2
| | | | | | | | | | reports a failure from getpwnam_r(). PR: 10095 Submitted by: Robert I. Cowles <ric@cs.uregina.ca>, Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63543 13f79535-47bb-0310-9956-ffa450edef68
* Revert bogusness by providing proper stubs for functions that existedWilliam A. Rowe Jr2002-06-083-0/+21
| | | | | | | | | | | | | since the first indirect APR release [APACHE_2_0_35]. Fortunately, these appear to be the only bogusness detected between _35 and _36, and _37 must follow suit with stubs for newly deprecated symbols. Of course all stubs fall out with 1.0.0, which I picture Apache adopting with stronger version controls in APACHE_2_1_x, but we will see what concensus each project adopts between now and then. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63475 13f79535-47bb-0310-9956-ffa450edef68
* More CE porting. I'd prefer to see us return a stock value of 0 for theWilliam A. Rowe Jr2002-06-042-1/+32
| | | | | | | | | | user and group ID functions rather than returning ENOTIMPL. There are no groups or users on WinCE. Comments? Submitted by: Mladen Turk <mturk@mappingsoft.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63467 13f79535-47bb-0310-9956-ffa450edef68
* Rename apr_get_groupname to apr_group_name_get.Sander Striker2002-04-223-3/+3
| | | | | | | Submitted by: Thom May <thom@planetarytramp.net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63292 13f79535-47bb-0310-9956-ffa450edef68
* Add .deps to cvsignore since APR may now generate .deps files.Justin Erenkrantz2002-04-221-0/+1
| | | | | | | (somehow CVS ignored updating these on the last commit.) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63287 13f79535-47bb-0310-9956-ffa450edef68
* Allow VPATH builds to properly generate build dependencies. This requiresJustin Erenkrantz2002-04-221-0/+2
| | | | | | | | | | | | srcdir to always be available in a Makefile, so we need to stop adding this only when we use VPATH. Change the dependency generation to use .deps instead of appending to the Makefile. This makes us consistent with the dependency style of httpd-2.0. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63286 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-136-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* Mladen Turk's <mturk@mappingsoft.com> WinCE port.William A. Rowe Jr2002-01-281-3/+6
| | | | | | | | | | | | | | | | | | | Nearly, the apr.hw patch needs some review. In short, several quite standard ansi headers (e.g. time.h) aren't present in the WinCT port, but these changes require corresponding changes to apr.h.in. I changed Mladen's #define'd symbol names for the macro blocks to IF_WIN_OS_IS_UNICODE and ELSE_WIN_OS_IS_ANSI to make the code a bit more readable, and drop the global apr_os_level from each macro invocation. Also, I changed the scope of his APR_HAS_ANSI_FS to local scope, since it has no application in the public headers. Mladen's patch helps NT as well, allowing the /D WINNT flag to define NT-only compilations. With WINNT defined, all UNICODE/ANSI os version tests drop out entirely. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62837 13f79535-47bb-0310-9956-ffa450edef68
* Substantial optimization of the os_level semantic. Since this is entirelyWilliam A. Rowe Jr2001-12-281-3/+2
| | | | | | | | | | for internal consumption, and apr_initialize must be called, resolve the situation once and use the static, shared value for the remainder of the program execution. Next step is to allow conditional builds [excluding older 9x paths] if the user has no interest in 9x support. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62675 13f79535-47bb-0310-9956-ffa450edef68
* Added the apr_get_groupid() stubBradley Nicholes2001-11-261-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62552 13f79535-47bb-0310-9956-ffa450edef68
* The missing Win32 apr_get_groupid, brings Win32 back to par with Unix.William A. Rowe Jr2001-11-241-0/+40
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62545 13f79535-47bb-0310-9956-ffa450edef68
* make absolutely sure we have getgrnam_r() before calling itJeff Trawick2001-11-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62533 13f79535-47bb-0310-9956-ffa450edef68
* get the getgrnam_r() logic to compile; no promises on correctness :)Jeff Trawick2001-11-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62529 13f79535-47bb-0310-9956-ffa450edef68
* Implement apr_get_groupid [to mirror apr_get_userid]William A. Rowe Jr2001-11-201-0/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62528 13f79535-47bb-0310-9956-ffa450edef68
* We need to import the declaration of memcpy.Justin Erenkrantz2001-11-111-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62499 13f79535-47bb-0310-9956-ffa450edef68
* Changed stub from returning APR_SUCCESS to APR_ENOTIMPL until weBradley Nicholes2001-08-312-6/+6
| | | | | | | can figure out how to implement these functions. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62269 13f79535-47bb-0310-9956-ffa450edef68
* NetWare user and group info functionsBradley Nicholes2001-08-312-0/+181
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62267 13f79535-47bb-0310-9956-ffa450edef68
* Here's an implementation, dunno if it's _the_ implementation we areWilliam A. Rowe Jr2001-07-271-0/+33
| | | | | | | looking for. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62043 13f79535-47bb-0310-9956-ffa450edef68
* * apr_user.h (apr_current_userid): new declaration.Ben Collins-Sussman2001-07-261-0/+15
| | | | | | | | * userinfo.c (apr_current_userid): implement Unix version. Somebody want to write a Win32 equivalent? git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62037 13f79535-47bb-0310-9956-ffa450edef68
* I did a recursive grep for "#ifdef APR_" and am cleaning up what I found. =-)Cliff Woolley2001-07-261-1/+1
| | | | | | | | PS: How did that "#endif APR_HAS_UNICODE_FS" thing ever compile? Does MSVC actually let you do that sort of thing? git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62026 13f79535-47bb-0310-9956-ffa450edef68