mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
36528eed64
commit
41e9df2f3e
105 changed files with 122 additions and 25 deletions
|
|
@ -66,6 +66,7 @@ const struct file_operations g_nxterm_drvrops =
|
|||
nxterm_write, /* write */
|
||||
NULL, /* seek */
|
||||
nxterm_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
nxterm_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, nxterm_unlink /* unlink */
|
||||
|
|
@ -82,6 +83,7 @@ const struct file_operations g_nxterm_drvrops =
|
|||
nxterm_write, /* write */
|
||||
NULL, /* seek */
|
||||
nxterm_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, nxterm_unlink /* unlink */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue