2001-01-22 Michael Hamel <mhamel@adi.co.nz>

* include/rtems/posix/semaphore.h, inline/rtems/posix/semaphore.inl,
	src/ptimer1.c, include/rtems/posix/semaphore.h,
	inline/rtems/posix/semaphore.inl, src/alarm.c, src/ptimer1.c,
	src/semaphorenametoid.c, src/semopen.c, src/semunlink.c:
	Modifications to make CodeWarrior happy.
This commit is contained in:
Joel Sherrill
2001-01-22 13:46:28 +00:00
parent c2a4084fe4
commit 32ba727717
16 changed files with 38 additions and 22 deletions

View File

@@ -1,3 +1,11 @@
2001-01-22 Michael Hamel <mhamel@adi.co.nz>
* include/rtems/posix/semaphore.h, inline/rtems/posix/semaphore.inl,
src/ptimer1.c, include/rtems/posix/semaphore.h,
inline/rtems/posix/semaphore.inl, src/alarm.c, src/ptimer1.c,
src/semaphorenametoid.c, src/semopen.c, src/semunlink.c:
Modifications to make CodeWarrior happy.
2001-01-12 Joel Sherrill <joel@OARcorp.com> 2001-01-12 Joel Sherrill <joel@OARcorp.com>
* src/README.mqueue: Enhanced example. * src/README.mqueue: Enhanced example.

View File

@@ -96,7 +96,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Free (
*/ */
RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get ( RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get (
Objects_Id *id, sem_t *id,
Objects_Locations *location Objects_Locations *location
); );
@@ -164,7 +164,7 @@ int _POSIX_Semaphore_Wait_support(
int _POSIX_Semaphore_Name_to_id( int _POSIX_Semaphore_Name_to_id(
const char *name, const char *name,
Objects_Id *id sem_t *id
); );
#include <rtems/posix/semaphore.inl> #include <rtems/posix/semaphore.inl>

View File

@@ -60,7 +60,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Namespace_remove (
*/ */
RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get ( RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get (
Objects_Id *id, sem_t *id,
Objects_Locations *location Objects_Locations *location
) )
{ {

View File

@@ -13,7 +13,7 @@
#include <pthread.h> #include <pthread.h>
#include <errno.h> //#include <errno.h>
#include <rtems/system.h> #include <rtems/system.h>
#include <rtems/posix/pthread.h> #include <rtems/posix/pthread.h>

View File

@@ -543,7 +543,7 @@ int timer_settime(
/* XXX error handling */ /* XXX error handling */
break; break;
default: default: break;
} }
@@ -624,12 +624,12 @@ int timer_settime(
set_errno_and_return_minus_one( EINVAL ); set_errno_and_return_minus_one( EINVAL );
break; break;
default: default: break;
} }
break; break;
default: default: break;
/* It does nothing, although it will be probably necessary to /* It does nothing, although it will be probably necessary to
* return an error */ * return an error */

View File

@@ -26,7 +26,7 @@
int _POSIX_Semaphore_Name_to_id( int _POSIX_Semaphore_Name_to_id(
const char *name, const char *name,
Objects_Id *id sem_t *id
) )
{ {
Objects_Name_to_id_errors status; Objects_Name_to_id_errors status;
@@ -38,7 +38,7 @@ int _POSIX_Semaphore_Name_to_id(
return EINVAL; return EINVAL;
status = _Objects_Name_to_id( status = _Objects_Name_to_id(
&_POSIX_Semaphore_Information, (char *)name, 0, id ); &_POSIX_Semaphore_Information, (char *)name, 0, (Objects_Id*)id );
if ( status == OBJECTS_SUCCESSFUL ) if ( status == OBJECTS_SUCCESSFUL )
return 0; return 0;

View File

@@ -41,7 +41,7 @@ sem_t *sem_open(
mode_t mode; mode_t mode;
unsigned int value = 0; unsigned int value = 0;
int status; int status;
Objects_Id the_semaphore_id; sem_t the_semaphore_id;
POSIX_Semaphore_Control *the_semaphore; POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location; Objects_Locations location;

View File

@@ -32,7 +32,7 @@ int sem_unlink(
{ {
int status; int status;
register POSIX_Semaphore_Control *the_semaphore; register POSIX_Semaphore_Control *the_semaphore;
Objects_Id the_semaphore_id; sem_t the_semaphore_id;
_Thread_Disable_dispatch(); _Thread_Disable_dispatch();

View File

@@ -1,3 +1,11 @@
2001-01-22 Michael Hamel <mhamel@adi.co.nz>
* include/rtems/posix/semaphore.h, inline/rtems/posix/semaphore.inl,
src/ptimer1.c, include/rtems/posix/semaphore.h,
inline/rtems/posix/semaphore.inl, src/alarm.c, src/ptimer1.c,
src/semaphorenametoid.c, src/semopen.c, src/semunlink.c:
Modifications to make CodeWarrior happy.
2001-01-12 Joel Sherrill <joel@OARcorp.com> 2001-01-12 Joel Sherrill <joel@OARcorp.com>
* src/README.mqueue: Enhanced example. * src/README.mqueue: Enhanced example.

View File

@@ -96,7 +96,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Free (
*/ */
RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get ( RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get (
Objects_Id *id, sem_t *id,
Objects_Locations *location Objects_Locations *location
); );
@@ -164,7 +164,7 @@ int _POSIX_Semaphore_Wait_support(
int _POSIX_Semaphore_Name_to_id( int _POSIX_Semaphore_Name_to_id(
const char *name, const char *name,
Objects_Id *id sem_t *id
); );
#include <rtems/posix/semaphore.inl> #include <rtems/posix/semaphore.inl>

View File

@@ -60,7 +60,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Namespace_remove (
*/ */
RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get ( RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get (
Objects_Id *id, sem_t *id,
Objects_Locations *location Objects_Locations *location
) )
{ {

View File

@@ -13,7 +13,7 @@
#include <pthread.h> #include <pthread.h>
#include <errno.h> //#include <errno.h>
#include <rtems/system.h> #include <rtems/system.h>
#include <rtems/posix/pthread.h> #include <rtems/posix/pthread.h>

View File

@@ -543,7 +543,7 @@ int timer_settime(
/* XXX error handling */ /* XXX error handling */
break; break;
default: default: break;
} }
@@ -624,12 +624,12 @@ int timer_settime(
set_errno_and_return_minus_one( EINVAL ); set_errno_and_return_minus_one( EINVAL );
break; break;
default: default: break;
} }
break; break;
default: default: break;
/* It does nothing, although it will be probably necessary to /* It does nothing, although it will be probably necessary to
* return an error */ * return an error */

View File

@@ -26,7 +26,7 @@
int _POSIX_Semaphore_Name_to_id( int _POSIX_Semaphore_Name_to_id(
const char *name, const char *name,
Objects_Id *id sem_t *id
) )
{ {
Objects_Name_to_id_errors status; Objects_Name_to_id_errors status;
@@ -38,7 +38,7 @@ int _POSIX_Semaphore_Name_to_id(
return EINVAL; return EINVAL;
status = _Objects_Name_to_id( status = _Objects_Name_to_id(
&_POSIX_Semaphore_Information, (char *)name, 0, id ); &_POSIX_Semaphore_Information, (char *)name, 0, (Objects_Id*)id );
if ( status == OBJECTS_SUCCESSFUL ) if ( status == OBJECTS_SUCCESSFUL )
return 0; return 0;

View File

@@ -41,7 +41,7 @@ sem_t *sem_open(
mode_t mode; mode_t mode;
unsigned int value = 0; unsigned int value = 0;
int status; int status;
Objects_Id the_semaphore_id; sem_t the_semaphore_id;
POSIX_Semaphore_Control *the_semaphore; POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location; Objects_Locations location;

View File

@@ -32,7 +32,7 @@ int sem_unlink(
{ {
int status; int status;
register POSIX_Semaphore_Control *the_semaphore; register POSIX_Semaphore_Control *the_semaphore;
Objects_Id the_semaphore_id; sem_t the_semaphore_id;
_Thread_Disable_dispatch(); _Thread_Disable_dispatch();