summaryrefslogtreecommitdiff
path: root/file_io/unix/filestat.c
diff options
context:
space:
mode:
Diffstat (limited to 'file_io/unix/filestat.c')
-rw-r--r--file_io/unix/filestat.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/file_io/unix/filestat.c b/file_io/unix/filestat.c
index 070db8e29..1f2f48df2 100644
--- a/file_io/unix/filestat.c
+++ b/file_io/unix/filestat.c
@@ -105,8 +105,9 @@ static void fill_out_finfo(apr_finfo_t *finfo, struct stat *info,
*/
}
-apr_status_t apr_file_info_get(apr_finfo_t *finfo, apr_int32_t wanted,
- apr_file_t *thefile)
+APR_DECLARE(apr_status_t) apr_file_info_get(apr_finfo_t *finfo,
+ apr_int32_t wanted,
+ apr_file_t *thefile)
{
struct stat info;
@@ -121,7 +122,8 @@ apr_status_t apr_file_info_get(apr_finfo_t *finfo, apr_int32_t wanted,
}
}
-apr_status_t apr_file_perms_set(const char *fname, apr_fileperms_t perms)
+APR_DECLARE(apr_status_t) apr_file_perms_set(const char *fname,
+ apr_fileperms_t perms)
{
mode_t mode = apr_unix_perms2mode(perms);
@@ -130,8 +132,9 @@ apr_status_t apr_file_perms_set(const char *fname, apr_fileperms_t perms)
return APR_SUCCESS;
}
-apr_status_t apr_stat(apr_finfo_t *finfo, const char *fname,
- apr_int32_t wanted, apr_pool_t *cont)
+APR_DECLARE(apr_status_t) apr_stat(apr_finfo_t *finfo,
+ const char *fname,
+ apr_int32_t wanted, apr_pool_t *cont)
{
struct stat info;
int srv;
@@ -186,7 +189,7 @@ apr_status_t apr_stat(apr_finfo_t *finfo, const char *fname,
/* Perhaps this becomes nothing but a macro?
*/
-apr_status_t apr_lstat(apr_finfo_t *finfo, const char *fname,
+APR_DECLARE(apr_status_t) apr_lstat(apr_finfo_t *finfo, const char *fname,
apr_int32_t wanted, apr_pool_t *cont)
{
return apr_stat(finfo, fname, wanted | APR_FINFO_LINK, cont);