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.

This commit is contained in:
Junmin Kim
2019-12-12 08:24:14 -06:00
committed by Gregory Nutt
parent 9655730ef8
commit e06329f5e7
2 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -90,8 +90,8 @@ int inode_checkflags(FAR struct inode *inode, int oflags)
* applications. * applications.
* *
* Returned Value: * Returned Value:
* Zero (OK) is returned on success; a negated errno value is returned on * The new file descriptor is returned on success; a negated errno value is
* any failure. * returned on any failure.
* *
****************************************************************************/ ****************************************************************************/
@@ -303,8 +303,8 @@ errout_with_search:
* applications. * applications.
* *
* Returned Value: * Returned Value:
* Zero (OK) is returned on success; a negated errno value is returned on * The new file descriptor is returned on success; a negated errno value is
* any failure. * returned on any failure.
* *
****************************************************************************/ ****************************************************************************/
@@ -329,8 +329,8 @@ int nx_open(FAR const char *path, int oflags, ...)
* Standard 'open' interface * Standard 'open' interface
* *
* Returned Value: * Returned Value:
* Zero (OK) is returned on success; -1 (ERROR) is returned on any failure * The new file descriptor is returned on success; -1 (ERROR) is returned
* the the errno value set appropriately. * on any failure the errno value set appropriately.
* *
****************************************************************************/ ****************************************************************************/
+2 -2
View File
@@ -1012,8 +1012,8 @@ int fs_getfilep(int fd, FAR struct file **filep);
* called from applications. * called from applications.
* *
* Returned Value: * Returned Value:
* Zero (OK) is returned on success; a negated errno value is returned on * The new file descriptor is returned on success; a negated errno value is
* any failure. * returned on any failure.
* *
****************************************************************************/ ****************************************************************************/