psxhdrs: Align the code properly to left hand margin

This commit is contained in:
Himanshu40
2018-12-05 20:58:39 +05:30
committed by Joel Sherrill
parent 7fe5922a5f
commit e15ae5a3a1
11 changed files with 310 additions and 346 deletions

View File

@@ -3,7 +3,7 @@
* @brief alphasort() API Conformance Test * @brief alphasort() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *

View File

@@ -3,7 +3,7 @@
* @brief closedir() API Conformance Test * @brief closedir() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *

View File

@@ -3,7 +3,7 @@
* @brief dirfd() API Conformance Test * @brief dirfd() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *

View File

@@ -3,7 +3,7 @@
* @brief fdopendir() API Conformance Test * @brief fdopendir() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -30,20 +30,13 @@
int test( void ); int test( void );
int pass = 1;
int test( void ) int test( void )
{ {
int fd; int fd;
DIR *result; DIR *result;
if( pass == 1 )
{
fd = open( "./", O_RDONLY ); fd = open( "./", O_RDONLY );
result = fdopendir( fd ); result = fdopendir( fd );
(void) result;
pass = 0;
}
return pass; return ( result != NULL );
} }

View File

@@ -3,7 +3,7 @@
* @brief opendir() API Conformance Test * @brief opendir() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -27,18 +27,11 @@
int test( void ); int test( void );
int result = 1;
int test( void ) int test( void )
{ {
DIR *dir; DIR *dir;
if( result == 1 )
{
dir = opendir( "/" ); dir = opendir( "/" );
(void) dir;
result = 0;
}
return result; return ( dir != NULL );
} }

View File

@@ -3,7 +3,7 @@
* @brief readdir() API Conformance Test * @brief readdir() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -26,20 +26,14 @@
#include <dirent.h> #include <dirent.h>
int test( void ); int test( void );
int pass = 1;
int test( void ) int test( void )
{ {
DIR *dirp; DIR *dirp;
struct dirent *result; struct dirent *result;
if( pass == 1 )
{
dirp = opendir( "/" ); dirp = opendir( "/" );
result = readdir( dirp ); result = readdir( dirp );
(void) result;
pass = 0;
}
return pass; return ( result != NULL );
} }

View File

@@ -3,7 +3,7 @@
* @brief readdir_r() API Conformance Test * @brief readdir_r() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *

View File

@@ -3,7 +3,7 @@
* @brief rewinddir() API Conformance Test * @brief rewinddir() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -26,18 +26,13 @@
#include <dirent.h> #include <dirent.h>
int test( void ); int test( void );
int result = 1;
int test( void ) int test( void )
{ {
DIR *dirp; DIR *dirp;
if( result == 1 )
{
dirp = opendir( "/" ); dirp = opendir( "/" );
rewinddir( dirp ); rewinddir( dirp );
result = 0;
}
return result; return ( dirp != NULL );
} }

View File

@@ -3,7 +3,7 @@
* @brief scandir() API Conformance Test * @brief scandir() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *

View File

@@ -3,7 +3,7 @@
* @brief seekdir() API Conformance Test * @brief seekdir() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -26,20 +26,15 @@
#include <dirent.h> #include <dirent.h>
int test( void ); int test( void );
int result = 1;
int test( void ) int test( void )
{ {
DIR *dirp; DIR *dirp;
long loc; long loc;
if( result == 1 )
{
dirp = opendir( "/" ); dirp = opendir( "/" );
loc = telldir( dirp ); loc = telldir( dirp );
seekdir( dirp, loc ); seekdir( dirp, loc );
result = 0;
}
return result; return ( (int)loc );
} }

View File

@@ -3,7 +3,7 @@
* @brief telldir() API Conformance Test * @brief telldir() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -26,20 +26,14 @@
#include <dirent.h> #include <dirent.h>
int test( void ); int test( void );
int result = 1;
int test( void ) int test( void )
{ {
DIR *dirp; DIR *dirp;
long loc; long loc;
if( result == 1 )
{
dirp = opendir( "/" ); dirp = opendir( "/" );
loc = telldir( dirp ); loc = telldir( dirp );
(void) loc;
result = 0;
}
return result; return ( (int)loc );
} }