public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] manual: Remove unsupported line breaks in waiting-with-clock section
@ 2023-05-08 11:21 Florian Weimer
  2023-05-08 11:45 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Weimer @ 2023-05-08 11:21 UTC (permalink / raw)
  To: libc-alpha; +Cc: Nilgün Belma Bugüner

The argument to @deftypefun must be on a single line.
Also add the missing @safety for sem_clockwait.

Reported-by: Nilgün Belma Bugüner <nillguine@gmail.com>

---
 manual/threads.texi | 29 ++++++++---------------------
 1 file changed, 8 insertions(+), 21 deletions(-)

diff --git a/manual/threads.texi b/manual/threads.texi
index 48fd562923..a721c7f464 100644
--- a/manual/threads.texi
+++ b/manual/threads.texi
@@ -754,8 +754,8 @@ freed.
 
 @comment semaphore.h
 @comment POSIX-proposed
-@deftypefun int sem_clockwait (sem_t *@var{sem}, clockid_t @var{clockid},
-                               const struct timespec *@var{abstime})
+@deftypefun int sem_clockwait (sem_t *@var{sem}, clockid_t @var{clockid}, const struct timespec *@var{abstime})
+@safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}}
 Behaves like @code{sem_timedwait} except the time @var{abstime} is measured
 against the clock specified by @var{clockid} rather than
 @code{CLOCK_REALTIME}.  Currently, @var{clockid} must be either
@@ -764,8 +764,7 @@ against the clock specified by @var{clockid} rather than
 
 @comment pthread.h
 @comment POSIX-proposed
-@deftypefun int pthread_cond_clockwait (pthread_cond_t *@var{cond}, pthread_mutex_t *@var{mutex},
-                                        clockid_t @var{clockid}, const struct timespec *@var{abstime})
+@deftypefun int pthread_cond_clockwait (pthread_cond_t *@var{cond}, pthread_mutex_t *@var{mutex}, clockid_t @var{clockid}, const struct timespec *@var{abstime})
 @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}}
 @c If exactly the same function with arguments is called from a signal
 @c handler that interrupts between the mutex unlock and sleep then it
@@ -784,10 +783,7 @@ specified or defaulted when @code{pthread_cond_init} was called.  Currently,
 
 @comment pthread.h
 @comment POSIX-proposed
-@deftypefun int pthread_rwlock_clockrdlock (pthread_rwlock_t *@var{rwlock},
-				       clockid_t @var{clockid},
-				       const struct timespec *@var{abstime})
-
+@deftypefun int pthread_rwlock_clockrdlock (pthread_rwlock_t *@var{rwlock}, clockid_t @var{clockid}, const struct timespec *@var{abstime})
 @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}}
 Behaves like @code{pthread_rwlock_timedrdlock} except the time
 @var{abstime} is measured against the clock specified by @var{clockid}
@@ -798,10 +794,7 @@ returned.
 
 @comment pthread.h
 @comment POSIX-proposed
-@deftypefun int pthread_rwlock_clockwrlock (pthread_rwlock_t *@var{rwlock},
-				       clockid_t @var{clockid},
-				       const struct timespec *@var{abstime})
-
+@deftypefun int pthread_rwlock_clockwrlock (pthread_rwlock_t *@var{rwlock}, clockid_t @var{clockid}, const struct timespec *@var{abstime})
 @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}}
 Behaves like @code{pthread_rwlock_timedwrlock} except the time
 @var{abstime} is measured against the clock specified by @var{clockid}
@@ -812,8 +805,7 @@ returned.
 
 @comment pthread.h
 @comment GNU extension
-@deftypefun int pthread_tryjoin_np (pthread_t *@var{thread},
-				      void **@var{thread_return})
+@deftypefun int pthread_tryjoin_np (pthread_t *@var{thread}, void **@var{thread_return})
 @standards{GNU, pthread.h}
 @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}}
 Behaves like @code{pthread_join} except that it will return @code{EBUSY}
@@ -822,9 +814,7 @@ immediately if the thread specified by @var{thread} has not yet terminated.
 
 @comment pthread.h
 @comment GNU extension
-@deftypefun int pthread_timedjoin_np (pthread_t *@var{thread},
-				      void **@var{thread_return},
-				      const struct timespec *@var{abstime})
+@deftypefun int pthread_timedjoin_np (pthread_t *@var{thread}, void **@var{thread_return}, const struct timespec *@var{abstime})
 @standards{GNU, pthread.h}
 @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}}
 Behaves like @code{pthread_tryjoin_np} except that it will block until the
@@ -836,10 +826,7 @@ will wait forever in the same way as @code{pthread_join}.
 
 @comment pthread.h
 @comment GNU extension
-@deftypefun int pthread_clockjoin_np (pthread_t *@var{thread},
-				      void **@var{thread_return},
-                                      clockid_t @var{clockid},
-				      const struct timespec *@var{abstime})
+@deftypefun int pthread_clockjoin_np (pthread_t *@var{thread}, void **@var{thread_return}, clockid_t @var{clockid}, const struct timespec *@var{abstime})
 @standards{GNU, pthread.h}
 @safety{@prelim{}@mtsafe{}@asunsafe{@asulock{}}@acunsafe{@aculock{}}}
 Behaves like @code{pthread_timedjoin_np} except that the absolute time in

base-commit: a26238d3ca21fda6d7d41b4d56541fcf4546fbe7


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] manual: Remove unsupported line breaks in waiting-with-clock section
  2023-05-08 11:21 [PATCH] manual: Remove unsupported line breaks in waiting-with-clock section Florian Weimer
@ 2023-05-08 11:45 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2023-05-08 11:45 UTC (permalink / raw)
  To: Florian Weimer via Libc-alpha
  Cc: Florian Weimer, Nilgün Belma Bugüner

On Mai 08 2023, Florian Weimer via Libc-alpha wrote:

> The argument to @deftypefun must be on a single line.
> Also add the missing @safety for sem_clockwait.

Ok.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-08 11:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-08 11:21 [PATCH] manual: Remove unsupported line breaks in waiting-with-clock section Florian Weimer
2023-05-08 11:45 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).