source: rtems/testsuites/psxtests/psxhdrs/dlfcn/dlerror.c @ 903c57a

Last change on this file since 903c57a was 903c57a, checked in by Himanshu40 <himanshuwindows8.1@…>, on Dec 1, 2018 at 6:41:19 PM

psxhdrs: add POSIX API Signature Compliance Tests for dlfcn.h File (GCI 2018)

  • Property mode set to 100644
File size: 977 bytes
Line 
1/**
2 *  @file
3 *  @brief dlerror() API Conformance Test
4 */
5 /*
6 *  COPYRIGHT (c) 2018.
7 *  Himanshu Sekhar Nayak
8 *
9 *  Permission to use, copy, modify, and/or distribute this software
10 *  for any purpose with or without fee is hereby granted.
11 *
12 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
15 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
16 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
17 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
18 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 */
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24
25 #include <dlfcn.h>
26
27 int test( void );
28
29 int result = 1;
30
31 int test( void )
32 {
33   char *errstr;
34
35   errstr = dlerror();
36   result = 0;
37
38   return result;
39 }
Note: See TracBrowser for help on using the repository browser.