1
0
Fork 0
mirror of https://github.com/apache/apr.git synced 2025-12-05 22:47:13 +00:00
Mirror of Apache Portable Runtime
apr
Find a file
Ivan Zhakov dda3fc125e * threadproc/win32/proc.c
(quote_arg): Use '\0' instead of 0 for character constant.

git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1929719 13f79535-47bb-0310-9956-ffa450edef68
2025-11-13 18:33:08 +00:00
.github/workflows CI: Add some sanity tests for various apr_private.h definitions. 2025-08-11 07:43:49 +00:00
atomic atomics: Follow up to r1909321: Windows does not use 64bit generic atomics. 2023-04-21 13:10:21 +00:00
buckets * buckets/apr_brigade.c 2025-05-17 14:39:49 +00:00
buffer apr_buffer: Advance buffer during apr_buffer_pstrncat(). 2024-08-30 15:07:05 +00:00
build Remove an echo left from debugging in r1928439 2025-09-13 20:01:55 +00:00
crypto apr_crypto_openssl: Fix response code for openssl3.5+ 2025-03-24 10:22:56 +00:00
dbd Pass details of module loading errors back to the caller through the 2024-04-16 21:33:58 +00:00
dbm Arrange lmdb logic: htdbm -x wasn't working because the database was MDB_RDONLY. 2025-09-24 09:10:29 +00:00
docs Fix some warnings from doxygen. 2025-08-08 16:49:52 +00:00
dso Remove trailing whitespaces in *.c. 2022-11-20 07:14:38 +00:00
encoding apr_escape_json(): Don't truncate escaped \uXXXX characters. 2024-03-18 15:31:41 +00:00
file_io Revert r1918258. 2024-06-13 14:38:59 +00:00
helpers Limit the renames performed in apr_rename.pl to the newest ones only. 2002-11-30 16:34:41 +00:00
hooks Remove dereference of null pointer. 2018-07-18 20:34:06 +00:00
include Add apr_strqtok() function to tokenise quoted strings. 2025-09-27 17:19:11 +00:00
jose apr_jose: Allow a user specified context to be passed with a signature or 2023-05-22 17:07:53 +00:00
json apr_json_decode: Return APR_ENOSPC if a decoded array is above INT_MAX. 2022-06-23 16:14:41 +00:00
ldap apr_ldap: Reset apr_ldap_bind_interact_t each time in case the 2025-07-04 15:15:46 +00:00
locks Use APR_TIMEUP for ETIMEDOUT too 2024-08-21 13:01:08 +00:00
memcache * Fix comment 2025-08-19 06:52:13 +00:00
memory/unix apr_pools: abort() if creating the pool mutex failed (APR_POOL_DEBUG mode). 2025-08-21 14:17:29 +00:00
misc apr_ldap: Add write capability to the LDAP API. Support for 2025-03-11 13:27:42 +00:00
mmap Remove trailing whitespaces in *.c. 2022-11-20 07:14:38 +00:00
network_io * network_io/win32/socket_pipe.c: 2025-05-17 13:53:23 +00:00
passwd Remove trailing whitespaces in *.c. 2022-11-20 07:14:38 +00:00
poll * configure.in: Use standard autoconf macro AC_C_VARARRAYS 2025-08-11 07:36:12 +00:00
random/unix Remove trailing whitespaces in *.c. 2022-11-20 07:14:38 +00:00
redis apr_redis: reserve buffer space for trailing \0. 2017-02-07 18:29:17 +00:00
shmem use 0600 perms for named shared mem consistently 2024-08-20 21:44:35 +00:00
strings Add apr_strqtok() function to tokenise quoted strings. 2025-09-27 17:19:11 +00:00
strmatch Convert various APU_DECLARE into APR_DECLARE. 2009-07-16 04:52:56 +00:00
support * Avoid an overflow when converting the given INT64 timeout in microseconds 2025-10-17 08:21:41 +00:00
tables apr_table: Use APR_TABLE_POOL_DEBUG rather than general APR_POOL_DEBUG 2024-06-26 15:48:53 +00:00
test Add apr_strqtok() function to tokenise quoted strings. 2025-09-27 17:19:11 +00:00
threadproc * threadproc/win32/proc.c 2025-11-13 18:33:08 +00:00
time Remove trailing whitespaces in *.c. 2022-11-20 07:14:38 +00:00
tools apr_escape: Add apr_escape_json() and apr_pescape_json(). 2023-12-20 22:46:22 +00:00
uri * Correctly identify fe80::/10 networks instead of fe80::/16 2025-08-29 09:01:54 +00:00
user Remove trailing whitespaces in *.c. 2022-11-20 07:14:38 +00:00
util-misc The apu_dso_load() function accepts a NULL dlhandleptr. Avoid 2025-06-20 11:49:17 +00:00
xlate Remove trailing whitespaces in *.c. 2022-11-20 07:14:38 +00:00
xml * xml/apr_xml_xmllite.c: Use proper type for local variables. 2022-07-09 11:42:30 +00:00
.editorconfig .editorconfig: Configure guidelines to 78 characters. 2024-09-01 11:41:57 +00:00
.gitignore Add .gitignore, generated with: 2023-12-19 09:01:50 +00:00
apr-config.in Fix crosscompiling detection in apr-1-config 2023-03-10 10:54:03 +00:00
apr.dsp Add in Atomics for 64bit ints 2018-09-17 15:50:19 +00:00
apr.dsw Backport windows crypto build files from apr-util. We still need port module build part for Makefile.win 2011-12-08 20:55:57 +00:00
apr.pc.in fix the apr.pc.in file to include the cppflags in the Cflags varaible. 2005-04-07 00:27:03 +00:00
build.conf apr_ldap: Add the new APR LDAP API. 2024-04-18 07:32:13 +00:00
buildconf * build/buildcheck.sh, buildconf: Detect and run under Python 3 or 2, 2018-06-27 11:41:30 +00:00
CHANGES * Avoid an overflow when converting the given INT64 timeout in microseconds 2025-10-17 08:21:41 +00:00
CMakeLists.txt CMakeLists.txt: Use MODULE instead of SHARED for DSO modules. 2025-05-17 12:07:40 +00:00
config.layout If --with-installbuilddir is not supplied, it unconditially overrides the value 2018-08-25 14:52:48 +00:00
configure.in * configure.in: Fix cross-compilation detection when build_alias and 2025-08-11 07:38:54 +00:00
emacs-mode Help idiots like me who use emacs. 2003-11-06 00:26:06 +00:00
libapr.dsp apr_ldap: Explicitly detect the case where OpenLDAP has been 2024-08-29 12:16:19 +00:00
libapr.rc Remove more Win9x support (trunk only). 2014-01-18 20:15:12 +00:00
LICENSE Seems we forgot to merge apr-util/LICENSE while folding apr-util into apr 2016-02-25 15:08:43 +00:00
Makefile.in apr_ldap: Add the new APR LDAP API. 2024-04-18 07:32:13 +00:00
Makefile.win spelling fix 2013-03-30 17:46:22 +00:00
NOTICE Happy New Year 2025 2025-01-01 10:53:37 +00:00
NWGNUmakefile Redis in APR_2.0 too 2016-11-05 18:37:49 +00:00
README Fix test coverage functionality 2018-09-07 19:01:36 +00:00
README.cmake * README.cmake: Update to current state. 2024-09-16 11:06:46 +00:00
README.FREETDS Add missing svn:eol-style = native flags. 2018-06-11 22:20:14 +00:00
SConscript Revert testcstr.c for the time being while tests are structured 2016-01-27 16:46:00 +00:00
SConstruct SCons: Remove unneeded file copy. 2009-03-24 14:38:24 +00:00
STATUS Note long-standing build breakage 2025-01-27 12:22:37 +00:00

Apache Portable Runtime Library (APR)
=====================================

   The Apache Portable Runtime Library provides a predictable and
   consistent interface to underlying platform-specific
   implementations, with an API to which software developers may code
   and be assured of predictable if not identical behavior regardless
   of the platform on which their software is built, relieving them of
   the need to code special-case conditions to work around or take
   advantage of platform-specific deficiencies or features.

   APR and its companion libraries are implemented entirely in C
   and provide a common programming interface across a wide variety
   of operating system platforms without sacrificing performance.
   Currently supported platforms include:

     UNIX variants
     Windows
     Netware
     Mac OS X
     OS/2

   To give a brief overview, the primary core
   subsystems of APR 1.3 include the following:

     Atomic operations
     Dynamic Shared Object loading
     File I/O
     Locks (mutexes, condition variables, etc)
     Memory management (high performance allocators)
     Memory-mapped files
     Multicast Sockets
     Network I/O
     Shared memory
     Thread and Process management
     Various data structures (tables, hashes, priority queues, etc)

   APR 2.0 also provides a number of utility functions and library
   compatibility interfaces.  These were formerly part of APR-util,
   a seperate utility library in version 1 releases.  These include;

     Hashing and UUID services
     Multiple SQL DBD client interfaces
     Multiple flat-database DBM client interfaces
     Typesafe function Hooks abstraction
     MemCache interface
     Date parsing rourtines
     Resource Lists
     Thread Pools
     Queues
     Relocatable Memory Management functions
     String filename-style pattern matching
     URI Parsing
     Charset translation (iconv based)
     XML parsing (expat based)

   For a more complete list, please refer to the following URLs:

     http://apr.apache.org/docs/apr/modules.html

   Users of APR 0.9 should be aware that migrating to the APR 1.x
   programming interfaces may require some adjustments; APR 1.x is
   neither source nor binary compatible with earlier APR 0.9 releases.
   Users of APR 1.x can expect consistent interfaces and binary backwards
   compatibility throughout the entire APR 1.x release cycle, as defined
   in our versioning rules:

     http://apr.apache.org/versioning.html

   APR is already used extensively by the Apache HTTP Server
   version 2 and the Subversion revision control system, to
   name but a few.  We list all known projects using APR at
   http://apr.apache.org/projects.html -- so please let us know
   if you find our libraries useful in your own projects!


Database Providers
==================
Interfaces for copy-left licensed MySQL and gdbm DBD drivers, and 
Berkeley DB DBM all ship as part of the distribution.  To avoid licensing
incompatibilities, these are not built by default.  To enable support, 
the corresponding use the --with-{provider} option, but be aware that 
these licenses may introduce licensing implications for your compiled code.
Similarly, the bindings for propritary drivers such as Oracle must also be 
explicitly enabled.

Whenever distributing apr-util in combination with database client 
drivers, always review the license requirements of all components.


Using a Subversion Checkout on Unix
===================================

If you are building APR from SVN, you need to perform a prerequisite
step.  You must have autoconf, libtool and python installed for this 
to work.  The prerequisite is simply;

  ./buildconf

If you are building APR from a distribution tarball, buildconf is
already run for you, and you do not need autoconf, libtool or python
installed or to run buildconf unless you have patched APR's buildconf 
inputs (such as configure.in, build.conf, virtually any file within 
the build/ tree, or you add or remove source files).

Remember when updating from svn that you must rerun ./buildconf again 
to effect any changes made to the build schema in your fresh update.


Configuring and Building APR on Unix
====================================

Simply;

   ./configure --prefix=/desired/path/of/apr
   make
   make test
   make install

Configure has additional options, ./configure --help will offer you
those choices.  You may also add CC=compiler CFLAGS="compiler flags"
etc. prior to the ./configure statement (on the same line).  Please
be warned, some flags must be passed as part of the CC command,
itself, in order for autoconf to make the right determinations. Eg.;

  CC="gcc -m64" ./configure --prefix=/desired/path/of/apr

will inform APR that you are compiling to a 64 bit CPU, and autoconf
must consider that when setting up all of APR's internal and external
type declarations.

For more verbose output from testall, you may wish to invoke testall
with the flag;

   cd test
   ./testall -v


Building APR RPM files on Linux
===============================

Run the following to create SRPMs:

rpmbuild -ts apr-<version>.tar.bz2
rpmbuild -ts apr-util-<version>.tar.bz2

Run the following to create RPMs (or build from the SRPMs):

rpmbuild -tb apr-<version>.tar.bz2
rpmbuild -tb apr-util-<version>.tar.bz2

Resolve dependencies as appropriate.


Configuring and Building APR on Windows
=======================================

Using Visual Studio, you can build and run the test validation of APR.
The Makefile.win make file has a bunch of documentation about it's
options, but a trivial build is simply;

  nmake -f Makefile.win 
  nmake -f Makefile.win PREFIX=c:\desired\path\of\apr install

Note you must manually modify the include\apr.hw file before you
build to change default options, see the #define APR_HAS_... or the
#define APR_HAVE_... statements.  Be careful, many of these aren't
appropriate to be modified.  The most common change is 

#define APR_HAVE_IPV6           1

rather than 0 if this build of APR will be used strictly on machines
with the IPv6 adapter support installed.

It's trivial to include the apr.dsp (for a static library) or the
libapr.dsp (for a dynamic library) in your own build project, or you
can load apr.dsw in Visual Studio 2002 (.NET) or later, which will
convert these for you into apr.sln and associated .vcproj files.

When using APR as a dynamic library, nothing special is required,
simply link to libapr-2.lib.  To use it as a static library, simply 
define APR_DECLARE_STATIC before you include any apr header files 
in your source, and link to apr-2.lib instead.

On windows, selection of database drivers is via the environment values
DBD_LIST (for mysql, oracle, pgsql, sqlite2 and/or sqlite3) 
and DBM_LIST (db and/or gdbm).  DBD odbc and DBM sdbm are unconditionally
compiled and installed, do not include these in the list.


Generating Test Coverage information with gcc
=============================================

If you want to generate test coverage data, use the following steps:

  ./buildconf
  CFLAGS="--coverage -fprofile-abs-path" LDFLAGS="--coverage" ./configure
  make
  cd test
  make
  ./testall
  cd ..
  make gcov


Cryptographic Software Notice
=============================
This distribution includes cryptographic software.  The country in 
which you currently reside may have restrictions on the import, 
possession, use, and/or re-export to another country, of 
encryption software.  BEFORE using any encryption software, please 
check your country's laws, regulations and policies concerning the
import, possession, or use, and re-export of encryption software, to 
see if this is permitted.  See http://www.wassenaar.org/ for more
information.

The U.S. Government Department of Commerce, Bureau of Industry and
Security (BIS), has classified this software as Export Commodity 
Control Number (ECCN) 5D002.C.1, which includes information security
software using or performing cryptographic functions with asymmetric
algorithms.  The form and manner of this Apache Software Foundation
distribution makes it eligible for export under the License Exception
ENC Technology Software Unrestricted (TSU) exception (see the BIS 
Export Administration Regulations, Section 740.13) for both object 
code and source code.

The following provides more details on the included cryptographic
software:

  APR provides an abstract interface for symmetrical cryptographic
  functions that make use of a general-purpose encryption library,
  such as OpenSSL, NSS, or the operating system's platform-specific
  facilities. This interface is known as the apr_crypto interface,
  with implementation beneath the /crypto directory.