mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/posix: fix typos
This commit is contained in:
parent
a49acc9b3e
commit
09748efc11
@ -229,7 +229,7 @@ int bind(int socket, const struct sockaddr *address,
|
||||
* on the address family of the socket.
|
||||
* @param[in] address_len Specifies the length of the sockaddr structure
|
||||
* pointed to by the address argument.
|
||||
* @post The socket will be implicitely bound to an addressed, if it is not already bound.
|
||||
* @post The socket will be implicitly bound to an addressed, if it is not already bound.
|
||||
* According to
|
||||
* http://pubs.opengroup.org/onlinepubs/009695399/functions/connect.html
|
||||
* for a "socket [that] has not already been bound to a local address,
|
||||
@ -408,7 +408,7 @@ static inline ssize_t recv(int socket, void *buffer, size_t length, int flags)
|
||||
* @param[in] address_len Specifies the length of the sockaddr structure pointed
|
||||
* to by the @p address argument.
|
||||
*
|
||||
* @post The socket will implicitely be bound to the unspecified address and
|
||||
* @post The socket will implicitly be bound to the unspecified address and
|
||||
* a random port, in case it is not already bound. Rationale: A client
|
||||
* should not require to explicitly call bind() to receive packets,
|
||||
* but is expected to receive replies sent to the ephemeral port that
|
||||
|
@ -125,7 +125,7 @@ int pthread_barrierattr_getpshared(const pthread_barrierattr_t *attr, int *pshar
|
||||
|
||||
/**
|
||||
* @brief Set if the barrier should be shared with child processes
|
||||
* @details Since RIOT is a single process OS, pthread_barrier_init() wil ignore the value.
|
||||
* @details Since RIOT is a single process OS, pthread_barrier_init() will ignore the value.
|
||||
* @param attr Attribute set for pthread_barrier_init()
|
||||
* @param pshared Either #PTHREAD_PROCESS_PRIVATE or #PTHREAD_PROCESS_SHARED
|
||||
* @returns 0, the invocation cannot fail
|
||||
|
@ -92,7 +92,7 @@ int pthread_condattr_getpshared(const pthread_condattr_t *attr, int *pshared);
|
||||
int pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared);
|
||||
|
||||
/**
|
||||
* @brief Get the clock selected for the conditon variable attribute attr.
|
||||
* @brief Get the clock selected for the condition variable attribute attr.
|
||||
* @note currently NOT USED in RIOT.
|
||||
* @param[in] attr pre-allocated condition attribute variable structure.
|
||||
* @param[out] clock_id the clock ID that is used to measure the timeout service
|
||||
@ -101,7 +101,7 @@ int pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared);
|
||||
int pthread_condattr_getclock(const pthread_condattr_t *attr, clockid_t *clock_id);
|
||||
|
||||
/**
|
||||
* @brief Set the clock selected for the conditon variable attribute ATTR.
|
||||
* @brief Set the clock selected for the condition variable attribute ATTR.
|
||||
* @note currently NOT USED in RIOT.
|
||||
* @param[in, out] attr pre-allocated condition attribute variable structure.
|
||||
* @param[in] clock_id the clock ID that shall be used to measure the timeout service
|
||||
|
@ -42,7 +42,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Intializes a spinlock.
|
||||
* @brief Initializes a spinlock.
|
||||
* @warning See the warning in pthread_spinlock_t.
|
||||
* @details A zeroed out datum is initialized.
|
||||
* @param[in,out] lock Datum to initialize.
|
||||
|
@ -23,7 +23,7 @@ extern "C" {
|
||||
|
||||
/**
|
||||
* @brief An attribute set to supply to pthread_create()
|
||||
* @details A zeroed out datum is default initiliazed.
|
||||
* @details A zeroed out datum is default initialized.
|
||||
* @see pthread_create() for further information
|
||||
*/
|
||||
typedef struct
|
||||
|
@ -57,7 +57,7 @@ int pthread_setspecific(pthread_key_t key, const void *value);
|
||||
/**
|
||||
* @brief Creates a new key to be used to identify a specific tls
|
||||
* @param[out] key the created key is scribed to the given pointer
|
||||
* @param[in] destructor function pointer called when non NULL just befor the pthread exits
|
||||
* @param[in] destructor function pointer called when non NULL just before the pthread exits
|
||||
* @return returns 0 on success, an errorcode otherwise
|
||||
*/
|
||||
int pthread_key_create(pthread_key_t *key, void (*destructor)(void *));
|
||||
|
@ -76,7 +76,7 @@ int pthread_barrier_wait(pthread_barrier_t *barrier)
|
||||
|
||||
while (1) {
|
||||
/* The mutex is reacquired before checking if we should continue,
|
||||
* so that the waiting thread don't accidentially run before the
|
||||
* so that the waiting thread don't accidentally run before the
|
||||
* wake up loop has ended. Otherwise the thread could run into the
|
||||
* the barrier again before `barrier->count` was reset. */
|
||||
mutex_lock(&barrier->mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user