Changeset b19e892 in mainline for uspace/app/taskdump
- Timestamp:
- 2017-04-02T10:39:13Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9c4cf0d
- Parents:
- 80743a1
- Location:
- uspace/app/taskdump
- Files:
-
- 2 edited
-
elf_core.c (modified) (3 diffs)
-
symtab.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskdump/elf_core.c
r80743a1 rb19e892 55 55 #include <sys/types.h> 56 56 #include <unistd.h> 57 #include <fcntl.h>58 57 #include <mem.h> 59 58 #include <stdint.h> … … 62 61 #include <macros.h> 63 62 #include <libarch/istate.h> 63 #include <vfs/vfs.h> 64 64 65 65 #include "elf_core.h" … … 123 123 } 124 124 125 fd = open(file_name, O_CREAT | O_WRONLY, 0644); 125 fd = vfs_lookup_open(file_name, WALK_REGULAR | WALK_MAY_CREATE, 126 MODE_WRITE); 126 127 if (fd < 0) { 127 128 printf("Failed opening file.\n"); -
uspace/app/taskdump/symtab.c
r80743a1 rb19e892 41 41 #include <errno.h> 42 42 #include <sys/types.h> 43 #include < fcntl.h>43 #include <vfs/vfs.h> 44 44 45 45 #include "include/symtab.h" … … 81 81 return ENOMEM; 82 82 83 fd = open(file_name, O_RDONLY);83 fd = vfs_lookup_open(file_name, WALK_REGULAR, MODE_READ); 84 84 if (fd < 0) { 85 85 printf("failed opening file\n");
Note:
See TracChangeset
for help on using the changeset viewer.
