mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
Add ftruncate into file operation calls
- Add truncate into file_operations - Move truncate to be common for mountpt_operations and file_operations - Modify all drivers to initialize the operations struct accordingly Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
36528eed64
commit
41e9df2f3e
+1
-1
@@ -177,12 +177,12 @@ const struct mountpt_operations tmpfs_operations =
|
||||
tmpfs_write, /* write */
|
||||
tmpfs_seek, /* seek */
|
||||
tmpfs_ioctl, /* ioctl */
|
||||
tmpfs_truncate, /* truncate */
|
||||
|
||||
tmpfs_sync, /* sync */
|
||||
tmpfs_dup, /* dup */
|
||||
tmpfs_fstat, /* fstat */
|
||||
NULL, /* fchstat */
|
||||
tmpfs_truncate, /* truncate */
|
||||
|
||||
tmpfs_opendir, /* opendir */
|
||||
tmpfs_closedir, /* closedir */
|
||||
|
||||
Reference in New Issue
Block a user