aboutsummaryrefslogtreecommitdiff
path: root/file_io/os2/readwrite.c
Commit message (Collapse)AuthorAge
* Remove trailing whitespaces in *.c.Ivan Zhakov2022-11-20
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
* Axed C++ comments.Guenter Knauf2011-02-09
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1068870 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix incorrect value in nbytes parameter to apr_file_read() after use ofBrian Havard2010-06-22
| | | | | | | apr_file_ungetc(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@956849 13f79535-47bb-0310-9956-ffa450edef68
* Hide apr_wait_for_io_or_timeout() from public view and add insteadBrian Havard2010-04-12
| | | | | | | apr_socket_wait() and apr_file_pipe_wait(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@933338 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Add support for writing to a non-blocking pipe with time out.Brian Havard2010-04-06
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@931271 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix incorrect error code conversion in apr_file_write() for bufferedBrian Havard2010-04-04
| | | | | | | files. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@930715 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Change implementation of apr_file_writev() to just call apr_file_write()Brian Havard2010-04-04
| | | | | | | | | | in a loop. OS/2 doesn't have a system call equivalent to writev() so the C library was just emulating it, providing no performance benefit. This also fixes a problem with the old implementation failing to handle buffered files correctly which resulted in a testfile failure. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@930694 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Do a proper implementation of apr_file_ungetc().Brian Havard2010-04-04
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@930686 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Share the unix implementation of apr_file_printf() which passes theBrian Havard2010-04-04
| | | | | | | >HUGE_STRING_LEN test in testfile. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@930676 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix incorrect returning of APR_EOF when a 0 length read is requested.Brian Havard2010-04-04
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@930671 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Add ENOTIMPL stubs for apr_file_rotating_*(). Can't reasonably implementBrian Havard2010-03-30
| | | | | | | as OS/2 file systems don't allow renaming open files. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@929093 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Implement apr_file_sync().Brian Havard2010-03-30
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@929082 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: fix apr_file_putc() to use the buffer if there is one.Brian Havard2010-03-30
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@929081 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Only mutex protect buffer access if APR_FOPEN_XTHREAD is specified.Brian Havard2010-03-30
| | | | | | | Also add missing mutex locking in apr_file_flush(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@929070 13f79535-47bb-0310-9956-ffa450edef68
* Use the APR_FOPEN_* constants instead of the deprecated APR_* constantsGraham Leggett2010-03-01
| | | | | | | within the file_io code. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@917675 13f79535-47bb-0310-9956-ffa450edef68
* Right now OS/2 file sync functions are not implemented.Bojan Smojver2009-06-15
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@784773 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_file_sync() and apr_file_datasync() calls.Bojan Smojver2009-06-14
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@784633 13f79535-47bb-0310-9956-ffa450edef68
* Only try to flush when the file is in buffered mode, inside apr_file_writev.Paul Querna2007-03-01
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@513205 13f79535-47bb-0310-9956-ffa450edef68
* Fix apr_file_writev when buffering is enabled by forcing a flush, rather ↵Paul Querna2007-02-28
| | | | | | | | | | than writing underneath the write buffer. PR: 41197 Submitted By: Davi Arnaut git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@512882 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-03
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-03
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* Identify - one 2Xtransformed error result, several missing mutex sectionsWilliam A. Rowe Jr2006-03-10
| | | | | | | | and fix one last apr_file_flush result ignored (close the file, but return the failure to flush error.) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384941 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Add proper error handling when internal calls to apr_file_flush() failBrian Havard2006-02-22
| | | | | | | within apr_file_read(), apr_file_gets() and apr_file_seek(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@379754 13f79535-47bb-0310-9956-ffa450edef68
* Initial implementation of the variable file-io buffer sizes functions on theColm MacCarthaigh2005-10-18
| | | | | | | OS2 platform; entirely guesswork base, untested. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@326120 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-04
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix incorrect return of APR_EOF when a 0 length read is requestedBrian Havard2004-05-22
| | | | | | | Found while porting subversion. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65109 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0Justin Erenkrantz2004-02-13
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* apr_file_gets(): Return APR_SUCCESS if any characters areJeff Trawick2003-05-01
| | | | | | | | | | returned. Any I/O errors or EOF will be reported on the next call. Callers that are coded to expect returned data + APR_EOF when there is no final newline are affected by this change. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64498 13f79535-47bb-0310-9956-ffa450edef68
* Correct apr_file_gets() on OS2 and Win32 so that '\r's are no longerWilliam A. Rowe Jr2003-03-04
| | | | | | | | | | eaten, and apr_file_gets() -> apr_file_puts() moves the contents uncorrupted. Reviewed by bicholes and brane git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64396 13f79535-47bb-0310-9956-ffa450edef68
* 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
* OS/2: Return APR_TIMEUP from apr_file_read() when a pipe times out.Brian Havard2003-01-02
| | | | | | | Was returning the "no data" error code. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64253 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
* Prepare to eliminate a platform specificWilliam A. Rowe Jr2002-10-13
| | | | | | | | | #define APR_OS2_STATUS(e) (APR_FROM_OS_ERROR(e)) for the platform agnostic APR_FROM_OS_ERROR() macro. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63909 13f79535-47bb-0310-9956-ffa450edef68
* Continue the Bill Rowe apr_size_t crusade.Victor J. Orlikowski2002-07-10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63595 13f79535-47bb-0310-9956-ffa450edef68
* Introduce apr_table_do_callback_fn_t as a prototype declaration, andWilliam A. Rowe Jr2002-06-28
| | | | | | | | | consistify all broken APR_DECLARE() prototypes that were, in fact, always handled as APR_DECLARE_NONSTD() by the MSVC compiler. Unfortunately, no emit is raised when the compiler ignores our APR_DECLARE() semantic. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63527 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Check more return codes when locking the file for appending.Brian Havard2002-05-23
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63428 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
* OS/2: switch buffered file I/O over to using apr_thread_mutex_t instead ofBrian Havard2001-12-30
| | | | | | | apr_lock_t. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62685 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix bug in buffered read where buffer control variables were left inBrian Havard2001-08-28
| | | | | | | | | | an inconsistent state after a 0 length read (EOF). The amount of data in the buffer (dataRead) was being reset but the current position within the buffer (bufpos) was not. This changes it so that dataRead is not reset, allowing the buffer contents to be reused after a seek. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62238 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: change apr_file_gets() to leave the trailing \n on the string, matchingBrian Havard2001-08-23
| | | | | | | | the output of the unix version. While I think it's dumb behaviour (I get sick of removing it again in application code) at least it's consistently dumb :) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62209 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: When a file is opened in append mode, make sure all writes go at theBrian Havard2001-08-18
| | | | | | | current end of file, even if the file is being written to by other processes. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62195 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
* OS/2: Return APR_EOF where appropriate from apr_file_read().Brian Havard2001-04-23
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61547 13f79535-47bb-0310-9956-ffa450edef68
* Stop warning about implicit declaration of apr_vsnprintf.Brian Havard2001-02-19
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61258 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
* doh. need a spellchekker for these rename scripts. ↵Doug MacEachern2001-02-13
| | | | | | s/apr_lock_aquire/apr_lock_acquire/g; git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61232 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
* 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