Changes in uspace/app/tester/hw/misc/virtchar1.c [b927375:7551706b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/hw/misc/virtchar1.c
rb927375 r7551706b 40 40 #include <sys/types.h> 41 41 #include <async.h> 42 #include <device/char _dev.h>42 #include <device/char.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> 47 48 #include "../../tester.h" 48 49 49 #define DEVICE_PATH_NORMAL "/dev/devices/\\virt\\null \\a"50 #define DEVICE_PATH_NORMAL "/dev/devices/\\virt\\null" 50 51 #define DEVICE_PATH_CLASSES "/dev/class/virt-null\\1" 51 52 #define BUFFER_SIZE 64 … … 78 79 size_t i; 79 80 char buffer[BUFFER_SIZE]; 80 char_dev_read(phone, buffer, BUFFER_SIZE);81 read_dev(phone, buffer, BUFFER_SIZE); 81 82 TPRINTF(" ...verifying that we read zeroes only...\n"); 82 83 for (i = 0; i < BUFFER_SIZE; i++) { … … 89 90 /* Clean-up. */ 90 91 TPRINTF(" Closing phones and file descriptors\n"); 91 async_hangup(phone);92 ipc_hangup(phone); 92 93 close(fd); 93 94
Note:
See TracChangeset
for help on using the changeset viewer.