diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-05-19 12:41:30 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-05-19 12:56:10 +0200 |
| commit | b841c4f3cb44819f915ddcac5057b6dadad8484b (patch) | |
| tree | 399ea9af646d2f2182c6e5fe5a4a42f8cd48b8d4 | |
| parent | dbc6af12e60171999e6be6a2ccf12a6776e6ca09 (diff) | |
| download | man-pages-b841c4f3cb44819f915ddcac5057b6dadad8484b.tar.gz | |
pthread_*.3: ffix
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man3/pthread_cond_init.3 | 16 | ||||
| -rw-r--r-- | man/man3/pthread_key_create.3 | 11 | ||||
| -rw-r--r-- | man/man3/pthread_mutex_init.3 | 13 | ||||
| -rw-r--r-- | man/man3/pthread_mutexattr_setkind_np.3 | 7 |
4 files changed, 30 insertions, 17 deletions
diff --git a/man/man3/pthread_cond_init.3 b/man/man3/pthread_cond_init.3 index 8472d2eb54..0201ccc501 100644 --- a/man/man3/pthread_cond_init.3 +++ b/man/man3/pthread_cond_init.3 @@ -18,16 +18,20 @@ operations on conditions . . .SH SYNOPSIS +.nf .B #include <pthread.h> .P .BI "pthread_cond_t " cond " = PTHREAD_COND_INITIALIZER;" .P -.BI "int pthread_cond_init(pthread_cond_t *" cond ", pthread_condattr_t *" cond_attr ");" -.BI "int pthread_cond_signal(pthread_cond_t *" cond ");" -.BI "int pthread_cond_broadcast(pthread_cond_t *" cond ");" -.BI "int pthread_cond_wait(pthread_cond_t *" cond ", pthread_mutex_t *" mutex ");" -.BI "int pthread_cond_timedwait(pthread_cond_t *" cond ", pthread_mutex_t *" mutex ", const struct timespec *" abstime ");" -.BI "int pthread_cond_destroy(pthread_cond_t *" cond ");" +.BI "int pthread_cond_init(pthread_cond_t *" cond , +.BI " pthread_condattr_t *" cond_attr ); +.BI "int pthread_cond_signal(pthread_cond_t *" cond ); +.BI "int pthread_cond_broadcast(pthread_cond_t *" cond ); +.BI "int pthread_cond_wait(pthread_cond_t *" cond ", pthread_mutex_t *" mutex ); +.BI "int pthread_cond_timedwait(pthread_cond_t *" cond ", pthread_mutex_t *" mutex , +.BI " const struct timespec *" abstime ); +.BI "int pthread_cond_destroy(pthread_cond_t *" cond ); +.fi . . .SH DESCRIPTION diff --git a/man/man3/pthread_key_create.3 b/man/man3/pthread_key_create.3 index ad8a397f4b..3d6a867b90 100644 --- a/man/man3/pthread_key_create.3 +++ b/man/man3/pthread_key_create.3 @@ -16,12 +16,15 @@ management of thread-specific data . . .SH SYNOPSIS +.nf .B #include <pthread.h> .P -.BI "int pthread_key_create(pthread_key_t *" key ", void (*" destr_function ") (void *));" -.BI "int pthread_key_delete(pthread_key_t " key ");" -.BI "int pthread_setspecific(pthread_key_t " key ", const void *" pointer ");" -.BI "void * pthread_getspecific(pthread_key_t " key ");" +.BI "int pthread_key_create(pthread_key_t *" key , +.BI " void (*" destr_function ") (void *));" +.BI "int pthread_key_delete(pthread_key_t " key ); +.BI "int pthread_setspecific(pthread_key_t " key ", const void *" pointer ); +.BI "void * pthread_getspecific(pthread_key_t " key ); +.fi . . .SH DESCRIPTION diff --git a/man/man3/pthread_mutex_init.3 b/man/man3/pthread_mutex_init.3 index d9b1c5267e..ad842f53a2 100644 --- a/man/man3/pthread_mutex_init.3 +++ b/man/man3/pthread_mutex_init.3 @@ -17,17 +17,20 @@ operations on mutexes . . .SH SYNOPSIS +.nf .B #include <pthread.h> .P .BI "pthread_mutex_t " fastmutex " = PTHREAD_MUTEX_INITIALIZER;" .BI "pthread_mutex_t " recmutex " = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;" .BI "pthread_mutex_t " errchkmutex " = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;" .P -.BI "int pthread_mutex_init(pthread_mutex_t *" mutex ", const pthread_mutexattr_t *" mutexattr ");" -.BI "int pthread_mutex_lock(pthread_mutex_t *" mutex ");" -.BI "int pthread_mutex_trylock(pthread_mutex_t *" mutex ");" -.BI "int pthread_mutex_unlock(pthread_mutex_t *" mutex ");" -.BI "int pthread_mutex_destroy(pthread_mutex_t *" mutex ");" +.BI "int pthread_mutex_init(pthread_mutex_t *" mutex , +.BI " const pthread_mutexattr_t *" mutexattr ); +.BI "int pthread_mutex_lock(pthread_mutex_t *" mutex ); +.BI "int pthread_mutex_trylock(pthread_mutex_t *" mutex ); +.BI "int pthread_mutex_unlock(pthread_mutex_t *" mutex ); +.BI "int pthread_mutex_destroy(pthread_mutex_t *" mutex ); +.fi . . .SH DESCRIPTION diff --git a/man/man3/pthread_mutexattr_setkind_np.3 b/man/man3/pthread_mutexattr_setkind_np.3 index 03c91534d7..11a24e83fc 100644 --- a/man/man3/pthread_mutexattr_setkind_np.3 +++ b/man/man3/pthread_mutexattr_setkind_np.3 @@ -14,10 +14,13 @@ deprecated mutex creation attributes . . .SH SYNOPSIS +.nf .B #include <pthread.h> .P -.BI "int pthread_mutexattr_setkind_np(pthread_mutexattr_t *" attr ", int " kind ");" -.BI "int pthread_mutexattr_getkind_np(const pthread_mutexattr_t *" attr ", int *" kind ");" +.BI "int pthread_mutexattr_setkind_np(pthread_mutexattr_t *" attr ", int " kind ); +.BI "int pthread_mutexattr_getkind_np(const pthread_mutexattr_t *" attr , +.BI " int *" kind ); +.fi . . .SH DESCRIPTION |
