Changeset b19e892 in mainline for uspace/lib/pcut/src/os/helenos.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/lib/pcut/src/os/helenos.c
r80743a1 rb19e892 41 41 #include <stdio.h> 42 42 #include <task.h> 43 #include <fcntl.h>44 43 #include <fibril_synch.h> 45 44 #include <vfs/vfs.h> … … 162 161 char tempfile_name[PCUT_TEMP_FILENAME_BUFFER_SIZE]; 163 162 snprintf(tempfile_name, PCUT_TEMP_FILENAME_BUFFER_SIZE - 1, "pcut_%lld.tmp", (unsigned long long) task_get_id()); 164 int tempfile = open(tempfile_name, O_CREAT | O_RDWR);163 int tempfile = vfs_lookup_open(tempfile_name, WALK_REGULAR | WALK_MAY_CREATE, MODE_READ | MODE_WRITE); 165 164 if (tempfile < 0) { 166 165 pcut_report_test_done(test, TEST_OUTCOME_ERROR, "Failed to create temporary file.", NULL, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.