Changeset b19e892 in mainline for uspace/app/bdsh/cmds/modules/cmp/cmp.c
- Timestamp:
- 2017-04-02T10:39:13Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9c4cf0d
- Parents:
- 80743a1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cmp/cmp.c
r80743a1 rb19e892 28 28 29 29 #include <errno.h> 30 #include <fcntl.h>31 30 #include <getopt.h> 32 31 #include <mem.h> … … 82 81 83 82 for (int i = 0; i < 2; i++) { 84 fd[i] = open(fn[i], O_RDONLY);83 fd[i] = vfs_lookup_open(fn[i], WALK_REGULAR, MODE_READ); 85 84 if (fd[i] < 0) { 86 rc = errno;85 rc = fd[i]; 87 86 printf("Unable to open %s\n", fn[i]); 88 87 goto end;
Note:
See TracChangeset
for help on using the changeset viewer.