summaryrefslogtreecommitdiff
path: root/util-linux/rdate.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Stephane Billiart writes:Eric Andersen2004-01-181-1/+1
| | | | | | | | | | bb_lookup_port now takes 3 parameters but rdate has not been modified accordingly and fails to compile in the current CVS version. The modification below fixes the problem. Now, RFC868 allows both UDP and TCP implementations of the time protocol so this may not work if someone defines a udp time service other than 37 but who would do that?
* Change interface to bb_lookup_host, dont try and set port inside thisGlenn L McGrath2003-12-201-1/+2
| | | | | | | | function as there is no gracefull way of handling failures. Rename bb_getport to bb_lookup_port, allow a default port to be specified so it always returns a correct value. Modify ftpgetput/rdate/wget to use the new interface. wget/rdate now use etc/services with a falback default value.
* Patch from Fillod Stephane:Eric Andersen2003-12-191-2/+8
| | | | | | | | * The "rdate.patch" file makes rdate to NOT settimeofday if the date to be set equals current date. This prevents the system from experiencing nasty time discontinuities caused by sub-second changes, with a protocol that has only over second resolution. Depending on your taste, the "fprintf(stderr..." may be removed.
* Fix rdate and ftpget/ftpput so they compile with the new xconnect.Eric Andersen2003-11-031-2/+2
| | | | | I have checked rdate. Someone should also check ftpget/ftpput to be sure they still work.
* Rework wget, the xconnect interface, and its various clientsEric Andersen2003-10-311-4/+3
| | | | | | | | | | | | | | in order to fix the problems with round robin DNS reported by Andrew Flegg: http://busybox.net/lists/busybox/2003-October/009579.html This removes the ipv6 specific xconnect dns lookups. I do not see why that would need to be special cased for ipv6 as was done, but that will just have to be tested. So IPV6 people -- please test this change! -Erik
* Patch from Steven Scholz, fix some warningsGlenn L McGrath2003-10-091-1/+2
|
* fix function prototypeEric Andersen2003-09-151-1/+1
|
* Remove final \nEric Andersen2003-09-121-1/+1
|
* Teach rdate to timeout in 10 seconds to avoid blocking foreverEric Andersen2003-09-121-0/+10
| | | | with odd or broken networking setups
* Very minor rdate updatesEric Andersen2003-07-221-1/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-4/+4
|
* A patch from Bart Visscher <magick@linux-fan.com> to add anEric Andersen2002-07-031-16/+4
| | | | | | | | | xconnect helper routine which does: -address and port resolving -tries to connect to all resolved addresses until connected -uses getaddrinfo, so works for IPv6 too This patch also ports rdate, telnet, and wget to use the new xconnect function. Thanks Bart!
* Use port 37 by default.Matt Kraai2001-10-011-6/+6
|
* Rework option handling to save space.Matt Kraai2001-07-301-19/+11
|
* Add xgethostbyname and herror_msg* functions.Matt Kraai2001-05-161-2/+1
|
* A nice patch from Larry Doolittle that adds -Wshadow andEric Andersen2001-03-211-9/+9
| | | | cleans up most of the now-revealed problems.
* Size optimization for rdate from VladimirEric Andersen2001-03-191-34/+22
|
* A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen2001-03-091-3/+3
| | | | namespace polluting things that really should be static.
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupEric Andersen2001-03-091-0/+2
| | | | | warnings with glibc 2.2 and use always use xfopen -Erik
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-3/+3
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-3/+3
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-1/+1
|
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-0/+2
| | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
* #define -> static const int. Also got rid of some big static buffers.Mark Whitley2001-01-231-1/+1
|
* Eliminate calls of the form "fprintf(stdout,". Thanks for the idea toMatt Kraai2001-01-181-1/+1
| | | | Vladimir N. Oleynik.
* Change calls to error_msg.* and strerror to use perror_msg.*.Matt Kraai2000-12-181-5/+5
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-6/+6
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Stop using TRUE and FALSE for exit status.Matt Kraai2000-12-011-4/+2
|
* Silence a warning,Eric Andersen2000-10-261-1/+1
|
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Fix a potential warningEric Andersen2000-09-211-1/+1
|
* Oops. Forgot to commit rdate.c.Eric Andersen2000-08-211-0/+135
-Erik