mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +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
@@ -125,6 +125,7 @@ static const struct file_operations g_cryptofops =
|
||||
cryptof_write, /* write */
|
||||
NULL, /* seek */
|
||||
cryptof_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
cryptof_poll /* poll */
|
||||
};
|
||||
|
||||
@@ -136,6 +137,7 @@ static const struct file_operations g_cryptoops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
cryptoioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user