mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
fs/hostfs: Add ftruncate support.
This commit is contained in:
@@ -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
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user