forked from Imagelibrary/rtems
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:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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,8 +504,6 @@ int pthread_attr_setdetachstate(
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef NOT_IMPLEMENTED_YET
|
||||
|
||||
/*PAGE
|
||||
*
|
||||
* 16.1.2 Thread Creation, P1003.1c/Draft 10, p. 144
|
||||
@@ -508,7 +512,7 @@ int pthread_attr_setdetachstate(
|
||||
int pthread_create(
|
||||
pthread_t *thread,
|
||||
const pthread_attr_t *attr,
|
||||
void (*start_routine)( void * ),
|
||||
void *(*start_routine)( void * ),
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
@@ -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
|
||||
*
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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,8 +504,6 @@ int pthread_attr_setdetachstate(
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef NOT_IMPLEMENTED_YET
|
||||
|
||||
/*PAGE
|
||||
*
|
||||
* 16.1.2 Thread Creation, P1003.1c/Draft 10, p. 144
|
||||
@@ -508,7 +512,7 @@ int pthread_attr_setdetachstate(
|
||||
int pthread_create(
|
||||
pthread_t *thread,
|
||||
const pthread_attr_t *attr,
|
||||
void (*start_routine)( void * ),
|
||||
void *(*start_routine)( void * ),
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
@@ -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
|
||||
*
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user