summaryrefslogtreecommitdiff
path: root/network_io/beos
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces in *.c.Ivan Zhakov2022-11-201-10/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
* * Add apr_socket_is_connected to detect whether the remote side of a socketRuediger Pluem2009-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: https://svn.apache.org/repos/asf/apr/apr/trunk@821524 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-031-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* Make apr_socket_recvfrom set the port in the from sockaddr.Garrett Rooney2006-04-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | | Submitted by: Anthony Minessale <anthmct@yahoo.com> PR: 39325 * network_io/win32/sendrecv.c (apr_socket_recvfrom): Fill in from->port. * network_io/unix/sendrecv.c (apr_socket_recvfrom): Ditto. * network_io/beos/sendrecv.c (apr_socket_recvfrom): Ditto. * test/testsockets.c (sendto_recievefrom): Zero out the port before calling recvfrom, to confirm that it's filled in. * CHANGES: Note change. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@397344 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-041-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* Remove .cvsignore files.Joe Orton2004-11-181-4/+0
| | | | | | | Tipped-of-by: Uwe Zeisberger git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0Justin Erenkrantz2004-02-131-49/+10
| | | | git-svn-id: https://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 dependencyGreg Stein2004-02-051-14/+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: https://svn.apache.org/repos/asf/apr/apr/trunk@64891 13f79535-47bb-0310-9956-ffa450edef68
* With the removal of apr_poll(), the apr_wait_for_io_or_timeout() functionGreg Stein2003-11-171-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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: https://svn.apache.org/repos/asf/apr/apr/trunk@64759 13f79535-47bb-0310-9956-ffa450edef68
* axe these deprecated functions:Jeff Trawick2003-09-031-38/+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: https://svn.apache.org/repos/asf/apr/apr/trunk@64605 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesThom May2003-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: https://svn.apache.org/repos/asf/apr/apr/trunk@64271 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.Thom May2003-01-011-1/+1
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* *) Renames done (deprecated functions wrapped):Thom May2002-11-201-10/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: https://svn.apache.org/repos/asf/apr/apr/trunk@64043 13f79535-47bb-0310-9956-ffa450edef68
* Remove the old BeOS poll implementation. BeOS's poll implementation looksRyan Bloom2002-07-112-328/+1
| | | | | | | | like the select implementation on Unix, so I believe that this should just work, but it is untested. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63602 13f79535-47bb-0310-9956-ffa450edef68
* Continue the Bill Rowe apr_size_t crusade.Victor J. Orlikowski2002-07-101-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63595 13f79535-47bb-0310-9956-ffa450edef68
* use new time conversion macros in place of APR_USEC_PER_SECBrian Pane2002-07-051-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63566 13f79535-47bb-0310-9956-ffa450edef68
* Small fix for beos networking.David Reid2002-05-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63333 13f79535-47bb-0310-9956-ffa450edef68
* Add .deps to cvsignore since APR may now generate .deps files.Justin Erenkrantz2002-04-221-0/+1
| | | | | | | (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-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: https://svn.apache.org/repos/asf/apr/apr/trunk@63286 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-132-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* This patch basically allows BeOS R5's apr_poll to work like it should do!David Reid2002-01-141-4/+91
| | | | | | | | | | | | | Essentially R5 is very fast to return if you have a socket available, but if you have more than one you'll only get the first one! hence, we now track how many socket/checks we're trying for and if we don't have all of them (which let's face it seems unlikely) we quickly see if any more sockets are available for us. Messy, but it works :) I've added checking for the lowsocket to reduce the range of sockets we check. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62781 13f79535-47bb-0310-9956-ffa450edef68
* No point in using apr_pcalloc when we then go on to use FD_ZERO is there?David Reid2002-01-131-6/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62778 13f79535-47bb-0310-9956-ffa450edef68
* Wrap all APR functions in APR_DECLARE macro.Ryan Bloom2001-08-102-23/+23
| | | | | | | 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
* Couple of fixes for pre-BONE beos...David Reid2001-07-271-4/+4
| | | | | | | | | | | | | - correctly set the file_as_socket - add the apr_wait_for_timeout so it's visible These come from Brad Froehle. Submitted by: Brad Froehle <bradley_f@hotmail.com> Reviewed by: David Reid <dreid@apache.org> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62038 13f79535-47bb-0310-9956-ffa450edef68
* This change fixes the biggest outstanding bug on BeOS R5. This may need toDavid Reid2001-04-041-17/+6
| | | | | | | | | | be applied to the other send/recv functions but more testing will be required to see if they also suffer from the problem. Suggested by Jeff Trawick. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61457 13f79535-47bb-0310-9956-ffa450edef68
* Try to resolve the send blocking issues on BeOS R5.David Reid2001-04-041-3/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61456 13f79535-47bb-0310-9956-ffa450edef68
* Change the way select based poll works so it works as we'd expect it to, i.e.David Reid2001-03-221-12/+22
| | | | | | | the same way as poll. Also add a test program specifically for poll. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61376 13f79535-47bb-0310-9956-ffa450edef68
* Add the UDP support to BeOS R5.David Reid2001-03-201-0/+76
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61369 13f79535-47bb-0310-9956-ffa450edef68
* nobody uses inet_aton() anymore; it isn't even in a Makefile.inJeff Trawick2001-03-051-178/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61340 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-162-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakeDoug MacEachern2001-02-081-10/+10
| | | | | | | | | | | 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
* Add a missing function to the beos poll... Thought I'd done this aDavid Reid2001-01-121-0/+16
| | | | | | | while back but apparently I hadn't... git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61057 13f79535-47bb-0310-9956-ffa450edef68
* Libtool-ize APR.Greg Stein2001-01-092-32/+8
| | | | | | | | | | | | | | | | | 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
* Remove some old files that we no longer use. Should have been done a whileDavid Reid2001-01-023-490/+0
| | | | | | | back really. Spring cleaning time again! git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61003 13f79535-47bb-0310-9956-ffa450edef68
* This file is no longer needed. I thought I'd already removed this butDavid Reid2000-12-031-119/+0
| | | | | | | | | obviously I hadn't :( Submitted by: Sam TH <sam@uchicago.edu> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60864 13f79535-47bb-0310-9956-ffa450edef68
* Get rid of apr_get_socket_inaddr(), apr_get_remote_name(), andJeff Trawick2000-12-011-19/+0
| | | | | | | apr_get_local_name(). Use apr_get_sockaddr() instead. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60838 13f79535-47bb-0310-9956-ffa450edef68
* Some of the forewarned APR network_io interface changes:Jeff Trawick2000-11-211-27/+0
| | | | | | | | | | | | apr_set_port(), apr_get_port(), apr_set_ipaddr(), and apr_get_ipaddr() now take apr_sockaddr_t as a parameter instead of apr_socket_t + apr_interface_e. This will allow the same routines to be used with datagram APIs to be added later. Note that code which calls apr_set_ipaddr() should probably be changed to call apr_getaddrinfo() for protocol independence. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60780 13f79535-47bb-0310-9956-ffa450edef68
* This changes BeOS to use the majority of the Unix socket code.David Reid2000-11-184-38/+44
| | | | | | | Once this has been in a day or 2 I'll remove the old files. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60761 13f79535-47bb-0310-9956-ffa450edef68
* BeOS changes to the way dependencies are built in APR makefilesJeff Trawick2000-11-151-59/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60731 13f79535-47bb-0310-9956-ffa450edef68
* This is the next step in the conversion of socket address functions toDavid Reid2000-11-091-71/+22
| | | | | | | | | | | take APR_LOCAL/APR_REMOTE and also the addition of a new function to get the apr_inaddr_t for a socket. the new function is needed to help tidy up http_vhost.c Changes to apache code to reflect these follow directly... git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60669 13f79535-47bb-0310-9956-ffa450edef68
* This adds the APR_LOCAL/APR_REMOTE to APR and changes the apr_get/set_portDavid Reid2000-11-081-26/+16
| | | | | | | | | | functions to use it. This is onyl the start and I'll pause a while before I continue in case people really hate this. The patch can be backed out and all evidence will be removed, but I think this makes maintaining/developing the code easier in the long term. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60647 13f79535-47bb-0310-9956-ffa450edef68
* This adds the apr_port_t type to APR and should change all references in theDavid Reid2000-11-081-6/+6
| | | | | | | APR code that use it. Next up is the apache code and the test programs. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60644 13f79535-47bb-0310-9956-ffa450edef68
* Convert a lot of apr_ssize_t to apr_size_t. We don't ever accept or returnRyan Bloom2000-11-071-3/+3
| | | | | | | | | | signed values in these integers, and we return the error codes directly, so we should always report the number of bytes read/written correctly. If we have an error, that is 0 bytes. If that is true, then using signed values doesn't make any sense. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60642 13f79535-47bb-0310-9956-ffa450edef68
* I'm not sure I really like this as it smacks of code duplication withDavid Reid2000-11-031-0/+19
| | | | | | | | | | | | apr_get_remote_hostname, so maybe they should be combined? Anyway, I haven't added the function to Win32/OS2 as I can't test there, but it shouldn't be hard! Once all platforms have this we can remove another of the raw sockaddr references in http_core. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60632 13f79535-47bb-0310-9956-ffa450edef68
* Add error checking for apr_connect.David Reid2000-11-021-4/+9
| | | | | | | Submitted by: Jeff Trawick <trawick@locus.apache.org> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60624 13f79535-47bb-0310-9956-ffa450edef68
* Make 2nd parm of apr_connect() const char * instead of char *.Jeff Trawick2000-11-021-1/+1
| | | | | | | Note to BeOS fans: apr_connect() is missing a check for hostname != NULL. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60620 13f79535-47bb-0310-9956-ffa450edef68
* Add some .cvsignore goodness...David Reid2000-09-161-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60534 13f79535-47bb-0310-9956-ffa450edef68
* Add apr-sendv using the "I don't have writev" workaround.David Reid2000-08-291-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60514 13f79535-47bb-0310-9956-ffa450edef68
* Adjust the TCP_NODELAY code for the older BeOS stack...David Reid2000-08-261-3/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60513 13f79535-47bb-0310-9956-ffa450edef68