Changeset 343dc9e3 in mainline
- Timestamp:
- 2008-02-17T21:16:07Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1af679
- Parents:
- cf19ab5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/vfs/vfs1.c
rcf19ab5 r343dc9e3 81 81 printf("read %d bytes: \"%.*s\", fd=%d\n", cnt, cnt, buf, fd0); 82 82 83 close(fd0); 84 83 85 DIR *dirp; 84 86 struct dirent *dp; 85 87 88 if (!quiet) 89 printf("scanning the root directory...\n"); 90 86 91 dirp = opendir("/"); 87 92 if (!dirp) 88 return "opendir() failed."; 93 return "opendir() failed\n"; 94 while ((dp = readdir(dirp))) 95 printf("discovered node %s in /\n", dp->d_name); 96 closedir(dirp); 97 98 if (unlink("/mydir/myfile")) 99 return "unlink() failed.\n"; 100 101 if (!quiet) 102 printf("unlinked file /mydir/myfile\n"); 103 104 if (rmdir("/mydir")) 105 return "rmdir() failed.\n"; 106 107 if (!quiet) 108 printf("removed directory /mydir\n"); 109 110 if (!quiet) 111 printf("scanning the root directory...\n"); 112 113 dirp = opendir("/"); 114 if (!dirp) 115 return "opendir() failed\n"; 89 116 while ((dp = readdir(dirp))) 90 117 printf("discovered node %s in /\n", dp->d_name);
Note:
See TracChangeset
for help on using the changeset viewer.