This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Use __syscall_slong_t in bits/timex.h
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 17 May 2012 05:42:36 -0700
- Subject: PATCH: Use __syscall_slong_t in bits/timex.h
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
X32 use the same timex system call as x86-64. This patch uses
__syscall_slong_t in bits/timex.h. Tested on Linux/x86-64. OK to
install?
Thanks.
H.J.
----
* sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
(timex): Use __syscall_slong_t.
diff --git a/sysdeps/unix/sysv/linux/bits/timex.h b/sysdeps/unix/sysv/linux/bits/timex.h
index 6d494b1..0fe6660 100644
--- a/sysdeps/unix/sysv/linux/bits/timex.h
+++ b/sysdeps/unix/sysv/linux/bits/timex.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-1997,1999,2007,2009,2011 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -18,32 +18,53 @@
#ifndef _BITS_TIMEX_H
#define _BITS_TIMEX_H 1
+#include <bits/types.h>
+
/* These definitions from linux/timex.h as of 2.6.30. */
struct timex
{
- unsigned int modes; /* mode selector */
- long int offset; /* time offset (usec) */
- long int freq; /* frequency offset (scaled ppm) */
- long int maxerror; /* maximum error (usec) */
- long int esterror; /* estimated error (usec) */
- int status; /* clock command/status */
- long int constant; /* pll time constant */
- long int precision; /* clock precision (usec) (read only) */
- long int tolerance; /* clock frequency tolerance (ppm) (read only) */
- struct timeval time; /* (read only) */
- long int tick; /* (modified) usecs between clock ticks */
-
- long int ppsfreq; /* pps frequency (scaled ppm) (ro) */
- long int jitter; /* pps jitter (us) (ro) */
- int shift; /* interval duration (s) (shift) (ro) */
- long int stabil; /* pps stability (scaled ppm) (ro) */
- long int jitcnt; /* jitter limit exceeded (ro) */
- long int calcnt; /* calibration intervals (ro) */
- long int errcnt; /* calibration errors (ro) */
- long int stbcnt; /* stability limit exceeded (ro) */
-
- int tai; /* TAI offset (ro) */
+ /* mode selector */
+ unsigned int modes;
+ /* time offset (usec) */
+ __syscall_slong_t offset;
+ /* frequency offset (scaled ppm) */
+ __syscall_slong_t freq;
+ /* maximum error (usec) */
+ __syscall_slong_t maxerror;
+ /* estimated error (usec) */
+ __syscall_slong_t esterror;
+ /* clock command/status */
+ int status;
+ /* pll time constant */
+ __syscall_slong_t constant;
+ /* clock precision (usec) (read only) */
+ __syscall_slong_t precision;
+ /* clock frequency tolerance (ppm) (read only) */
+ __syscall_slong_t tolerance;
+ /* (read only) */
+ struct timeval time;
+ /* (modified) usecs between clock ticks */
+ __syscall_slong_t tick;
+ /* pps frequency (scaled ppm) (ro) */
+ __syscall_slong_t ppsfreq;
+ /* pps jitter (us) (ro) */
+ __syscall_slong_t jitter;
+ /* interval duration (s) (shift) (ro) */
+ int shift;
+ /* pps stability (scaled ppm) (ro) */
+ __syscall_slong_t stabil;
+ /* jitter limit exceeded (ro) */
+ __syscall_slong_t jitcnt;
+ /* calibration intervals (ro) */
+ __syscall_slong_t calcnt;
+ /* calibration errors (ro) */
+ __syscall_slong_t errcnt;
+ /* stability limit exceeded (ro) */
+ __syscall_slong_t stbcnt;
+
+ /* TAI offset (ro) */
+ int tai;
/* ??? */
int :32; int :32; int :32; int :32;