Comment out references to fstat(). It is not yet supported.

This commit is contained in:
Gregory Nutt 2015-06-02 11:43:44 -06:00
parent e2f04ec796
commit c704a5289c
3 changed files with 9 additions and 4 deletions

View file

@ -13,7 +13,7 @@
<h1><big><font color="#3c34ec"><i>NuttX Operating System<p>User's Manual</i></font></big></h1>
<p><small>by</small></p>
<p>Gregory Nutt<p>
<p>Last Updated: April 9, 2015</p>
<p>Last Updated: June 2, 2015</p>
</td>
</tr>
</table>
@ -8097,7 +8097,9 @@ FAR char *tempnam(FAR const char *dir, FAR const char *pfx);
int mkdir(FAR const char *pathname, mode_t mode);
int mkfifo(FAR const char *pathname, mode_t mode);
int stat(const char *path, FAR struct stat *buf);
#if 0 /* Not yet supported */
int fstat(int fd, FAR struct stat *buf);
#endif
#include &lt;sys/statfs.h&gt;

View file

@ -102,7 +102,7 @@ static inline int elf_filelen(FAR struct elf_loadinfo_s *loadinfo,
if (ret < 0)
{
int errval = errno;
bdbg("Failed to fstat file: %d\n", errval);
bdbg("Failed to stat file: %d\n", errval);
return -errval;
}

View file

@ -100,8 +100,9 @@
* Type Definitions
****************************************************************************/
/* This is the simplified struct stat as returned by fstat(). This structure
* provides information about a specific file or directory in the file system.
/* This is the simplified struct stat as returned by stat() and fstat().
* This structure provides information about a specific file or directory in
* the file system.
*/
struct stat
@ -131,7 +132,9 @@ extern "C"
int mkdir(FAR const char *pathname, mode_t mode);
int mkfifo(FAR const char *pathname, mode_t mode);
int stat(const char *path, FAR struct stat *buf);
#if 0 /* Not yet supported */
int fstat(int fd, FAR struct stat *buf);
#endif
#undef EXTERN
#if defined(__cplusplus)