summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxreaddir/test.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-04-16 09:24:30 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-04-16 09:24:30 +0000
commit1b4f2b305c95a832a259e4c4944f1a0981676eba (patch)
tree1ee56809b12a03ba53d630f5483a48387f72b74a /testsuites/psxtests/psxreaddir/test.c
parentRemove stray white spaces. (diff)
downloadrtems-1b4f2b305c95a832a259e4c4944f1a0981676eba.tar.bz2
Remove stray white spaces.
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxreaddir/test.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/testsuites/psxtests/psxreaddir/test.c b/testsuites/psxtests/psxreaddir/test.c
index aae0e89c85..39b4461d2c 100644
--- a/testsuites/psxtests/psxreaddir/test.c
+++ b/testsuites/psxtests/psxreaddir/test.c
@@ -2,12 +2,12 @@
* This is a native test to explore how the readdir() family works.
* Newlib supports the following readdir() family members:
*
- * closedir() -
- * readdir() -
- * scandir() -
- * opendir() -
- * rewinddir() -
- * telldir() - BSD not in POSIX
+ * closedir() -
+ * readdir() -
+ * scandir() -
+ * opendir() -
+ * rewinddir() -
+ * telldir() - BSD not in POSIX
* seekdir() - BSD not in POSIX
*
*
@@ -60,7 +60,7 @@ void printdir( DIR *directory )
printf( "%-20s %8s %8s %8s %4s\n",
"name", " inode", " offset", "reclen", " type" );
d = readdir(directory);
-
+
while (d) {
printf( "%-20s %8d %8d %6d 0x%04x\n",
d->d_name, (int)d->d_ino, (int)d->d_off, d->d_reclen, d->d_type );
@@ -212,7 +212,7 @@ void test_across_mount()
assert( status == 0 );
status = mkdir( "/imfs/testdir/testsubdir", 0777 );
assert( status == 0 );
-
+
complete_printdir("/imfs" );
complete_printdir("/imfs/" );
complete_printdir("/imfs/." );
@@ -264,7 +264,7 @@ int main(
printf("Create a lot of files\n");
status = mkdir( "/many", 0x1c0 );
- status = chdir( "/many" );
+ status = chdir( "/many" );
for (i = 0; i<44; i++) {
printf("Create %s\n", many_files[i]);
fd = open (many_files[i], O_CREAT, S_IRWXU);
@@ -421,10 +421,10 @@ int main(
rewinddir( directory );
for( off=0 ; off<=200 ; off=off + sizeof(struct dirent) / 4 ) {
seekdir( directory, off );
- printf(
- "seeked to %2d -- currently at %2d\n",
- (int)off,
- (int)telldir(directory)
+ printf(
+ "seeked to %2d -- currently at %2d\n",
+ (int)off,
+ (int)telldir(directory)
);
}