mirror of
https://github.com/apache/nuttx.git
synced 2026-10-11 08:10:21 +00:00
SYSLOG logic should use existing file interfaces, not re-invent them.
This commit is contained in:
parent
3b825b3e00
commit
a39ce80add
6 changed files with 85 additions and 61 deletions
|
|
@ -895,6 +895,26 @@ off_t file_seek(FAR struct file *filep, off_t offset, int whence);
|
|||
int file_fsync(FAR struct file *filep);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: file_ioctl
|
||||
*
|
||||
* Description:
|
||||
* Perform device specific operations.
|
||||
*
|
||||
* Parameters:
|
||||
* file File structure instance
|
||||
* req The ioctl command
|
||||
* arg The argument of the ioctl cmd
|
||||
*
|
||||
* Return:
|
||||
* See ioctl() below.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if CONFIG_NFILE_DESCRIPTORS > 0
|
||||
int file_ioctl(FAR struct file *filep, int req, unsigned long arg);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: file_vfcntl
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue