Changeset 05195890 in rtems


Ignore:
Timestamp:
May 22, 1996, 10:31:51 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
f4719d5a
Parents:
cbaa5563
Message:

These files have been modified in the initial pass at getting the portion
of the POSIX API necessary to support the GNAT runtime to initially compile.
We now have verified that the specifications for the necessary routines
are correct per the POSIX standards we have.

The removed files were moved to newlib as they were duplicates of files
already included there.

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/base/limits.h

    rcbaa5563 r05195890  
    1212 */
    1313
     14#include_next <limits.h>
     15
    1416#ifndef __POSIX_LIMITS_h
    1517#define __POSIX_LIMITS_h
     18
     19/* really only to get min stack size from <rtems/score/cpu.h> */
     20#include <rtems/system.h>
    1621
    1722/****************************************************************************
     
    114119 */
    115120
    116 #define LOGIN_NAME_MAX                      9
    117 #define PTHREAD_DESTRUCTOR_ITERATIONS       4
     121#define LOGIN_NAME_MAX                      _POSIX_LOGIN_NAME_MAX
     122#define TTY_NAME_MAX                        _POSIX_TTY_NAME_MAX
     123#define PTHREAD_DESTRUCTOR_ITERATIONS       _POSIX_THREAD_DESTRUCTOR_ITERATIONS
     124#define PTHREAD_STACK_MIN                   CPU_STACK_MINIMUM_SIZE
     125
    118126/*
    119127 *  The maximum number of keys (PTHREAD_KEYS_MAX) and threads
    120128 *  (PTHREAD_THREADS_MAX) are configurable and may exceed the minimum.
    121  */
     129 *
     130#define PTHREAD_KEYS_MAX                    _POSIX_THREAD_KEYS_MAX
     131#define PTHREAD_THREADS_MAX                 _POSIX_THREAD_THREADS_MAX
     132*/
    122133
    123 #define TTY_NAME_MAX                        9
    124134
    125135/****************************************************************************
  • c/src/exec/posix/base/pthread.h

    rcbaa5563 r05195890  
    77#define __PTHREAD_h
    88
    9 #include <rtems/posix/features.h>
     9#include <sys/features.h>
    1010
    1111#if defined(_POSIX_THREADS)
     
    212212int pthread_attr_setschedparam(
    213213  pthread_attr_t            *attr,
    214   const struct sched_param   param
     214  const struct sched_param  *param
    215215);
    216216
     
    343343
    344344int pthread_create(
    345   pthread_t             *thread,
    346   const pthread_attr_t  *attr,
    347   void                 (*start_routine)( void * ),
    348   void                  *arg
     345  pthread_t              *thread,
     346  const pthread_attr_t   *attr,
     347  void                 *(*start_routine)( void * ),
     348  void                   *arg
    349349);
    350350
     
    367367
    368368/*
     369 * 16.1.5.1 Thread Termination, p1003.1c/Draft 10, p. 150
     370 */
     371
     372void pthread_exit(
     373  void  *value_ptr
     374);
     375
     376/*
    369377 * 16.1.6 Get Calling Thread's ID, p1003.1c/Draft 10, p. XXX
    370378 */
  • c/src/exec/posix/base/sched.h

    rcbaa5563 r05195890  
    88#define __POSIX_SCHEDULING_h
    99
    10 #include <rtems/posix/features.h>
     10#include <sys/features.h>
    1111
    1212#if defined(_POSIX_PRIORITY_SCHEDULING)
  • c/src/exec/posix/include/limits.h

    rcbaa5563 r05195890  
    1212 */
    1313
     14#include_next <limits.h>
     15
    1416#ifndef __POSIX_LIMITS_h
    1517#define __POSIX_LIMITS_h
     18
     19/* really only to get min stack size from <rtems/score/cpu.h> */
     20#include <rtems/system.h>
    1621
    1722/****************************************************************************
     
    114119 */
    115120
    116 #define LOGIN_NAME_MAX                      9
    117 #define PTHREAD_DESTRUCTOR_ITERATIONS       4
     121#define LOGIN_NAME_MAX                      _POSIX_LOGIN_NAME_MAX
     122#define TTY_NAME_MAX                        _POSIX_TTY_NAME_MAX
     123#define PTHREAD_DESTRUCTOR_ITERATIONS       _POSIX_THREAD_DESTRUCTOR_ITERATIONS
     124#define PTHREAD_STACK_MIN                   CPU_STACK_MINIMUM_SIZE
     125
    118126/*
    119127 *  The maximum number of keys (PTHREAD_KEYS_MAX) and threads
    120128 *  (PTHREAD_THREADS_MAX) are configurable and may exceed the minimum.
    121  */
     129 *
     130#define PTHREAD_KEYS_MAX                    _POSIX_THREAD_KEYS_MAX
     131#define PTHREAD_THREADS_MAX                 _POSIX_THREAD_THREADS_MAX
     132*/
    122133
    123 #define TTY_NAME_MAX                        9
    124134
    125135/****************************************************************************
  • c/src/exec/posix/include/pthread.h

    rcbaa5563 r05195890  
    77#define __PTHREAD_h
    88
    9 #include <rtems/posix/features.h>
     9#include <sys/features.h>
    1010
    1111#if defined(_POSIX_THREADS)
     
    212212int pthread_attr_setschedparam(
    213213  pthread_attr_t            *attr,
    214   const struct sched_param   param
     214  const struct sched_param  *param
    215215);
    216216
     
    343343
    344344int pthread_create(
    345   pthread_t             *thread,
    346   const pthread_attr_t  *attr,
    347   void                 (*start_routine)( void * ),
    348   void                  *arg
     345  pthread_t              *thread,
     346  const pthread_attr_t   *attr,
     347  void                 *(*start_routine)( void * ),
     348  void                   *arg
    349349);
    350350
     
    367367
    368368/*
     369 * 16.1.5.1 Thread Termination, p1003.1c/Draft 10, p. 150
     370 */
     371
     372void pthread_exit(
     373  void  *value_ptr
     374);
     375
     376/*
    369377 * 16.1.6 Get Calling Thread's ID, p1003.1c/Draft 10, p. XXX
    370378 */
  • c/src/exec/posix/include/sched.h

    rcbaa5563 r05195890  
    88#define __POSIX_SCHEDULING_h
    99
    10 #include <rtems/posix/features.h>
     10#include <sys/features.h>
    1111
    1212#if defined(_POSIX_PRIORITY_SCHEDULING)
  • cpukit/posix/include/sched.h

    rcbaa5563 r05195890  
    88#define __POSIX_SCHEDULING_h
    99
    10 #include <rtems/posix/features.h>
     10#include <sys/features.h>
    1111
    1212#if defined(_POSIX_PRIORITY_SCHEDULING)
Note: See TracChangeset for help on using the changeset viewer.