From e06329f5e7344fac46709c596b9a7ecadd42854b Mon Sep 17 00:00:00 2001 From: Junmin Kim Date: Thu, 12 Dec 2019 08:24:14 -0600 Subject: [PATCH] fs/vfs/fs_open.c: Fix description of nx_open and nx_vopen comments indicate that they return zero on success when, in fact, they return the new file descriptor. --- fs/vfs/fs_open.c | 12 ++++++------ include/nuttx/fs/fs.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/vfs/fs_open.c b/fs/vfs/fs_open.c index d848cefde8..d908feacb9 100644 --- a/fs/vfs/fs_open.c +++ b/fs/vfs/fs_open.c @@ -90,8 +90,8 @@ int inode_checkflags(FAR struct inode *inode, int oflags) * applications. * * Returned Value: - * Zero (OK) is returned on success; a negated errno value is returned on - * any failure. + * The new file descriptor is returned on success; a negated errno value is + * returned on any failure. * ****************************************************************************/ @@ -303,8 +303,8 @@ errout_with_search: * applications. * * Returned Value: - * Zero (OK) is returned on success; a negated errno value is returned on - * any failure. + * The new file descriptor is returned on success; a negated errno value is + * returned on any failure. * ****************************************************************************/ @@ -329,8 +329,8 @@ int nx_open(FAR const char *path, int oflags, ...) * Standard 'open' interface * * Returned Value: - * Zero (OK) is returned on success; -1 (ERROR) is returned on any failure - * the the errno value set appropriately. + * The new file descriptor is returned on success; -1 (ERROR) is returned + * on any failure the errno value set appropriately. * ****************************************************************************/ diff --git a/include/nuttx/fs/fs.h b/include/nuttx/fs/fs.h index c394650f9e..e90f3e2cea 100644 --- a/include/nuttx/fs/fs.h +++ b/include/nuttx/fs/fs.h @@ -1012,8 +1012,8 @@ int fs_getfilep(int fd, FAR struct file **filep); * called from applications. * * Returned Value: - * Zero (OK) is returned on success; a negated errno value is returned on - * any failure. + * The new file descriptor is returned on success; a negated errno value is + * returned on any failure. * ****************************************************************************/