mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
SYSLOG logic should use existing file interfaces, not re-invent them.
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user