xiaoxiang781216 commented on code in PR #8173:
URL: https://github.com/apache/nuttx/pull/8173#discussion_r1082623300
##########
fs/vfs/fs_symlink.c:
##########
@@ -180,4 +180,30 @@ int symlink(FAR const char *path1, FAR const char *path2)
return ERROR;
}
+/****************************************************************************
+ * Name: link
+ *
+ * Description:
+ * The link function provides a wrapper to symlink. Solely to provide
+ * compatibility to posix compatibility layer, in
+ * libxx/libcxx/src/filesystem/posix_compat.h.
+ *
+ * See symlink for details on limitations.
+ *
+ * Input Parameters:
+ * path1 - Points to a pathname naming an existing file.
+ * path2 - Points to a pathname naming the new directory entry to be
+ * created.
+ *
+ * Returned Value:
+ * On success, zero (OK) is returned. Otherwise, -1 (ERROR) is returned
+ * the errno variable is set appropriately.
+ *
+ ****************************************************************************/
+
+int link(FAR const char *path1, FAR const char *path2)
Review Comment:
no, since the c++ header file normally contain something like this:
```
namespace std
{
using ::link;
}
```
macro will make the above fail to compile.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]