Skip to contentSkip to conversation

doc,openposix: Fix typos in comments

PATCH New Petr Vorel 2 participants 2 messages Oct 18, 2017 – Oct 25, 2017

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 doc,openposix: Fix typos in comments

---
 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
index edc1f602d..80a51296f 100644
@@ -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
index a5c76c0fa..a9db78023 100644
@@ -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
index 1e9ea6cc6..c5359da16 100644
@@ -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
index ac96bd6f2..c6ec2f0df 100644
@@ -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
index 94734e5d3..77f52b15a 100644
@@ -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
index 72eeddc7f..e0aadb14c 100644
@@ -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