summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-22 10:24:39 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-22 10:24:39 -0500
commit59abbecebb4e8fc40cdaa1835bf9a96e05c5232b (patch)
treeb0e9682803fe457f74d1dd0ddb1d75e66d6e273e
parent__gettod.c: Fix missing prototype warnings (diff)
downloadrtems-59abbecebb4e8fc40cdaa1835bf9a96e05c5232b.tar.bz2
stat.c: Fix missing prototype warnings
-rw-r--r--cpukit/libcsupport/src/stat.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/stat.c b/cpukit/libcsupport/src/stat.c
index e75fdca171..e8e8082451 100644
--- a/cpukit/libcsupport/src/stat.c
+++ b/cpukit/libcsupport/src/stat.c
@@ -6,7 +6,7 @@
*/
/*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2013.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -34,6 +34,11 @@
#include <rtems/libio_.h>
+/*
+ * Prototype to avoid warnings
+ */
+int _STAT_NAME( const char *path, struct stat *buf );
+
/**
* POSIX 1003.1b 5.6.2 - Get File Status
*
@@ -60,6 +65,15 @@ int _STAT_NAME( const char *path, struct stat *buf )
#include <reent.h>
+/*
+ * Prototype to avoid warnings
+ */
+int _STAT_R_NAME(
+ struct _reent *ptr __attribute__((unused)),
+ const char *path,
+ struct stat *buf
+);
+
/**
* This is the Newlib dependent reentrant version of stat() and lstat().
*/