mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
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:
+6
-6
@@ -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.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user