summaryrefslogtreecommitdiff
path: root/file_io/os2/pipe.c
Commit message (Collapse)AuthorAgeFilesLines
* 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