Rev 2699 | Rev 2710 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2699 | Rev 2707 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | #include <errno.h> |
29 | #include <errno.h> |
30 | #include <stdio.h> |
30 | #include <stdio.h> |
31 | #include <stdlib.h> |
31 | #include <stdlib.h> |
32 | #include <string.h> |
32 | #include <string.h> |
33 | #include <sys/types.h> |
- | |
34 | #include <vfs.h> |
33 | #include <vfs.h> |
35 | #include <unistd.h> |
34 | #include <unistd.h> |
36 | #include <fcntl.h> |
35 | #include <fcntl.h> |
37 | #include <dirent.h> |
36 | #include <dirent.h> |
- | 37 | #include <sys/types.h> |
|
- | 38 | #include <sys/stat.h> |
|
38 | #include "../tester.h" |
39 | #include "../tester.h" |
39 | 40 | ||
40 | char *test_vfs1(bool quiet) |
41 | char *test_vfs1(bool quiet) |
41 | { |
42 | { |
42 | if (mount("tmpfs", "/", "nulldev0") != EOK) |
43 | if (mount("tmpfs", "/", "nulldev0") != EOK) |
43 | return "Mount failed.\n"; |
44 | return "Mount failed.\n"; |
44 | 45 | ||
- | 46 | if (mkdir("/mydir", 0) != 0) |
|
- | 47 | return "mkdir() failed.\n"; |
|
45 | 48 | ||
46 | DIR *dirp; |
49 | DIR *dirp; |
47 | struct dirent *dp; |
50 | struct dirent *dp; |
48 | 51 | ||
49 | dirp = opendir("/"); |
52 | dirp = opendir("/"); |