diff options
Diffstat (limited to 'file_io/os2/open.c')
-rw-r--r-- | file_io/os2/open.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/file_io/os2/open.c b/file_io/os2/open.c index 05089f5bf..91a5d3922 100644 --- a/file_io/os2/open.c +++ b/file_io/os2/open.c @@ -68,7 +68,7 @@ apr_status_t apr_file_cleanup(void *thefile) -apr_status_t apr_file_open(apr_file_t **new, const char *fname, apr_int32_t flag, apr_fileperms_t perm, apr_pool_t *cntxt) +APR_DECLARE(apr_status_t) apr_file_open(apr_file_t **new, const char *fname, apr_int32_t flag, apr_fileperms_t perm, apr_pool_t *cntxt) { int oflags = 0; int mflags = OPEN_FLAGS_FAIL_ON_ERROR|OPEN_SHARE_DENYNONE; @@ -150,7 +150,7 @@ apr_status_t apr_file_open(apr_file_t **new, const char *fname, apr_int32_t flag -apr_status_t apr_file_close(apr_file_t *file) +APR_DECLARE(apr_status_t) apr_file_close(apr_file_t *file) { ULONG rc; apr_status_t status; @@ -179,7 +179,7 @@ apr_status_t apr_file_close(apr_file_t *file) -apr_status_t apr_file_remove(const char *path, apr_pool_t *cntxt) +APR_DECLARE(apr_status_t) apr_file_remove(const char *path, apr_pool_t *cntxt) { ULONG rc = DosDelete(path); return APR_OS2_STATUS(rc); @@ -187,8 +187,8 @@ apr_status_t apr_file_remove(const char *path, apr_pool_t *cntxt) -apr_status_t apr_file_rename(const char *from_path, const char *to_path, - apr_pool_t *p) +APR_DECLARE(apr_status_t) apr_file_rename(const char *from_path, const char *to_path, + apr_pool_t *p) { ULONG rc = DosMove(from_path, to_path); @@ -205,7 +205,7 @@ apr_status_t apr_file_rename(const char *from_path, const char *to_path, -apr_status_t apr_os_file_get(apr_os_file_t *thefile, apr_file_t *file) +APR_DECLARE(apr_status_t) apr_os_file_get(apr_os_file_t *thefile, apr_file_t *file) { *thefile = file->filedes; return APR_SUCCESS; @@ -213,7 +213,7 @@ apr_status_t apr_os_file_get(apr_os_file_t *thefile, apr_file_t *file) -apr_status_t apr_os_file_put(apr_file_t **file, apr_os_file_t *thefile, apr_pool_t *cont) +APR_DECLARE(apr_status_t) apr_os_file_put(apr_file_t **file, apr_os_file_t *thefile, apr_pool_t *cont) { apr_os_file_t *dafile = thefile; @@ -229,8 +229,7 @@ apr_status_t apr_os_file_put(apr_file_t **file, apr_os_file_t *thefile, apr_pool } - -apr_status_t apr_file_eof(apr_file_t *fptr) +APR_DECLARE(apr_status_t) apr_file_eof(apr_file_t *fptr) { if (!fptr->isopen || fptr->eof_hit == 1) { return APR_EOF; @@ -239,8 +238,7 @@ apr_status_t apr_file_eof(apr_file_t *fptr) } - -apr_status_t apr_file_open_stderr(apr_file_t **thefile, apr_pool_t *cont) +APR_DECLARE(apr_status_t) apr_file_open_stderr(apr_file_t **thefile, apr_pool_t *cont) { apr_os_file_t fd = 2; @@ -249,7 +247,7 @@ apr_status_t apr_file_open_stderr(apr_file_t **thefile, apr_pool_t *cont) -apr_status_t apr_file_open_stdout(apr_file_t **thefile, apr_pool_t *cont) +APR_DECLARE(apr_status_t) apr_file_open_stdout(apr_file_t **thefile, apr_pool_t *cont) { apr_os_file_t fd = 1; @@ -257,7 +255,7 @@ apr_status_t apr_file_open_stdout(apr_file_t **thefile, apr_pool_t *cont) } -apr_status_t apr_file_open_stdin(apr_file_t **thefile, apr_pool_t *cont) +APR_DECLARE(apr_status_t) apr_file_open_stdin(apr_file_t **thefile, apr_pool_t *cont) { apr_os_file_t fd = 0; |