summaryrefslogtreecommitdiff
path: root/network_io/os2
Commit message (Collapse)AuthorAgeFilesLines
* Add support for APR_SO_BROADCASTsf2011-10-151-0/+5
| | | | | | | | PR: 46389 Submitted by: Armin Müller <mueller itestra com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1183693 13f79535-47bb-0310-9956-ffa450edef68
* Hide apr_wait_for_io_or_timeout() from public view and add insteadbjh2010-04-121-0/+18
| | | | | | | apr_socket_wait() and apr_file_pipe_wait(). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@933338 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Remove all remaining uses of APR_OS2_STATUS macro which has beenbjh2010-04-024-24/+24
| | | | | | | superceded by the more general APR_FROM_OS_ERROR. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@930224 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Rework apr_socket_sendto() & apr_socket_recvfrom() to not usebjh2010-03-161-52/+64
| | | | | | | apr_wait_for_io_or_timeout() and to eliminate code duplication. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@923868 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: In apr_socket_create(), override the supplied protocol if family isbjh2010-03-161-1/+6
| | | | | | | | AF_UNIX. This is done in the unix implementation and is required to pass tests in testsock which pass APR_PROTO_TCP with AF_UNIX. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@923815 13f79535-47bb-0310-9956-ffa450edef68
* Include unix multicast functions in OS/2 build.bjh2010-03-131-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@922635 13f79535-47bb-0310-9956-ffa450edef68
* * Add apr_socket_is_connected to detect whether the remote side of a socketrpluem2009-10-041-0/+1
| | | | | | | | | is still open. The origin of apr_socket_is_connected is r473278 from http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c in httpd. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@821524 13f79535-47bb-0310-9956-ffa450edef68
* Sync Win32/OS2 unknown remote_addr and local_port flags to unix src.wrowe2006-11-281-0/+6
| | | | | | Reviewed by wrowe and jorton git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@480212 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.jorton2006-08-035-5/+5
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.jorton2006-08-035-30/+30
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* The OS/2 send() function returns EINVAL if the data size is > 64k so limit thebjh2006-01-051-0/+4
| | | | | | | | | | send size to 64k. As any call to apr_socket_send() must handle partial sends anyway, this will be treated just like any other partial send. This was occurring when svnserve was sending a large file. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@366063 13f79535-47bb-0310-9956-ffa450edef68
* Change INHERIT macros to use the new struct member rename.mturk2005-06-121-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@190307 13f79535-47bb-0310-9956-ffa450edef68
* Implement pool accessor for socketsmturk2005-06-121-10/+12
| | | | | | | | There is no functional change except changing stuct mamber from cntxt to pool to be able to use the ACCESSOR macros. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@190305 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.jerenkrantz2005-02-045-5/+10
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* Remove .cvsignore files.jorton2004-11-181-4/+0
| | | | | | | Tipped-of-by: Uwe Zeisberger git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0jerenkrantz2004-02-135-245/+50
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* First whack at switching to a single top-level make. This adds a dependencygstein2004-02-051-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | upon Python at packaging time, but not at end-user config/build time. As far as I can tell, the build continues to function properly. (out-of-dir config/make not tested, and apr-iconv prolly needs some work) The buildconf scripts now generate a build-outputs.mk file which is included by the root's Makefile (via the build/gen-build.py script). bulid-outputs.mk specifies all of the various files present in the distribution. The top-level Makefiles were simplified to use an $(OBJECTS) symbol rather than 'find'ing them. Similarly, a $(HEADERS) symbol is used for the exports. The corresponding delete-* targets were eliminated since we have a precise set of inputs. The subdirs' Makefiles were removed since they are no longer called/used. The apr-util/uri Makefile was responsible for compiling a C program to generate the uri_delims.h file. That process was replaced by a Python script to generate the header (called by buildconf). The .c and .dsp were left for the Windows build to continue, but that should be revamped. build/apr_rules.mk was revamped somewhat to avoid recursion, but a lot of cleanup is still needed. Much of the recursive/local/x- logic is no longer needed and can be elimianated. rules.mk was created for inclusion by N makefiles, but that isn't really true any more, so it could probably be tossed (caveat: test/Makefile). Saved for a phase 2. Some additional work was added to properly clean up files in */build/, rather than relying on a makefile in there. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64891 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_socket_type_get() for retrieving the type (e.g., stream)trawick2003-11-301-0/+5
| | | | | | | | | | of the socket. Submitted by: Philippe M. Chiasson <gozer cpan.org> Reviewed by: trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64801 13f79535-47bb-0310-9956-ffa450edef68
* Getting closer to 1.0 - eliminate APR_SO_TIMEOUT and replacewrowe2003-11-201-8/+0
| | | | | | | | | | various tests with (sock->timeout > 0). Also mop up some very hard to read statements by liberally applying parens. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64778 13f79535-47bb-0310-9956-ffa450edef68
* With the removal of apr_poll(), the apr_wait_for_io_or_timeout() functiongstein2003-11-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* OS/2: get apr_socket_atmark() to build, adding a required size parameter tobjh2003-10-161-2/+3
| | | | | | | the ioctl call. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64690 13f79535-47bb-0310-9956-ffa450edef68
* Time to turn on the protocol member for APR 1.0.wrowe2003-10-151-4/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64688 13f79535-47bb-0310-9956-ffa450edef68
* Implement apr_socket_atmark, similar to socket_atmark except 1) it'swrowe2003-10-141-0/+13
| | | | | | | | | | | | | | portable, and 2) the return value is passed by a boolean (int) ref, with errors returned as an apr_status_t. The question is, how portable? sys/sockio.h seems sufficent for me on hp/ux, solaris, linux, osx, and this works on Win32. The Netware and OS2 implementations are best guesses. Submitted by: Jim Jagielski and William Rowe git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64684 13f79535-47bb-0310-9956-ffa450edef68
* axe these deprecated functions:trawick2003-09-033-54/+0
| | | | | | | | | apr_getsocketopt, apr_recv, apr_recvfrom, apr_send, apr_sendfile, apr_sendto, apr_sendv, apr_setsocketopt, apr_socket_set_inherit, apr_socket_unset_inherit git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64605 13f79535-47bb-0310-9956-ffa450edef68
* remove these deprecated interfaces:trawick2003-09-031-39/+2
| | | | | | | | apr_accept, apr_bind, apr_connect, apr_listen, apr_shutdown, apr_socket_create_ex, MAX_SECONDS_TO_LINGER git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64604 13f79535-47bb-0310-9956-ffa450edef68
* apr_socket_data_set(): allow the same key to be used fortrawick2003-07-081-4/+28
| | | | | | | multiple sockets in the same pool. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64565 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection, thanks to Craig Rodrigues <rodrigc@attbi.com>wrowe2003-02-241-1/+1
| | | | | | | | for the original patch. Use the new symbols in all internals, taking us one step closer to being ready to just chop out the old defines. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64378 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesthommay2003-01-065-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-015-5/+5
| | | | | | | No functional changes git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Rename apr_recvfrom -> apr_socket_recvfrombjh2002-11-201-3/+14
| | | | | | | Missed in last round of renames. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64051 13f79535-47bb-0310-9956-ffa450edef68
* *) Renames done (deprecated functions wrapped):thommay2002-11-204-12/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | apr_filename_of_pathname -> apr_filepath_name_get apr_get_groupid -> apr_gid_get apr_get_groupname -> apr_gid_name_get apr_compare_groups -> apr_gid_compare apr_parse_addr_port -> apr_port_addr_parse apr_shutdown -> apr_socket_shutdown apr_bind -> apr_socket_bind apr_listen -> apr_socket_listen apr_accept -> apr_socket_accept apr_connect -> apr_socket_connect apr_send -> apr_socket_send apr_sendv -> apr_socket_sendv apr_sendto -> apr_socket_sendto apr_implode_gmt -> apr_time_exp_gmt_get apr_get_home_directory -> apr_uid_homepath_get apr_get_userid -> apr_uid_get apr_current_userid -> apr_uid_current apr_compare_users -> apr_uid_compare apr_get_username -> apr_uid_name_get apr_recvfrom -> apr_socket_recvfrom apr_sendfile -> apr_socket_sendfile apr_recv -> apr_socket_recv git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64043 13f79535-47bb-0310-9956-ffa450edef68
* Fix a problem retrieving the remote socket address for socketstrawick2002-10-251-0/+4
| | | | | | | created via apr_os_sock_put() or apr_s_sock_make() git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63985 13f79535-47bb-0310-9956-ffa450edef68
* fix compile break in OS/2 and Win32 apr_os_sock_make()trawick2002-10-181-2/+2
| | | | | | | Reported by: Brent R. Matzelle <bmatzelle@yahoo.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63948 13f79535-47bb-0310-9956-ffa450edef68
* apr_os_sock_put() shouldn't assume any particular protocoltrawick2002-10-181-1/+1
| | | | | | | | Submitted by: Randall Stewart <randall@stewart.chicago.il.us> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63946 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_socket_create_ex() to allow protocol to be specified for thetrawick2002-10-181-9/+26
| | | | | | | | | | | socket. With APR 1.0, this function will be removed and apr_socket_create() will have the additional parameter. Submitted by: Randall Stewart <randall@stewart.chicago.il.us> Reviewed/mangled by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63943 13f79535-47bb-0310-9956-ffa450edef68
* axe some checks for out-of-storage which are not helpful;trawick2002-07-301-7/+0
| | | | | | | | we'd already have segfaulted at this point and we don't normally perform such checks anyway git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63741 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Prevent duplicate symbol apr_wait_for_io_or_timeout by eliminating abjh2002-07-161-23/+3
| | | | | | | local version & using the general purpose one in support/unix/waitio.c instead. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63688 13f79535-47bb-0310-9956-ffa450edef68
* As rbb pointed out, two constructors are prone to bugs. Remap our oldwrowe2002-07-151-2/+2
| | | | | | | apr_socket_opt_set(SO_TIMEOUT) flavor to invoke apr_socket_timeout_set() git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63684 13f79535-47bb-0310-9956-ffa450edef68
* Missed a semicolwrowe2002-07-151-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63676 13f79535-47bb-0310-9956-ffa450edef68
* Deprecate apr_get/setsockopt for apr_socket_opt_get/setwrowe2002-07-151-4/+22
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63675 13f79535-47bb-0310-9956-ffa450edef68
* Too literal. These aught to compile now.wrowe2002-07-151-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63663 13f79535-47bb-0310-9956-ffa450edef68
* Straightforward implementations of apr_socket_timeout_set/get, rightwrowe2002-07-151-1/+15
| | | | | | | from the current apr_get/setsockopt implementations for OS2/Unix. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63662 13f79535-47bb-0310-9956-ffa450edef68
* An attempt at the OS/2 implementation. I have no OS/2 box, so thisrbb2002-07-112-248/+0
| | | | | | | | | probably won't work, but at least it is a start. My only question is can you select on a file descriptor on OS/2? If not, then we will just have to return an error on OS/2 if somebody tries to. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63603 13f79535-47bb-0310-9956-ffa450edef68
* Continue the Bill Rowe apr_size_t crusade.orlikowski2002-07-102-4/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63595 13f79535-47bb-0310-9956-ffa450edef68
* Last for today (compiles clean on Win32, hope the same for the rest ofwrowe2002-06-081-2/+2
| | | | | | | | our builds.) Clean up inherit_[un]set and simplify win32 discrepancy with inherit.h git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63481 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix apr_recv() when timeout == 0.bjh2002-05-081-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63371 13f79535-47bb-0310-9956-ffa450edef68
* Add .deps to cvsignore since APR may now generate .deps files.jerenkrantz2002-04-221-0/+1
| | | | | | | (somehow CVS ignored updating these on the last commit.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63287 13f79535-47bb-0310-9956-ffa450edef68
* Allow VPATH builds to properly generate build dependencies. This requiresjerenkrantz2002-04-221-0/+2
| | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@63286 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix apr_os_put_sock() to set local address as unknown & timeout to -1.bjh2002-04-141-0/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63263 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Set up local_addr of accepted socketbjh2002-04-141-2/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63262 13f79535-47bb-0310-9956-ffa450edef68