public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15555] New: pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE
@ 2013-05-31 17:46 bernd.schubert at fastmail dot fm
  2013-06-01  1:15 ` [Bug libc/15555] " bugdal at aerifal dot cx
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bernd.schubert at fastmail dot fm @ 2013-05-31 17:46 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15555

            Bug ID: 15555
           Summary: pthread_condattr_setclock should accept
                    CLOCK_MONOTONIC_COARSE
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: bernd.schubert at fastmail dot fm
                CC: drepper.fsp at gmail dot com

I just tried to use pthread_condattr_setclock() and CLOCK_MONOTONIC_COARSE but 
that unexpectedly failed. So I checked the glibc code and noticed that only
CLOCK_MONOTONIC and CLOCK_REALTIME are supported. I'm not sure about the
clock_ids, but at least CLOCK_REALTIME_COARSE and CLOCK_MONOTONIC_COARSE should
be supported. 
Probably only CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID should be
forbidden, similar as musl libc does it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug libc/15555] pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE
  2013-05-31 17:46 [Bug libc/15555] New: pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE bernd.schubert at fastmail dot fm
@ 2013-06-01  1:15 ` bugdal at aerifal dot cx
  2014-02-07  3:17 ` [Bug nptl/15555] " jsm28 at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bugdal at aerifal dot cx @ 2013-06-01  1:15 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15555

Rich Felker <bugdal at aerifal dot cx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugdal at aerifal dot cx

--- Comment #1 from Rich Felker <bugdal at aerifal dot cx> ---
Due to the way it's implemented, the only clocks that can be supported are the
realtime and monotonic clocks. However, as POSIX only documents an error for
cpu-time-based clocks, not other implementation-defined clocks, I think it
would be nice to support as many as possible. The course versions of realtime
and monotonic could simply be remapped to the respective non-course versions
and would work fine.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug nptl/15555] pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE
  2013-05-31 17:46 [Bug libc/15555] New: pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE bernd.schubert at fastmail dot fm
  2013-06-01  1:15 ` [Bug libc/15555] " bugdal at aerifal dot cx
@ 2014-02-07  3:17 ` jsm28 at gcc dot gnu.org
  2014-06-13 17:34 ` fweimer at redhat dot com
  2021-10-21 15:42 ` [Bug nptl/15555] pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE, CLOCK_MONOTONIC_RAW fweimer at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-02-07  3:17 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15555

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |nptl

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug nptl/15555] pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE
  2013-05-31 17:46 [Bug libc/15555] New: pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE bernd.schubert at fastmail dot fm
  2013-06-01  1:15 ` [Bug libc/15555] " bugdal at aerifal dot cx
  2014-02-07  3:17 ` [Bug nptl/15555] " jsm28 at gcc dot gnu.org
@ 2014-06-13 17:34 ` fweimer at redhat dot com
  2021-10-21 15:42 ` [Bug nptl/15555] pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE, CLOCK_MONOTONIC_RAW fweimer at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 17:34 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15555

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug nptl/15555] pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE, CLOCK_MONOTONIC_RAW
  2013-05-31 17:46 [Bug libc/15555] New: pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE bernd.schubert at fastmail dot fm
                   ` (2 preceding siblings ...)
  2014-06-13 17:34 ` fweimer at redhat dot com
@ 2021-10-21 15:42 ` fweimer at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2021-10-21 15:42 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=15555

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|triegel at redhat dot com          |

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2021-10-21 15:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-31 17:46 [Bug libc/15555] New: pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE bernd.schubert at fastmail dot fm
2013-06-01  1:15 ` [Bug libc/15555] " bugdal at aerifal dot cx
2014-02-07  3:17 ` [Bug nptl/15555] " jsm28 at gcc dot gnu.org
2014-06-13 17:34 ` fweimer at redhat dot com
2021-10-21 15:42 ` [Bug nptl/15555] pthread_condattr_setclock should accept CLOCK_MONOTONIC_COARSE, CLOCK_MONOTONIC_RAW fweimer at redhat dot com

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).