]> rtime.felk.cvut.cz Git - frescor/fosa.git/commitdiff
Adapting comments to Doxygen formatting (adding \n and separating lines).
authortelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Tue, 12 Jun 2007 16:16:01 +0000 (16:16 +0000)
committertelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Tue, 12 Jun 2007 16:16:01 +0000 (16:16 +0000)
Regenerated Doxygen doc

git-svn-id: http://www.frescor.org/private/svn/frescor/fosa/trunk@457 35b4ef3e-fd22-0410-ab77-dab3279adceb

doc/api_html.tar.gz
doc/fosa_api.pdf
include/fosa_app_def_sched.h
include/fosa_clocks_and_timers.h
include/fosa_mutexes_and_condvars.h
include/fosa_threads_and_signals.h

index c0b0f5f6acf57356462e61075422359a7b75bb9f..978ea393a752730a456dfd655221924c113f5682 100644 (file)
Binary files a/doc/api_html.tar.gz and b/doc/api_html.tar.gz differ
index 658b85dc0a15679e3388cb28e0683745b28451ae..74c8960decb644ec3fea7c78ca7b9ae9e5bc53d6 100644 (file)
Binary files a/doc/fosa_api.pdf and b/doc/fosa_api.pdf differ
index 1b56cfc030688cb4b99f7cf4859b173ea53b8930..893efa369ff80f017ce36f6bdb6e8148518ee5f3 100644 (file)
  * system minus the configuration parameter FOSA_ADS_SCHEDULER_PRIO_DIFF.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: The value of scheduler_ops was invalid
- *     EAGAIN: The system lacks enough resources to create the scheduler
+ *
+ *     FOSA_EINVAL: The value of scheduler_ops was invalid \n
+ *     FOSA_EAGAIN: The system lacks enough resources to create the
+ *                  scheduler \n
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -148,7 +150,8 @@ int fosa_ads_scheduler_create
  * the system under a fixed priority scheduler
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: The value of attr is invalid
+ *
+ *     FOSA_EINVAL: The value of attr is invalid
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -170,7 +173,8 @@ int fosa_thread_attr_set_appscheduled
  * the system under a fixed priority scheduler.
  * 
  * Returns 0 if successful; otherwise it returns an error code:
- *    EINVAL: The value of attr is invalid
+ *
+ *    FOSA_EINVAL: The value of attr is invalid
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -194,7 +198,8 @@ int fosa_thread_attr_get_appscheduled
  * paramsize bytes and pointed to by param into that attribute
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *    EINVAL: The value of attr is invalid, or paramsize is less than 
+ *
+ *    FOSA_EINVAL: The value of attr is invalid, or paramsize is less than 
  *            zero or larger than FOSA_ADS_SCHEDPARAM_MAX
  *
  * Alternatively, in case of error the implementation is allowed to
@@ -222,7 +227,8 @@ int fosa_thread_attr_set_appsched_params
  * paramsize.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: The value of attr is invalid
+ *
+ *     FOSA_EINVAL: The value of attr is invalid
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -245,9 +251,10 @@ int fosa_thread_attr_get_appsched_params
  * scheduled by the system under a fixed priority scheduler.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: The value of thread is invalid
  *
- *     EREJECT: the attachment of the thread to the frsh schehduler
+ *     FOSA_EINVAL: The value of thread is invalid
+ *
+ *     FOSA_EREJECT: the attachment of the thread to the frsh schehduler
  *     was rejected by the frsh scheduler possibly because of
  *     incorrect attributes, or because the requested minimum
  *     capacity cannot be guaranteed
@@ -272,7 +279,8 @@ int fosa_ads_set_appscheduled
  * scheduled by the system under a fixed priority scheduler
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: The value of thread is invalid
+ *
+ *     FOSA_EINVAL: The value of thread is invalid
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -298,7 +306,8 @@ int fosa_ads_get_appscheduled
  * that attribute
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *    EINVAL: The value of thread is invalid, or paramsize is less than 
+ *
+ *    FOSA_EINVAL: The value of thread is invalid, or paramsize is less than 
  *            zero or larger than FOSA_ADS_SCHEDPARAM_MAX
  *
  * Alternatively, in case of error the implementation is allowed to
@@ -326,7 +335,8 @@ int fosa_ads_set_appsched_params
  * bytes equal to paramsize.
  *
  *  Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: The value of thread is invalid, or paramsize is less than 
+ *
+ *     FOSA_EINVAL: The value of thread is invalid, or paramsize is less than 
  *             zero or larger than FOSA_ADS_SCHEDPARAM_MAX
  *
  * Alternatively, in case of error the implementation is allowed to
@@ -363,7 +373,7 @@ int fosa_ads_get_appsched_params
  * scheduler primitive operation, the parent of the rejected thread
  * waiting on a fosa_thread_create() or the rejected thread itself
  * waiting on a fosa_ads_set_appscheduled() function shall complete the
- * function with an error code of EREJECT. If no reject-thread action
+ * function with an error code of FOSA_EREJECT. If no reject-thread action
  * is added during the new_thread() scheduler primitive operation, the
  * thread is accepted to be scheduled by the scheduler and the
  * associated fosa_thread_create() or the fosa_ads_set_appscheduled()
@@ -373,11 +383,12 @@ int fosa_ads_get_appsched_params
  * scheduler.
  *
  *  Returns 0 if successful; otherwise it returns an error code:
- *     ENOMEM: There is insufficient memory to add this action
- *     EPOLICY: The thread specified by thread is not the one requesting
+ *
+ *     FOSA_ENOMEM: There is insufficient memory to add this action \n
+ *     FOSA_EPOLICY: The thread specified by thread is not the one requesting
  *               attachment to the scheduler, or the function is not being
- *               called from the new_thread primitive operation
- *     EINVAL: The value specified by sched_actions is invalid
+ *               called from the new_thread primitive operation \n
+ *     FOSA_EINVAL: The value specified by sched_actions is invalid \n
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -410,10 +421,11 @@ int fosa_adsactions_add_reject(
  * with more urgency will be scheduled before those of less urgency.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     ENOMEM: There is insufficient memory to add this action
- *     EPOLICY: The thread specified by thread has its appscheduled
- *              attribute set to false, 
- *     EINVAL: The value specified by sched_actions is invalid
+ *
+ *     FOSA_ENOMEM: There is insufficient memory to add this action \n
+ *     FOSA_EPOLICY: The thread specified by thread has its appscheduled
+ *              attribute set to false \n
+ *     FOSA_EINVAL: The value specified by sched_actions is invalid \n
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -438,10 +450,11 @@ int fosa_adsactions_add_activate(
  * operating system.
  * 
  *  Returns 0 if successful; otherwise it returns an error code:
- *     ENOMEM: There is insufficient memory to add this action
- *     EPOLICY: The thread specified by thread has its appscheduled
- *              attribute set to false, 
- *     EINVAL: The value specified by sched_actions is invalid
+ *
+ *     FOSA_ENOMEM: There is insufficient memory to add this action \n
+ *     FOSA_EPOLICY: The thread specified by thread has its appscheduled
+ *              attribute set to false \n
+ *     FOSA_EINVAL: The value specified by sched_actions is invalid \n
  *
  *  Alternatively, in case of error the implementation is allowed to
  *  notify it to the system console and then terminate the FRSH
@@ -464,8 +477,9 @@ int fosa_adsactions_add_suspend(
  * argument.
  *
  *  Returns 0 if successful; otherwise it returns an error code:
- *     ENOMEM: There is insufficient memory to add this action
- *     EINVAL: The value specified by sched_actions is invalid
+ *
+ *     FOSA_ENOMEM: There is insufficient memory to add this action \n
+ *     FOSA_EINVAL: The value specified by sched_actions is invalid \n
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -495,10 +509,11 @@ int fosa_adsactions_add_timeout(
  * thread specified by thread and the clock specified by clock_id.
  * 
  *  Returns 0 if successful; otherwise it returns an error code:
- *     ENOMEM: There is insufficient memory to add this action
- *     EPOLICY: The thread specified by thread has its appscheduled
- *              attribute set to false, 
- *     EINVAL: The value specified by sched_actions is invalid
+ *
+ *     FOSA_ENOMEM: There is insufficient memory to add this action \n
+ *     FOSA_EPOLICY: The thread specified by thread has its appscheduled
+ *              attribute set to false \n
+ *     FOSA_EINVAL: The value specified by sched_actions is invalid \n
  *
  *  Alternatively, in case of error the implementation is allowed to
  *  notify it to the system console and then terminate the FRSH
@@ -533,9 +548,10 @@ int fosa_adsactions_add_thread_notification(
  * The size of the array is specified by argument size.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *    EPOLICY: The function has not been called from a scheduler 
- *              primitive operation
- *    EINVAL: The value specified by set is invalid
+ *
+ *    FOSA_EPOLICY: The function has not been called from a scheduler 
+ *              primitive operation \n
+ *    FOSA_EINVAL: The value specified by set is invalid \n
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -576,12 +592,13 @@ int fosa_ads_set_handled_signal_set(frsh_signal_t set[], int size);
  * scheduler.
  *
  *  Returns 0 if successful; otherwise it returns an error code:
- *     EPOLICY: The function been called from inside a scheduler 
- *              primitive operation
- *     EINVAL: The value of msg_size is less than zero or larger than 
- *             FOSA_ADS_SCHEDINFO_MAX
- *     EMASKED: The operation cannot be executed because the primitive
- *              operation explicit_call_with_data() is set to NULL
+ *
+ *     FOSA_EPOLICY: The function been called from inside a scheduler 
+ *              primitive operation \n
+ *     FOSA_EINVAL: The value of msg_size is less than zero or larger than 
+ *             FOSA_ADS_SCHEDINFO_MAX \n
+ *     FOSA_EMASKED: The operation cannot be executed because the primitive
+ *              operation explicit_call_with_data() is set to NULL \n
  *
  *  Alternatively, in case of error the implementation is allowed to
  *  notify it to the system console and then terminate the FRSH
index 5851f1078975e94d76bf27126ad32ac9a9930bdc..9f485f87f7248294081ab03b4ccd82ffad19d2f5 100644 (file)
@@ -92,7 +92,7 @@
  * fosa_get_cputime_clock()
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the value of clockid is invalid
+ *     FOSA_EINVAL: the value of clockid is invalid
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -110,7 +110,7 @@ int fosa_clock_get_time(fosa_clock_id_t clockid, struct timespec *current_time);
  * identifier of a cpu-time clock for the thread specified by tid.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *    EINVAL: the value of tid is invalid
+ *    FOSA_EINVAL: the value of tid is invalid
  * 
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -148,9 +148,9 @@ int fosa_thread_get_cputime_clock(frsh_thread_id_t tid, fosa_clock_id_t *clockid
  * thread be the one who is waiting for the signal. 
  * 
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the value of clockid or signal is invalid
+ *     FOSA_EINVAL: the value of clockid or signal is invalid
  * 
- *     EAGAIN: the system lacks enough resources to create the timer
+ *     FOSA_EAGAIN: the system lacks enough resources to create the timer
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -170,7 +170,7 @@ int fosa_thread_get_cputime_clock(frsh_thread_id_t tid, fosa_clock_id_t *clockid
  * deletion.
  * 
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the value of timerid is not valid
+ *     FOSA_EINVAL: the value of timerid is not valid
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -201,7 +201,7 @@ int fosa_timer_delete(fosa_timer_id_t timerid);
  * When the timer expires, it is disarmed.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *    EINVAL: the value of timerid or value is invalid
+ *    FOSA_EINVAL: the value of timerid or value is invalid
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -223,7 +223,7 @@ int fosa_timer_arm
  * If the timer is disarmed it returns 0.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *    EINVAL: the value of timerid or value is invalid
+ *    FOSA_EINVAL: the value of timerid or value is invalid
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -249,7 +249,7 @@ int fosa_timer_get_remaining_time
  * disarmed a 0 value will be set.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *    EINVAL: the value of timerid or value is invalid
+ *    FOSA_EINVAL: the value of timerid or value is invalid
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
index e314a33a48fb304c9b0445a07b0befa6333944cf..2797ac662ce39cb23071446aaab4defa579bcf92 100644 (file)
  * is assigned to this mutex.
  * 
  * Returns 0 if successful; otherwise it returns an error code:
- *    EINVAL: the value of prioceiling is invalid
- *    EAGAIN: the system lacked the necessary resources to create the mutex
- *    ENOMEM: Insufficient memory exists to initialize the mutex
- *    EBUSY:  The system has detected an attempt to reinitialize the mutex
+ *
+ * FOSA_EINVAL: the value of prioceiling is invalid \n
+ * FOSA_EAGAIN: the system lacked the necessary resources to create
+ *                the mutex \n 
+ * FOSA_ENOMEM: Insufficient memory exists to initialize the mutex \n
+ * FOSA_EBUSY:  The system has detected an attempt to reinitialize the mutex
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -108,8 +110,9 @@ int fosa_mutex_init(frsh_mutex_t *mutex, int prioceiling);
  * The mutex pointed to by mutex is destroyed
  * 
  * Returns 0 if successful; otherwise it returns an error code:
- *    EINVAL: the value of mutex is invalid
- *    EBUSY:  The mutex is in use (is locked)  
+ *
+ *    FOSA_EINVAL: the value of mutex is invalid \n
+ *    FOSA_EBUSY:  The mutex is in use (is locked)\n  
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -129,7 +132,8 @@ int fosa_mutex_destroy(frsh_mutex_t *mutex);
  * old_ceiling.
  * 
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the value of mutex or prioceiling is invalid
+ *
+ *     FOSA_EINVAL: the value of mutex or prioceiling is invalid \n
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -147,7 +151,8 @@ int fosa_mutex_set_prioceiling
  * current priority ceiling of the mutex referenced by mutex
  * 
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the value of mutex is invalid
+ *
+ *     FOSA_EINVAL: the value of mutex is invalid \n
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -165,10 +170,13 @@ int fosa_mutex_get_prioceiling(const frsh_mutex_t *mutex, int *ceiling);
  * available. The operation returns with the mutex in the locked
  * state, with the calling thread as its owner.
  * 
- * Returns 0 if successful; otherwise it returns an error code:
- *    EINVAL: the value of mutex is invalid, or the priority of the
- *            calling thread is higher than the priority ceiling of the mutex
- *    EDEADLK: the current thread already owns this mutex
+ * Returns 0 if successful; otherwise it returns an error code: \n
+ *
+ *    FOSA_EINVAL: the value of mutex is invalid, or the priority of the
+ *            calling thread is higher than the priority ceiling of
+ *            the mutex \n
+ *
+ *    FOSA_EDEADLK: the current thread already owns this mutex \n
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -186,11 +194,12 @@ int fosa_mutex_lock(frsh_mutex_t *mutex);
  * indication.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *    EINVAL: the value of mutex is invalid, or the priority of the
- *            calling thread is higher than the priority ceiling of the mutex
- *    EBUSY: the mutex was already locked
+ *    FOSA_EINVAL: the value of mutex is invalid, or the priority of the
+ *       calling thread is higher than the priority ceiling of the
+ *       mutex \n
+ *    FOSA_EBUSY: the mutex was already locked \n
  *
- * Alternatively, except for EBUSY, in case of error the
+ * Alternatively, except for FOSA_EBUSY, in case of error the
  * implementation is allowed to notify it to the system console and
  * then terminate the FRSH implementation and dependant applications
  **/
@@ -207,10 +216,10 @@ int fosa_mutex_trylock(frsh_mutex_t *mutex);
  * awakened to acquire the mutex.
  * 
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the value of mutex is invalid
- *     EPERM: the calling thread is not the owner of the mutex
+ *     FOSA_EINVAL: the value of mutex is invalid
+ *     FOSA_EPERM: the calling thread is not the owner of the mutex
  *
- * Alternatively, except for EBUSY, in case of error the
+ * Alternatively, except for FOSA_EBUSY, in case of error the
  * implementation is allowed to notify it to the system console and
  * then terminate the FRSH implementation and dependant applications 
  **/
@@ -230,10 +239,10 @@ int fosa_mutex_unlock(frsh_mutex_t *mutex);
  * the attributes required by the FOSA implementation.
  *
  *  Returns 0 if successful; otherwise it returns an error code:
- *     EAGAIN: the system lacked the necessary resources to create the
+ *     FOSA_EAGAIN: the system lacked the necessary resources to create the
  *             condition variable
- *     ENOMEM: Insufficient memory exists to initialize the condition variable
- *     EBUSY:  The system has detected an attempt to reinitialize the 
+ *     FOSA_ENOMEM: Insufficient memory exists to initialize the condition variable
+ *     FOSA_EBUSY:  The system has detected an attempt to reinitialize the 
  *             condition variable
  *
  * Alternatively, in case of error the implementation is allowed to
@@ -250,8 +259,8 @@ int fosa_cond_init(fosa_cond_t *cond);
  * The condition variable pointed to by cond is destroyed
  * 
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the value of cond is invalid
- *     EBUSY:  The condition variable is in use (a thread is waiting on it)  
+ *     FOSA_EINVAL: the value of cond is invalid
+ *     FOSA_EBUSY:  The condition variable is in use (a thread is waiting on it)  
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -269,7 +278,7 @@ int fosa_cond_destroy(fosa_cond_t *cond);
  * waiting, the function has no effect
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the value of cond is invalid
+ *     FOSA_EINVAL: the value of cond is invalid
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -287,7 +296,7 @@ int fosa_cond_signal(fosa_cond_t *cond);
  * waiting, the function has no effect.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the value of cond is invalid
+ *     FOSA_EINVAL: the value of cond is invalid
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -308,7 +317,7 @@ int fosa_cond_broadcast(fosa_cond_t *cond);
  * returns with the mutex locked by the calling thread.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *    EINVAL: the value of cond or mutex is invalid, or different
+ *    FOSA_EINVAL: the value of cond or mutex is invalid, or different
  *            mutexes were used for concurrent wait operations on cond, or
  *            the mutex was not owned by the calling thread
  *
@@ -328,12 +337,12 @@ int fosa_cond_wait(fosa_cond_t *cond, frsh_mutex_t *mutex);
  * measured by the FOSA_CLOCK_REALTIME clock.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the value of cond or mutex or abstime is invalid, or different
+ *     FOSA_EINVAL: the value of cond or mutex or abstime is invalid, or different
  *             mutexes were used for concurrent wait operations on cond, or
  *             the mutex was not owned by the calling thread
- *     ETIMEDOUT: the timeout expired
+ *     FOSA_ETIMEDOUT: the timeout expired
  *
- * Alternatively, except for ETIMEDOUT, in case of error the
+ * Alternatively, except for FOSA_ETIMEDOUT, in case of error the
  * implementation is allowed to notify it to the system console and
  * then terminate the FRSH implementation and dependant applications
  **/
index 6164bd0e0139cd2ecab5f35bec8978fbb2962b99..c97c61b460e1098ecca709fc1f568f309c259822 100644 (file)
@@ -121,14 +121,14 @@ frsh_thread_id_t fosa_thread_self();
  *
  * Returns 0 if successful; otherwise it returs a code error:
  *
- *     EAGAIN: the system lacks the necessary resources to create a
+ *     FOSA_EAGAIN: the system lacks the necessary resources to create a
  *             new thread or the maximum number of threads has been
  *             reached
  *
- *     EINVAL: the value specified by attr is invalid (for instance,
+ *     FOSA_EINVAL: the value specified by attr is invalid (for instance,
  *              it has not been correctly initialized)
  *
- *     EREJECT: the cretion of the thread was rejected by the frsh scheduler
+ *     FOSA_EREJECT: the cretion of the thread was rejected by the frsh scheduler
  *               possibly because of incorrect attributes, or because the 
  *               requested minimum capacity cannot be guaranteed
  *
@@ -192,7 +192,7 @@ int fosa_key_destroy(int key);
  * identified by key will be set to the value specified by value
  *
  * Returns 0 if successful; otherwise, an error code is returned
- *     EINVAL: the value of key is not between 0 and FOSA_MAX_KEYS-1
+ *     FOSA_EINVAL: the value of key is not between 0 and FOSA_MAX_KEYS-1
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -210,7 +210,7 @@ int fosa_key_destroy(int key);
  * identified by key will be copied to the variable pointed to by value
  *
  * Returns 0 if successful; otherwise, an error code is returned
- *     EINVAL: the value of key is not between 0 and FOSA_MAX_KEYS-1
+ *     FOSA_EINVAL: the value of key is not between 0 and FOSA_MAX_KEYS-1
  *
  * Alternatively, in case of error the implementation is allowed to
  * notify it to the system console and then terminate the FRSH
@@ -257,7 +257,7 @@ int fosa_get_priority_min();
  * priority
  * 
  * Returns 0 if successful, or the following error code:
- *    EINVAL: the specified priority value is not between the 
+ *    FOSA_EINVAL: the specified priority value is not between the 
  *            minimum and the maximum priorities defined in this
  *            FRSH implementation
  * Alternatively, in case of error the implementation is allowed to
@@ -288,7 +288,7 @@ int fosa_thread_attr_set_prio(frsh_thread_attr_t *attr, int prio);
  * set to the value specified by prio. 
  * 
  * Returns 0 if successful, or the following error code:
- *    EINVAL: the specified priority value is not between the 
+ *    FOSA_EINVAL: the specified priority value is not between the 
  *            minimum and the maximum priorities defined in this
  *            FRSH implementation
  * Alternatively, in case of error the implementation is allowed to
@@ -334,7 +334,7 @@ int fosa_thread_get_prio (frsh_thread_id_t tid, int *prio);
  * which must be of size equal to size
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the array contains one or more values which are not
+ *     FOSA_EINVAL: the array contains one or more values which are not
  *             between FOSA_SIGNAL_MIN and FOSA_SIGNAL_MAX, or size
  *             is less than 0
  *
@@ -361,10 +361,10 @@ int fosa_set_accepted_signals(frsh_signal_t set[], int size);
  * thread be the one who is waiting for the signal. 
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the signal specified by signal is not
+ *     FOSA_EINVAL: the signal specified by signal is not
  *              between FOSA_SIGNAL_MIN and FOSA_SIGNAL_MAX
  *
- *     EAGAIN: no resources are available to queue the signal; the
+ *     FOSA_EAGAIN: no resources are available to queue the signal; the
  *             maximum number of queued signals has been reached, or a
  *             systemwide resource limit has been exceeded
  *
@@ -396,10 +396,10 @@ int fosa_signal_queue
  * So the fosa implementation will solve this issue internally.
  * 
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the signal specified by signal is not
+ *     FOSA_EINVAL: the signal specified by signal is not
  *              between FOSA_SIGNAL_MIN and FOSA_SIGNAL_MAX
  *
- *     EAGAIN: no resources are available to queue the signal; the
+ *     FOSA_EAGAIN: no resources are available to queue the signal; the
  *             maximum number of queued signals has been reached, or a
  *             systemwide resource limit has been exceeded
  *
@@ -426,7 +426,7 @@ int fosa_signal_queue_scheduler(frsh_signal_t signal, frsh_signal_info_t info);
  * is stored in the variable pointed to by info.
  *
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the array contains one or more values which are not
+ *     FOSA_EINVAL: the array contains one or more values which are not
  *             between FOSA_SIGNAL_MIN and FOSA_SIGNAL_MAX, or size
  *             is less than 0
  *
@@ -448,12 +448,12 @@ int fosa_signal_queue_scheduler(frsh_signal_t signal, frsh_signal_info_t info);
  * the timespec structure referenced by timeout.
  * 
  * Returns 0 if successful; otherwise it returns an error code:
- *     EINVAL: the array contains one or more values which are not
+ *     FOSA_EINVAL: the array contains one or more values which are not
  *             between FOSA_SIGNAL_MIN and FOSA_SIGNAL_MAX, or size
  *             is less than 0, or timeout is invalid
- *     EAGAIN: The timeout expired
+ *     FOSA_EAGAIN: The timeout expired
  *
- * Alternatively, in case of the EINVAL error the implementation is
+ * Alternatively, in case of the FOSA_EINVAL error the implementation is
  * allowed to notify it to the system console and then terminate the
  * FRSH implementation and dependant applications
  **/