summaryrefslogtreecommitdiff
path: root/include/apr_portable.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces.Ivan Zhakov2022-11-191-30/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905407 13f79535-47bb-0310-9956-ffa450edef68
* Slightly improve doxygen generated documentation.Christophe Jaillet2018-08-261-1/+1
| | | | | | Add some links to function git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839182 13f79535-47bb-0310-9956-ffa450edef68
* apr_os_proc_mutex_put_ex: Allow to specify whether the OS nativeYann Ylavic2016-04-131-0/+3
| | | | | | | | | mutex should or not be cleaned up (destroyed) with the constructed APR mutex (given pool), and default to not for the simple _put() function. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1738925 13f79535-47bb-0310-9956-ffa450edef68
* proc_mutex-unixes: the apr_os_proc_mutex_t member intraproc is not usedYann Ylavic2016-03-061-7/+0
| | | | | | internally and can then be axed for 2.0. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1733777 13f79535-47bb-0310-9956-ffa450edef68
* proc_mutex-netware: follow up to r1733775.Yann Ylavic2016-03-061-1/+1
| | | | | | | Make apr_os_proc_mutex_{get,set}[_ex]() available by changing the native apr_os_proc_mutex_t accessor type to a pointer. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1733776 13f79535-47bb-0310-9956-ffa450edef68
* apr_proc/global_mutex: Fix API regarding the native OS mutexesYann Ylavic2016-03-061-1/+36
| | | | | | | | | | | | | | | | | | | | | | | accessors from/to available APR mechanisms, adding the new functions apr_os_proc_mutex_get_ex() and apr_os_proc_mutex_set_ex() which give control to the user over the selected mechanisms, including the missing POSIX semaphores (sem_t) on platforms supporting them. For POSIX sems, this moves the "sem_t *psem_interproc;" member from struct apr_proc_mutex_t to apr_os_proc_mutex_t (now complete) so that we can avoid members duplication between the two structs, and hence replace all the doublons in apr_os_proc_mutex_t with an apr_os_proc_mutex_t member, called "os", to be used for runtime. This first commit aims to be backportable to 1.6.x, thus does not address the Netware case which requires an incompatible change of the apr_proc_mutex_t to a pointer type (the implementation is here since very similar to other changes is this commit, but it is commented out for now, a simple follow up is coming with the type change for trunk only...). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1733775 13f79535-47bb-0310-9956-ffa450edef68
* Clarify under what circumstances memory is allocated in apr_os_sock_put().Graham Leggett2015-09-181-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1703886 13f79535-47bb-0310-9956-ffa450edef68
* document return values for apr_os_thread_equal()Jeff Trawick2011-05-021-0/+1
| | | | | | | Submitted by: Stefan Ruppert <sr myarm.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1098596 13f79535-47bb-0310-9956-ffa450edef68
* Moved apr_os_uuid_get prototype out of APR_HAS_DSO block.Guenter Knauf2011-03-261-3/+4
| | | | | | | | This avoids a missing prototype warning since the function's C code gets compiled independent of APR_HAS_DSO. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1085655 13f79535-47bb-0310-9956-ffa450edef68
* Fix a bunch of typos in the doxygen comments for public include filesGraham Leggett2009-09-251-6/+6
| | | | | | | | in APR Submitted by: Neil Conway <nrc cs.berkeley.edu> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@818977 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-031-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-041-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0Justin Erenkrantz2004-02-131-49/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* more doxygen fixes from sanderIan Holsman2003-12-291-0/+3
| | | | | | | Submitted by: sander temme <sander at temme dot net> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64851 13f79535-47bb-0310-9956-ffa450edef68
* Forward port from APR_0_9_BRANCH:Sander Striker2003-10-261-0/+15
| | | | | | | | | | Add apr_os_pipe_put_ex(), which allows the caller to tell APR to establish a cleanup on the pipe. Submitted by: Jeff Trawick, Brad Nicholes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64695 13f79535-47bb-0310-9956-ffa450edef68
* Time to turn on the protocol member for APR 1.0.William A. Rowe Jr2003-10-151-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64688 13f79535-47bb-0310-9956-ffa450edef68
* Rebalance our exposed headers such that everything is nested properlyWilliam A. Rowe Jr2003-03-051-9/+9
| | | | | | | | | | | | | | 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: https://svn.apache.org/repos/asf/apr/apr/trunk@64397 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.Thom May2003-01-011-1/+1
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Introduced apr_os_default_encoding and apr_os_locale_encoding, withBranko Čibej2002-11-121-0/+16
| | | | | | | implementations for Unix and Win32, needed by apr_xlate. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64015 13f79535-47bb-0310-9956-ffa450edef68
* Go through doxygen output and remove as many errors and warnings as I could.Justin Erenkrantz2002-11-101-14/+25
| | | | | | | | | | | 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: https://svn.apache.org/repos/asf/apr/apr/trunk@64009 13f79535-47bb-0310-9956-ffa450edef68
* add a note about apr_os_sock_put()Jeff Trawick2002-10-211-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63957 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_socket_create_ex() to allow protocol to be specified for theJeff Trawick2002-10-181-3/+6
| | | | | | | | | | | socket. With APR 1.0, this function will be removed and apr_socket_create() will have the additional parameter. Submitted by: Randall Stewart <randall@stewart.chicago.il.us> Reviewed/mangled by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63943 13f79535-47bb-0310-9956-ffa450edef68
* add a way to create an apr_file_t from an apr_os_file_t whichJeff Trawick2002-10-031-0/+12
| | | | | | | results in something that APR will treat as a pipe git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63893 13f79535-47bb-0310-9956-ffa450edef68
* Move UUID. Not the simplest thing in the world. Note that almostWilliam A. Rowe Jr2002-07-171-0/+8
| | | | | | | | all the remaining getuuid.c source should be made generic. I just grabbed what my compiler tripped over. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63696 13f79535-47bb-0310-9956-ffa450edef68
* APR_PROC_MUTEX_IS_GLOBAL is the condition where apr_global_mutex_tJeff Trawick2002-05-081-1/+1
| | | | | | | | | | | and apr_proc_mutex_t are interchangeable currently there aren't any Unix systems with APR_PROC_MUTEX_IS_GLOBAL is defined... if/when there is, the entire global_mutex.c should be ignored git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63372 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_os_get function for global_mutexes.Ryan Bloom2002-05-021-0/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63346 13f79535-47bb-0310-9956-ffa450edef68
* ** DEPRECATE old lock API: apr_lock.h **Aaron Bannert2002-04-091-29/+0
| | | | | | | | | | | Resolve some circular includes (apr_thread_mutex.h needs apr_pools.h needs apr_allocator.h needs apr_thread_mutex.h ...). Remove all apr_lock.h related files (incl. arch-specific headers and implementations). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63234 13f79535-47bb-0310-9956-ffa450edef68
* If I had the energy, I'd change the Win32 apr_proc_t type to use thisWilliam A. Rowe Jr2002-03-161-1/+1
| | | | | | | | correct definition. I don't, so I'm not [try including apr_portable.h in apr_threadproc.h and discover for yourself.] git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63143 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* patches for apr to rename apr_ansi_time_to_apr_time andIan Holsman2002-03-061-2/+2
| | | | | | | | | | | | apr_exploded_time_t. PR: Obtained from: Submitted by: Thom May <thom@planetarytramp.org> Reviewed by: Ian Holsman git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63090 13f79535-47bb-0310-9956-ffa450edef68
* Win32 requires an apr_os accessor for shm regions. This allows us toWilliam A. Rowe Jr2002-01-251-0/+28
| | | | | | | | | | | take the handle and do interesting things, such as passing it (after duping it) into the child. Unix implementation is simply the address of the shm region, AFAICT, but Aaron is reviewing. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62830 13f79535-47bb-0310-9956-ffa450edef68
* Add the ability to pass flags to both apr_file_open and apr_mktemp.Ryan Bloom2002-01-081-1/+2
| | | | | | | | | The reason for this, is that it is very possible to want a temp file that isn't deleted when the file is closed. It also makes sense to have the flags in the apr_file_t if possible. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62716 13f79535-47bb-0310-9956-ffa450edef68
* Implement portable accessors for proc mutex. These are equivalent toAaron Bannert2001-10-191-4/+33
| | | | | | | | | | | apr_os_lock_get/set, but they work for apr_proc_mutex_t types instead. I did my best to implement these on non-Unix platforms from how I saw them implemented for apr_os_lock_get/set, but on those platforms they are untested. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62447 13f79535-47bb-0310-9956-ffa450edef68
* Remove SMS and all references.Sander Striker2001-09-281-17/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62381 13f79535-47bb-0310-9956-ffa450edef68
* * Doxygen of Header File.Ian Holsman2001-08-171-84/+66
| | | | | | | * Combined multipe #ifdef APR_HAVE_THREADS into a single #ifdef git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62187 13f79535-47bb-0310-9956-ffa450edef68
* APR doesn't need to define union semun for apps; theJeff Trawick2001-08-151-12/+0
| | | | | | | | | | | | | logic didn't work quite right anyway we had NEED_UNION_SEMUN vs. APR_HAVE_UNION_SEMUN mixed up we included sys/sem.h when we didn't need to define union semun but we'd need it the header file if we tried to define it so that struct semid_ds would be defined git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62169 13f79535-47bb-0310-9956-ffa450edef68
* First pass at making apr_portable.h use doxygen.Ryan Bloom2001-08-121-7/+18
| | | | | | | Submitted by: Ian Holsman <ianh@cnet.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62143 13f79535-47bb-0310-9956-ffa450edef68
* get apr_os_dso_handle_t defined properly on DarwinJeff Trawick2001-08-061-1/+2
| | | | | | | Submitted by: Greg Ames git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62111 13f79535-47bb-0310-9956-ffa450edef68
* Added the NetWare specific typedef'sBradley Nicholes2001-08-021-0/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62090 13f79535-47bb-0310-9956-ffa450edef68
* Strip the inherit flag from apr_os_sock_make() (what a lousy name)William A. Rowe Jr2001-07-181-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61958 13f79535-47bb-0310-9956-ffa450edef68
* Added an inherit flag to apr_socket_create and other socket creationRyan Bloom2001-07-161-0/+2
| | | | | | | | | | | | | functions. This allows APR programs to specify that a socket should be passed to any child processes that are created. The inherit flag is only meaningful if programs use apr_process_create(). This also adds a couple of macros that allow APR types to set and unset the inherit flag. This also fixes Apache to use the new API. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61939 13f79535-47bb-0310-9956-ffa450edef68
* FreeBSD doesn't use threads so this didn't show up on my system,David Reid2001-07-071-0/+1
| | | | | | | | | | | | but Ian noticed it and yelled :) Basically we need the definition of apr_sms_t now that we have the register functions in apr_portable.h, so add the header. Submitted by: Ian Holsman <ianh@cnet.com> Reviewed by: David Reid <dreid@apache.org> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61894 13f79535-47bb-0310-9956-ffa450edef68
* Move the thread registration functions from the apr_sms header intoDavid Reid2001-07-071-1/+17
| | | | | | | | | | | | the portable header as this seems a more logical place for them given they use apr_os_thread_t. This also simplify's the build process ordering in certain situations. BTW, do we still need to add the @deffunc lines as we don't seem to have been doing in some places. Is this a scandoc change Ben? git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61881 13f79535-47bb-0310-9956-ffa450edef68
* Add some documentation for the os_thread functions recently addedDavid Reid2001-07-071-3/+14
| | | | | | | and fix the #ifdef's around them. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61880 13f79535-47bb-0310-9956-ffa450edef68
* Fix warnings on Solaris 2.6 about assigning from pointer toCliff Woolley2001-07-021-9/+4
| | | | | | | | | int and vice versa with APR_USE_PROC_PTHREAD_SERIALIZE. Submitted by: Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61846 13f79535-47bb-0310-9956-ffa450edef68
* on some Unix platforms pthread_t is a structure and the compiler won't allowJeff Trawick2001-06-141-0/+1
| | | | | | | | | | | | | comparison of structures add apr_os_thread_equal() and implement it on the two platforms with apr_os_thread_current() use apr_os_thread_equal() in the Unix lock code so we don't compare structures git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61768 13f79535-47bb-0310-9956-ffa450edef68
* Update the include files inline with the recent changes to lockingDavid Reid2001-06-111-6/+2
| | | | | | | code on beos. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61755 13f79535-47bb-0310-9956-ffa450edef68
* we don't always have apr_os_thread_current()Jeff Trawick2001-06-061-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61723 13f79535-47bb-0310-9956-ffa450edef68
* This is a much larger commit than I meant to have, but a lot hasDavid Reid2001-06-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | been changed in my tree today :) - remove the sms code I committed yesterday - add an apr_pool_t to the sms structure - add locking code to the tracking sms This threw up an issue with locking, so next - change the locking code to add an owner and ref counting so we can lock multiple times from the same thread. this was needed by the apr_sms_tracking_reset code where we lock and then call free which locks again... I haven't added the locking changes for os2 or win32 after the problems I created with my last commit :) Changes to testlock on the way. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61716 13f79535-47bb-0310-9956-ffa450edef68