summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/dlfcn
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-12-05 16:07:33 -0600
committerJoel Sherrill <joel@rtems.org>2018-12-05 16:07:33 -0600
commitcbb08b61764f62a13f9885f80a617bc96ab36f22 (patch)
tree96955a92c42e932b2f5ec4c598abf2d75b6e87d5 /testsuites/psxtests/psxhdrs/dlfcn
parentpsxtmcleanup01/init.c: Fix warnings (diff)
downloadrtems-cbb08b61764f62a13f9885f80a617bc96ab36f22.tar.bz2
psxhdrs: Fix spacing
Diffstat (limited to 'testsuites/psxtests/psxhdrs/dlfcn')
-rw-r--r--testsuites/psxtests/psxhdrs/dlfcn/dlclose.c29
-rw-r--r--testsuites/psxtests/psxhdrs/dlfcn/dlerror.c26
-rw-r--r--testsuites/psxtests/psxhdrs/dlfcn/dlopen.c30
3 files changed, 43 insertions, 42 deletions
diff --git a/testsuites/psxtests/psxhdrs/dlfcn/dlclose.c b/testsuites/psxtests/psxhdrs/dlfcn/dlclose.c
index ddc6759f08..9730bb4700 100644
--- a/testsuites/psxtests/psxhdrs/dlfcn/dlclose.c
+++ b/testsuites/psxtests/psxhdrs/dlfcn/dlclose.c
@@ -2,7 +2,8 @@
* @file
* @brief dlclose() API Conformance Test
*/
- /*
+
+/*
* COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak
*
@@ -18,21 +19,21 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
- #ifdef HAVE_CONFIG_H
- #include "config.h"
- #endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
- #include <dlfcn.h>
+#include <dlfcn.h>
- int test( void );
+int test( void );
- int test( void )
- {
- void *filename;
- int result;
+int test( void )
+{
+ void *filename;
+ int result;
- filename = dlopen( "mylib.so", RTLD_LOCAL | RTLD_LAZY );
- result = dlclose( filename );
+ filename = dlopen( "mylib.so", RTLD_LOCAL | RTLD_LAZY );
+ result = dlclose( filename );
- return result;
- }
+ return result;
+}
diff --git a/testsuites/psxtests/psxhdrs/dlfcn/dlerror.c b/testsuites/psxtests/psxhdrs/dlfcn/dlerror.c
index 7393761de4..76f188759f 100644
--- a/testsuites/psxtests/psxhdrs/dlfcn/dlerror.c
+++ b/testsuites/psxtests/psxhdrs/dlfcn/dlerror.c
@@ -2,7 +2,8 @@
* @file
* @brief dlerror() API Conformance Test
*/
- /*
+
+/*
* COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak
*
@@ -18,19 +19,20 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
- #ifdef HAVE_CONFIG_H
- #include "config.h"
- #endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <dlfcn.h>
- #include <dlfcn.h>
+int test( void );
- int test( void );
+int test( void )
+{
+ const char *errstr;
- int test( void )
- {
- const char *errstr;
+ errstr = dlerror();
- errstr = dlerror();
+ return (errstr != NULL);
- return (errstr != NULL);
- }
+}
diff --git a/testsuites/psxtests/psxhdrs/dlfcn/dlopen.c b/testsuites/psxtests/psxhdrs/dlfcn/dlopen.c
index 382d1bbc74..3b3dbafb2f 100644
--- a/testsuites/psxtests/psxhdrs/dlfcn/dlopen.c
+++ b/testsuites/psxtests/psxhdrs/dlfcn/dlopen.c
@@ -2,7 +2,8 @@
* @file
* @brief dlopen() API Conformance Test
*/
- /*
+
+/*
* COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak
*
@@ -18,23 +19,20 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
- #ifdef HAVE_CONFIG_H
- #include "config.h"
- #endif
-
- #include <dlfcn.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
- int test( void );
+#include <dlfcn.h>
- int result = 1;
+int test( void );
- int test( void )
- {
- void *filename;
+int test( void )
+{
+ void *filename;
- filename = dlopen( "mylib.so", RTLD_LOCAL | RTLD_LAZY );
- (void) filename;
- result = 0;
+ filename = dlopen( "mylib.so", RTLD_LOCAL | RTLD_LAZY );
+ (void) filename;
- return result;
- }
+ return (filename != NULL);
+}