psxhdrs: Fix spacing

This commit is contained in:
Joel Sherrill
2018-12-05 16:07:33 -06:00
parent 36e1b8204f
commit cbb08b6176
34 changed files with 926 additions and 926 deletions

View File

@@ -3,7 +3,7 @@
* @brief assert() API Conformance Test * @brief assert() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Jacob Shin * Jacob Shin
* *

View File

@@ -2,7 +2,8 @@
* @file * @file
* @brief dlclose() API Conformance Test * @brief dlclose() API Conformance Test
*/ */
/*
/*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -18,16 +19,16 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <dlfcn.h> #include <dlfcn.h>
int test( void ); int test( void );
int test( void ) int test( void )
{ {
void *filename; void *filename;
int result; int result;
@@ -35,4 +36,4 @@
result = dlclose( filename ); result = dlclose( filename );
return result; return result;
} }

View File

@@ -2,7 +2,8 @@
* @file * @file
* @brief dlerror() API Conformance Test * @brief dlerror() API Conformance Test
*/ */
/*
/*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -18,19 +19,20 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <dlfcn.h> #include <dlfcn.h>
int test( void ); int test( void );
int test( void ) int test( void )
{ {
const char *errstr; const char *errstr;
errstr = dlerror(); errstr = dlerror();
return (errstr != NULL); return (errstr != NULL);
}
}

View File

@@ -2,7 +2,8 @@
* @file * @file
* @brief dlopen() API Conformance Test * @brief dlopen() API Conformance Test
*/ */
/*
/*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -18,23 +19,20 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <dlfcn.h> #include <dlfcn.h>
int test( void ); int test( void );
int result = 1; int test( void )
{
int test( void )
{
void *filename; void *filename;
filename = dlopen( "mylib.so", RTLD_LOCAL | RTLD_LAZY ); filename = dlopen( "mylib.so", RTLD_LOCAL | RTLD_LAZY );
(void) filename; (void) filename;
result = 0;
return result; return (filename != NULL);
} }

View File

@@ -3,7 +3,7 @@
* @brief fnmatch() API Conformance Test * @brief fnmatch() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Jacob Shin * Jacob Shin
* *

View File

@@ -3,7 +3,7 @@
* @brief iconv() API Conformance Test * @brief iconv() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Jacob Shin * Jacob Shin
* *
@@ -29,7 +29,6 @@ int test( void );
int test( void ) int test( void )
{ {
iconv_t cd = iconv_open("ASCII", "UTF-8"); iconv_t cd = iconv_open("ASCII", "UTF-8");
char inbuf[10] = "string"; char inbuf[10] = "string";
char outbuf[10]; char outbuf[10];

View File

@@ -3,7 +3,7 @@
* @brief iconv_close() API Conformance Test * @brief iconv_close() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Jacob Shin * Jacob Shin
* *

View File

@@ -3,7 +3,7 @@
* @brief iconv_open() API Conformance Test * @brief iconv_open() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Jacob Shin * Jacob Shin
* *

View File

@@ -3,7 +3,7 @@
* @brief nl_langinfo() API Conformance Test * @brief nl_langinfo() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Jacob Shin * Jacob Shin
* *

View File

@@ -3,7 +3,7 @@
* @brief nl_langinfo_l() API Conformance Test * @brief nl_langinfo_l() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Jacob Shin * Jacob Shin
* *

View File

@@ -3,7 +3,7 @@
* @brief strfmon() API Conformance Test * @brief strfmon() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Jacob Shin * Jacob Shin
* *

View File

@@ -3,7 +3,7 @@
* @brief strfmon_l() API Conformance Test * @brief strfmon_l() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Jacob Shin * Jacob Shin
* *

View File

@@ -3,7 +3,7 @@
* @brief mq_close() API Conformance Test * @brief mq_close() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,20 +19,20 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <mqueue.h> #include <mqueue.h>
int test( void ); int test( void );
#define MQ_MAXMSG 1 #define MQ_MAXMSG 1
#define MQ_MSGSIZE sizeof(int) #define MQ_MSGSIZE sizeof(int)
int test( void ) int test( void )
{ {
mqd_t mqdes; mqd_t mqdes;
struct mq_attr mqstat; struct mq_attr mqstat;
const char *q_name; const char *q_name;
@@ -46,4 +46,4 @@
result = mq_close( mqdes ); result = mq_close( mqdes );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief mq_getattr() API Conformance Test * @brief mq_getattr() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,20 +19,20 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <mqueue.h> #include <mqueue.h>
int test( void ); int test( void );
#define MQ_MAXMSG 1 #define MQ_MAXMSG 1
#define MQ_MSGSIZE sizeof(int) #define MQ_MSGSIZE sizeof(int)
int test( void ) int test( void )
{ {
mqd_t mqdes; mqd_t mqdes;
struct mq_attr mqstat; struct mq_attr mqstat;
const char *q_name; const char *q_name;
@@ -46,4 +46,4 @@
result = mq_getattr( mqdes, &mqstat ); result = mq_getattr( mqdes, &mqstat );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief mq_notify() API Conformance Test * @brief mq_notify() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,20 +19,20 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <mqueue.h> #include <mqueue.h>
int test( void ); int test( void );
#define MQ_MAXMSG 1 #define MQ_MAXMSG 1
#define MQ_MSGSIZE sizeof(int) #define MQ_MSGSIZE sizeof(int)
int test( void ) int test( void )
{ {
mqd_t mqdes; mqd_t mqdes;
struct mq_attr mqstat; struct mq_attr mqstat;
struct sigevent sevp; struct sigevent sevp;
@@ -49,4 +49,4 @@
result = mq_notify( mqdes, &sevp ); result = mq_notify( mqdes, &sevp );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief mq_open() API Conformance Test * @brief mq_open() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,22 +19,22 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <mqueue.h> #include <mqueue.h>
int test( void ); int test( void );
#define MQ_MAXMSG 1 #define MQ_MAXMSG 1
#define MQ_MSGSIZE sizeof(int) #define MQ_MSGSIZE sizeof(int)
int result = 1; int result = 1;
int test( void ) int test( void )
{ {
mqd_t mqdes; mqd_t mqdes;
struct mq_attr mqstat; struct mq_attr mqstat;
const char *q_name; const char *q_name;
@@ -48,4 +48,4 @@
(void) mqdes; (void) mqdes;
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief mq_receive() API Conformance Test * @brief mq_receive() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,20 +19,20 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <mqueue.h> #include <mqueue.h>
int test( void ); int test( void );
#define MQ_MAXMSG 1 #define MQ_MAXMSG 1
#define MQ_MSGSIZE sizeof(int) #define MQ_MSGSIZE sizeof(int)
int test( void ) int test( void )
{ {
mqd_t mqdes; mqd_t mqdes;
struct mq_attr mqstat; struct mq_attr mqstat;
const char *q_name; const char *q_name;
@@ -49,4 +49,4 @@
result = mq_receive( mqdes, (char *)message, MQ_MSGSIZE, &msg_prio ); result = mq_receive( mqdes, (char *)message, MQ_MSGSIZE, &msg_prio );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief mq_send() API Conformance Test * @brief mq_send() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,20 +19,20 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <mqueue.h> #include <mqueue.h>
int test( void ); int test( void );
#define MQ_MAXMSG 1 #define MQ_MAXMSG 1
#define MQ_MSGSIZE sizeof(int) #define MQ_MSGSIZE sizeof(int)
int test( void ) int test( void )
{ {
mqd_t mqdes; mqd_t mqdes;
struct mq_attr mqstat; struct mq_attr mqstat;
const char *q_name; const char *q_name;
@@ -50,4 +50,4 @@
result = mq_send( mqdes, (const char *)&msg_ptr, MQ_MSGSIZE, msg_prio ); result = mq_send( mqdes, (const char *)&msg_ptr, MQ_MSGSIZE, msg_prio );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief mq_setattr() API Conformance Test * @brief mq_setattr() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,20 +19,20 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <mqueue.h> #include <mqueue.h>
int test( void ); int test( void );
#define MQ_MAXMSG 1 #define MQ_MAXMSG 1
#define MQ_MSGSIZE sizeof(int) #define MQ_MSGSIZE sizeof(int)
int test( void ) int test( void )
{ {
mqd_t mqdes; mqd_t mqdes;
struct mq_attr mqstat; struct mq_attr mqstat;
struct mq_attr *omqstat = NULL; struct mq_attr *omqstat = NULL;
@@ -47,4 +47,4 @@
result = mq_setattr( mqdes, &mqstat, omqstat ); result = mq_setattr( mqdes, &mqstat, omqstat );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief mq_timedreceive() API Conformance Test * @brief mq_timedreceive() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,21 +19,21 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <time.h> #include <time.h>
#include <mqueue.h> #include <mqueue.h>
int test( void ); int test( void );
#define MQ_MAXMSG 1 #define MQ_MAXMSG 1
#define MQ_MSGSIZE sizeof(int) #define MQ_MSGSIZE sizeof(int)
int test( void ) int test( void )
{ {
mqd_t mqdes; mqd_t mqdes;
struct mq_attr mqstat; struct mq_attr mqstat;
const char *q_name; const char *q_name;
@@ -54,4 +54,4 @@
mqdes, (char *)message, MQ_MSGSIZE, &msg_prio, &abs_timeout ); mqdes, (char *)message, MQ_MSGSIZE, &msg_prio, &abs_timeout );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief mq_timedsend() API Conformance Test * @brief mq_timedsend() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,21 +19,21 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <time.h> #include <time.h>
#include <mqueue.h> #include <mqueue.h>
int test( void ); int test( void );
#define MQ_MAXMSG 1 #define MQ_MAXMSG 1
#define MQ_MSGSIZE sizeof(int) #define MQ_MSGSIZE sizeof(int)
int test( void ) int test( void )
{ {
mqd_t mqdes; mqd_t mqdes;
struct mq_attr mqstat; struct mq_attr mqstat;
const char *q_name; const char *q_name;
@@ -55,4 +55,4 @@
mqdes, (const char *)&msg_ptr, MQ_MSGSIZE, msg_prio, &abs_timeout); mqdes, (const char *)&msg_ptr, MQ_MSGSIZE, msg_prio, &abs_timeout);
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief mq_unlink() API Conformance Test * @brief mq_unlink() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,16 +19,16 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <mqueue.h> #include <mqueue.h>
int test( void ); int test( void );
int test( void ) int test( void )
{ {
const char *q_name; const char *q_name;
int result; int result;
@@ -36,4 +36,4 @@
result = mq_unlink( q_name ); result = mq_unlink( q_name );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief sem_close() API Conformance Test * @brief sem_close() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,18 +19,18 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <semaphore.h> #include <semaphore.h>
int test( void ); int test( void );
int test( void ) int test( void )
{ {
sem_t *sem1; sem_t *sem1;
int oflag = O_CREAT; int oflag = O_CREAT;
int result; int result;
@@ -42,4 +42,4 @@
result = sem_close( sem1 ); result = sem_close( sem1 );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief sem_destroy() API Conformance Test * @brief sem_destroy() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,18 +19,18 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <semaphore.h> #include <semaphore.h>
int test( void ); int test( void );
int test( void ) int test( void )
{ {
sem_t *sem1; sem_t *sem1;
int oflag = O_CREAT; int oflag = O_CREAT;
int result; int result;
@@ -42,4 +42,4 @@
result = sem_destroy( sem1 ); result = sem_destroy( sem1 );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief sem_getval() API Conformance Test * @brief sem_getval() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,16 +19,16 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <semaphore.h> #include <semaphore.h>
int test( void ); int test( void );
int test( void ) int test( void )
{ {
sem_t sem; sem_t sem;
int pshared; int pshared;
unsigned int value; unsigned int value;
@@ -43,4 +43,4 @@
result = sem_getvalue( &sem, &sval ); result = sem_getvalue( &sem, &sval );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief sem_init() API Conformance Test * @brief sem_init() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,16 +19,16 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <semaphore.h> #include <semaphore.h>
int test( void ); int test( void );
int test( void ) int test( void )
{ {
sem_t sem; sem_t sem;
int pshared; int pshared;
unsigned int value; unsigned int value;
@@ -40,4 +40,4 @@
result = sem_init( &sem, pshared, value ); result = sem_init( &sem, pshared, value );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief sem_open() API Conformance Test * @brief sem_open() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,20 +19,20 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <semaphore.h> #include <semaphore.h>
int test( void ); int test( void );
int result = 1; int result = 1;
int test( void ) int test( void )
{ {
sem_t *sem1; sem_t *sem1;
int oflag = O_CREAT; int oflag = O_CREAT;
unsigned int value; unsigned int value;
@@ -43,4 +43,4 @@
(void) sem1; (void) sem1;
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief sem_post() API Conformance Test * @brief sem_post() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,16 +19,16 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <semaphore.h> #include <semaphore.h>
int test( void ); int test( void );
int test( void ) int test( void )
{ {
sem_t sem; sem_t sem;
int pshared; int pshared;
unsigned int value; unsigned int value;
@@ -41,4 +41,4 @@
result = sem_post( &sem ); result = sem_post( &sem );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief sem_timedwait() API Conformance Test * @brief sem_timedwait() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,18 +19,18 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <time.h> #include <time.h>
#include <semaphore.h> #include <semaphore.h>
int test( void ); int test( void );
int test( void ) int test( void )
{ {
sem_t sem; sem_t sem;
struct timespec abs_timeout; struct timespec abs_timeout;
int pshared; int pshared;
@@ -46,4 +46,4 @@
result = sem_timedwait( &sem, &abs_timeout ); result = sem_timedwait( &sem, &abs_timeout );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief sem_trywait() API Conformance Test * @brief sem_trywait() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,16 +19,16 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <semaphore.h> #include <semaphore.h>
int test( void ); int test( void );
int test( void ) int test( void )
{ {
sem_t sem; sem_t sem;
int pshared; int pshared;
unsigned int value; unsigned int value;
@@ -41,4 +41,4 @@
result = sem_trywait( &sem ); result = sem_trywait( &sem );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief sem_unlink() API Conformance Test * @brief sem_unlink() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,16 +19,16 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <semaphore.h> #include <semaphore.h>
int test( void ); int test( void );
int test( void ) int test( void )
{ {
sem_t sem; sem_t sem;
int pshared; int pshared;
unsigned int value; unsigned int value;
@@ -41,4 +41,4 @@
result = sem_unlink( "sem" ); result = sem_unlink( "sem" );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief sem_wait() API Conformance Test * @brief sem_wait() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Himanshu Sekhar Nayak * Himanshu Sekhar Nayak
* *
@@ -19,16 +19,16 @@
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include <semaphore.h> #include <semaphore.h>
int test( void ); int test( void );
int test( void ) int test( void )
{ {
sem_t sem; sem_t sem;
int pshared; int pshared;
unsigned int value; unsigned int value;
@@ -41,4 +41,4 @@
result = sem_wait( &sem ); result = sem_wait( &sem );
return result; return result;
} }

View File

@@ -3,7 +3,7 @@
* @brief ulimit() API Conformance Test * @brief ulimit() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Jacob Shin * Jacob Shin
* *

View File

@@ -3,7 +3,7 @@
* @brief utime() API Conformance Test * @brief utime() API Conformance Test
*/ */
/* /*
* COPYRIGHT (c) 2018. * COPYRIGHT (c) 2018.
* Shashvat Jain * Shashvat Jain
* *