summaryrefslogtreecommitdiff
path: root/file_io/os2/pipe.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright notices for 2005.jorton2005-06-141-1/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.1.x@190596 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0jerenkrantz2004-02-131-49/+10
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Remove the apr_pollset_t from apr_file_t. File handles can't be polledbjh2003-11-191-3/+0
| | | | | | | on OS/2 so having it doesn't serve any purpose. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64774 13f79535-47bb-0310-9956-ffa450edef68
* With the removal of apr_poll(), the apr_wait_for_io_or_timeout() functiongstein2003-11-171-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | needed to be rebuilt. Specifically, it needs a pollset, but we don't want to allocate that all the time. Thus, we need to create it once at socket or file creation time, and then reuse that pollset. NOTE: this makes the library compile, but some of the test programs may not. I have also not verified this work yet (in favor of just getting it to at least compile...) For the apr_arch_*.h files, I added a pollset member to the file and socket structures. For the various open/dup/etc functions, I added the creation of that pollset whenever a file or socket is created. (I may have missed some and will verify further) For the socket create and sendrecv function, I added the creation of the pollset. (again, may have missed some, but if everybody uses alloc_socket, then we should be okay) * support/unix/waitio.c: rebuild in terms of the pollset git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64759 13f79535-47bb-0310-9956-ffa450edef68
* Forward port from APR_0_9_BRANCH:striker2003-10-261-3/+18
| | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@64695 13f79535-47bb-0310-9956-ffa450edef68
* rename apr_arch_fileio.h to apr_arch_file_io.h for consistencythommay2003-01-071-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64275 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesthommay2003-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@64271 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.thommay2003-01-011-1/+1
| | | | | | | No functional changes git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Add implementation of apr_os_pipe_put().bjh2002-10-191-0/+18
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63950 13f79535-47bb-0310-9956-ffa450edef68
* Prepare to eliminate a platform specificwrowe2002-10-131-7/+7
| | | | | | | | | #define APR_OS2_STATUS(e) (APR_FROM_OS_ERROR(e)) for the platform agnostic APR_FROM_OS_ERROR() macro. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63909 13f79535-47bb-0310-9956-ffa450edef68
* Rename the "cntxt" members of the fileio structures to "pool".striker2002-03-201-10/+10
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63164 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.fielding2002-03-131-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* Wrap all APR functions in APR_DECLARE macro.rbb2001-08-101-4/+4
| | | | | | | 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
* Update copyright to 2001fielding2001-02-161-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakedougm2001-02-081-6/+6
| | | | | | | | | | | 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
* Add apr_get_pipe_timeout() for OS/2.bjh2000-11-141-0/+11
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60722 13f79535-47bb-0310-9956-ffa450edef68
* Fix OS/2 build after the move of private APR headers to the include/arch/bjh2000-11-141-1/+1
| | | | | | | | | | | | | | | | | | | 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 file private header files to an arch directory underrbb2000-11-091-1/+1
| | | | | | | | | 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@60653 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
* OS/2: Avoid unnecessary calls to set pipe blocking state.bjh2000-08-061-2/+11
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60484 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_dougm2000-08-021-9/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* Fix a missing ;bjh2000-06-251-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60251 13f79535-47bb-0310-9956-ffa450edef68
* This change to the current state of CVS is supposed to fix a problemtrawick2000-06-231-3/+6
| | | | | | | | | | | | | | | | introduced when pipes were made blocking by default as well as makes it work a little faster when pipes are blocking. It also fixes a glitch where setting pipe timeout to an invalid negative value returned APR_SUCCESS. We leave the pipe blocking after ap_create(), but it is non-blocking during the DosConnectNPipe() call. The pipe is set non-blocking if ap_set_pipe_timeout() is called with timeout >= 0. The pipe is set blocking if called with timeout -1. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60246 13f79535-47bb-0310-9956-ffa450edef68
* ap_create_pipe was changed to return a pipe with both handlestrawick2000-06-201-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* ap_puts(), ap_write(): make input buffer ptr const * instead of *trawick2000-06-171-1/+1
| | | | | | | ap_create_namedpipe(): make input path name ptr const * instead of * git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60217 13f79535-47bb-0310-9956-ffa450edef68
* back out APR_ prefix for TRUE,FALSEdougm2000-04-281-5/+5
| | | | 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-5/+5
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59975 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: We don't currently have an ungetchar in OS/2's ap_file_t asbjh2000-04-281-1/+0
| | | | | | | ap_ungetc() is fudged with a -1 seek. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59973 13f79535-47bb-0310-9956-ffa450edef68
* Fix the problem that the reader of the pipe always got a \0 prefixed intrawick2000-04-271-0/+1
| | | | | | | | | the buffer because of not setting ap_file_t->ungetchar to -1. Submitted by: Chia-liang Kao <clkao@CirX.ORG> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59958 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: First hack at non-blocking & time-outable pipes.bjh2000-04-181-7/+59
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59885 13f79535-47bb-0310-9956-ffa450edef68
* ap_set_pipe_timeout() now takes microseconds instead of seconds;trawick2000-04-151-1/+1
| | | | | | | | | ap_interval_time_t was created to represent intervals; Unfortunately, some compile fixes for the recently added buffering code are mixed in with these changes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59862 13f79535-47bb-0310-9956-ffa450edef68
* Change ap_context_t to ap_pool_t. This compiles, runs, and serves pagesrbb2000-04-141-2/+2
| | | | | | | on Linux, but probably breaks somewhere. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59856 13f79535-47bb-0310-9956-ffa450edef68
* First stage of migrating OS/2 code to new error code mappings, define & usebjh2000-04-081-1/+1
| | | | | | | 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-031-4/+4
| | | | | | | | 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
* Change struct file_t to struct ap_file_t. This clarifies things a bit thatrbb2000-04-031-4/+4
| | | | | | | | | APR defines both the struct and typedef's it. This is also the way things should have been coded originally, so this just fixes it. Expect more of these patches today. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59768 13f79535-47bb-0310-9956-ffa450edef68
* Update to Apache Software License version 1.1fielding2000-03-311-32/+31
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59754 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Update named pipe functions to match current prototypes.bjh2000-03-161-2/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59714 13f79535-47bb-0310-9956-ffa450edef68
* Fix all the License issues. Including:rbb2000-03-101-9/+9
| | | | | | | | | s/Apache Group/Apache Software Foundation/ s/1999/2000/ s/Sascha's license/ASF license git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59688 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: file_cleanup() should be namespace protected as it's not static.bjh2000-03-031-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59683 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Implement delete on close & fix an allocation error in ap_open_stderr.bjh2000-01-101-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59583 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: First take at adding buffered file I/O support. Only reads tested so far.bjh1999-10-191-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59381 13f79535-47bb-0310-9956-ffa450edef68
* Make sure to use ap_null_cleanup instead of NULL when setting an emptymanoj1999-10-121-2/+2
| | | | | | | child_cleanup. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59321 13f79535-47bb-0310-9956-ffa450edef68
* Bring file_io up to the new parameter order for APR. I have decided to dorbb1999-10-061-1/+1
| | | | | | | | these on a directory by directory basis for the rest of APR. I hope to cause fewer problems for other developers by doing it this way. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59274 13f79535-47bb-0310-9956-ffa450edef68
* First patch to re-order function parameters. This one gets the low hangingrbb1999-10-041-2/+2
| | | | | | | | | | fruit, and moves most of the result parameters to the first argument. Future patches in this series will move the rest of the result parameters to the beginning of the list, and will move the context's to the end of the list git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59259 13f79535-47bb-0310-9956-ffa450edef68
* Initial revisionrbb1999-08-171-0/+98
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59151 13f79535-47bb-0310-9956-ffa450edef68