* sysdeps/pthread/getcpuclockid.c: Include spinlock.h.
Fix a typo in kernel-posix-cpy-timers.h include name, use <> instead of "" includes. (pthread_getcpuclockid): Fix 2 typos.
This commit is contained in:
parent
45bc95b581
commit
ad52908115
|
@ -1,3 +1,10 @@
|
||||||
|
2005-04-27 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/pthread/getcpuclockid.c: Include spinlock.h.
|
||||||
|
Fix a typo in kernel-posix-cpy-timers.h include name, use <> instead
|
||||||
|
of "" includes.
|
||||||
|
(pthread_getcpuclockid): Fix 2 typos.
|
||||||
|
|
||||||
2005-04-27 Roland McGrath <roland@redhat.com>
|
2005-04-27 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
* sysdeps/pthread/getcpuclockid.c (pthread_getcpuclockid)
|
* sysdeps/pthread/getcpuclockid.c (pthread_getcpuclockid)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* pthread_getcpuclockid -- Get POSIX clockid_t for a pthread_t. Linux version
|
/* pthread_getcpuclockid -- Get POSIX clockid_t for a pthread_t. Linux version
|
||||||
Copyright (C) 2000, 2001, 2004 Free Software Foundation, Inc.
|
Copyright (C) 2000, 2001, 2004, 2005 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -22,8 +22,9 @@
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <internals.h>
|
#include <internals.h>
|
||||||
#include "kernel-features.h"
|
#include <spinlock.h>
|
||||||
#include "posix-cpu-timers.h"
|
#include <kernel-features.h>
|
||||||
|
#include <kernel-posix-cpu-timers.h>
|
||||||
|
|
||||||
|
|
||||||
#if !(__ASSUME_POSIX_CPU_TIMERS > 0)
|
#if !(__ASSUME_POSIX_CPU_TIMERS > 0)
|
||||||
|
@ -58,12 +59,12 @@ pthread_getcpuclockid (pthread_t thread_id, clockid_t *clock_id)
|
||||||
# if !(__ASSUME_POSIX_CPU_TIMERS > 0)
|
# if !(__ASSUME_POSIX_CPU_TIMERS > 0)
|
||||||
# if !(__ASSUME_POSIX_TIMERS > 0)
|
# if !(__ASSUME_POSIX_TIMERS > 0)
|
||||||
if (__libc_missing_posix_timers && !__libc_missing_posix_cpu_timers)
|
if (__libc_missing_posix_timers && !__libc_missing_posix_cpu_timers)
|
||||||
__libc_missing_cpu_posix_timers = 1;
|
__libc_missing_posix_cpu_timers = 1;
|
||||||
# endif
|
# endif
|
||||||
if (!__libc_missing_posix_cpu_timers)
|
if (!__libc_missing_posix_cpu_timers)
|
||||||
{
|
{
|
||||||
INTERNAL_SYSCALL_DECL (err);
|
INTERNAL_SYSCALL_DECL (err);
|
||||||
int r = INTERNAL_SYSCALL (clock_getres, err, 2, tidclock, NULL);
|
int r = INTERNAL_SYSCALL (clock_getres, err, 2, pidclock, NULL);
|
||||||
if (!INTERNAL_SYSCALL_ERROR_P (r, err))
|
if (!INTERNAL_SYSCALL_ERROR_P (r, err))
|
||||||
# endif
|
# endif
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2005-04-27 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Use <> instead
|
||||||
|
of "" includes.
|
||||||
|
|
||||||
2005-04-27 Ulrich Drepper <drepper@redhat.com>
|
2005-04-27 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* tst-cancel17.c (do_test): Add arbitrary factor to make sure
|
* tst-cancel17.c (do_test): Add arbitrary factor to make sure
|
||||||
|
|
Loading…
Reference in New Issue