From 0b891d60f906b104bd34e5ff05ce949e162f98a6 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 22 Jun 2020 17:33:09 +0800 Subject: [PATCH] vfs: Define symlink as link specified here: https://pubs.opengroup.org/onlinepubs/009695399/functions/symlink.html yes, symlink is different from link: 1.symlink create the soft(symbolic) link 2.link create the hard link but it is suitable to make them same now since vfs doesn't support the hard link and the soft link in file system level yet. Signed-off-by: Xiang Xiao Change-Id: I3b6e311cc1c826542165c9d93cbe5e078f113684 --- include/unistd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/unistd.h b/include/unistd.h index 1e29d2ae3b5..b64175aa9b0 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -268,6 +268,7 @@ /* Helpers and legacy compatibility definitions */ +#define symlink(p1, p2) link((p1), (p2)) #define fdatasync(f) fsync(f) #define getdtablesize(f) ((int)sysconf(_SC_OPEN_MAX))