source: rtems/testsuites/psxtests/psxhdrs/pthread25.c @ 6e96346

4.115
Last change on this file since 6e96346 was 6e96346, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/17/11 at 11:39:04

2011-10-17 Ralf Corsépius <ralf.corsepius@…>

  • psxhdrs/pthread01.c, psxhdrs/pthread02.c, psxhdrs/pthread03.c, psxhdrs/pthread04.c, psxhdrs/pthread05.c, psxhdrs/pthread06.c, psxhdrs/pthread07.c, psxhdrs/pthread09.c, psxhdrs/pthread10.c, psxhdrs/pthread11.c, psxhdrs/pthread12.c, psxhdrs/pthread13.c, psxhdrs/pthread14.c, psxhdrs/pthread15.c, psxhdrs/pthread16.c, psxhdrs/pthread17.c, psxhdrs/pthread18.c, psxhdrs/pthread19.c, psxhdrs/pthread20.c, psxhdrs/pthread21.c, psxhdrs/pthread22.c, psxhdrs/pthread23.c, psxhdrs/pthread24.c, psxhdrs/pthread25.c, psxhdrs/pthread26.c, psxhdrs/pthread27.c, psxhdrs/pthread28.c, psxhdrs/pthread29.c, psxhdrs/pthread30.c, psxhdrs/pthread34.c, psxhdrs/pthread35.c, psxhdrs/pthread36.c, psxhdrs/pthread37.c, psxhdrs/pthread38.c, psxhdrs/pthread39.c, psxhdrs/pthread40.c: Let test() return values (avoid warnings).
  • Property mode set to 100644
File size: 904 bytes
Line 
1/*
2 *  This test file is used to verify that the header files associated with
3 *  invoking this function are correct.
4 *
5 *  COPYRIGHT (c) 1989-2009.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#ifdef HAVE_CONFIG_H
16#include "config.h"
17#endif
18
19#include <pthread.h>
20#include <limits.h>  /* only for PTHREAD_STACK_MIN */
21
22#ifndef _POSIX_THREADS
23#error "rtems is supposed to have pthread_getstackaddr"
24#endif
25
26#ifndef _POSIX_THREAD_ATTR_STACKADDR
27#error "rtems is supposed to have pthread_getstackaddr"
28#endif
29
30int test( void );
31
32int test( void )
33{
34  pthread_attr_t  attribute;
35  void           *stackaddr;
36  int             result;
37
38  result = pthread_attr_getstackaddr( &attribute, &stackaddr );
39 
40  return result;
41}
Note: See TracBrowser for help on using the repository browser.