summaryrefslogtreecommitdiff
path: root/threadproc
Commit message (Collapse)AuthorAgeFilesLines
* Win32: Add apr_os_thread_current()stoddard2001-07-061-0/+5
| | | | | | | | Submitted by: Ian Holsman Reviewed by: Bill Stoddard git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61878 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Add implementations of apr_file_trunc(), apr_os_thread_current() &bjh2001-06-161-0/+17
| | | | | | | apr_os_thread_equal(). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61774 13f79535-47bb-0310-9956-ffa450edef68
* on some Unix platforms pthread_t is a structure and the compiler won't allowtrawick2001-06-142-0/+10
| | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@61768 13f79535-47bb-0310-9956-ffa450edef68
* This is a much larger commit than I meant to have, but a lot hasdreid2001-06-062-0/+11
| | | | | | | | | | | | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@61716 13f79535-47bb-0310-9956-ffa450edef68
* A touch of fixes for win32. Lots more wrong apr_size_t vs apr_off_twrowe2001-05-161-1/+1
| | | | | | | assumptions to correct, though. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61650 13f79535-47bb-0310-9956-ffa450edef68
* Convert the apr_create_signal_thread to apr_signal_thread. The mainrbb2001-04-121-10/+2
| | | | | | | | | | | | difference, is that instead of creating a separate thread to listen for signals, the thread that calls this function does the listening. Many platforms have issues when the main thread isn't the thread that is listening for signals. Even more platforms complain when the main thread dies, but the process doesn't. This gets the main thread back to being the signal handling thread. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61518 13f79535-47bb-0310-9956-ffa450edef68
* This small change stops a build breakage.dreid2001-04-121-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61517 13f79535-47bb-0310-9956-ffa450edef68
* I don't think this routine is ever used, but the key needs to befielding2001-04-121-1/+8
| | | | | | | | | | allocated (just like the other platforms) to avoid a null reference. Submitted by: Christian Gross <mailing@devspace.com> Reviewed by: Roy Fielding git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61499 13f79535-47bb-0310-9956-ffa450edef68
* Fix the naming of the apr_threadattr_detach_xxx functions. get and set weregregames2001-04-114-8/+8
| | | | | | | | | | | | | reversed. This may have broken the Unix threaded mpm's when they started using the bogus "set" function. A likely symptom would be failure to stop a threaded process cleanly. Note: it appears these functions are essentially no-ops except in Unix. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61495 13f79535-47bb-0310-9956-ffa450edef68
* Fix a #error so that signals.c compiles again.trawick2001-04-071-1/+1
| | | | | | | Submitted by: Justin Erenkrantz <jerenkrantz@ebuilt.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61471 13f79535-47bb-0310-9956-ffa450edef68
* If we don't have sigwait(), but we have sigsuspend(), use the latter.wsanchez2001-04-061-1/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61466 13f79535-47bb-0310-9956-ffa450edef68
* Spelingwsanchez2001-04-041-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61455 13f79535-47bb-0310-9956-ffa450edef68
* get rid of a parameter check in apr_proc_wait(); better to segfaulttrawick2001-04-031-2/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61451 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: add an assortment of misc helper functions that were missing sobjh2001-03-193-0/+76
| | | | | | | | exports.c can safely be linked in. There's also a few stub functions returning APR_ENOTIMPL. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61367 13f79535-47bb-0310-9956-ffa450edef68
* Fix some warnings dealing with the fact that void * isn't compatibletrawick2001-02-281-2/+2
| | | | | | | with a function pointer. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61329 13f79535-47bb-0310-9956-ffa450edef68
* Get the signal thread (and thus Apache threaded MPMs) working properlytrawick2001-02-271-0/+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: http://svn.apache.org/repos/asf/apr/apr/trunk@61326 13f79535-47bb-0310-9956-ffa450edef68
* Get APR to build on Tru64 again.trawick2001-02-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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: http://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, andwrowe2001-02-253-3/+3
| | | | | | | also cleanup s/#ifdef HAVE_FOO_H/#if APR_HAVE_FOO_H/ whrere appropriate. git-svn-id: http://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. Hopefullyrbb2001-02-251-1/+1
| | | | | | | | any platform like this will be able to mimic the signal thread, but for now this fixes any machine without sigwait. git-svn-id: http://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 eithertrawick2001-02-251-83/+0
| | | | | | | (haven't we been here before?) git-svn-id: http://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).bjh2001-02-231-1/+1
| | | | git-svn-id: http://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 removerbb2001-02-211-6/+1
| | | | | | | | a couple of #ifdefs, and standardize some code. This macro comes directly from the Apache code. git-svn-id: http://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.trawick2001-02-211-1/+5
| | | | | | | | We had unresolved references for pthread_sigmask() and sigwait(). These thread support functions aren't appropriate anyway if !APR_HAS_THREADS. git-svn-id: http://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 totrawick2001-02-211-2/+10
| | | | | | | apr_sigwait() git-svn-id: http://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 singlerbb2001-02-211-0/+47
| | | | | | | thread to handle all signal processing. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61266 13f79535-47bb-0310-9956-ffa450edef68
* Remove a useless test.jwoolley2001-02-191-5/+2
| | | | | | | | This file still doesn't compile with Cygwin's pthread.h, but that seems to be Cygwin's fault. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61261 13f79535-47bb-0310-9956-ffa450edef68
* Stop warning about apr_signal() being undeclared.bjh2001-02-181-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61250 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001fielding2001-02-1617-17/+17
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* Don't assume apr_pstrndup will return n bytes of storage. It was recentlybjh2001-02-131-4/+6
| | | | | | | | optimized to only allocate enough storage for the string if shorter than n which caused the args to get scrambled. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61228 13f79535-47bb-0310-9956-ffa450edef68
* get prototype for apr_psprintf()trawick2001-02-121-0/+1
| | | | git-svn-id: http://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 arerbb2001-02-111-1/+1
| | | | | | | identical, but the latter is more portable. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61216 13f79535-47bb-0310-9956-ffa450edef68
* add new signal init/query functionsgstein2001-02-111-0/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61210 13f79535-47bb-0310-9956-ffa450edef68
* *) include "apr_signal.h" when neededgstein2001-02-111-0/+1
| | | | | | | *) some other minor include tweaks git-svn-id: http://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)gstein2001-02-112-107/+184
| | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@61207 13f79535-47bb-0310-9956-ffa450edef68
* s/pupt/put/g typodougm2001-02-083-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61195 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakedougm2001-02-0816-242/+242
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61194 13f79535-47bb-0310-9956-ffa450edef68
* OS2 was chasing os2errno.h which we hid in a private platform directory,wrowe2001-01-283-4/+0
| | | | | | | | | | | | 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
* Add remaining APR_DECLARE()s to all headers. Conditionally addedwrowe2001-01-184-52/+71
| | | | | | | | | | | | | | | | | | | | APR_DECLARES() to the sources, based on compilation emits (there are many that should be changed eventually, but the compiler will emit errors if those sources are added for win32). This change also splits libapr from apr, so the two projects are compiled seperately. Both .dsp files must be kept up-to-date with source file revisions. Finally, libapr.def is no longer needed - so it is gone. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61072 13f79535-47bb-0310-9956-ffa450edef68
* Adjust the way we look for dead threads after Carlos Hasan's suggestiondreid2001-01-101-7/+6
| | | | | | | | | and a few items of general tidy up. Submitted by: Carlos Hasan <chasan@acm.org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61042 13f79535-47bb-0310-9956-ffa450edef68
* Libtool-ize APR.gstein2001-01-096-95/+39
| | | | | | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@61037 13f79535-47bb-0310-9956-ffa450edef68
* Various bits of tidying up mainly for locking, but a few thread bits as well.dreid2000-12-311-7/+0
| | | | | | | | Submitted by: Carlos Hasan <chasan@acm.org> Reviewed by: David Reid <dreid@apache.org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60998 13f79535-47bb-0310-9956-ffa450edef68
* 2000-12-19 Bill Tutt <rassilon@lima.mudlib.org>brane2000-12-211-141/+164
| | | | | | | | | | | | | | | | 2000-12-21 Branko Cibej <brane@xbc.nu> * aprlib.def: Export apr_setprocattr_childin, apr_setprocattr_childout, and apr_setprocattr_childerr. * threadproc/win32/proc.c: Folded pipe creation out into helper function. Moved inheritable-ness mucking from apr_create_process into apr_setprocattr_* functions. Added apr_setprocattr_child{in,out,err}. Note that APR_SHELLCMD won't work (and has never worked) on Win9x. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60973 13f79535-47bb-0310-9956-ffa450edef68
* Get exe CGI's working again on Windowsake2000-12-151-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60955 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_private.h.in from the include directory to the arch/unixrbb2000-12-086-10/+7
| | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@60919 13f79535-47bb-0310-9956-ffa450edef68
* Argh - correct my eariler attempt to get this building.dreid2000-12-021-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60846 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: const'ifying the args to apr_create_process() has a ripple effect....bjh2000-11-261-4/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60797 13f79535-47bb-0310-9956-ffa450edef68
* The arguments to apr_create_process() should be "const" since we aren'tgstein2000-11-264-12/+16
| | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@60795 13f79535-47bb-0310-9956-ffa450edef68
* More fixes to get BeOS building and a few missing functions to try anddreid2000-11-194-1/+72
| | | | | | | keep exports.c happy :) With these changes we're now back building again. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60766 13f79535-47bb-0310-9956-ffa450edef68
* Get this working on BeOS again after the arch changes.dreid2000-11-184-4/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60762 13f79535-47bb-0310-9956-ffa450edef68
* Get exports.c symbols to compile even if the declaration is hidden intrawick2000-11-172-0/+102
| | | | | | | | | | APR include file. Implement all exports.c symbols even if the package or function isn't available in the current configuration. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60748 13f79535-47bb-0310-9956-ffa450edef68