Commit graph

35 commits

Author SHA1 Message Date
Richard P. Curnow
1a4fa3330a Rename round() function to avoid clash with builtin 2006-04-15 00:34:04 +01:00
Richard P. Curnow
fd35174928 Merge quashing of compile warnings 2006-04-15 00:32:08 +01:00
kevin lyda
2a30c56f03 Quash a load of compile warnings
Kevin Lyda writes:
I enclose the following patch which removes all but three of the warnings.  i
don't have any non-linux systems handy to test a fix to the round() function.
but having it return a double should be fine.

It doesn't actually fix anything, it just shuts up -Wall, so it's certainly an
optional type of patch.
2006-04-15 00:31:29 +01:00
Richard P. Curnow
0b8979a41e Fix version.txt to remove compile warning 2006-04-15 00:27:07 +01:00
Eric Lammerts
4771cbe8b0 Fix bogus "system time" report for 64 bit systems
Eric Lammerts writes:
This is known as Debian bug #195620, which is almost three years old!

The problem is that a uint32_t which comes out of ntohl() (but
actually represents a signed value) is directly promoted to long.
Therefore no sign extension takes place.

Patch below solves the problem. There are other places where this
needs to be fixed, but I'll leave that to a less lazy person.
2006-04-15 00:18:28 +01:00
Richard P. Curnow
1e7e7d3231 Remove volatile keyword from function declarations
This silences a lot of gcc-4 compile warnings
2006-04-15 00:10:21 +01:00
Bernhard Weiss
3e7781fdaf Fix linux_io.h for MIPS
Bernard Weiss writes:
I managed to compile the chrony 1.21 package for the MIPS architecture.
For the package to compile I had to add the following lines to io_linux.h:

[patch]

These values are taken from the ioctl.h file of linux 2.4.30 for the MIPS arch
(__ASM_MIPS_IOCTL_H).
2006-04-15 00:07:43 +01:00
NAKAMURA Takumi
acd99f25ef FreeBSD support
NAKAMURA Takumi writes:

I tried to compile chrony-1.21 on FreeBSD 4.8-RELEASE & 5.4-RELEASE.
I modify two files, configure, sysinc.h.

configure:
    add label "FreeBSD-i386" to "BSD/386" line
sysincl.h:
    1. FreeBSD obsoletes alloca.h
    2. FreeBSD use stdlib.h instead of malloc.h, to use malloc(), free()

Attached file includes the above modifications.
2006-04-15 00:03:30 +01:00
Paul Elliott
91a91d1642 Flush chronyc output buffers.
The following is a patch to chronyc that causes it
to flush the buffers to stderr and stdout after
executing each command. This is needed if
you are controling chronyc from a program (i.e. chronyc's
input and output descriptors are pipes which are being
written/read by another program) and
you do not want to block waiting for chronyc response
which is trapped in a buffer!
2006-01-29 23:31:56 +00:00
Richard P. Curnow
29223ea476 Add a .gitignore file 2006-01-29 23:29:01 +00:00
Richard P. Curnow
bcae93d321 manpage improvements.
Try to address this Debian bug:
  Bug#345034: chrony: man pages refer to wrong sections
2006-01-29 23:23:52 +00:00
Richard P. Curnow
383a36371f 1st attempt at a git-compatible make_release script 2006-01-22 23:54:19 +00:00
Richard P. Curnow
fa83311903 Tidy up io_linux.h so unknown architecture result in compile-time error again 2006-01-22 23:38:43 +00:00
Richard P. Curnow
f5c3a01aee More architectures in io_linux.h (John Hasler) 2006-01-22 23:36:16 +00:00
Richard P. Curnow
d2a7dc2347 Fix gcc-4 compilation of addrfilt.c
John Hasler sent in a patch to do this (which still wouldn't make it compile
for me).  This reminded me that I had tackled this myself when my distro moved
to gcc-4 a while back.  It turned out I had never even checked in the file from
the working copy I was using (!).  Anyway, here it is now.
2006-01-19 21:56:19 +00:00
Richard Curnow
3a8f93792b Fix potential buffer overflow problem (Martin Simmons) 2006-01-19 21:37:14 +00:00
Richard Curnow
692d2799e4 More build_kit fixes 2006-01-19 21:37:14 +00:00
Richard Curnow
c928cd857b First stab at moving build_kit to release versioning based on tla 2006-01-19 21:37:14 +00:00
Richard Curnow
77da5b6144 RTC usage bails out cleanly if accessing it goes wrong (e.g. HPET without generic RTC emulation) 2006-01-19 21:37:13 +00:00
Richard Curnow
13ace061fa Further fixes to avoid use of linux kernel header files 2006-01-19 21:37:13 +00:00
Richard Curnow
29953d6ddb Remove dependence on <linux/spinlock.h>
Use local definitions for the ioctl codes needed to access the RTC.

Note : not tested.  Some architectures not handled yet.
2006-01-19 21:37:13 +00:00
Richard P. Curnow
6ff561dd23 Pick up tla version.txt 2006-01-19 21:37:13 +00:00
richard
22a309efe3 Output to syslog more debugging information at startup 2006-01-19 21:37:13 +00:00
richard
9a7334a518 Fix snprintf buffer size bug 2006-01-19 21:37:13 +00:00
richard
73374497f2 Add usage function and -h/--help 2006-01-19 21:37:13 +00:00
richard
6672f045c2 Update copyright to 2003 2006-01-19 21:37:13 +00:00
richard
5a775504f1 Remove msg about SH-5 (backed out) 2006-01-19 21:37:13 +00:00
richard
77303c285f Replace sprintf by snprintf (John Hasler) 2006-01-19 21:37:13 +00:00
richard
7812181e74 Fix install rule if chronyd file is busy (Juliusz Chroboczek) 2006-01-19 21:37:13 +00:00
richard
e3dd17c763 Fix initstepslew with no sources specified (John Hasler) 2006-01-19 21:37:13 +00:00
richard
712132f635 Fix for chrony.spec on SuSE (Paul Elliot) 2006-01-19 21:37:13 +00:00
richard
b0993ad9bd Tentative support for Linux 2.5/6/7/8 2006-01-19 21:37:13 +00:00
richard
7e978e8b55 Back out SH-5 denorms fix (now in kernel) 2006-01-19 21:37:12 +00:00
richard
5164a9e13c Recognize kernel versions 2.[678] 2006-01-19 21:37:12 +00:00
Richard P. Curnow
8884034104 Equivalent to V1.19.99.1
This is a verbatim copy of the files at that stage of the repository that was
built from the CVS import.  It allows future development to see a bit of recent
history, but without carrying around the baggage going back to 1997.  If that
is really required, git grafts can be used.
2006-01-19 21:34:28 +00:00