renamed signal.c to psignal.c to avoid naming problems.

added mp stubs to cond.c and mutex.c to eliminate link errors.

added pthread_exit to pthread.c
This commit is contained in:
Joel Sherrill
1996-05-29 16:04:31 +00:00
parent c627b2a3a1
commit 974ff40e57
10 changed files with 238 additions and 14 deletions

View File

@@ -13,6 +13,31 @@
#include <rtems/posix/cond.h>
#include <rtems/posix/time.h>
/*
* TEMPORARY
*/
void _POSIX_Condition_variables_MP_Send_process_packet (
POSIX_Condition_variables_MP_Remote_operations operation,
Objects_Id condition_variables_id,
Objects_Name name,
Objects_Id proxy_id
)
{
(void) POSIX_MP_NOT_IMPLEMENTED();
}
void _POSIX_Condition_variables_MP_Send_extract_proxy(
Thread_Control *the_thread
)
{
(void) POSIX_MP_NOT_IMPLEMENTED();
}
/*
* END OF TEMPORARY
*/
/*PAGE
*
* The default condition variable attributes structure.

View File

@@ -13,6 +13,41 @@
#include <rtems/posix/priority.h>
#include <rtems/posix/time.h>
/*
* TEMPORARY
*/
void _POSIX_Mutex_MP_Send_process_packet (
POSIX_Mutex_MP_Remote_operations operation,
Objects_Id mutex_id,
Objects_Name name,
Objects_Id proxy_id
)
{
(void) POSIX_MP_NOT_IMPLEMENTED();
}
void _POSIX_Mutex_MP_Send_object_was_deleted (
Thread_Control *the_proxy
)
{
(void) POSIX_MP_NOT_IMPLEMENTED();
}
int _POSIX_Mutex_MP_Send_request_packet (
POSIX_Mutex_MP_Remote_operations operation,
Objects_Id mutex_id,
boolean wait, /* XXX options */
Watchdog_Interval timeout
)
{
return POSIX_MP_NOT_IMPLEMENTED();
}
/*
* END OF TEMPORARY
*/
/*PAGE
*
* The default mutex attributes structure.

View File

@@ -154,8 +154,14 @@ void _POSIX_Threads_Manager_initialization(
number_of_initialization_tasks;
_POSIX_Threads_User_initialization_tasks = user_tasks;
/*
* There may not be any POSIX initialization threads configured.
*/
#if 0
if ( user_tasks == NULL || number_of_initialization_tasks == 0 )
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, TRUE, EINVAL );
#endif
_Objects_Initialize_information(
&_POSIX_Threads_Information,
@@ -498,18 +504,16 @@ int pthread_attr_setdetachstate(
return 0;
}
#ifdef NOT_IMPLEMENTED_YET
/*PAGE
*
* 16.1.2 Thread Creation, P1003.1c/Draft 10, p. 144
*/
int pthread_create(
pthread_t *thread,
const pthread_attr_t *attr,
void (*start_routine)( void * ),
void *arg
pthread_t *thread,
const pthread_attr_t *attr,
void *(*start_routine)( void * ),
void *arg
)
{
const pthread_attr_t *local_attr;
@@ -535,6 +539,8 @@ int pthread_create(
#endif
int detachstate;
#endif
return POSIX_NOT_IMPLEMENTED();
}
/*PAGE
@@ -562,7 +568,17 @@ int pthread_detach(
return POSIX_NOT_IMPLEMENTED();
}
#endif
/*PAGE
*
* 16.1.5.1 Thread Termination, p1003.1c/Draft 10, p. 150
*/
void pthread_exit(
void *value_ptr
)
{
POSIX_NOT_IMPLEMENTED();
}
/*PAGE
*

View File

@@ -17,6 +17,17 @@
(((1987 - 1970 + 1) * TOD_SECONDS_PER_NON_LEAP_YEAR) + \
(4 * TOD_SECONDS_PER_DAY))
/*
* _POSIX_Time_Spec_to_interval
*/
Watchdog_Interval _POSIX_Time_Spec_to_interval(
const struct timespec *time
)
{
return POSIX_NOT_IMPLEMENTED();
}
/*
* 4.5.1 Get System Time, P1003.1b-1993, p. 91
*/

View File

@@ -7,6 +7,31 @@
#include <rtems/system.h>
/*
* TEMPORARY
*/
#include <assert.h>
int POSIX_MP_NOT_IMPLEMENTED()
{
assert( 0 );
}
int POSIX_BOTTOM_REACHED()
{
assert( 0 );
}
int POSIX_NOT_IMPLEMENTED()
{
assert( 0 );
}
/*
* END OF TEMPORARY
*/
#ifdef NOT_IMPLEMENTED_YET
/*PAGE

View File

@@ -13,6 +13,31 @@
#include <rtems/posix/cond.h>
#include <rtems/posix/time.h>
/*
* TEMPORARY
*/
void _POSIX_Condition_variables_MP_Send_process_packet (
POSIX_Condition_variables_MP_Remote_operations operation,
Objects_Id condition_variables_id,
Objects_Name name,
Objects_Id proxy_id
)
{
(void) POSIX_MP_NOT_IMPLEMENTED();
}
void _POSIX_Condition_variables_MP_Send_extract_proxy(
Thread_Control *the_thread
)
{
(void) POSIX_MP_NOT_IMPLEMENTED();
}
/*
* END OF TEMPORARY
*/
/*PAGE
*
* The default condition variable attributes structure.

View File

@@ -13,6 +13,41 @@
#include <rtems/posix/priority.h>
#include <rtems/posix/time.h>
/*
* TEMPORARY
*/
void _POSIX_Mutex_MP_Send_process_packet (
POSIX_Mutex_MP_Remote_operations operation,
Objects_Id mutex_id,
Objects_Name name,
Objects_Id proxy_id
)
{
(void) POSIX_MP_NOT_IMPLEMENTED();
}
void _POSIX_Mutex_MP_Send_object_was_deleted (
Thread_Control *the_proxy
)
{
(void) POSIX_MP_NOT_IMPLEMENTED();
}
int _POSIX_Mutex_MP_Send_request_packet (
POSIX_Mutex_MP_Remote_operations operation,
Objects_Id mutex_id,
boolean wait, /* XXX options */
Watchdog_Interval timeout
)
{
return POSIX_MP_NOT_IMPLEMENTED();
}
/*
* END OF TEMPORARY
*/
/*PAGE
*
* The default mutex attributes structure.

View File

@@ -154,8 +154,14 @@ void _POSIX_Threads_Manager_initialization(
number_of_initialization_tasks;
_POSIX_Threads_User_initialization_tasks = user_tasks;
/*
* There may not be any POSIX initialization threads configured.
*/
#if 0
if ( user_tasks == NULL || number_of_initialization_tasks == 0 )
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, TRUE, EINVAL );
#endif
_Objects_Initialize_information(
&_POSIX_Threads_Information,
@@ -498,18 +504,16 @@ int pthread_attr_setdetachstate(
return 0;
}
#ifdef NOT_IMPLEMENTED_YET
/*PAGE
*
* 16.1.2 Thread Creation, P1003.1c/Draft 10, p. 144
*/
int pthread_create(
pthread_t *thread,
const pthread_attr_t *attr,
void (*start_routine)( void * ),
void *arg
pthread_t *thread,
const pthread_attr_t *attr,
void *(*start_routine)( void * ),
void *arg
)
{
const pthread_attr_t *local_attr;
@@ -535,6 +539,8 @@ int pthread_create(
#endif
int detachstate;
#endif
return POSIX_NOT_IMPLEMENTED();
}
/*PAGE
@@ -562,7 +568,17 @@ int pthread_detach(
return POSIX_NOT_IMPLEMENTED();
}
#endif
/*PAGE
*
* 16.1.5.1 Thread Termination, p1003.1c/Draft 10, p. 150
*/
void pthread_exit(
void *value_ptr
)
{
POSIX_NOT_IMPLEMENTED();
}
/*PAGE
*

View File

@@ -17,6 +17,17 @@
(((1987 - 1970 + 1) * TOD_SECONDS_PER_NON_LEAP_YEAR) + \
(4 * TOD_SECONDS_PER_DAY))
/*
* _POSIX_Time_Spec_to_interval
*/
Watchdog_Interval _POSIX_Time_Spec_to_interval(
const struct timespec *time
)
{
return POSIX_NOT_IMPLEMENTED();
}
/*
* 4.5.1 Get System Time, P1003.1b-1993, p. 91
*/

View File

@@ -7,6 +7,31 @@
#include <rtems/system.h>
/*
* TEMPORARY
*/
#include <assert.h>
int POSIX_MP_NOT_IMPLEMENTED()
{
assert( 0 );
}
int POSIX_BOTTOM_REACHED()
{
assert( 0 );
}
int POSIX_NOT_IMPLEMENTED()
{
assert( 0 );
}
/*
* END OF TEMPORARY
*/
#ifdef NOT_IMPLEMENTED_YET
/*PAGE