* posix/tst-regex.c: Use defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0
commit0537d856473bad6d87d48a8ecfeff63132d68429
authorJakub Jelinek <jakub@redhat.com>
Fri, 3 Dec 2004 11:20:54 +0000 (3 11:20 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 3 Dec 2004 11:20:54 +0000 (3 11:20 +0000)
tree48049877c51e7dfcadb180755a9778d0e4a8d40e
parent28c5e010b18350bb76dc2170b8746dc9d09ca6e2
* posix/tst-regex.c: Use defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0
conditionals instead of defined _POSIX_CPUTIME.
(main): If _POSIX_CPUTIME == 0, call sysconf to see if CPUTIME
option is available.
* posix/tst-regex.c2: Use defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0
conditionals instead of defined _POSIX_CPUTIME.
(do_test): If _POSIX_CPUTIME == 0, call sysconf to see if CPUTIME
option is available.
* sysdeps/posix/sysconf.c (__sysconf): If _POSIX_CPUTIME resp.
_POSIX_THREAD_CPUTIME is defined to 0, return -1 for the corresponding
_SC_ argument.
nptl/
* sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
_POSIX_THREAD_CPUTIME): Define to 0.
* sysdeps/pthread/timer_create.c (timer_create): Remove unused code
handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
* sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk,
__timer_signal_thread_tclk): Remove.
(init_module): Remove their initialization.
(thread_cleanup): Remove their cleanup assertions.
* sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk,
__timer_signal_thread_tclk): Remove.
* sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed.
* sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed.
* sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed.
linuxthreads/
* sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
_POSIX_THREAD_CPUTIME): Define to 0.
* sysdeps/pthread/timer_create.c (timer_create): Remove unused code
handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID.
* sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk,
__timer_signal_thread_tclk): Remove.
(init_module): Remove their initialization.
(thread_cleanup): Remove their cleanup assertions.
* sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk,
__timer_signal_thread_tclk): Remove.
* sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed.
* sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed.
* sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed.
21 files changed:
ChangeLog
linuxthreads/ChangeLog
linuxthreads/sysdeps/pthread/posix-timer.h
linuxthreads/sysdeps/pthread/timer_create.c
linuxthreads/sysdeps/pthread/timer_routines.c
linuxthreads/sysdeps/unix/sysv/linux/bits/posix_opt.h
linuxthreads/sysdeps/unix/sysv/linux/i386/bits/posix_opt.h [deleted file]
linuxthreads/sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h [deleted file]
linuxthreads/sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h [deleted file]
linuxthreads/tst-clock1.c
nptl/ChangeLog
nptl/sysdeps/pthread/posix-timer.h
nptl/sysdeps/pthread/timer_create.c
nptl/sysdeps/pthread/timer_routines.c
nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h
nptl/sysdeps/unix/sysv/linux/i386/bits/posix_opt.h [deleted file]
nptl/sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h [deleted file]
nptl/sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h [deleted file]
posix/tst-regex.c
posix/tst-regex2.c
sysdeps/posix/sysconf.c