mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2000-04-12 Andreas Jaeger <aj@suse.de> * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo. * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h> for memmem declaration. * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval to -1. * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
This commit is contained in:
11
ChangeLog
11
ChangeLog
@ -1,5 +1,16 @@
|
|||||||
|
2000-04-12 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
|
||||||
|
for memmem declaration.
|
||||||
|
|
||||||
2000-04-12 Ulrich Drepper <drepper@redhat.com>
|
2000-04-12 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
|
||||||
|
to -1.
|
||||||
|
* sysdeps/posix/clock_getres.c (clock_getres): Likewise.
|
||||||
|
|
||||||
* libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
|
* libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
|
||||||
mode is invalid.
|
mode is invalid.
|
||||||
* libio/oldiopopen.c (_IO_old_proc_open): Likewise.
|
* libio/oldiopopen.c (_IO_old_proc_open): Likewise.
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
int
|
int
|
||||||
clock_getres (clockid_t clock_id, struct timespec *res)
|
clock_getres (clockid_t clock_id, struct timespec *res)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval = -1;
|
||||||
|
|
||||||
switch (clock_id)
|
switch (clock_id)
|
||||||
{
|
{
|
||||||
@ -37,7 +37,6 @@ clock_getres (clockid_t clock_id, struct timespec *res)
|
|||||||
{
|
{
|
||||||
long int clk_tck = sysconf (_SC_CLK_TCK);
|
long int clk_tck = sysconf (_SC_CLK_TCK);
|
||||||
|
|
||||||
retval = -1;
|
|
||||||
if (__builtin_expect (clk_tck != -1, 1))
|
if (__builtin_expect (clk_tck != -1, 1))
|
||||||
{
|
{
|
||||||
/* This implementation assumes that the realtime clock has a
|
/* This implementation assumes that the realtime clock has a
|
||||||
@ -55,7 +54,6 @@ clock_getres (clockid_t clock_id, struct timespec *res)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
__set_errno (EINVAL);
|
__set_errno (EINVAL);
|
||||||
retval = -1;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ int
|
|||||||
clock_gettime (clockid_t clock_id, struct timespec *tp)
|
clock_gettime (clockid_t clock_id, struct timespec *tp)
|
||||||
{
|
{
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
int retval;
|
int retval = -1;
|
||||||
|
|
||||||
switch (clock_id)
|
switch (clock_id)
|
||||||
{
|
{
|
||||||
@ -44,7 +44,6 @@ clock_gettime (clockid_t clock_id, struct timespec *tp)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
__set_errno (EINVAL);
|
__set_errno (EINVAL);
|
||||||
retval = -1;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Function to determine processor frequency. */
|
/* Function to determine processor frequency. */
|
||||||
extern unsigned long long int __get_glockfreq (void);
|
extern unsigned long long int __get_clockfreq (void);
|
||||||
|
|
||||||
/* Clock frequency of the processor. We make it a 64-bit variable
|
/* Clock frequency of the processor. We make it a 64-bit variable
|
||||||
because some jokers are already playing with processors with more
|
because some jokers are already playing with processors with more
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user