Changeset ad7a6c9 in mainline for uspace/app/tester/hw/misc/virtchar1.c
- Timestamp:
- 2011-03-30T13:10:24Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4ae90f9
- Parents:
- 6e50466 (diff), d6b81941 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/hw/misc/virtchar1.c
r6e50466 rad7a6c9 40 40 #include <sys/types.h> 41 41 #include <async.h> 42 #include <device/char .h>42 #include <device/char_dev.h> 43 43 #include <str.h> 44 44 #include <vfs/vfs.h> 45 45 #include <sys/stat.h> 46 46 #include <fcntl.h> 47 #include <device/char.h>48 47 #include "../../tester.h" 49 48 50 #define DEVICE_PATH_NORMAL "/dev/devices/\\virt\\null "49 #define DEVICE_PATH_NORMAL "/dev/devices/\\virt\\null\\a" 51 50 #define DEVICE_PATH_CLASSES "/dev/class/virt-null\\1" 52 51 #define BUFFER_SIZE 64 … … 79 78 size_t i; 80 79 char buffer[BUFFER_SIZE]; 81 read_dev(phone, buffer, BUFFER_SIZE);80 char_dev_read(phone, buffer, BUFFER_SIZE); 82 81 TPRINTF(" ...verifying that we read zeroes only...\n"); 83 82 for (i = 0; i < BUFFER_SIZE; i++) { … … 90 89 /* Clean-up. */ 91 90 TPRINTF(" Closing phones and file descriptors\n"); 92 ipc_hangup(phone);91 async_hangup(phone); 93 92 close(fd); 94 93
Note:
See TracChangeset
for help on using the changeset viewer.