mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
Add fstat support to binfs
This commit is contained in:
+9
-2
@@ -258,8 +258,15 @@ static int binfs_dup(FAR const struct file *oldp, FAR struct file *newp)
|
||||
|
||||
static int binfs_fstat(FAR const struct file *filep, FAR struct stat *buf)
|
||||
{
|
||||
#warning Missing logic
|
||||
return -ENOSYS;
|
||||
DEBUGASSERT(filep != NULL && buf != NULL);
|
||||
|
||||
/* It's a execute-only file system */
|
||||
|
||||
buf->st_mode = S_IFREG | S_IXOTH | S_IXGRP | S_IXUSR;
|
||||
buf->st_size = 0;
|
||||
buf->st_blksize = 0;
|
||||
buf->st_blocks = 0;
|
||||
return OK;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user