aboutsummaryrefslogtreecommitdiff
path: root/threadproc/os2
Commit message (Collapse)AuthorAge
...
* rename apr_arch_fileio.h to apr_arch_file_io.h for consistencyThom May2003-01-07
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64275 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesThom May2003-01-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aix/dso.h -> -> aix/apr_arch_dso.h beos/dso.h -> beos/apr_arch_dso.h beos/proc_mutex.h -> beos/apr_arch_proc_mutex.h beos/thread_cond.h -> beos/apr_arch_thread_cond.h beos/thread_mutex.h -> beos/apr_arch_thread_mutex.h beos/threadproc.h -> beos/apr_arch_threadproc.h beos/thread_rwlock.h -> beos/apr_arch_thread_rwlock.h netware/dso.h -> -> netware/apr_arch_dso.h netware/fileio.h -> -> netware/apr_arch_fileio.h netware/global_mutex.h -> netware/apr_arch_global_mutex.h netware/internal_time.h -> netware/apr_arch_internal_time.h netware/networkio.h -> netware/apr_arch_networkio.h netware/pre_nw.h -> netware/apr_arch_pre_nw.h netware/proc_mutex.h -> netware/apr_arch_proc_mutex.h netware/thread_cond.h -> netware/apr_arch_thread_cond.h netware/thread_mutex.h -> netware/apr_arch_thread_mutex.h netware/threadproc.h -> netware/apr_arch_threadproc.h netware/thread_rwlock.h -> netware/apr_arch_thread_rwlock.h os2/dso.h -> os2/apr_arch_dso.h os2/fileio.h -> os2/apr_arch_fileio.h os2/networkio.h -> os2/apr_arch_networkio.h os2/os2calls.h -> os2/apr_arch_os2calls.h os2/proc_mutex.h -> os2/apr_arch_proc_mutex.h os2/thread_cond.h -> os2/apr_arch_thread_cond.h os2/thread_mutex.h -> os2/apr_arch_thread_mutex.h os2/threadproc.h -> os2/apr_arch_threadproc.h os2/thread_rwlock.h -> os2/apr_arch_thread_rwlock.h os390/dso.h -> os390/apr_arch_dso.h unix/dso.h -> unix/apr_arch_dso.h unix/fileio.h -> unix/apr_arch_fileio.h unix/global_mutex.h -> unix/apr_arch_global_mutex.h unix/inherit.h -> unix/apr_arch_inherit.h unix/internal_time.h -> unix/apr_arch_internal_time.h unix/misc.h -> unix/apr_arch_misc.h unix/networkio.h -> unix/apr_arch_networkio.h unix/proc_mutex.h -> unix/apr_arch_proc_mutex.h unix/shm.h -> unix/apr_arch_shm.h unix/thread_cond.h -> unix/apr_arch_thread_cond.h unix/thread_mutex.h -> unix/apr_arch_thread_mutex.h unix/threadproc.h -> unix/apr_arch_threadproc.h unix/thread_rwlock.h -> unix/apr_arch_thread_rwlock.h win32/atime.h -> win32/apr_arch_atime.h win32/dso.h -> win32/apr_arch_dso.h win32/fileio.h -> win32/apr_arch_fileio.h win32/inherit.h -> win32/apr_arch_inherit.h win32/misc.h -> win32/apr_arch_misc.h win32/networkio.h -> win32/apr_arch_networkio.h win32/proc_mutex.h -> win32/apr_arch_proc_mutex.h win32/thread_cond.h -> win32/apr_arch_thread_cond.h win32/thread_mutex.h -> win32/apr_arch_thread_mutex.h win32/threadproc.h -> win32/apr_arch_threadproc.h win32/thread_rwlock.h -> win32/apr_arch_thread_rwlock.h win32/utf8.h -> win32/apr_arch_utf8.h git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64271 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.Thom May2003-01-01
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Implement apr_thread_yield() on OS/2.Brian Havard2002-05-22
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63427 13f79535-47bb-0310-9956-ffa450edef68
* Add .deps to cvsignore since APR may now generate .deps files.Justin Erenkrantz2002-04-22
| | | | | | | (somehow CVS ignored updating these on the last commit.) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63287 13f79535-47bb-0310-9956-ffa450edef68
* Allow VPATH builds to properly generate build dependencies. This requiresJustin Erenkrantz2002-04-22
| | | | | | | | | | | | srcdir to always be available in a Makefile, so we need to stop adding this only when we use VPATH. Change the dependency generation to use .deps instead of appending to the Makefile. This makes us consistent with the dependency style of httpd-2.0. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63286 13f79535-47bb-0310-9956-ffa450edef68
* Rename all the "cntxt" members of the thread and proc structures toSander Striker2002-03-19
| | | | | | | "pool". git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63158 13f79535-47bb-0310-9956-ffa450edef68
* The apr_get_os_proc accessor is no longer supported [better or worse].William A. Rowe Jr2002-03-16
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63141 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-13
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* Change apr_proc_detach to take a parameter that can enable/disable automaticAaron Bannert2002-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | forking (aka, to "daemonize"). Detailed explanation: If we are only interested in detaching from the controlling terminal, then we are only interested in creating a new process group (or creating a new session, which implicitly creates a new process group). In order to do so, we must _NOT_ already be a process group leader. The only way to ensure that is true, we normally will call fork() and allow the parent to exit, ensuring that the child is at least a child of a process group leader (and not one itself). Doing this by default prevents some process-watching tools from working with Apache. Therefore, when calling apr_proc_detach with APR_PROC_DETACH_FOREGROUND, the caller is taking responsibility for _NOT_ being a process group leader, which is guaranteed by such process management tools. [A similiar patch was originally submitted Jos and later modifed by Aaron.] Obtained from: Jos Backus <josb@cncdsl.com> Submitted by: Aaron Bannert git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63044 13f79535-47bb-0310-9956-ffa450edef68
* Add a couple new command types to process creation:Greg Stein2002-01-28
| | | | | | | | | | | | | | | | | | APR_PROGRAM_ENV: start the program using the caller's environment APR_PROGRAM_PATH: search PATH for the program, use caller's env (the normal APR_PROGRAM isolates the env and does not use PATH) The BeOS, OS/2, and Win32 implementations are incomplete. These two new forms just default back to APR_PROGRAM for now. (although BeOS doesn't even distinguish between APR_SHELLCMD and APR_PROGRAM!) On Unix and Netware, these map into execv() and execvp() calls. Also clarified some doc for the enums in apr_thread_proc.h a bit. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62840 13f79535-47bb-0310-9956-ffa450edef68
* Fix missed reference to rv that was renamed to exitval.Brian Havard2001-12-29
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62682 13f79535-47bb-0310-9956-ffa450edef68
* Convert apr_thread_exit(..., apr_status_t *retval) toAaron Bannert2001-12-27
| | | | | | | | | | | apr_thread_exit(..., apr_status_t retval) so that status values can actually be returned back to apr_thread_join. This patch converts all platforms to store the returned status in the platform-specific opaque thread structure. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62670 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Implement exitcode/exitwhy enhancements in apr_proc_wait*Brian Havard2001-10-26
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62464 13f79535-47bb-0310-9956-ffa450edef68
* Fix the reporting for child processes that die. This removesRyan Bloom2001-10-23
| | | | | | | | | all of the non-portable W* macros from Apache. Submitted by: Jeff Trawick and Ryan Bloom git-svn-id: https://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 patchGreg Stein2001-09-20
| | | | | | | | | | | 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: https://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.Brian Havard2001-09-02
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62281 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Implement apr_thread_once().Brian Havard2001-09-02
| | | | | | | | | 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: https://svn.apache.org/repos/asf/apr/apr/trunk@62280 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix thread return value passing.Brian Havard2001-08-31
| | | | git-svn-id: https://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 inBrian Havard2001-08-30
| | | | | | | once I figure out WTF they do.... git-svn-id: https://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.Brian Havard2001-08-23
| | | | git-svn-id: https://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.Brian Havard2001-08-23
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62212 13f79535-47bb-0310-9956-ffa450edef68
* Wrap all APR functions in APR_DECLARE macro.Ryan Bloom2001-08-10
| | | | | | | Submitted by: Sterling Hughes <sterling@designmultimedia.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62139 13f79535-47bb-0310-9956-ffa450edef68
* Added a stub for apr_thread_yield()Bradley Nicholes2001-08-03
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62096 13f79535-47bb-0310-9956-ffa450edef68
* Updated APR to pass the thread worker_function prototypeWilliam A. Rowe Jr2001-07-24
| | | | | | | | | | | | | (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: https://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() &Brian Havard2001-06-16
| | | | | | | apr_os_thread_equal(). git-svn-id: https://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 wereGreg Ames2001-04-11
| | | | | | | | | | | | | 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: https://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 soBrian Havard2001-03-19
| | | | | | | | exports.c can safely be linked in. There's also a few stub functions returning APR_ENOTIMPL. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61367 13f79535-47bb-0310-9956-ffa450edef68
* Stop warning about apr_signal() being undeclared.Brian Havard2001-02-18
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61250 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
* Don't assume apr_pstrndup will return n bytes of storage. It was recentlyBrian Havard2001-02-13
| | | | | | | | optimized to only allocate enough storage for the string if shorter than n which caused the args to get scrambled. git-svn-id: https://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)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
* 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
* OS2 was chasing os2errno.h which we hid in a private platform directory,William A. Rowe Jr2001-01-28
| | | | | | | | | | | | 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: https://svn.apache.org/repos/asf/apr/apr/trunk@61156 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
* OS/2: const'ifying the args to apr_create_process() has a ripple effect....Brian Havard2000-11-26
| | | | git-svn-id: https://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'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
* OS/2 changes to the way dependencies are built in APR makefilesJeff Trawick2000-11-15
| | | | git-svn-id: https://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/Brian Havard2000-11-14
| | | | | | | | | | | | | | | | | | | 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: https://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 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
* The lots of little ones... APR_IS_STATUS_condition(rv) conditional macrosWilliam A. Rowe Jr2000-10-05
| | | | | | | | | 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: https://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.Brian Havard2000-08-06
| | | | git-svn-id: https://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.cBrian Havard2000-08-06
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60483 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
* OS/2: Fix a canonical error mismatch, allowing .exe files to be spawnedBrian Havard2000-07-14
| | | | | | | without explicitly including the .exe extension. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60371 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Add implementation of ap_wait_all_procs().Brian Havard2000-07-14
| | | | git-svn-id: https://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 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
* OS/2: Adapt to new ap_proc_t type & add missing ap_setprocattr_child*Brian Havard2000-05-25
| | | | | | | functions. git-svn-id: https://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 canSascha Schumann2000-04-30
| | | | | | | | | automatically adapt it for VPATH use. Remove $(OBJS): Makefile dependency to avoid unnecessary rebuilds. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59998 13f79535-47bb-0310-9956-ffa450edef68