Add fstat support to binfs
This commit is contained in:
parent
7d91fabf01
commit
d06b346b5c
@ -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)
|
static int binfs_fstat(FAR const struct file *filep, FAR struct stat *buf)
|
||||||
{
|
{
|
||||||
#warning Missing logic
|
DEBUGASSERT(filep != NULL && buf != NULL);
|
||||||
return -ENOSYS;
|
|
||||||
|
/* 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user