posix/*.c: Remove use of register keyword

This commit is contained in:
Joel Sherrill
2014-01-31 11:03:24 -06:00
parent 3a638ceb4c
commit e633f3b51c
13 changed files with 26 additions and 26 deletions

View File

@@ -6,7 +6,7 @@
*/ */
/* /*
* COPYRIGHT (c) 1989-2007. * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -39,7 +39,7 @@ int _POSIX_Condition_variables_Signal_support(
bool is_broadcast bool is_broadcast
) )
{ {
register POSIX_Condition_variables_Control *the_cond; POSIX_Condition_variables_Control *the_cond;
Objects_Locations location; Objects_Locations location;
Thread_Control *the_thread; Thread_Control *the_thread;

View File

@@ -6,7 +6,7 @@
*/ */
/* /*
* COPYRIGHT (c) 1989-2007. * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -34,7 +34,7 @@ int _POSIX_Condition_variables_Wait_support(
bool already_timedout bool already_timedout
) )
{ {
register POSIX_Condition_variables_Control *the_cond; POSIX_Condition_variables_Control *the_cond;
POSIX_Mutex_Control *the_mutex; POSIX_Mutex_Control *the_mutex;
Objects_Locations location; Objects_Locations location;
int status; int status;

View File

@@ -6,7 +6,7 @@
*/ */
/* /*
* COPYRIGHT (c) 1989-2007. * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -42,7 +42,7 @@ int mq_unlink(
) )
{ {
int status; int status;
register POSIX_Message_queue_Control *the_mq; POSIX_Message_queue_Control *the_mq;
Objects_Id the_mq_id; Objects_Id the_mq_id;
size_t name_len; size_t name_len;

View File

@@ -6,7 +6,7 @@
*/ */
/* /*
* COPYRIGHT (c) 1989-2007. * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -41,7 +41,7 @@ int _POSIX_Mutex_Lock_support(
Watchdog_Interval timeout Watchdog_Interval timeout
) )
{ {
register POSIX_Mutex_Control *the_mutex; POSIX_Mutex_Control *the_mutex;
Objects_Locations location; Objects_Locations location;
ISR_Level level; ISR_Level level;
Thread_Control *executing; Thread_Control *executing;

View File

@@ -6,7 +6,7 @@
*/ */
/* /*
* COPYRIGHT (c) 1989-2007. * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -31,7 +31,7 @@ int pthread_detach(
pthread_t thread pthread_t thread
) )
{ {
register Thread_Control *the_thread; Thread_Control *the_thread;
POSIX_API_Control *api; POSIX_API_Control *api;
Objects_Locations location; Objects_Locations location;

View File

@@ -9,7 +9,7 @@
* 13.5.2 Dynamic Thread Scheduling Parameters Access, * 13.5.2 Dynamic Thread Scheduling Parameters Access,
* P1003.1c/Draft 10, p. 124 * P1003.1c/Draft 10, p. 124
* *
* COPYRIGHT (c) 1989-2007. * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -36,7 +36,7 @@ int pthread_getschedparam(
{ {
Objects_Locations location; Objects_Locations location;
POSIX_API_Control *api; POSIX_API_Control *api;
register Thread_Control *the_thread; Thread_Control *the_thread;
if ( !policy || !param ) if ( !policy || !param )
return EINVAL; return EINVAL;

View File

@@ -8,7 +8,7 @@
/* /*
* 16.1.3 Wait for Thread Termination, P1003.1c/Draft 10, p. 147 * 16.1.3 Wait for Thread Termination, P1003.1c/Draft 10, p. 147
* *
* COPYRIGHT (c) 1989-2011. * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -32,7 +32,7 @@ int pthread_join(
void **value_ptr void **value_ptr
) )
{ {
register Thread_Control *the_thread; Thread_Control *the_thread;
POSIX_API_Control *api; POSIX_API_Control *api;
Objects_Locations location; Objects_Locations location;
void *return_pointer; void *return_pointer;

View File

@@ -10,7 +10,7 @@
* P1003.1c/Draft 10, p. 124 * P1003.1c/Draft 10, p. 124
*/ */
/* COPYRIGHT (c) 1989-2007. /* COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -37,7 +37,7 @@ int pthread_setschedparam(
struct sched_param *param struct sched_param *param
) )
{ {
register Thread_Control *the_thread; Thread_Control *the_thread;
POSIX_API_Control *api; POSIX_API_Control *api;
Thread_CPU_budget_algorithms budget_algorithm; Thread_CPU_budget_algorithms budget_algorithm;
Thread_CPU_budget_algorithm_callout budget_callout; Thread_CPU_budget_algorithm_callout budget_callout;

View File

@@ -6,7 +6,7 @@
*/ */
/* /*
* COPYRIGHT (c) 1989-2007. * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -35,7 +35,7 @@ int sem_close(
sem_t *sem sem_t *sem
) )
{ {
register POSIX_Semaphore_Control *the_semaphore; POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location; Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location ); the_semaphore = _POSIX_Semaphore_Get( sem, &location );

View File

@@ -6,7 +6,7 @@
*/ */
/* /*
* COPYRIGHT (c) 1989-2007. * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -35,7 +35,7 @@ int sem_destroy(
sem_t *sem sem_t *sem
) )
{ {
register POSIX_Semaphore_Control *the_semaphore; POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location; Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location ); the_semaphore = _POSIX_Semaphore_Get( sem, &location );

View File

@@ -6,7 +6,7 @@
*/ */
/* /*
* COPYRIGHT (c) 1989-2007. * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -36,7 +36,7 @@ int sem_getvalue(
int *__restrict sval int *__restrict sval
) )
{ {
register POSIX_Semaphore_Control *the_semaphore; POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location; Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location ); the_semaphore = _POSIX_Semaphore_Get( sem, &location );

View File

@@ -6,7 +6,7 @@
*/ */
/* /*
* COPYRIGHT (c) 1989-2013. * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -35,7 +35,7 @@ int sem_post(
sem_t *sem sem_t *sem
) )
{ {
register POSIX_Semaphore_Control *the_semaphore; POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location; Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location ); the_semaphore = _POSIX_Semaphore_Get( sem, &location );

View File

@@ -6,7 +6,7 @@
*/ */
/* /*
* COPYRIGHT (c) 1989-2007. * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -36,7 +36,7 @@ int sem_unlink(
) )
{ {
int status; int status;
register POSIX_Semaphore_Control *the_semaphore; POSIX_Semaphore_Control *the_semaphore;
Objects_Id the_semaphore_id; Objects_Id the_semaphore_id;
size_t name_len; size_t name_len;