Changeset 52b44c6 in mainline for uspace/srv/vfs/vfs_ops.c
- Timestamp:
- 2019-02-23T23:01:31Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0c48e14, ee8d4d6
- Parents:
- ca0e838
- git-author:
- Wang Jianjian <wangjianjian3@…> (2019-02-23 06:20:33)
- git-committer:
- Jakub Jermar <jakub@…> (2019-02-23 23:01:31)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ops.c
rca0e838 r52b44c6 90 90 errno_t rc; 91 91 92 /* If the file descriptors are the same, do nothing. */93 if (oldfd == newfd)94 return EOK;95 96 92 /* Lookup the file structure corresponding to fd. */ 97 93 vfs_file_t *oldfile = vfs_file_get(oldfd); … … 100 96 101 97 assert(oldfile->node != NULL); 98 99 /* If the file descriptors are the same, do nothing. */ 100 if (oldfd == newfd) { 101 vfs_file_put(oldfile); 102 return EOK; 103 } 102 104 103 105 if (newfd != -1) {
Note:
See TracChangeset
for help on using the changeset viewer.