Ticket #2171: pthreadattrsetis_fp_v1.c

File pthreadattrsetis_fp_v1.c, 716 bytes (added by steve.helmer, on 02/14/14 at 14:59:52)

new function pthread_attr_setis_fp

Line 
1/*
2 *  16.1.1 Thread Creation Attributes, P1003.1c/Draft 10, p, 140
3 *
4 *  COPYRIGHT (c) 1989-1999.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id: pthreadattrsetis_fp.c,v 1.6 2013/12/04 19:24:59 helmers Exp $
12 */
13
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <pthread.h>
19#include <errno.h>
20
21#include <rtems/system.h>
22#include <rtems/posix/pthread.h>
23
24int pthread_attr_setis_fp(
25  pthread_attr_t  *attr,
26  int           is_fp
27)
28{
29  if ( !attr || !attr->is_initialized )
30    return EINVAL;
31
32  attr->is_fp = is_fp;
33  return 0;
34}