doc,openposix: Fix typos in comments
PATCH 1/1 doc,openposix: Fix typos in comments
Signed-off-by Petr Vorel <[email protected]>
--- doc/test-writing-guidelines.txt | 2 +- .../open_posix_testsuite/conformance/interfaces/pthread_exit/1-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/pthread_join/2-1.c | 2 +- .../conformance/interfaces/pthread_key_create/3-1.c | 4 ++-- .../conformance/interfaces/pthread_key_delete/2-1.c | 4 ++-- .../conformance/interfaces/pthread_rwlock_trywrlock/1-1.c | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-)
doc/test-writing-guidelines.txt +1 -1
@@ -454,7 +454,7 @@ const char *tst_strstatus(int status); Returns string describing the status as returned by 'wait()'. -WARNING: This funciton is not thread safe. +WARNING: This function is not thread safe. [source,c] -------------------------------------------------------------------------------
testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/1-1.c +1 -1
@@ -64,7 +64,7 @@ int main(void) }/* Check to make sure that 'value_ptr' that was passed to pthread_join() and the -* pthread_exit() return code that was used in the thread funciton are the same. */ +* pthread_exit() return code that was used in the thread function are the same. */ if ((long )value_ptr !=RETURN_CODE ) {printf ("Test FAILED: pthread_exit() could not pass the return value of the thread in 'value_ptr' to pthread_join().\n" );
testcases/open_posix_testsuite/conformance/interfaces/pthread_join/2-1.c +1 -1
@@ -68,7 +68,7 @@ int main(void)/* * Check to make sure that 'value_ptr' that was passed to * pthread_join() and the pthread_exit() return code that -* was used in the thread funciton are the same. +* was used in the thread function are the same. */ if (value_ptr !=RETURN_CODE ) { printf("Test FAILED: pthread_join() did not return the "
testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/3-1.c +2 -2
@@ -31,7 +31,7 @@pthread_key_t key;int dest_cnt; -/* Destructor funciton */ +/* Destructor function */ void dest_func (void *p) { dest_cnt++;
@@ -55,7 +55,7 @@ int main(void) {pthread_t new_th; -/* Inialize the destructor flag */ +/* Initialize the destructor flag */ dest_cnt =0 ;/* Create a key with a destructor function */
testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/2-1.c +2 -2
@@ -29,7 +29,7 @@pthread_key_t key;int dest_cnt; -/* Destructor funciton */ +/* Destructor function */ void dest_func (void *p) { dest_cnt++;
@@ -57,7 +57,7 @@ int main(void) {pthread_t new_th; -/* Inialize the destructor flag */ +/* Initialize the destructor flag */ dest_cnt =0 ;/* Create a key with a destructor function */
testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/1-1.c +1 -1
@@ -7,7 +7,7 @@* Test pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock) * * The function shall apply a write lock like the pthread_rwlock_wrlock(), with the exception -* that the funciton shall fail if any thread currently holds rwlock(for reading and writing). +* that the function shall fail if any thread currently holds rwlock(for reading and writing). * * Steps: * 1. Initialize a pthread_rwlock_t object 'rwlock' with pthread_rwlock_init()
Signature · 1 line
2.14.2
PATCH 1/1 doc,openposix: Fix typos in comments
Hi!
Applied, thanks.
Signature · 2 lines
Cyril Hrubis [email protected]