summaryrefslogtreecommitdiff
path: root/threadproc/os2
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagAPACHE_2_0_29(no author)2001-11-271-85/+0
| | | | | | 'APACHE_2_0_29'. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/tags/APACHE_2_0_29@62567 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Implement exitcode/exitwhy enhancements in apr_proc_wait*bjh2001-10-261-8/+64
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62464 13f79535-47bb-0310-9956-ffa450edef68
* Fix the reporting for child processes that die. This removesrbb2001-10-231-6/+7
| | | | | | | | | all of the non-portable W* macros from Apache. Submitted by: Jeff Trawick and Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62455 13f79535-47bb-0310-9956-ffa450edef68
* Return the exit code from apr_proc_wait(). This is a combination of a patchgstein2001-09-201-0/+3
| | | | | | | | | | | from Justin and Bill, plus a few additional tweaks. Submitted by: Justin Erenkrantz <jerenkrantz@ebuilt.com>, Bill Tutt <billtut@microsoft.com> Reviewed by: Greg Stein git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62350 13f79535-47bb-0310-9956-ffa450edef68
* Clean up the event sem in the apr_thread_once_t.bjh2001-09-021-0/+14
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62281 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Implement apr_thread_once().bjh2001-09-021-2/+17
| | | | | | | | | Avoids a race condition by using an OS/2 event semaphore, created in the posted state so that the first (and only the first) thread to reset it receives a post count of 1. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62280 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix thread return value passing.bjh2001-08-311-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62263 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Add stubs for apr_thread_once functions to fix link. Will fill them inbjh2001-08-301-0/+14
| | | | | | | once I figure out WTF they do.... git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62255 13f79535-47bb-0310-9956-ffa450edef68
* Ooops, test is redundant. We wouldn't get here if interpreter was 0 length.bjh2001-08-231-3/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62213 13f79535-47bb-0310-9956-ffa450edef68
* \n removal, needed now OS/2 apr_file_gets() leaves them on.bjh2001-08-231-0/+5
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62212 13f79535-47bb-0310-9956-ffa450edef68
* Wrap all APR functions in APR_DECLARE macro.rbb2001-08-103-54/+56
| | | | | | | Submitted by: Sterling Hughes <sterling@designmultimedia.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62139 13f79535-47bb-0310-9956-ffa450edef68
* Added a stub for apr_thread_yield()bnicholes2001-08-031-0/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62096 13f79535-47bb-0310-9956-ffa450edef68
* Updated APR to pass the thread worker_function prototypewrowe2001-07-241-8/+6
| | | | | | | | | | | | | (apr_thread_start_t) two parameters, the apr private data (apr_thread_t*) and the application private data (void*). Applications' worker_thread() routines may use apr_thread_pool_get to access the pool (implemented using APR_POOL_*_ACCESSOR() macros.) Submitted by: Aaron Bannert <aaron@ebuilt.com> Reviewed by: Will Rowe git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61998 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
* Fix the naming of the apr_threadattr_detach_xxx functions. get and set weregregames2001-04-111-2/+2
| | | | | | | | | | | | | 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
* 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
* 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-163-3/+3
| | | | 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
* *) add apr_signal_get_description() to that platforms (which have signals)gstein2001-02-111-98/+1
| | | | | | | | | | 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
* renaming various functions for consistency sakedougm2001-02-084-53/+53
| | | | | | | | | | | 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
* Libtool-ize APR.gstein2001-01-092-33/+12
| | | | | | | | | | | | | | | | | 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
* 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-261-2/+3
| | | | | | | | | | 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
* OS/2 changes to the way dependencies are built in APR makefilestrawick2000-11-151-56/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60732 13f79535-47bb-0310-9956-ffa450edef68
* Fix OS/2 build after the move of private APR headers to the include/arch/bjh2000-11-145-36/+52
| | | | | | | | | | | | | | | | | | | area. This also messes with some unix stuff where it's shared with OS/2. The strategy used to get the right platform specific include files is: - Every Makefile.in contains something like OSDIR=$(INCDIR)/arch/@OSDIR@ DEFOSDIR=$(INCDIR)/arch/@DEFAULT_OSDIR@ INCLUDES=-I$(INCDIR) -I$(OSDIR) -I$(DEFOSDIR) - all APR private includes look like #include "fileio.h", ie no leading arch directory so no #ifdef'ing needed in shared .c files. This ensures that the include file for the target platform is always used if it exists, otherwise the default is used. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60720 13f79535-47bb-0310-9956-ffa450edef68
* Move all of the threadproc private header files to an arch directory underrbb2000-11-096-111/+8
| | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@60660 13f79535-47bb-0310-9956-ffa450edef68
* The lots of little ones... APR_IS_STATUS_condition(rv) conditional macroswrowe2000-10-051-1/+1
| | | | | | | | | replacing the majority of fallible rv == APR_condition tests. But there are lots more to fix, these are the obvious ones that already did proper canonical error conversion. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60547 13f79535-47bb-0310-9956-ffa450edef68
* Include apr_strings.h in a bunch more places that need it.bjh2000-08-061-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60486 13f79535-47bb-0310-9956-ffa450edef68
* Add an OS/2 apr_signal(), pretty much copied from unix/signals.cbjh2000-08-061-0/+19
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60483 13f79535-47bb-0310-9956-ffa450edef68
* Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...wrowe2000-08-062-5/+7
| | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@60481 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_dougm2000-08-025-110/+110
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix a canonical error mismatch, allowing .exe files to be spawnedbjh2000-07-141-1/+1
| | | | | | | without explicitly including the .exe extension. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60371 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Add implementation of ap_wait_all_procs().bjh2000-07-141-0/+28
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60370 13f79535-47bb-0310-9956-ffa450edef68
* ap_create_pipe was changed to return a pipe with both handlestrawick2000-06-201-12/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@60235 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Adapt to new ap_proc_t type & add missing ap_setprocattr_child*bjh2000-05-252-54/+65
| | | | | | | functions. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60097 13f79535-47bb-0310-9956-ffa450edef68
* Make `mm' an INCDIR in shmem/unix, so that the INCDIR rewriter cansascha2000-04-301-1/+0
| | | | | | | | | automatically adapt it for VPATH use. Remove $(OBJS): Makefile dependency to avoid unnecessary rebuilds. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59998 13f79535-47bb-0310-9956-ffa450edef68
* Update comment for depend target. The template makefiles are now calledsascha2000-04-301-1/+1
| | | | | | | Makefile.in, and Configure became configure. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59996 13f79535-47bb-0310-9956-ffa450edef68
* back out APR_ prefix for TRUE,FALSEdougm2000-04-281-6/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59983 13f79535-47bb-0310-9956-ffa450edef68
* prefix TRUE,FALSE with APR_dougm2000-04-281-6/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59975 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_config.h and apr_config.hw to apr_private.h and apr_private.hw.rbb2000-04-222-5/+5
| | | | | | | | This should make the fact that this is a private header file more obvious. This also updates all of the references to apr_config.h git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59924 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Sort out error handling in ap_thread_join()bjh2000-04-201-2/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59902 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Now that we have non-blocking pipes, set them to blocking if requestedbjh2000-04-201-0/+27
| | | | | | | when creating pipes to a spawned process. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59901 13f79535-47bb-0310-9956-ffa450edef68
* Change ap_context_t to ap_pool_t. This compiles, runs, and serves pagesrbb2000-04-145-13/+98
| | | | | | | on Linux, but probably breaks somewhere. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59856 13f79535-47bb-0310-9956-ffa450edef68
* thread cancellation is essentially the same as signals -- a form ofdgaudet2000-04-142-91/+0
| | | | | | | | asynchronous notification. the apache threading model doesn't have asynchronous notification, so we don't need this part of the API. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59844 13f79535-47bb-0310-9956-ffa450edef68
* First stage of migrating OS/2 code to new error code mappings, define & usebjh2000-04-085-8/+8
| | | | | | | macro for returning OS/2 error codes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59815 13f79535-47bb-0310-9956-ffa450edef68
* Finish the APR naming cleanup. This removes the struct's fromrbb2000-04-035-33/+33
| | | | | | | | apr_variable declarations. This works on Unix, but a test compile on other platforms would be a good idea. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59773 13f79535-47bb-0310-9956-ffa450edef68
* fix the rest of the struct foo_t to struct ap_foo_t. Next is removing therbb2000-04-036-40/+40
| | | | | | | struct's where possible. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59769 13f79535-47bb-0310-9956-ffa450edef68
* Update to Apache Software License version 1.1fielding2000-03-316-191/+185
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59754 13f79535-47bb-0310-9956-ffa450edef68