Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update.
	* sysdeps/unix/sysv/linux/bits/time.h (CLK_TCK): Cast sysconf result
	to __clock_t.
	* sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
	* sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
	* sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
  • Loading branch information
Ulrich Drepper committed Nov 1, 2000
1 parent 7659ff2 commit 275cdda
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,5 +1,12 @@
2000-11-01 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/bits/time.h (CLK_TCK): Cast sysconf result
to __clock_t.
* sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
* sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.

* sysdeps/unix/sysv/linux/bits/socket.h (CMSG_ALIGN): Cast result
of unary ~ to size_t.Update.

Expand Down
3 changes: 2 additions & 1 deletion sysdeps/unix/sysv/linux/alpha/bits/time.h
Expand Up @@ -36,8 +36,9 @@
# ifndef __STRICT_ANSI__
/* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
presents the real value for clock ticks per second for the system. */
# include <bits/types.h>
extern long int __sysconf (int);
# define CLK_TCK (__sysconf (2)) /* 2 is _SC_CLK_TCK */
# define CLK_TCK ((__clock_t) __sysconf (2)) /* 2 is _SC_CLK_TCK */
# endif

# ifdef __USE_POSIX199309
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/unix/sysv/linux/bits/time.h
Expand Up @@ -36,8 +36,9 @@
# ifndef __STRICT_ANSI__
/* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
presents the real value for clock ticks per second for the system. */
# include <bits/types.h>
extern long int __sysconf (int);
# define CLK_TCK (__sysconf (2)) /* 2 is _SC_CLK_TCK */
# define CLK_TCK ((__clock_t) __sysconf (2)) /* 2 is _SC_CLK_TCK */
# endif

# ifdef __USE_POSIX199309
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/unix/sysv/linux/i386/bits/time.h
Expand Up @@ -36,8 +36,9 @@
# ifndef __STRICT_ANSI__
/* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
presents the real value for clock ticks per second for the system. */
# include <bits/types.h>
extern long int __sysconf (int);
# define CLK_TCK (__sysconf (2)) /* 2 is _SC_CLK_TCK */
# define CLK_TCK ((__clock_t) __sysconf (2)) /* 2 is _SC_CLK_TCK */
# endif

# ifdef __USE_POSIX199309
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/unix/sysv/linux/ia64/bits/time.h
Expand Up @@ -36,8 +36,9 @@
# ifndef __STRICT_ANSI__
/* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
presents the real value for clock ticks per second for the system. */
# include <bits/types.h>
extern long int __sysconf (int);
# define CLK_TCK (__sysconf (2)) /* 2 is _SC_CLK_TCK */
# define CLK_TCK ((__clock_t) __sysconf (2)) /* 2 is _SC_CLK_TCK */
# endif

# ifdef __USE_POSIX199309
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/unix/sysv/linux/s390/bits/time.h
Expand Up @@ -36,8 +36,9 @@
# ifndef __STRICT_ANSI__
/* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
presents the real value for clock ticks per second for the system. */
# include <bits/types.h>
extern long int __sysconf (int);
# define CLK_TCK (__sysconf (2)) /* 2 is _SC_CLK_TCK */
# define CLK_TCK ((__clock_t) __sysconf (2)) /* 2 is _SC_CLK_TCK */
# endif

# ifdef __USE_POSIX199309
Expand Down

0 comments on commit 275cdda

Please sign in to comment.