aboutsummaryrefslogtreecommitdiffstats
path: root/src/usleep.c
Commit message (Collapse)AuthorAgeFilesLines
* src/usleep.c: GCC warnings fixedDavid Kaspar [Dee'Kej]2018-06-011-2/+2
|
* usleep: change the error message to print the full replacement commandlineZbigniew Jędrzejewski-Szmek2017-09-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also drop the argv[0] as previx — the message already includes the name of the program. $ src/usleep 1 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 1e-06" instead... $ src/usleep 10 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 1e-05" instead... $ src/usleep 20 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 2e-05" instead... $ src/usleep 100 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.0001" instead... $ src/usleep 200 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.0002" instead... $ src/usleep 300 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.0003" instead... $ src/usleep 400 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.0004" instead... $ src/usleep 1000 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.001" instead... $ src/usleep 10000 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.01" instead... $ src/usleep 100000 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.1" instead... $ src/usleep 1000000 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 1" instead... $ src/usleep 10000000 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 10" instead... For very small and very large values, printf uses scientific notation, but that seems nicer than using %.f which would always leave trailing zeroes. sleep accepts scientific notation, so things should still work. https://bugzilla.redhat.com/show_bug.cgi?id=1494168
* usleep: print deprecation warning from now onDavid Kaspar [Dee'Kej]2017-05-241-0/+3
|
* Sync FSF address with current GPLv2.Ville Skyttä2012-06-271-2/+2
|
* license cleanupBill Nottingham2007-08-031-3/+9
|
* copyright cleanupBill Nottingham2003-09-161-0/+9
|
* added --oot optionDonnie Barnes1999-07-221-0/+8
|
* minor nitDonnie Barnes1999-07-221-1/+1
|
* fixed bug oot introduced into my codeDonnie Barnes1999-07-221-6/+9
|
* added missing include <sigh>Erik Troan1999-07-221-0/+2
|
* popt'd usleep (djb made me)Erik Troan1999-07-221-21/+38
|
* fix some compiler warnings (nkbj@image.dk)Bill Nottingham1999-07-081-1/+1
|
* Initial revisionErik Troan1997-09-161-0/+37