aboutsummaryrefslogtreecommitdiff
path: root/threadproc/unix
Commit message (Collapse)AuthorAge
...
* Get the signal thread (and thus Apache threaded MPMs) working properlyJeff Trawick2001-02-27
| | | | | | | | | | | | | | | on AIX and Tru64. On certain platforms, sigwait() returns EINVAL if any of various unblockable signals are included in the mask. This was first observed on AIX and Tru64. On AIX (4.3.3, at least), sigwait() won't wake up if the high-order bit of the second word of flags is turned on. sigdelset() returns an error when trying to turn this off, so we'll turn it off manually. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61326 13f79535-47bb-0310-9956-ffa450edef68
* Get APR to build on Tru64 again.Jeff Trawick2001-02-27
| | | | | | | | | | | | | | | | | | | | | | | | 1) Move sendfile-disable logic to a point after we set the sendfile shell variable. It was broken before, from Sunday when I moved the thread configuration to a point earlier in the APR configure procedure. 2) (!!!!!!!!!DEFINITELY FIXME!!!!!!!) Work around a problem with APR_FLAG_HEADERS on Tru64 by adding additional, separate invocations of APR_FLAG_HEADERS() for header files which were not handled properly. 3) (!!!!!!WOULD BE NICE TO AUTODETECT!!!!!!!) Work around a problem where the presence of sigwait() isn't detected. sigwait() is renamed in a system header file, but the normal autoconf way to detect functions has no provision for including header files. Also, some empty lines in the invocation of APR_FLAG_HEADERS were removed. They had to impact on processing, but they didn't look nice. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61323 13f79535-47bb-0310-9956-ffa450edef68
* Fix the hosed #ifdef APR_HAVE_FOO_H tests, the #if HAVE_ tests, andWilliam A. Rowe Jr2001-02-25
| | | | | | | also cleanup s/#ifdef HAVE_FOO_H/#if APR_HAVE_FOO_H/ whrere appropriate. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61303 13f79535-47bb-0310-9956-ffa450edef68
* Don't define the signal thread logic is sigwait isn't defined. HopefullyRyan Bloom2001-02-25
| | | | | | | | any platform like this will be able to mimic the signal thread, but for now this fixes any machine without sigwait. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61296 13f79535-47bb-0310-9956-ffa450edef68
* if we don't have the prototype, we shouldn't have the function eitherJeff Trawick2001-02-25
| | | | | | | (haven't we been here before?) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61294 13f79535-47bb-0310-9956-ffa450edef68
* These are a bit too unix specific for OS/2 (pthread/sigwait).Brian Havard2001-02-23
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61282 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_sigwait to the apr_private.h file. This allows us to removeRyan Bloom2001-02-21
| | | | | | | | a couple of #ifdefs, and standardize some code. This macro comes directly from the Apache code. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61277 13f79535-47bb-0310-9956-ffa450edef68
* Get APR apps building on FreeBSD when --enable-threads isn't specified.Jeff Trawick2001-02-21
| | | | | | | | We had unresolved references for pthread_sigmask() and sigwait(). These thread support functions aren't appropriate anyway if !APR_HAS_THREADS. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61270 13f79535-47bb-0310-9956-ffa450edef68
* get APR apps to build again by fixing the unresolve reference toJeff Trawick2001-02-21
| | | | | | | apr_sigwait() git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61267 13f79535-47bb-0310-9956-ffa450edef68
* Add some functions to APR's thread/processes support to allow a singleRyan Bloom2001-02-21
| | | | | | | thread to handle all signal processing. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61266 13f79535-47bb-0310-9956-ffa450edef68
* Remove a useless test.Cliff Woolley2001-02-19
| | | | | | | | This file still doesn't compile with Cygwin's pthread.h, but that seems to be Cygwin's fault. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61261 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-16
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* get prototype for apr_psprintf()Jeff Trawick2001-02-12
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61224 13f79535-47bb-0310-9956-ffa450edef68
* Change a call from setpgrp to setpgid(0, 0). According to man these areRyan Bloom2001-02-11
| | | | | | | identical, but the latter is more portable. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61216 13f79535-47bb-0310-9956-ffa450edef68
* *) include "apr_signal.h" when neededGreg Stein2001-02-11
| | | | | | | *) some other minor include tweaks git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61208 13f79535-47bb-0310-9956-ffa450edef68
* *) add apr_signal_get_description() to that platforms (which have signals)Greg Stein2001-02-11
| | | | | | | | | | can portably get descriptions for them. *) move signal stuff from apr.h to (new) apr_signal.h *) os2/signals.c was collapsed into unix/signals.c *) APR initialization will init the signal names (if needed) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61207 13f79535-47bb-0310-9956-ffa450edef68
* s/pupt/put/g typoDoug MacEachern2001-02-08
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61195 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakeDoug MacEachern2001-02-08
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61194 13f79535-47bb-0310-9956-ffa450edef68
* Libtool-ize APR.Greg Stein2001-01-09
| | | | | | | | | | | | | | | | | To simplify the task, I also shifted the Makefiles to include a rules.mk (based on APRUTIL's with a few tweaks). Still needs some work to remove the INCLUDES setup in all the Makefiles (these can be shared). buildconf now does more work (and generates some output) aclocal.m4 is based on a number of M4 files, rather than standalone apr/test/ has been updated but is probably broken in a few ways. objs/ is now gone. we link directly from the .lo files. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61037 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_private.h.in from the include directory to the arch/unixRyan Bloom2000-12-08
| | | | | | | | | | | directory. This removes all temptation to include apr_private.h from outside of APR, because it just isn't available. This also highlighted a bunch of holes in our header file setup. Basically, just directories that were never migrated to the curret setup. Submitted by: Will Rowe and Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60919 13f79535-47bb-0310-9956-ffa450edef68
* The arguments to apr_create_process() should be "const" since we aren'tGreg Stein2000-11-26
| | | | | | | | | | going to change them. It is also quite possible that args are constant strings (thus, we *definitely* better not change them). "env" got the same treatment. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60795 13f79535-47bb-0310-9956-ffa450edef68
* Get exports.c symbols to compile even if the declaration is hidden inJeff Trawick2000-11-17
| | | | | | | | | | APR include file. Implement all exports.c symbols even if the package or function isn't available in the current configuration. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60748 13f79535-47bb-0310-9956-ffa450edef68
* axe some old commentsJeff Trawick2000-11-15
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60730 13f79535-47bb-0310-9956-ffa450edef68
* This patch removes the dependencies from Makefile.in. DependenciesJeff Trawick2000-11-15
| | | | | | | | | | | | | | | | | will not be checked into CVS, as they are added to Makefile when the user runs "make depend." The exact mechanism for building dependencies is moved to a script called mkdep.sh in the APR helpers directory. Folks are free to make the mechanism more general (i.e., work on systems without gcc -MM), but for now it still requires gcc -MM. The patch also removes some commented out variable definitions and rules. BeOS- and OS/2-specific makefiles have not been updated. I'll post a patch to those or go ahead and commit them later, but David and Brian will get to test them. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60727 13f79535-47bb-0310-9956-ffa450edef68
* Move all of the threadproc private header files to an arch directory underRyan Bloom2000-11-09
| | | | | | | | | the include directory. All private header files for APR are being moved. This allows platforms that only implement some of the APR types to compile cleanly. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60660 13f79535-47bb-0310-9956-ffa450edef68
* BONE allows fork() so we might as well make use of it!David Reid2000-10-23
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60608 13f79535-47bb-0310-9956-ffa450edef68
* Fix piped logs in 2.0. This basically:Ryan Bloom2000-10-18
| | | | | | | | | | | | 1) cleans up an annoying type that was getting in my way while I was trying to fix things. 2) Makes some of the allocations pcalloc instead of palloc 3) The arg array passed to create_process is a const *char *, not const *char []. PR: 6642 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60599 13f79535-47bb-0310-9956-ffa450edef68
* Fix a bug in apr_create_process() for Unix. The NULL signifyingJeff Trawick2000-09-15
| | | | | | | | | | the end of the parameters to execve() was stored in the wrong location, overlaying the storage beyond the newargs[] array and also passing uninitialized storage to execve(), which would sometimes fail with EFAULT. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60532 13f79535-47bb-0310-9956-ffa450edef68
* this was deleted on April 14th, but got resuscitated somehowGreg Stein2000-09-09
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60523 13f79535-47bb-0310-9956-ffa450edef68
* Allow dso builds with pthreads enabled to work on platforms which don't haveGreg Ames2000-08-31
| | | | | | | | | pthread_key_delete (e.g. OS/390). apr_delete_thread_private is currently unused. If/when somebody tries to use apr_delete_thread_private on such a platform, the build will fail and we can deal with the missing OS function then. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60517 13f79535-47bb-0310-9956-ffa450edef68
* We need to test specifically for setrlimit/getrlimit instead ofJim Jagielski2000-08-23
| | | | | | | | | | | | | just the structure or the RLIMIT_* defines. Also, we should make the API function unixd_set_rlimit() ``available'' even if it doesn't do anything. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60512 13f79535-47bb-0310-9956-ffa450edef68
* Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...William A. Rowe Jr2000-08-06
| | | | | | | | | | | | | see src/lib/apr/apr_compat.h for most details. Also a few minor nits to get Win32 to build. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60481 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_Doug MacEachern2000-08-02
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* Fix some problems with which error code to use after a pthread_ failure.Jeff Trawick2000-07-31
| | | | | | | | | Most of the changes added support for PTHREAD_SETS_ERRNO; a few of the changes fixed bugs in existing code which always used errno (which doesn't get the right error code on most platforms). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60460 13f79535-47bb-0310-9956-ffa450edef68
* ap_setprocattr_limit() was broken due to missing break statements.Jeff Trawick2000-07-29
| | | | | | | | | The caller could get APR_ENOTIMPL when the limit was set; the limit argument could be used for more than what the caller specified. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60456 13f79535-47bb-0310-9956-ffa450edef68
* Move the ap_signal code form apr_signal.c in lib to signals.c inRyan Bloom2000-07-24
| | | | | | | | threadproc/unix. All in the name of removing the lib directory once and for all. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60441 13f79535-47bb-0310-9956-ffa450edef68
* Update dependancies.Ryan Bloom2000-07-24
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60439 13f79535-47bb-0310-9956-ffa450edef68
* Update dependencies.Roy T. Fielding2000-07-23
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60435 13f79535-47bb-0310-9956-ffa450edef68
* Update dependenciesSascha Schumann2000-07-23
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60426 13f79535-47bb-0310-9956-ffa450edef68
* Move all APR functions related to strings to their own directory, andRyan Bloom2000-07-21
| | | | | | | | | create a new header for those functions. This is the first step to removing the apr/lib directory completely, and moving those files/functions to descriptive directories. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60398 13f79535-47bb-0310-9956-ffa450edef68
* Fix ap_get_os_threadkey.Ryan Bloom2000-07-10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60326 13f79535-47bb-0310-9956-ffa450edef68
* Fix ap_get_os_thread. This should work on Windows and Unix now.Ryan Bloom2000-07-10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60325 13f79535-47bb-0310-9956-ffa450edef68
* Make depend.Ben Laurie2000-07-09
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60321 13f79535-47bb-0310-9956-ffa450edef68
* a while back, we said "segfault on invalid params rather than returning anGreg Stein2000-07-08
| | | | | | | | | | error." this removes some of the error checking that was occurring in the "user data" functions. also saw some in the "get/set OS type" functions and nuked those; there are still checks for pool==NULL, though, since that would end up making us malloc() rather than segfault'ing. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60318 13f79535-47bb-0310-9956-ffa450edef68
* const-ify the userdata interfacesGreg Stein2000-07-08
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60317 13f79535-47bb-0310-9956-ffa450edef68
* Update dependancies in APRRyan Bloom2000-07-07
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60315 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup yesterday's patch to make APR use APR namespace protected macros.Ryan Bloom2000-06-22
| | | | | | | | | | | This makes APR use #if instead of #ifdef when using an APR macro. Since APR has stated that it will be using #if always, this is at least a step in that direction. This also fixes a problem with building MMAP that I think I introduced yesterday. Submitted by: Bill Stoddard git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60241 13f79535-47bb-0310-9956-ffa450edef68
* Big commit. Basically, if APR defines a public feature macro, then APRRyan Bloom2000-06-22
| | | | | | | | | should also use that macro internally. This keeps us from checking for multiple macros as we were doing in the SENDFILE case. It also means that APR is definately building the same way that external programs expect it to. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60239 13f79535-47bb-0310-9956-ffa450edef68
* ap_create_pipe was changed to return a pipe with both handlesJeff Trawick2000-06-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | blocking (previously, both handles were non-blocking). ap_set_pipe_timeout() is now the only way to manipulate the blocking state of the pipe. Pass -1 for timeout to make it blocking; pass 0 for timeout to make it non-blocking. ap_block_pipe() is gone. A few minor bugs were fixed along the way. OS-specific notes: non-Unix in general: Only Unix/BeOS currently has the optimization to keep track of the blocking state. This is used to avoid syscalls as well as to handle ap_put_os_file(), which is a case where we don't know the blocking state of the handle we are given. OS/2: ap_set_pipe_timeout() with timeout value > 0: The code didn't play with the blocking state before and it doesn't still. I did add logic for special timeout values 0 and -1 to play with the blocking state. ap_create_pipe(): old logic didn't do anything with the blocking state of the second handle; it still doesn't; hopefully it is blocking pre-BONE BEOS: old code to make a pipe non-blocking was a no-op; now it returns APR_ENOTIMPL BONE: old code to make a pipe non-blocking; it passed &zero as the parm to FIONBIO instead of &one; this bug was fixed Win32: The pipe was always created blocking before; no change previously, ap_setprocattr_io() ignored the blocking flag; now it respects it like other platforms and calls ap_set_pipe_timeout(p,0) on appropriate pipe handles (Bill Stoddard was just working in ap_set_pipe_timeout(), so I presume this is golden) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60235 13f79535-47bb-0310-9956-ffa450edef68
* Remove unixd_detach function, because it is provided by APR as ap_detach.Ryan Bloom2000-06-20
| | | | | | | | This also modifies the ap_detach function to look like unixd_detach. Finally all calls to unixd_detach are changed to ap_detach. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60234 13f79535-47bb-0310-9956-ffa450edef68