aboutsummaryrefslogtreecommitdiff
path: root/file_io/os2/open.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
* APR_FOPEN_NONBLOCK is expected to be critical for an appJeff Trawick2013-11-02
| | | | | | | | that uses it; return APR_ENOTIMPL instead of ignoring it if not supported. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1538171 13f79535-47bb-0310-9956-ffa450edef68
* Fix various issues found by cppcheckStefan Fritsch2010-07-27
| | | | | | | | | | | | - error handling issues - use of uninitialized data - null pointer dereference - unused variables - memory/fd leaks - broken code in threadproc/beos/proc.c git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@979891 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix invalid parameter error in apr_file_inherit_set/unset().Brian Havard2010-04-06
| | | | | | | | DosSetFHState() only accepts a subset of flags returned by DosQueryFHState() and all others must be zero so mask out the unsupported flags. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@931265 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Remove comment warnings about apr_file_flush() not being mutex protectedBrian Havard2010-04-04
| | | | | | | as apr_file_flush() now does its own locking. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@930717 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: In apr_file_close(), only try to destroy the mutex if there is one.Brian Havard2010-04-03
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@930503 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
* OS/2: Make opened files non-inheritable.Brian Havard2007-10-30
| | | | | | | | Implement apr_file_inherit_set & apr_file_inherit_unset directly instead of via macros. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@590491 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
* 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
* Add apr_file_open_flags_std[err|out|in]() functions, to allow the opening ofColm MacCarthaigh2005-10-15
| | | | | | | | | the standard file descriptors with specific flags set. As a consequence we now also set APR_WRITE and APR_READ as appropriate when using the plain old apr_file_open_std[err|out|in]() functions. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@321314 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Using apr_file_rename() to replace one file with another doesn't workBrian Havard2005-06-29
| | | | | | | | | | | on some types of network drive as the file system driver returns a different error code when an attempt is made to rename to an existing file name. Allow for this error code, ERROR_ALREADY_EXISTS. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@202348 13f79535-47bb-0310-9956-ffa450edef68
* Bug #33844: OS/2: file opened with APR_CREATE would be truncated if APR_APPENDBrian Havard2005-06-04
| | | | | | | wasn't also given. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@180013 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
* 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
* OS/2: Remove the apr_pollset_t from apr_file_t. File handles can't be polledBrian Havard2003-11-19
| | | | | | | on OS/2 so having it doesn't serve any purpose. git-svn-id: https://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() functionGreg Stein2003-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* OS/2: Don't return the apr_file_t if the open failed.Brian Havard2003-03-02
| | | | | | | This is consistent with the other platforms & is required to pass the file tests. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64390 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
* 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
* OS/2: Fix file open flag manipulation so that APR_EXCL actually works. ThisBrian Havard2002-12-26
| | | | | | | also fixes a number of other testfile failures. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64209 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
* Add APR_BUFFERED support to apr_file_os_put() calls.Justin Erenkrantz2002-07-16
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63689 13f79535-47bb-0310-9956-ffa450edef68
* Last for today (compiles clean on Win32, hope the same for the rest ofWilliam A. Rowe Jr2002-06-08
| | | | | | | | our builds.) Clean up inherit_[un]set and simplify win32 discrepancy with inherit.h git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63481 13f79535-47bb-0310-9956-ffa450edef68
* Rename the "cntxt" members of the fileio structures to "pool".Sander Striker2002-03-20
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63164 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
* Add the APR_FILE_NOCLEANUP flag to apr_file_open().Bill Stoddard2002-03-06
| | | | | | | | | | | Adding the flag will prevent the file from being closed when the pool passed in on apr_file_open() is destroyed. This feature is useful when using apr_os_file_get|put() to manage the apr_os_file_t in apr_file_t (ie, file handle caching in the HTTP server) [Bill Stoddard] git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63087 13f79535-47bb-0310-9956-ffa450edef68
* Add the ability to pass flags to both apr_file_open and apr_mktemp.Ryan Bloom2002-01-08
| | | | | | | | | The reason for this, is that it is very possible to want a temp file that isn't deleted when the file is closed. It also makes sense to have the flags in the apr_file_t if possible. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62716 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
* roll the extra apr_lock_create_np() functionality into apr_lock_create()Jeff Trawick2001-12-29
| | | | | | | | | | | and get rid of apr_lock_create_np(); apr_lock_create() has a new parameter for specifying the lock mechanism (or APR_LOCK_DEFAULT to let APR choose) (same for apr_proc_mutex_create_np() and apr_proc_mutex_create()) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62684 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: Fix inherit stuffBrian Havard2001-07-24
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62005 13f79535-47bb-0310-9956-ffa450edef68
* Set up the inherit mechanics to drop the APR_INHERIT flag.William A. Rowe Jr2001-07-18
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61962 13f79535-47bb-0310-9956-ffa450edef68
* axe APR_ENOFILEJeff Trawick2001-06-07
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61731 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_file_open_stdin - which allows the stdin file handle to beJustin Erenkrantz2001-05-31
| | | | | | | | | | | | | | | | | | obtained by an APR-based program in a portable fashion. This completes the stdin/stdout/stderr calls. This is similar to the apr_file_open_std{out,err} calls. The Win32 and OS/2 folks will have to verify that I got their respective implementations right. I don't have access to their compilers to ensure that it is correct. I blindly coded these up based on the apr_file_open_std{out,err} implementations. Submitted by: Aaron Bannert <abannert@ebuilt.com> Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61681 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
* 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
* Yeah, it was right, but this gets rid of some compiler warnings too as OS/2'sBrian Havard2001-01-28
| | | | | | | native fd type is an unsigned long. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61146 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_open_stdout. This mirrors apr_open_stderr, except it worksRyan Bloom2001-01-27
| | | | | | | | on stdout. Submitted by: cmpilato@collab.net git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61134 13f79535-47bb-0310-9956-ffa450edef68
* apr_put_os_file() expected the caller to have an existing file or init toGreg Stein2001-01-26
| | | | | | | | | | | | | | NULL. using an existing file doesn't normally work: where would you get a blank file to shove an FD into? expecting the user to assign to NULL is error-prone (mod_isapi didn't). *) always create and return a new file from apr_put_os_file() *) reimplement apr_open_stderr() in terms of apr_put_os_file() [ except for win32... some issues there ] *) remove some (obsolete) inits to NULL git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61131 13f79535-47bb-0310-9956-ffa450edef68
* Use a typesafe function for access objects' pools.Greg Stein2001-01-24
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61113 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
* Move all of the file private header files to an arch directory underRyan Bloom2000-11-09
| | | | | | | | | 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: https://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.Brian Havard2000-08-06
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60486 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Avoid unnecessary calls to set pipe blocking state.Brian Havard2000-08-06
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60484 13f79535-47bb-0310-9956-ffa450edef68