fs/hostfs: Add ftruncate support.

This commit is contained in:
Xiang Xiao
2018-08-22 06:08:34 -06:00
committed by Gregory Nutt
parent 9bbacc44ff
commit c43b3e5a34
2 changed files with 53 additions and 0 deletions
+9
View File
@@ -250,6 +250,15 @@ int host_fstat(int fd, struct nuttx_stat_s *buf)
return ret;
}
/****************************************************************************
* Name: host_truncate
****************************************************************************/
int host_ftruncate(int fd, off_t length)
{
return ftruncate(fd, length);
}
/****************************************************************************
* Name: host_opendir
****************************************************************************/