Changeset cbb08b61 in rtems for testsuites


Ignore:
Timestamp:
Dec 5, 2018, 10:07:33 PM (12 months ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
95095be
Parents:
36e1b82
Message:

psxhdrs: Fix spacing

Location:
testsuites/psxtests/psxhdrs
Files:
34 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxhdrs/assert/assert.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Jacob Shin
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Jacob Shin
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    2222#ifdef HAVE_CONFIG_H
  • testsuites/psxtests/psxhdrs/dlfcn/dlclose.c

    r36e1b82 rcbb08b61  
    33 *  @brief dlclose() API Conformance Test
    44 */
    5  /*
     5
     6/*
    67 *  COPYRIGHT (c) 2018.
    78 *  Himanshu Sekhar Nayak
     
    1920 */
    2021
    21  #ifdef HAVE_CONFIG_H
    22  #include "config.h"
    23  #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2425
    25  #include <dlfcn.h>
     26#include <dlfcn.h>
    2627
    27  int test( void );
     28int test( void );
    2829
    29  int test( void )
    30  {
    31    void *filename;
    32    int result;
     30int test( void )
     31{
     32  void *filename;
     33  int result;
    3334
    34    filename = dlopen( "mylib.so", RTLD_LOCAL | RTLD_LAZY );
    35    result = dlclose( filename );
     35  filename = dlopen( "mylib.so", RTLD_LOCAL | RTLD_LAZY );
     36  result = dlclose( filename );
    3637
    37    return result;
    38  }
     38  return result;
     39}
  • testsuites/psxtests/psxhdrs/dlfcn/dlerror.c

    r36e1b82 rcbb08b61  
    33 *  @brief dlerror() API Conformance Test
    44 */
    5  /*
     5
     6/*
    67 *  COPYRIGHT (c) 2018.
    78 *  Himanshu Sekhar Nayak
     
    1920 */
    2021
    21  #ifdef HAVE_CONFIG_H
    22  #include "config.h"
    23  #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2425
    25  #include <dlfcn.h>
     26#include <dlfcn.h>
    2627
    27  int test( void );
     28int test( void );
    2829
    29  int test( void )
    30  {
    31    const char *errstr;
     30int test( void )
     31{
     32  const char *errstr;
    3233
    33    errstr = dlerror();
     34  errstr = dlerror();
    3435
    35    return (errstr != NULL);
    36  }
     36  return (errstr != NULL);
     37
     38}
  • testsuites/psxtests/psxhdrs/dlfcn/dlopen.c

    r36e1b82 rcbb08b61  
    33 *  @brief dlopen() API Conformance Test
    44 */
    5  /*
     5
     6/*
    67 *  COPYRIGHT (c) 2018.
    78 *  Himanshu Sekhar Nayak
     
    1920 */
    2021
    21  #ifdef HAVE_CONFIG_H
    22  #include "config.h"
    23  #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2425
    25  #include <dlfcn.h>
     26#include <dlfcn.h>
    2627
    27  int test( void );
     28int test( void );
    2829
    29  int result = 1;
     30int test( void )
     31{
     32  void *filename;
    3033
    31  int test( void )
    32  {
    33    void *filename;
     34  filename = dlopen( "mylib.so", RTLD_LOCAL | RTLD_LAZY );
     35  (void) filename;
    3436
    35    filename = dlopen( "mylib.so", RTLD_LOCAL | RTLD_LAZY );
    36    (void) filename;
    37    result = 0;
    38 
    39    return result;
    40  }
     37  return (filename != NULL);
     38}
  • testsuites/psxtests/psxhdrs/fnmatch/fnmatch.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Jacob Shin
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Jacob Shin
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    2222#ifdef HAVE_CONFIG_H
  • testsuites/psxtests/psxhdrs/iconv/iconv.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Jacob Shin
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Jacob Shin
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    2222#ifdef HAVE_CONFIG_H
     
    3030int test( void )
    3131{
    32 
    3332  iconv_t cd = iconv_open("ASCII", "UTF-8");
    3433  char inbuf[10] = "string";
  • testsuites/psxtests/psxhdrs/iconv/iconv_close.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Jacob Shin
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Jacob Shin
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    2222#ifdef HAVE_CONFIG_H
  • testsuites/psxtests/psxhdrs/iconv/iconv_open.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Jacob Shin
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Jacob Shin
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    2222#ifdef HAVE_CONFIG_H
  • testsuites/psxtests/psxhdrs/langinfo/nl_langinfo.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Jacob Shin
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Jacob Shin
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    2222#ifdef HAVE_CONFIG_H
  • testsuites/psxtests/psxhdrs/langinfo/nl_langinfo_l.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Jacob Shin
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Jacob Shin
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    2222#ifdef HAVE_CONFIG_H
  • testsuites/psxtests/psxhdrs/monetary/strfmon.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Jacob Shin
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Jacob Shin
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    2222#ifdef HAVE_CONFIG_H
  • testsuites/psxtests/psxhdrs/monetary/strfmon_l.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Jacob Shin
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Jacob Shin
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    2222#ifdef HAVE_CONFIG_H
  • testsuites/psxtests/psxhdrs/mqueue/mq_close.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <mqueue.h>
     26#include <fcntl.h>
     27#include <mqueue.h>
    2828
    29   int test( void );
     29int test( void );
    3030
    31   #define MQ_MAXMSG     1
    32   #define MQ_MSGSIZE    sizeof(int)
     31#define MQ_MAXMSG     1
     32#define MQ_MSGSIZE    sizeof(int)
    3333
    34   int test( void )
    35   {
    36     mqd_t mqdes;
    37     struct mq_attr mqstat;
    38     const char *q_name;
    39     int result;
     34int test( void )
     35{
     36  mqd_t mqdes;
     37  struct mq_attr mqstat;
     38  const char *q_name;
     39  int result;
    4040
    41     mqstat.mq_maxmsg  = MQ_MAXMSG;
    42     mqstat.mq_msgsize = MQ_MSGSIZE;
    43     q_name = "queue";
     41  mqstat.mq_maxmsg  = MQ_MAXMSG;
     42  mqstat.mq_msgsize = MQ_MSGSIZE;
     43  q_name = "queue";
    4444
    45     mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
    46     result = mq_close( mqdes );
     45  mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
     46  result = mq_close( mqdes );
    4747
    48     return result;
    49   }
     48  return result;
     49}
  • testsuites/psxtests/psxhdrs/mqueue/mq_getattr.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <mqueue.h>
     26#include <fcntl.h>
     27#include <mqueue.h>
    2828
    29   int test( void );
     29int test( void );
    3030
    31   #define MQ_MAXMSG     1
    32   #define MQ_MSGSIZE    sizeof(int)
     31#define MQ_MAXMSG     1
     32#define MQ_MSGSIZE    sizeof(int)
    3333
    34   int test( void )
    35   {
    36     mqd_t mqdes;
    37     struct mq_attr mqstat;
    38     const char *q_name;
    39     int result;
     34int test( void )
     35{
     36  mqd_t mqdes;
     37  struct mq_attr mqstat;
     38  const char *q_name;
     39  int result;
    4040
    41     mqstat.mq_maxmsg  = MQ_MAXMSG;
    42     mqstat.mq_msgsize = MQ_MSGSIZE;
    43     q_name = "queue";
     41  mqstat.mq_maxmsg  = MQ_MAXMSG;
     42  mqstat.mq_msgsize = MQ_MSGSIZE;
     43  q_name = "queue";
    4444
    45     mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
    46     result = mq_getattr( mqdes, &mqstat );
     45  mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
     46  result = mq_getattr( mqdes, &mqstat );
    4747
    48     return result;
    49   }
     48  return result;
     49}
  • testsuites/psxtests/psxhdrs/mqueue/mq_notify.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <mqueue.h>
     26#include <fcntl.h>
     27#include <mqueue.h>
    2828
    29   int test( void );
     29int test( void );
    3030
    31   #define MQ_MAXMSG     1
    32   #define MQ_MSGSIZE    sizeof(int)
     31#define MQ_MAXMSG     1
     32#define MQ_MSGSIZE    sizeof(int)
    3333
    34   int test( void )
    35   {
    36     mqd_t mqdes;
    37     struct mq_attr mqstat;
    38     struct sigevent sevp;
    39     const char *q_name;
    40     int result;
     34int test( void )
     35{
     36  mqd_t mqdes;
     37  struct mq_attr mqstat;
     38  struct sigevent sevp;
     39  const char *q_name;
     40  int result;
    4141
    42     mqstat.mq_maxmsg  = MQ_MAXMSG;
    43     mqstat.mq_msgsize = MQ_MSGSIZE;
    44     sevp.sigev_notify = SIGEV_SIGNAL;
    45     sevp.sigev_signo  = SIGUSR1;
    46     q_name = "queue";
     42  mqstat.mq_maxmsg  = MQ_MAXMSG;
     43  mqstat.mq_msgsize = MQ_MSGSIZE;
     44  sevp.sigev_notify = SIGEV_SIGNAL;
     45  sevp.sigev_signo  = SIGUSR1;
     46  q_name = "queue";
    4747
    48     mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
    49     result = mq_notify( mqdes, &sevp );
     48  mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
     49  result = mq_notify( mqdes, &sevp );
    5050
    51     return result;
    52   }
     51  return result;
     52}
  • testsuites/psxtests/psxhdrs/mqueue/mq_open.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <mqueue.h>
     26#include <fcntl.h>
     27#include <mqueue.h>
    2828
    29   int test( void );
     29int test( void );
    3030
    31   #define MQ_MAXMSG     1
    32   #define MQ_MSGSIZE    sizeof(int)
     31#define MQ_MAXMSG     1
     32#define MQ_MSGSIZE    sizeof(int)
    3333
    34   int result = 1;
     34int result = 1;
    3535
    36   int test( void )
    37   {
    38     mqd_t mqdes;
    39     struct mq_attr mqstat;
    40     const char *q_name;
    41     result = 0;
     36int test( void )
     37{
     38  mqd_t mqdes;
     39  struct mq_attr mqstat;
     40  const char *q_name;
     41  result = 0;
    4242
    43     mqstat.mq_maxmsg  = MQ_MAXMSG;
    44     mqstat.mq_msgsize = MQ_MSGSIZE;
    45     q_name = "queue";
     43  mqstat.mq_maxmsg  = MQ_MAXMSG;
     44  mqstat.mq_msgsize = MQ_MSGSIZE;
     45  q_name = "queue";
    4646
    47     mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
    48     (void) mqdes;
     47  mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
     48  (void) mqdes;
    4949
    50     return result;
    51   }
     50  return result;
     51}
  • testsuites/psxtests/psxhdrs/mqueue/mq_receive.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <mqueue.h>
     26#include <fcntl.h>
     27#include <mqueue.h>
    2828
    29   int test( void );
     29int test( void );
    3030
    31   #define MQ_MAXMSG     1
    32   #define MQ_MSGSIZE    sizeof(int)
     31#define MQ_MAXMSG     1
     32#define MQ_MSGSIZE    sizeof(int)
    3333
    34   int test( void )
    35   {
    36     mqd_t mqdes;
    37     struct mq_attr mqstat;
    38     const char *q_name;
    39     int message[MQ_MAXMSG];
    40     unsigned int msg_prio;
    41     int result;
     34int test( void )
     35{
     36  mqd_t mqdes;
     37  struct mq_attr mqstat;
     38  const char *q_name;
     39  int message[MQ_MAXMSG];
     40  unsigned int msg_prio;
     41  int result;
    4242
    43     mqstat.mq_maxmsg  = MQ_MAXMSG;
    44     mqstat.mq_msgsize = MQ_MSGSIZE;
    45     msg_prio = 1;
    46     q_name = "queue";
     43  mqstat.mq_maxmsg  = MQ_MAXMSG;
     44  mqstat.mq_msgsize = MQ_MSGSIZE;
     45  msg_prio = 1;
     46  q_name = "queue";
    4747
    48     mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
    49     result = mq_receive( mqdes, (char *)message, MQ_MSGSIZE, &msg_prio );
     48  mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
     49  result = mq_receive( mqdes, (char *)message, MQ_MSGSIZE, &msg_prio );
    5050
    51     return result;
    52   }
     51  return result;
     52}
  • testsuites/psxtests/psxhdrs/mqueue/mq_send.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <mqueue.h>
     26#include <fcntl.h>
     27#include <mqueue.h>
    2828
    29   int test( void );
     29int test( void );
    3030
    31   #define MQ_MAXMSG     1
    32   #define MQ_MSGSIZE    sizeof(int)
     31#define MQ_MAXMSG     1
     32#define MQ_MSGSIZE    sizeof(int)
    3333
    34   int test( void )
    35   {
    36     mqd_t mqdes;
    37     struct mq_attr mqstat;
    38     const char *q_name;
    39     int msg_ptr;
    40     unsigned int msg_prio;
    41     int result;
     34int test( void )
     35{
     36  mqd_t mqdes;
     37  struct mq_attr mqstat;
     38  const char *q_name;
     39  int msg_ptr;
     40  unsigned int msg_prio;
     41  int result;
    4242
    43     mqstat.mq_maxmsg  = MQ_MAXMSG;
    44     mqstat.mq_msgsize = MQ_MSGSIZE;
    45     msg_prio = 1;
    46     msg_ptr = 9;
    47     q_name = "queue";
     43  mqstat.mq_maxmsg  = MQ_MAXMSG;
     44  mqstat.mq_msgsize = MQ_MSGSIZE;
     45  msg_prio = 1;
     46  msg_ptr = 9;
     47  q_name = "queue";
    4848
    49     mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
    50     result = mq_send( mqdes, (const char *)&msg_ptr, MQ_MSGSIZE, msg_prio );
     49  mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
     50  result = mq_send( mqdes, (const char *)&msg_ptr, MQ_MSGSIZE, msg_prio );
    5151
    52     return result;
    53   }
     52  return result;
     53}
  • testsuites/psxtests/psxhdrs/mqueue/mq_setattr.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <mqueue.h>
     26#include <fcntl.h>
     27#include <mqueue.h>
    2828
    29   int test( void );
     29int test( void );
    3030
    31   #define MQ_MAXMSG     1
    32   #define MQ_MSGSIZE    sizeof(int)
     31#define MQ_MAXMSG     1
     32#define MQ_MSGSIZE    sizeof(int)
    3333
    34   int test( void )
    35   {
    36     mqd_t mqdes;
    37     struct mq_attr mqstat;
    38     struct mq_attr *omqstat = NULL;
    39     const char *q_name;
    40     int result;
     34int test( void )
     35{
     36  mqd_t mqdes;
     37  struct mq_attr mqstat;
     38  struct mq_attr *omqstat = NULL;
     39  const char *q_name;
     40  int result;
    4141
    42     mqstat.mq_maxmsg  = MQ_MAXMSG;
    43     mqstat.mq_msgsize = MQ_MSGSIZE;
    44     q_name = "queue";
     42  mqstat.mq_maxmsg  = MQ_MAXMSG;
     43  mqstat.mq_msgsize = MQ_MSGSIZE;
     44  q_name = "queue";
    4545
    46     mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
    47     result = mq_setattr( mqdes, &mqstat,  omqstat );
     46  mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
     47  result = mq_setattr( mqdes, &mqstat,  omqstat );
    4848
    49     return result;
    50   }
     49  return result;
     50}
  • testsuites/psxtests/psxhdrs/mqueue/mq_timedreceive.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <time.h>
    28   #include <mqueue.h>
     26#include <fcntl.h>
     27#include <time.h>
     28#include <mqueue.h>
    2929
    30   int test( void );
     30int test( void );
    3131
    32   #define MQ_MAXMSG     1
    33   #define MQ_MSGSIZE    sizeof(int)
     32#define MQ_MAXMSG     1
     33#define MQ_MSGSIZE    sizeof(int)
    3434
    35   int test( void )
    36   {
    37     mqd_t mqdes;
    38     struct mq_attr mqstat;
    39     const char *q_name;
    40     int message[MQ_MAXMSG];
    41     struct timespec abs_timeout;
    42     unsigned int msg_prio;
    43     int result;
     35int test( void )
     36{
     37  mqd_t mqdes;
     38  struct mq_attr mqstat;
     39  const char *q_name;
     40  int message[MQ_MAXMSG];
     41  struct timespec abs_timeout;
     42  unsigned int msg_prio;
     43  int result;
    4444
    45     mqstat.mq_maxmsg  = MQ_MAXMSG;
    46     mqstat.mq_msgsize = MQ_MSGSIZE;
    47     abs_timeout.tv_sec  = 0;
    48     abs_timeout.tv_nsec = 0;
    49     msg_prio = 1;
    50     q_name = "queue";
     45  mqstat.mq_maxmsg  = MQ_MAXMSG;
     46  mqstat.mq_msgsize = MQ_MSGSIZE;
     47  abs_timeout.tv_sec  = 0;
     48  abs_timeout.tv_nsec = 0;
     49  msg_prio = 1;
     50  q_name = "queue";
    5151
    52     mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
    53     result = mq_timedreceive(
    54                   mqdes, (char *)message, MQ_MSGSIZE, &msg_prio, &abs_timeout );
     52  mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
     53  result = mq_timedreceive(
     54                mqdes, (char *)message, MQ_MSGSIZE, &msg_prio, &abs_timeout );
    5555
    56     return result;
    57   }
     56  return result;
     57}
  • testsuites/psxtests/psxhdrs/mqueue/mq_timedsend.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <time.h>
    28   #include <mqueue.h>
     26#include <fcntl.h>
     27#include <time.h>
     28#include <mqueue.h>
    2929
    30   int test( void );
     30int test( void );
    3131
    32   #define MQ_MAXMSG     1
    33   #define MQ_MSGSIZE    sizeof(int)
     32#define MQ_MAXMSG     1
     33#define MQ_MSGSIZE    sizeof(int)
    3434
    35   int test( void )
    36   {
    37     mqd_t mqdes;
    38     struct mq_attr mqstat;
    39     const char *q_name;
    40     struct timespec abs_timeout;
    41     unsigned int msg_prio;
    42     int msg_ptr;
    43     int result;
     35int test( void )
     36{
     37  mqd_t mqdes;
     38  struct mq_attr mqstat;
     39  const char *q_name;
     40  struct timespec abs_timeout;
     41  unsigned int msg_prio;
     42  int msg_ptr;
     43  int result;
    4444
    45     mqstat.mq_maxmsg  = MQ_MAXMSG;
    46     mqstat.mq_msgsize = MQ_MSGSIZE;
    47     abs_timeout.tv_sec  = 0;
    48     abs_timeout.tv_nsec = 1;
    49     msg_ptr = 5;
    50     msg_prio = 1;
    51     q_name = "queue";
     45  mqstat.mq_maxmsg  = MQ_MAXMSG;
     46  mqstat.mq_msgsize = MQ_MSGSIZE;
     47  abs_timeout.tv_sec  = 0;
     48  abs_timeout.tv_nsec = 1;
     49  msg_ptr = 5;
     50  msg_prio = 1;
     51  q_name = "queue";
    5252
    53     mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
    54     result = mq_timedsend(
    55              mqdes, (const char *)&msg_ptr, MQ_MSGSIZE, msg_prio, &abs_timeout);
     53  mqdes = mq_open( q_name, O_CREAT | O_RDWR, 0x777, &mqstat );
     54  result = mq_timedsend(
     55           mqdes, (const char *)&msg_ptr, MQ_MSGSIZE, msg_prio, &abs_timeout);
    5656
    57     return result;
    58   }
     57  return result;
     58}
  • testsuites/psxtests/psxhdrs/mqueue/mq_unlink.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <mqueue.h>
     26#include <mqueue.h>
    2727
    28   int test( void );
     28int test( void );
    2929
    30   int test( void )
    31   {
    32     const char *q_name;
    33     int result;
     30int test( void )
     31{
     32  const char *q_name;
     33  int result;
    3434
    35     q_name = "queue";
    36     result = mq_unlink( q_name );
     35  q_name = "queue";
     36  result = mq_unlink( q_name );
    3737
    38     return result;
    39   }
     38  return result;
     39}
  • testsuites/psxtests/psxhdrs/semaphore/sem_close.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <sys/stat.h>
    28   #include <semaphore.h>
     26#include <fcntl.h>
     27#include <sys/stat.h>
     28#include <semaphore.h>
    2929
    30   int test( void );
     30int test( void );
    3131
    32   int test( void )
    33   {
    34     sem_t *sem1;
    35     int oflag = O_CREAT;
    36     int result;
    37     int value;
     32int test( void )
     33{
     34  sem_t *sem1;
     35  int oflag = O_CREAT;
     36  int result;
     37  int value;
    3838
    39     value = 1;
     39  value = 1;
    4040
    41     sem1 = sem_open( "sem", oflag, 0777, value );
    42     result = sem_close( sem1 );
     41  sem1 = sem_open( "sem", oflag, 0777, value );
     42  result = sem_close( sem1 );
    4343
    44     return result;
    45   }
     44  return result;
     45}
  • testsuites/psxtests/psxhdrs/semaphore/sem_destroy.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <sys/stat.h>
    28   #include <semaphore.h>
     26#include <fcntl.h>
     27#include <sys/stat.h>
     28#include <semaphore.h>
    2929
    30   int test( void );
     30int test( void );
    3131
    32   int test( void )
    33   {
    34     sem_t *sem1;
    35     int oflag = O_CREAT;
    36     int result;
    37     int value;
     32int test( void )
     33{
     34  sem_t *sem1;
     35  int oflag = O_CREAT;
     36  int result;
     37  int value;
    3838
    39     value = 1;
     39  value = 1;
    4040
    41     sem1 = sem_open( "sem", oflag, 0777, value );
    42     result = sem_destroy( sem1 );
     41  sem1 = sem_open( "sem", oflag, 0777, value );
     42  result = sem_destroy( sem1 );
    4343
    44     return result;
    45   }
     44  return result;
     45}
  • testsuites/psxtests/psxhdrs/semaphore/sem_getvalue.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <semaphore.h>
     26#include <semaphore.h>
    2727
    28   int test( void );
     28int test( void );
    2929
    30   int test( void )
    31   {
    32     sem_t sem;
    33     int pshared;
    34     unsigned int value;
    35     int sval;
    36     int result;
     30int test( void )
     31{
     32  sem_t sem;
     33  int pshared;
     34  unsigned int value;
     35  int sval;
     36  int result;
    3737
    38     pshared = 0;
    39     value = 1;
    40     sval = 1;
     38  pshared = 0;
     39  value = 1;
     40  sval = 1;
    4141
    42     sem_init( &sem, pshared, value );
    43     result = sem_getvalue( &sem, &sval );
     42  sem_init( &sem, pshared, value );
     43  result = sem_getvalue( &sem, &sval );
    4444
    45     return result;
    46   }
     45  return result;
     46}
  • testsuites/psxtests/psxhdrs/semaphore/sem_init.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <semaphore.h>
     26#include <semaphore.h>
    2727
    28   int test( void );
     28int test( void );
    2929
    30   int test( void )
    31   {
    32     sem_t sem;
    33     int pshared;
    34     unsigned int value;
    35     int result;
     30int test( void )
     31{
     32  sem_t sem;
     33  int pshared;
     34  unsigned int value;
     35  int result;
    3636
    37     pshared = 0;
    38     value = 1;
     37  pshared = 0;
     38  value = 1;
    3939
    40     result = sem_init( &sem, pshared, value );
     40  result = sem_init( &sem, pshared, value );
    4141
    42     return result;
    43   }
     42  return result;
     43}
  • testsuites/psxtests/psxhdrs/semaphore/sem_open.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <sys/stat.h>
    28   #include <semaphore.h>
     26#include <fcntl.h>
     27#include <sys/stat.h>
     28#include <semaphore.h>
    2929
    30   int test( void );
     30int test( void );
    3131
    32   int result = 1;
     32int result = 1;
    3333
    34   int test( void )
    35   {
    36     sem_t *sem1;
    37     int oflag = O_CREAT;
    38     unsigned int value;
     34int test( void )
     35{
     36  sem_t *sem1;
     37  int oflag = O_CREAT;
     38  unsigned int value;
    3939
    40     value = 1;
     40  value = 1;
    4141
    42     sem1 = sem_open( "sem", oflag, 0777, value );
    43     (void) sem1;
     42  sem1 = sem_open( "sem", oflag, 0777, value );
     43  (void) sem1;
    4444
    45     return result;
    46   }
     45  return result;
     46}
  • testsuites/psxtests/psxhdrs/semaphore/sem_post.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <semaphore.h>
     26#include <semaphore.h>
    2727
    28   int test( void );
     28int test( void );
    2929
    30   int test( void )
    31   {
    32     sem_t sem;
    33     int pshared;
    34     unsigned int value;
    35     int result;
     30int test( void )
     31{
     32  sem_t sem;
     33  int pshared;
     34  unsigned int value;
     35  int result;
    3636
    37     pshared = 0;
    38     value = 1;
     37  pshared = 0;
     38  value = 1;
    3939
    40     sem_init( &sem, pshared, value );
    41     result = sem_post( &sem );
     40  sem_init( &sem, pshared, value );
     41  result = sem_post( &sem );
    4242
    43     return result;
    44   }
     43  return result;
     44}
  • testsuites/psxtests/psxhdrs/semaphore/sem_timedwait.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <fcntl.h>
    27   #include <time.h>
    28   #include <semaphore.h>
     26#include <fcntl.h>
     27#include <time.h>
     28#include <semaphore.h>
    2929
    30   int test( void );
     30int test( void );
    3131
    32   int test( void )
    33   {
    34     sem_t sem;
    35     struct timespec abs_timeout;
    36     int pshared;
    37     unsigned int value;
    38     int result;
     32int test( void )
     33{
     34  sem_t sem;
     35  struct timespec abs_timeout;
     36  int pshared;
     37  unsigned int value;
     38  int result;
    3939
    40     pshared = 0;
    41     value = 1;
    42     abs_timeout.tv_sec = 0;
    43     abs_timeout.tv_nsec = 0;
     40  pshared = 0;
     41  value = 1;
     42  abs_timeout.tv_sec = 0;
     43  abs_timeout.tv_nsec = 0;
    4444
    45     sem_init( &sem, pshared, value );
    46     result = sem_timedwait( &sem, &abs_timeout );
     45  sem_init( &sem, pshared, value );
     46  result = sem_timedwait( &sem, &abs_timeout );
    4747
    48     return result;
    49   }
     48  return result;
     49}
  • testsuites/psxtests/psxhdrs/semaphore/sem_trywait.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <semaphore.h>
     26#include <semaphore.h>
    2727
    28   int test( void );
     28int test( void );
    2929
    30   int test( void )
    31   {
    32     sem_t sem;
    33     int pshared;
    34     unsigned int value;
    35     int result;
     30int test( void )
     31{
     32  sem_t sem;
     33  int pshared;
     34  unsigned int value;
     35  int result;
    3636
    37     pshared = 0;
    38     value = 1;
     37  pshared = 0;
     38  value = 1;
    3939
    40     sem_init( &sem, pshared, value );
    41     result = sem_trywait( &sem );
     40  sem_init( &sem, pshared, value );
     41  result = sem_trywait( &sem );
    4242
    43     return result;
    44   }
     43  return result;
     44}
  • testsuites/psxtests/psxhdrs/semaphore/sem_unlink.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <semaphore.h>
     26#include <semaphore.h>
    2727
    28   int test( void );
     28int test( void );
    2929
    30   int test( void )
    31   {
    32     sem_t sem;
    33     int pshared;
    34     unsigned int value;
    35     int result;
     30int test( void )
     31{
     32  sem_t sem;
     33  int pshared;
     34  unsigned int value;
     35  int result;
    3636
    37     pshared = 0;
    38     value = 1;
     37  pshared = 0;
     38  value = 1;
    3939
    40     sem_init( &sem, pshared, value );
    41     result = sem_unlink( "sem" );
     40  sem_init( &sem, pshared, value );
     41  result = sem_unlink( "sem" );
    4242
    43     return result;
    44   }
     43  return result;
     44}
  • testsuites/psxtests/psxhdrs/semaphore/sem_wait.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Himanshu Sekhar Nayak
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Himanshu Sekhar Nayak
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    22   #ifdef HAVE_CONFIG_H
    23   #include "config.h"
    24   #endif
     22#ifdef HAVE_CONFIG_H
     23#include "config.h"
     24#endif
    2525
    26   #include <semaphore.h>
     26#include <semaphore.h>
    2727
    28   int test( void );
     28int test( void );
    2929
    30   int test( void )
    31   {
    32     sem_t sem;
    33     int pshared;
    34     unsigned int value;
    35     int result;
     30int test( void )
     31{
     32  sem_t sem;
     33  int pshared;
     34  unsigned int value;
     35  int result;
    3636
    37     pshared = 0;
    38     value = 1;
     37  pshared = 0;
     38  value = 1;
    3939
    40     sem_init( &sem, pshared, value );
    41     result = sem_wait( &sem );
     40  sem_init( &sem, pshared, value );
     41  result = sem_wait( &sem );
    4242
    43     return result;
    44   }
     43  return result;
     44}
  • testsuites/psxtests/psxhdrs/ulimit/ulimit.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Jacob Shin
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Jacob Shin
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    2222#ifdef HAVE_CONFIG_H
  • testsuites/psxtests/psxhdrs/utime/utime.c

    r36e1b82 rcbb08b61  
    44 */
    55
    6  /*
    7   *  COPYRIGHT (c) 2018.
    8   *  Shashvat Jain
    9   *
    10   *  Permission to use, copy, modify, and/or distribute this software
    11   *  for any purpose with or without fee is hereby granted.
    12   *
    13   *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
    14   *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
    15   *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
    16   *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
    17   *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
    18   *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
    19   *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   */
     6/*
     7 *  COPYRIGHT (c) 2018.
     8 *  Shashvat Jain
     9 *
     10 *  Permission to use, copy, modify, and/or distribute this software
     11 *  for any purpose with or without fee is hereby granted.
     12 *
     13 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
     14 *  WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
     15 *  WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
     16 *  BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
     17 *  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     18 *  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     19 *  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     20 */
    2121
    2222#ifdef HAVE_CONFIG_H
Note: See TracChangeset for help on using the changeset viewer.