mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
fs: Support O_NOFOLLOW flag
https://pubs.opengroup.org/onlinepubs/9699919799.2013edition/functions/open.html: O_NOFOLLOW If path names a symbolic link, fail and set errno to [ELOOP]. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
#define O_DIRECT (1 << 9) /* Avoid caching, write directly to hardware */
|
||||
#define O_CLOEXEC (1 << 10) /* Close on execute */
|
||||
#define O_DIRECTORY (1 << 11) /* Must be a directory */
|
||||
#define O_NOFOLLOW (1 << 12) /* Don't follow links */
|
||||
|
||||
/* Unsupported, but required open flags */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user