forked from Imagelibrary/rtems
posix: Doxygen Enhancement Task #5
http://www.google-melange.com/gci/task/view/google/gci2012/7959229
This commit is contained in:
committed by
Gedare Bloom
parent
e79a766fb3
commit
e49a36cb0b
@@ -23,6 +23,14 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @defgroup POSIX_AIO POSIX Asynchronous I/O Support
|
||||||
|
*
|
||||||
|
* @ingroup POSIX
|
||||||
|
*
|
||||||
|
* @brief POSIX Asynchronous Input and Output
|
||||||
|
*/
|
||||||
|
|
||||||
#if defined(_POSIX_ASYNCHRONOUS_IO)
|
#if defined(_POSIX_ASYNCHRONOUS_IO)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -126,10 +134,18 @@ ssize_t aio_return(
|
|||||||
const struct aiocb *aiocbp
|
const struct aiocb *aiocbp
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
* @brief Cancel Asynchronous I/O Operation
|
||||||
|
*
|
||||||
* 6.7.7 Cancel Asynchronous I/O Operation, P1003.1b-1993, p. 163
|
* 6.7.7 Cancel Asynchronous I/O Operation, P1003.1b-1993, p. 163
|
||||||
|
*
|
||||||
|
* @param[in] filedes is the file descriptor
|
||||||
|
* @param[in] aiocbp is the asynchronous I/O control block
|
||||||
|
*
|
||||||
|
* @return This method returns AIO_CANCELED if the requested operation(s)
|
||||||
|
* were canceled. Otherwise, AIO_NOTCANCELED is returned indicating
|
||||||
|
* that at least one of the requested operation(s) cannot be canceled
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int aio_cancel(
|
int aio_cancel(
|
||||||
int filedes,
|
int filedes,
|
||||||
struct aiocb *aiocbp
|
struct aiocb *aiocbp
|
||||||
|
|||||||
@@ -3,6 +3,18 @@
|
|||||||
*
|
*
|
||||||
* This include file contains all the private support information for
|
* This include file contains all the private support information for
|
||||||
* POSIX Message Queues.
|
* POSIX Message Queues.
|
||||||
|
*
|
||||||
|
* The structure of the routines is identical to that of POSIX
|
||||||
|
* Message_queues to leave the option of having unnamed message
|
||||||
|
* queues at a future date. They are currently not part of the
|
||||||
|
* POSIX standard but unnamed message_queues are. This is also
|
||||||
|
* the reason for the apparently unnecessary tracking of
|
||||||
|
* the process_shared attribute. [In addition to the fact that
|
||||||
|
* it would be trivial to add pshared to the mq_attr structure
|
||||||
|
* and have process private message queues.]
|
||||||
|
*
|
||||||
|
* This code ignores the O_RDONLY/O_WRONLY/O_RDWR flag at open
|
||||||
|
* time.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -27,6 +39,10 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ingroup POSIX_MQUEUE
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Data Structure used to manage a POSIX message queue
|
* Data Structure used to manage a POSIX message queue
|
||||||
*/
|
*/
|
||||||
@@ -84,15 +100,14 @@ int _POSIX_Message_queue_Create_support(
|
|||||||
POSIX_Message_queue_Control **message_queue
|
POSIX_Message_queue_Control **message_queue
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* _POSIX_Message_queue_Delete
|
* @brief POSIX Delete Message Queue
|
||||||
*
|
*
|
||||||
* DESCRIPTION:
|
* DESCRIPTION:
|
||||||
*
|
*
|
||||||
* This routine supports the mq_unlink and mq_close routines by
|
* This routine supports the mq_unlink and mq_close routines by
|
||||||
* doing most of the work involved with removing a message queue.
|
* doing most of the work involved with removing a message queue.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void _POSIX_Message_queue_Delete(
|
void _POSIX_Message_queue_Delete(
|
||||||
POSIX_Message_queue_Control *the_mq
|
POSIX_Message_queue_Control *the_mq
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -71,6 +71,9 @@ extern API_extensions_Post_switch_control _POSIX_signals_Post_switch;
|
|||||||
* Internal routines
|
* Internal routines
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief POSIX Signals Manager Initialization
|
||||||
|
*/
|
||||||
void _POSIX_signals_Manager_Initialization(void);
|
void _POSIX_signals_Manager_Initialization(void);
|
||||||
|
|
||||||
static inline void _POSIX_signals_Add_post_switch_extension(void)
|
static inline void _POSIX_signals_Add_post_switch_extension(void)
|
||||||
@@ -107,6 +110,9 @@ int killinfo(
|
|||||||
const union sigval *value
|
const union sigval *value
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief POSIX Signals Set Process Signals
|
||||||
|
*/
|
||||||
void _POSIX_signals_Set_process_signals(
|
void _POSIX_signals_Set_process_signals(
|
||||||
sigset_t mask
|
sigset_t mask
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -88,13 +88,15 @@ int timer_gettime(
|
|||||||
struct itimerspec *value
|
struct itimerspec *value
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
* @brief Get Overrun Count for a POSIX Per-Process Timer
|
||||||
|
*
|
||||||
|
* The expiration of a timer must increase by one a counter.
|
||||||
|
* After the signal handler associated to the timer finishes
|
||||||
|
* its execution, _POSIX_Timer_TSR will have to set this counter to 0.
|
||||||
|
*
|
||||||
* 14.2.4 Per-Process Timers, P1003.1b-1993, p. 267
|
* 14.2.4 Per-Process Timers, P1003.1b-1993, p. 267
|
||||||
*
|
|
||||||
* timer_getoverrun
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int timer_getoverrun(
|
int timer_getoverrun(
|
||||||
timer_t timerid
|
timer_t timerid
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -21,6 +21,10 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ingroup POSIX_SEMAPHORE
|
||||||
|
*/
|
||||||
|
|
||||||
#include <semaphore.h>
|
#include <semaphore.h>
|
||||||
#include <rtems/score/coresem.h>
|
#include <rtems/score/coresem.h>
|
||||||
#include <rtems/posix/posixapi.h>
|
#include <rtems/posix/posixapi.h>
|
||||||
@@ -134,14 +138,13 @@ int _POSIX_Semaphore_Create_support(
|
|||||||
POSIX_Semaphore_Control **the_sem
|
POSIX_Semaphore_Control **the_sem
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* _POSIX_Semaphore_Delete
|
* @brief POSIX Delete Semaphore
|
||||||
*
|
*
|
||||||
* DESCRIPTION:
|
* DESCRIPTION:
|
||||||
*
|
*
|
||||||
* This routine supports the sem_close and sem_unlink routines.
|
* This routine supports the sem_close and sem_unlink routines.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void _POSIX_Semaphore_Delete(
|
void _POSIX_Semaphore_Delete(
|
||||||
POSIX_Semaphore_Control *the_semaphore
|
POSIX_Semaphore_Control *the_semaphore
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -27,6 +27,14 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @defgroup POSIX_SPINLOCK POSIX Spinlock Support
|
||||||
|
*
|
||||||
|
* @ingroup POSIX
|
||||||
|
*
|
||||||
|
* @brief Constants and Structures Associated with the POSIX Spinlock Manager
|
||||||
|
*/
|
||||||
|
|
||||||
#include <rtems/score/object.h>
|
#include <rtems/score/object.h>
|
||||||
#include <rtems/score/corespinlock.h>
|
#include <rtems/score/corespinlock.h>
|
||||||
|
|
||||||
@@ -60,7 +68,7 @@ POSIX_EXTERN Objects_Information _POSIX_Spinlock_Information;
|
|||||||
void _POSIX_Spinlock_Manager_initialization(void);
|
void _POSIX_Spinlock_Manager_initialization(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief _POSIX_Spinlock_Translate_core_spinlock_return_code (
|
* @brief POSIX Spinlock Translate Core Spinlock Return Code
|
||||||
*
|
*
|
||||||
* This routine translates SuperCore Spinlock status codes into the
|
* This routine translates SuperCore Spinlock status codes into the
|
||||||
* corresponding POSIX ones.
|
* corresponding POSIX ones.
|
||||||
|
|||||||
@@ -99,6 +99,11 @@ int sem_wait(
|
|||||||
sem_t *sem
|
sem_t *sem
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Lock a Semaphore
|
||||||
|
*
|
||||||
|
* @see sem_wait()
|
||||||
|
*/
|
||||||
int sem_trywait(
|
int sem_trywait(
|
||||||
sem_t *sem
|
sem_t *sem
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Cancel Asynchronous I/O Operation
|
||||||
|
* @ingroup POSIX_AIO
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2010, Alin Rus <alin.codejunkie@gmail.com>
|
* Copyright 2010, Alin Rus <alin.codejunkie@gmail.com>
|
||||||
*
|
*
|
||||||
@@ -17,23 +24,6 @@
|
|||||||
#include <rtems/system.h>
|
#include <rtems/system.h>
|
||||||
#include <rtems/seterr.h>
|
#include <rtems/seterr.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* aio_cancel
|
|
||||||
*
|
|
||||||
* Cancel an asynchronous I/O request
|
|
||||||
*
|
|
||||||
* Input parameters:
|
|
||||||
* fildes - file descriptor
|
|
||||||
* aiocbp - asynchronous I/O control block
|
|
||||||
*
|
|
||||||
* Output parameters:
|
|
||||||
* AIO_CANCELED - if the requested operation(s)
|
|
||||||
* were canceled
|
|
||||||
* AIO_NOTCANCELED - if at least one of the requested
|
|
||||||
* operation(s) cannot be canceled
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
int aio_cancel(int fildes, struct aiocb *aiocbp)
|
int aio_cancel(int fildes, struct aiocb *aiocbp)
|
||||||
{
|
{
|
||||||
rtems_aio_request_chain *r_chain;
|
rtems_aio_request_chain *r_chain;
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Initialize the Barrier Attributes Object
|
||||||
|
* @ingroup POSIX
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
@@ -16,10 +23,6 @@
|
|||||||
|
|
||||||
#include <rtems/system.h>
|
#include <rtems/system.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* Barrier Attributes Initialization
|
|
||||||
*/
|
|
||||||
|
|
||||||
int pthread_barrierattr_init(
|
int pthread_barrierattr_init(
|
||||||
pthread_barrierattr_t *attr
|
pthread_barrierattr_t *attr
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Set the Process-Shared Attribute of the Barrier Attributes Object
|
||||||
|
* @ingroup POSIX
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
@@ -14,10 +21,6 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* Barrier Attributes Set Process Shared
|
|
||||||
*/
|
|
||||||
|
|
||||||
int pthread_barrierattr_setpshared(
|
int pthread_barrierattr_setpshared(
|
||||||
pthread_barrierattr_t *attr,
|
pthread_barrierattr_t *attr,
|
||||||
int pshared
|
int pshared
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Broadcast a Condition
|
||||||
|
* @ingroup POSIX
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
@@ -22,10 +29,9 @@
|
|||||||
#include <rtems/posix/time.h>
|
#include <rtems/posix/time.h>
|
||||||
#include <rtems/posix/mutex.h>
|
#include <rtems/posix/mutex.h>
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 11.4.3 Broadcasting and Signaling a Condition, P1003.1c/Draft 10, p. 101
|
* 11.4.3 Broadcasting and Signaling a Condition, P1003.1c/Draft 10, p. 101
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int pthread_cond_broadcast(
|
int pthread_cond_broadcast(
|
||||||
pthread_cond_t *cond
|
pthread_cond_t *cond
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Initialize a Condition Variable
|
||||||
|
* @ingroup POSIX
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
@@ -22,11 +29,10 @@
|
|||||||
#include <rtems/posix/time.h>
|
#include <rtems/posix/time.h>
|
||||||
#include <rtems/posix/mutex.h>
|
#include <rtems/posix/mutex.h>
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 11.4.2 Initializing and Destroying a Condition Variable,
|
* 11.4.2 Initializing and Destroying a Condition Variable,
|
||||||
* P1003.1c/Draft 10, p. 87
|
* P1003.1c/Draft 10, p. 87
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int pthread_cond_init(
|
int pthread_cond_init(
|
||||||
pthread_cond_t *cond,
|
pthread_cond_t *cond,
|
||||||
const pthread_condattr_t *attr
|
const pthread_condattr_t *attr
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
/*
|
/**
|
||||||
* execle() - POSIX 1003.1b 3.1.2
|
* @file
|
||||||
*
|
*
|
||||||
|
* @brief Execute a File
|
||||||
|
* @ingroup POSIX
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief POSIX Delete Message Queue
|
||||||
|
* @ingroup POSIX_MQUEUE
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* NOTE: The structure of the routines is identical to that of POSIX
|
|
||||||
* Message_queues to leave the option of having unnamed message
|
|
||||||
* queues at a future date. They are currently not part of the
|
|
||||||
* POSIX standard but unnamed message_queues are. This is also
|
|
||||||
* the reason for the apparently unnecessary tracking of
|
|
||||||
* the process_shared attribute. [In addition to the fact that
|
|
||||||
* it would be trivial to add pshared to the mq_attr structure
|
|
||||||
* and have process private message queues.]
|
|
||||||
*
|
|
||||||
* This code ignores the O_RDONLY/O_WRONLY/O_RDWR flag at open
|
|
||||||
* time.
|
|
||||||
*
|
|
||||||
* COPYRIGHT (c) 1989-2009.
|
* COPYRIGHT (c) 1989-2009.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -41,10 +36,6 @@
|
|||||||
#include <rtems/bspIo.h>
|
#include <rtems/bspIo.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* _POSIX_Message_queue_Delete
|
|
||||||
*/
|
|
||||||
|
|
||||||
void _POSIX_Message_queue_Delete(
|
void _POSIX_Message_queue_Delete(
|
||||||
POSIX_Message_queue_Control *the_mq
|
POSIX_Message_queue_Control *the_mq
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Mutex Initialization Attribute
|
||||||
|
* @ingroup POSIX
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
@@ -21,10 +28,9 @@
|
|||||||
#include <rtems/posix/priority.h>
|
#include <rtems/posix/priority.h>
|
||||||
#include <rtems/posix/time.h>
|
#include <rtems/posix/time.h>
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* 11.3.1 Mutex Initialization Attributes, P1003.1c/Draft 10, p. 81
|
* 11.3.1 Mutex Initialization Attributes, P1003.1c/Draft 10, p. 81
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int pthread_mutexattr_init(
|
int pthread_mutexattr_init(
|
||||||
pthread_mutexattr_t *attr
|
pthread_mutexattr_t *attr
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
/*
|
/**
|
||||||
* POSIX Barrier Manager -- Destroy a Barrier
|
* @file
|
||||||
*
|
*
|
||||||
|
* @brief Destroy a Barrier Object
|
||||||
|
* @ingroup POSIX
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -19,21 +24,17 @@
|
|||||||
#include <rtems/system.h>
|
#include <rtems/system.h>
|
||||||
#include <rtems/posix/barrier.h>
|
#include <rtems/posix/barrier.h>
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* pthread_barrier_destroy
|
|
||||||
*
|
|
||||||
* This directive allows a thread to delete a barrier specified by
|
* This directive allows a thread to delete a barrier specified by
|
||||||
* the barrier id. The barrier is freed back to the inactive
|
* the barrier id. The barrier is freed back to the inactive
|
||||||
* barrier chain.
|
* barrier chain.
|
||||||
*
|
*
|
||||||
* Input parameters:
|
* @param[in] barrier is the barrier id
|
||||||
* barrier - barrier id
|
|
||||||
*
|
*
|
||||||
* Output parameters:
|
* @return This method returns 0 if there was not an
|
||||||
* 0 - if successful
|
* error. Otherwise, a status code is returned indicating the
|
||||||
* error code - if unsuccessful
|
* source of the error.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int pthread_barrier_destroy(
|
int pthread_barrier_destroy(
|
||||||
pthread_barrier_t *barrier
|
pthread_barrier_t *barrier
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief POSIX Signals Manager Initialization
|
||||||
|
* @ingroup POSIX_SIGNALS
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2008.
|
* COPYRIGHT (c) 1989-2008.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
@@ -162,10 +169,6 @@ API_extensions_Post_switch_control _POSIX_signals_Post_switch = {
|
|||||||
.hook = _POSIX_signals_Post_switch_hook
|
.hook = _POSIX_signals_Post_switch_hook
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
* _POSIX_signals_Manager_Initialization
|
|
||||||
*/
|
|
||||||
|
|
||||||
void _POSIX_signals_Manager_Initialization(void)
|
void _POSIX_signals_Manager_Initialization(void)
|
||||||
{
|
{
|
||||||
uint32_t signo;
|
uint32_t signo;
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief POSIX Signals Set Process Signals
|
||||||
|
* @ingroup POSIX_SIGNALS
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
@@ -27,10 +34,6 @@
|
|||||||
#include <rtems/posix/time.h>
|
#include <rtems/posix/time.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* _POSIX_signals_Set_process_signals
|
|
||||||
*/
|
|
||||||
|
|
||||||
void _POSIX_signals_Set_process_signals(
|
void _POSIX_signals_Set_process_signals(
|
||||||
sigset_t mask
|
sigset_t mask
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
/*
|
/**
|
||||||
* POSIX Spinlock Manager -- Destroy a Spinlock
|
* @file
|
||||||
*
|
*
|
||||||
|
* @brief Destroy a Spinlock
|
||||||
|
* @ingroup POSIX
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -19,21 +24,17 @@
|
|||||||
#include <rtems/system.h>
|
#include <rtems/system.h>
|
||||||
#include <rtems/posix/spinlock.h>
|
#include <rtems/posix/spinlock.h>
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* pthread_spin_destroy
|
|
||||||
*
|
|
||||||
* This directive allows a thread to delete a spinlock specified by
|
* This directive allows a thread to delete a spinlock specified by
|
||||||
* the spinlock id. The spinlock is freed back to the inactive
|
* the spinlock id. The spinlock is freed back to the inactive
|
||||||
* spinlock chain.
|
* spinlock chain.
|
||||||
*
|
*
|
||||||
* Input parameters:
|
* @param[in] spinlock is the spinlock id
|
||||||
* spinlock - spinlock id
|
|
||||||
*
|
*
|
||||||
* Output parameters:
|
* @return This method returns 0 if there was not an
|
||||||
* 0 - if successful
|
* error. Otherwise, a status code is returned indicating the
|
||||||
* error code - if unsuccessful
|
* source of the error.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int pthread_spin_destroy(
|
int pthread_spin_destroy(
|
||||||
pthread_spinlock_t *spinlock
|
pthread_spinlock_t *spinlock
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
/*
|
/**
|
||||||
* Spinlock Manager -- Translate SuperCore Status
|
* @file
|
||||||
*
|
*
|
||||||
|
* @brief POSIX Spinlock Translate Core Spinlock Return Code
|
||||||
|
* @ingroup POSIX_SPINLOCK
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -20,17 +25,6 @@
|
|||||||
#include <rtems/score/corespinlock.h>
|
#include <rtems/score/corespinlock.h>
|
||||||
#include <rtems/posix/spinlock.h>
|
#include <rtems/posix/spinlock.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* _POSIX_Spinlock_Translate_core_spinlock_return_code
|
|
||||||
*
|
|
||||||
* Input parameters:
|
|
||||||
* the_spinlock_status - spinlock status code to translate
|
|
||||||
*
|
|
||||||
* Output parameters:
|
|
||||||
* status code - translated POSIX status code
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
static int _POSIX_Spinlock_Return_codes[CORE_SPINLOCK_STATUS_LAST + 1] = {
|
static int _POSIX_Spinlock_Return_codes[CORE_SPINLOCK_STATUS_LAST + 1] = {
|
||||||
0, /* CORE_SPINLOCK_SUCCESSFUL */
|
0, /* CORE_SPINLOCK_SUCCESSFUL */
|
||||||
EDEADLK, /* CORE_SPINLOCK_HOLDER_RELOCKING */
|
EDEADLK, /* CORE_SPINLOCK_HOLDER_RELOCKING */
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Get the Process-Shared Attribute of the RWLock
|
||||||
|
* @ingroup POSIX
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
@@ -14,10 +21,6 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* RWLock Attributes Get Process Shared
|
|
||||||
*/
|
|
||||||
|
|
||||||
int pthread_rwlockattr_getpshared(
|
int pthread_rwlockattr_getpshared(
|
||||||
const pthread_rwlockattr_t *attr,
|
const pthread_rwlockattr_t *attr,
|
||||||
int *pshared
|
int *pshared
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
/*
|
/**
|
||||||
* 13.3.6 Get Scheduling Parameter Limits, P1003.1b-1993, p. 258
|
* @file
|
||||||
*
|
*
|
||||||
|
* @brief Get the Minimum Priority Limit
|
||||||
|
* @ingroup POSIX
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -20,6 +25,9 @@
|
|||||||
#include <rtems/seterr.h>
|
#include <rtems/seterr.h>
|
||||||
#include <rtems/posix/priority.h>
|
#include <rtems/posix/priority.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 13.3.6 Get Scheduling Parameter Limits, P1003.1b-1993, p. 258
|
||||||
|
*/
|
||||||
int sched_get_priority_min(
|
int sched_get_priority_min(
|
||||||
int policy
|
int policy
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief POSIX Delete Semaphore
|
||||||
|
* @ingroup POSIX_SEMAPHORE
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
@@ -25,10 +32,6 @@
|
|||||||
#include <rtems/posix/time.h>
|
#include <rtems/posix/time.h>
|
||||||
#include <rtems/seterr.h>
|
#include <rtems/seterr.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* _POSIX_Semaphore_Delete
|
|
||||||
*/
|
|
||||||
|
|
||||||
void _POSIX_Semaphore_Delete(
|
void _POSIX_Semaphore_Delete(
|
||||||
POSIX_Semaphore_Control *the_semaphore
|
POSIX_Semaphore_Control *the_semaphore
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* @brief Lock a Semaphore
|
||||||
|
* @ingroup POSIX_SEMAPHORE
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2008.
|
* COPYRIGHT (c) 1989-2008.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
@@ -25,12 +32,6 @@
|
|||||||
#include <rtems/posix/time.h>
|
#include <rtems/posix/time.h>
|
||||||
#include <rtems/seterr.h>
|
#include <rtems/seterr.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* 11.2.6 Lock a Semaphore, P1003.1b-1993, p.226
|
|
||||||
*
|
|
||||||
* NOTE: P1003.4b/D8 adds sem_timedwait(), p. 27
|
|
||||||
*/
|
|
||||||
|
|
||||||
int sem_trywait(
|
int sem_trywait(
|
||||||
sem_t *sem
|
sem_t *sem
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
/*
|
/**
|
||||||
* 3.3.8 Synchronously Accept a Signal, P1003.1b-1993, p. 76
|
* @file
|
||||||
*
|
*
|
||||||
|
* @brief Wait for Queued Signals
|
||||||
|
* @ingroup POSIX
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* COPYRIGHT (c) 1989-2008.
|
* COPYRIGHT (c) 1989-2008.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -58,6 +63,9 @@ found_it:
|
|||||||
return signo;
|
return signo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 3.3.8 Synchronously Accept a Signal, P1003.1b-1993, p. 76
|
||||||
|
*/
|
||||||
int sigtimedwait(
|
int sigtimedwait(
|
||||||
const sigset_t *set,
|
const sigset_t *set,
|
||||||
siginfo_t *info,
|
siginfo_t *info,
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
/*
|
/**
|
||||||
* 14.2.4 Per-Process Timers, P1003.1b-1993, p. 267
|
* @file
|
||||||
*
|
*
|
||||||
|
* @brief Get Overrun Count for a POSIX Per-Process Timer
|
||||||
|
* @ingroup POSIX_PRIV_TIMERS
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
@@ -21,13 +26,6 @@
|
|||||||
#include <rtems/score/thread.h>
|
#include <rtems/score/thread.h>
|
||||||
#include <rtems/posix/timer.h>
|
#include <rtems/posix/timer.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* timer_getoverrun
|
|
||||||
*
|
|
||||||
* The expiration of a timer must increase by one a counter.
|
|
||||||
* After the signal handler associated to the timer finishes
|
|
||||||
* its execution, _POSIX_Timer_TSR will have to set this counter to 0.
|
|
||||||
*/
|
|
||||||
int timer_getoverrun(
|
int timer_getoverrun(
|
||||||
timer_t timerid
|
timer_t timerid
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
/*
|
/**
|
||||||
* waitpid() - POSIX 1003.1 3.2.1
|
* @file
|
||||||
*
|
*
|
||||||
|
* @brief Wait for Process to Change State
|
||||||
|
* @ingroup POSIX
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* COPYRIGHT (c) 1989-2007.
|
* COPYRIGHT (c) 1989-2007.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user