fs/vfs: add nx_unlink support

Change-Id: If9009cb7301bb4e49bdce3aea2d56c243256f5a2
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd
2020-12-24 18:22:51 +08:00
committed by Xiang Xiao
parent 0c0e24992d
commit f58ef1476c
2 changed files with 45 additions and 15 deletions
+17
View File
@@ -1458,6 +1458,23 @@ int file_fstat(FAR struct file *filep, FAR struct stat *buf);
int nx_stat(FAR const char *path, FAR struct stat *buf, int resolve);
/****************************************************************************
* Name: nx_unlink
*
* Description:
* nx_unlink() is similar to the standard 'unlink' interface except that
* is not a cancellation point and it does not modify the errno variable.
*
* nx_unlink() is an internal NuttX interface and should not be called
* from applications.
*
* Returned Value:
* Zero is returned on success; a negated value is returned on any failure.
*
****************************************************************************/
int nx_unlink(FAR const char *pathname);
#undef EXTERN
#if defined(__cplusplus)
}