From 8b43096e288253ec6fef45c0502501869275fbae Mon Sep 17 00:00:00 2001 From: chao an Date: Tue, 11 Apr 2023 17:04:31 +0800 Subject: [PATCH] fs/hostfs: align operation flags define with fcntl.h follow the change: https://github.com/apache/nuttx/pull/6357 Signed-off-by: chao an --- include/nuttx/fs/hostfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/fs/hostfs.h b/include/nuttx/fs/hostfs.h index 7e0262de1f1..779320634b6 100644 --- a/include/nuttx/fs/hostfs.h +++ b/include/nuttx/fs/hostfs.h @@ -82,7 +82,7 @@ #define NUTTX_O_TRUNC (1 << 5) /* Delete contents */ #define NUTTX_O_NONBLOCK (1 << 6) /* Don't wait for data */ #define NUTTX_O_SYNC (1 << 7) /* Synchronize output on write */ -#define NUTTX_O_BINARY (1 << 8) /* Open the file in binary mode. */ +#define NUTTX_O_TEXT (1 << 8) /* Open the file in text (translated) mode. */ #define NUTTX_O_DIRECT (1 << 9) /* Avoid caching, write directly to hardware */ #define NUTTX_O_CLOEXEC (1 << 10) /* Close on execute */ #define NUTTX_O_DIRECTORY (1 << 11) /* Must be a directory */