This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 8b43096e28 fs/hostfs: align operation flags define with fcntl.h
8b43096e28 is described below

commit 8b43096e288253ec6fef45c0502501869275fbae
Author: chao an <[email protected]>
AuthorDate: Tue Apr 11 17:04:31 2023 +0800

    fs/hostfs: align operation flags define with fcntl.h
    
    follow the change: https://github.com/apache/nuttx/pull/6357
    
    Signed-off-by: chao an <[email protected]>
---
 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 7e0262de1f..779320634b 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 */

Reply via email to