aboutsummaryrefslogtreecommitdiff
path: root/util-linux/rdate.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* style cleanup: return(a) -> return a, part 1vda2006-11-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* xconnect is non-conforming to "xfunc like libc" rule. Fixingvda2006-10-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16440 69ca8d6d-28ef-0310-b511-8ec308f3f277
* eject: -T fixvda2006-10-051-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16314 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getopt_ulflags -> getopt32.vda2006-10-031-2/+2
| | | | | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit. git-svn-id: svn://busybox.net/trunk/busybox@16305 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - No options should set the current system time.aldot2006-06-031-4/+4
| | | | | | | | | | | | | | | | Shaun Jackman writes: A bug introduced in svn 11946 broke rdate. It no longer sets the current system time when no options are specified. The options have the opposite sense from what one might think, and, oddly enough, -ps is intentionally a no-op. Quoth rdate(8) from the BSD System Manager's Manual: -p Do not set, just print the remote time -s Do not print the time. git-svn-id: svn://busybox.net/trunk/busybox@15269 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Consolidate #include <sys/time.h> so libbb.h does it.landley2006-05-271-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15203 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_opt_complementally for rdate applet. Add losed record to ↵vodz2005-10-281-4/+3
| | | | | | util-linux/Makefile.in for switch_root applet git-svn-id: svn://busybox.net/trunk/busybox@11960 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rob Sullivan sent in some cleanups, which I beat on slightly.landley2005-10-281-48/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stephane Billiart writes: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? git-svn-id: svn://busybox.net/trunk/busybox@8314 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change interface to bb_lookup_host, dont try and set port inside thisbug12003-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. git-svn-id: svn://busybox.net/trunk/busybox@8140 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Fillod Stephane: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. git-svn-id: svn://busybox.net/trunk/busybox@8127 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix rdate and ftpget/ftpput so they compile with the new xconnect.andersen2003-11-031-2/+2
| | | | | | | | I have checked rdate. Someone should also check ftpget/ftpput to be sure they still work. git-svn-id: svn://busybox.net/trunk/busybox@7765 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rework wget, the xconnect interface, and its various clientsandersen2003-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 git-svn-id: svn://busybox.net/trunk/busybox@7735 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Steven Scholz, fix some warningsbug12003-10-091-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7625 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix function prototypeandersen2003-09-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7525 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove final \nandersen2003-09-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7491 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Teach rdate to timeout in 10 seconds to avoid blocking foreverandersen2003-09-121-0/+10
| | | | | | | with odd or broken networking setups git-svn-id: svn://busybox.net/trunk/busybox@7482 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Very minor rdate updatesandersen2003-07-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7086 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Bart Visscher <magick@linux-fan.com> to add anandersen2002-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! git-svn-id: svn://busybox.net/trunk/busybox@5004 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use port 37 by default.kraai2001-10-011-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3460 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rework option handling to save space.kraai2001-07-301-19/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3161 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add xgethostbyname and herror_msg* functions.kraai2001-05-161-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2654 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A nice patch from Larry Doolittle that adds -Wshadow andandersen2001-03-211-9/+9
| | | | | | | cleans up most of the now-revealed problems. git-svn-id: svn://busybox.net/trunk/busybox@2177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Size optimization for rdate from Vladimirandersen2001-03-191-34/+22
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2150 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A cleanup patch from Jeff Garzik to static-ify a number ofandersen2001-03-091-3/+3
| | | | | | | namespace polluting things that really should be static. git-svn-id: svn://busybox.net/trunk/busybox@2027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupandersen2001-03-091-0/+2
| | | | | | | | warnings with glibc 2.2 and use always use xfopen -Erik git-svn-id: svn://busybox.net/trunk/busybox@2021 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-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. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-311-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix header file usage -- there were many unnecessary header files included inandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-231-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate calls of the form "fprintf(stdout,". Thanks for the idea tokraai2001-01-181-1/+1
| | | | | | | Vladimir N. Oleynik. git-svn-id: svn://busybox.net/trunk/busybox@1616 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change calls to error_msg.* and strerror to use perror_msg.*.kraai2000-12-181-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1466 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-6/+6
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stop using TRUE and FALSE for exit status.kraai2000-12-011-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Silence a warning,andersen2000-10-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1249 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a potential warningandersen2000-09-211-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1086 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Oops. Forgot to commit rdate.c.andersen2000-08-211-0/+135
-Erik git-svn-id: svn://busybox.net/trunk/busybox@973 69ca8d6d-28ef-0310-b511-8ec308f3f277