projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Change stat to lstats in test code
[yaffs2.git]
/
direct
/
basic-test
/
dtest.c
diff --git
a/direct/basic-test/dtest.c
b/direct/basic-test/dtest.c
index c56e5b2a76063c5e7cd88062ed90956ad6a54685..b954699a56a84f6a6e4bdb470c4283dff6e21dd8 100644
(file)
--- a/
direct/basic-test/dtest.c
+++ b/
direct/basic-test/dtest.c
@@
-531,7
+531,7
@@
void dumpDirFollow(const char *dname)
{
sprintf(str,"%s/%s",dname,de->d_name);
{
sprintf(str,"%s/%s",dname,de->d_name);
- yaffs_stat(str,&s);
+ yaffs_
l
stat(str,&s);
printf("%s ino %d length %d mode %X ",de->d_name,(int)s.st_ino,(int)s.st_size,s.st_mode);
switch(s.st_mode & S_IFMT)
printf("%s ino %d length %d mode %X ",de->d_name,(int)s.st_ino,(int)s.st_size,s.st_mode);
switch(s.st_mode & S_IFMT)
@@
-741,7
+741,7
@@
int long_test(int argc, char *argv[])
dumpDir("/boot");
// Check stat
dumpDir("/boot");
// Check stat
- r = yaffs_stat("/boot/file with a long name",&ystat);
+ r = yaffs_
l
stat("/boot/file with a long name",&ystat);
// Check rename
// Check rename
@@
-828,7
+828,7
@@
int long_test(int argc, char *argv[])
// Check chmod
// Check chmod
- yaffs_stat("/boot/yyfile",&ystat);
+ yaffs_
l
stat("/boot/yyfile",&ystat);
temp_mode = ystat.st_mode;
yaffs_chmod("/boot/yyfile",0x55555);
temp_mode = ystat.st_mode;
yaffs_chmod("/boot/yyfile",0x55555);
@@
-1094,12
+1094,12
@@
int root_perm_remount(const char *path)
yaffs_mount(path);
yaffs_mount(path);
- yaffs_stat(path,&s);
+ yaffs_
l
stat(path,&s);
printf("root perms after mount %x\n",s.st_mode);
yaffs_chmod(path, 0777);
printf("root perms after mount %x\n",s.st_mode);
yaffs_chmod(path, 0777);
- yaffs_stat(path,&s);
+ yaffs_
l
stat(path,&s);
printf("root perms after setting to 0777 is %x\n",s.st_mode);
yaffs_unmount(path);
printf("root perms after setting to 0777 is %x\n",s.st_mode);
yaffs_unmount(path);