Bug#860559: timex.offset unit ambiguity

2017-04-19 Thread Zefram
Michael Kerrisk (man-pages) wrote:
>fixed in upstream quite a long time back (2014).

Ah, cool.  The version at
 is fine.

-zefram



Bug#860559: timex.offset unit ambiguity

2017-04-19 Thread Michael Kerrisk (man-pages)
On 04/18/2017 06:31 PM, Zefram wrote:
> Package: manpages-dev
> Version: 3.74-1
> Severity: minor
> 
> adjtimex(2) says:
> 
> #  struct timex {
> #  int modes;   /* mode selector */
> #  long offset; /* time offset (usec) */
> 
> In fact the "offset" field is not necessarily in microseconds.  It is
> in either microseconds or nanoseconds, depending on the STA_NANO status
> flag, just like timex.time.tv_usec.

You are looking at a rather old version of man-pages. This was
fixed in upstream quite a long time back (2014). Take a look at
http://man7.org/linux-man-pages/man2/adjtimex.2.html ; does that
version match what you expect?

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



Bug#860559: timex.offset unit ambiguity

2017-04-18 Thread Zefram
Package: manpages-dev
Version: 3.74-1
Severity: minor

adjtimex(2) says:

#  struct timex {
#  int modes;   /* mode selector */
#  long offset; /* time offset (usec) */

In fact the "offset" field is not necessarily in microseconds.  It is
in either microseconds or nanoseconds, depending on the STA_NANO status
flag, just like timex.time.tv_usec.

-zefram