summaryrefslogtreecommitdiff
path: root/coreutils/date.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Walter Harms added -D to date, and I did a code cleanup while I was in theRob Landley2006-02-211-85/+41
| | | | area. Probably broke something...
* just whitespaceTim Riker2006-01-251-7/+7
|
* RESERVE_CONFIG_BUFFER --> bb_common_bufsiz1"Vladimir N. Oleynik"2005-10-151-4/+2
|
* - new bb_opt_complementally syntax, use [-:?] only - 'free' chars"Vladimir N. Oleynik"2005-10-141-1/+1
| | | | | - new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets - use bb_default_error_retval for env applet
* remove 1 CR, correct strange bb_opt_complementally, add #if 0 and ↵"Vladimir N. Oleynik"2005-10-121-32/+33
| | | | XXX-comment: pleace examine this\!
* - use complementally '!' to '?' - 'ask' is best 'free' char for this."Vladimir N. Oleynik"2005-10-111-1/+1
| | | | | - more long opt compatibility, can set flag for long opt struct now - more logic: check opt-depend requires and global requires, special for 'id' and 'start-stop-daemon' applets.
* Cleanup patch by Bernhard Fischer, removing unnecessary includes ofRob Landley2005-09-111-1/+0
| | | | getopt.h, whitespace changes, typos, etc.
* 1) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"2005-09-051-3/+1
| | | | | 2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
* Shaun Jackman submitted a patch converting an allocation to useRob Landley2005-05-281-5/+7
| | | | | CONFIG_RESERVE_BUFFER. (Rob Landley removed an #ifdef, per discussion on the list.)
* change the hardcoded error constant (0x80000000UL) to a nice flexible define ↵Mike Frysinger2005-05-111-1/+1
| | | | (BB_GETOPT_ERROR)
* Patch from David Daney:Eric Andersen2004-10-111-0/+9
| | | | | | | | It seems that date -s MMDDHHMMYYYY.ss will ignore the .ss part. This patch tries to fix the problem. David Daney.
* Larry Doolittle writes:Eric Andersen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
* Fix non standard 'date -R' formattingEric Andersen2004-04-061-4/+4
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-2/+2
|
* Add the -r option, patch from Rob with some help from myself.Glenn L McGrath2004-02-171-4/+11
|
* Woops, im getting ahead of myself, we dont have the -r (refernece)Glenn L McGrath2004-02-171-2/+4
| | | | option yet
* define option names to be clearer, simplify nested if statements, removeGlenn L McGrath2004-02-171-30/+29
| | | | un-needed if statement, minor indenting change
* Set the tm_isdst flag to -1 before calling mktime(). Otherwise, the currentManuel Novoa III2003-07-231-0/+1
| | | | timezone setting is used for the new date.
* last_patch89 from vodz:Eric Andersen2003-06-201-37/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manuel, I rewrite bb_getopt_ulflags() function for more universal usage. My version support now: - options with arguments (optional arg as GNU extension also) - complementaly and/or incomplementaly and/or incongruously and/or list options - long_opt (all applets may have long option, add supporting is trivial) This realisation full compatibile from your version. Code size grow 480 bytes, but only coreutils/* over compensate this size after using new function. Last patch reduced over 800 bytes and not full applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate trivial addition support long_opt with usage new bb_getopt_ulflags(). Complementaly and/or incomplementaly and/or incongruously and/or list options logic is not trivial, but new "cut" and "grep" applets using this logic for examples with full demostrating. New "grep" applet reduced over 300 bytes. Mark, Also. I removed bug from "grep" applet. $ echo a b | busybox grep -e a b a b a b But right is printing one only. --w vodz
* Major coreutils update.Manuel Novoa III2003-03-191-11/+11
|
* Run through indent, fix commentsGlenn L McGrath2002-08-231-126/+112
|
* - updated a few copyright/left file headersRobert Griebl2002-08-051-0/+2
| | | | - documented most of my 0.61 changes in the ChangeLog
* Added the -I (isofmt) options to date, which comes in handy for scriptsRobert Griebl2002-07-301-7/+55
| | | | (this is a confiureable option)
* Don't use pointless GNU-ismsEric Andersen2002-06-151-2/+2
|
* Patch from larry to fix some grammar errors.Eric Andersen2001-05-231-1/+1
|
* Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.cMatt Kraai2001-05-161-1/+1
| | | | by Larry Doolittle.
* Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen2001-04-251-4/+0
| | | | | | | This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik
* A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen2001-03-091-2/+2
| | | | namespace polluting things that really should be static.
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-5/+5
| | | | | | 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-4/+4
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-0/+1
| | | | | | | 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
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-7/+7
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Stop using TRUE and FALSE for exit status.Matt Kraai2000-12-011-2/+2
|
* Apply a patch from Larry Doolittle <ldoolitt@recycle.lbl.gov> to closeEric Andersen2000-11-291-62/+46
| | | | | | bug 1069. This shaves about 100 bytes from the executable, and about 200 bytes of heap usage. Also document the "-d" option in the usage message.
* "I will always compile before I commit."Eric Andersen2000-11-171-21/+30
| | | | | | "I will always compile before I commit." "I will always compile before I commit." -Erik
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Some #include updates.Eric Andersen2000-08-101-0/+1
| | | | -Erik
* The result of getopt() is "int" and should be treated as suchPavel Roskin2000-07-171-1/+1
|
* Extract usage information into a separate file.Matt Kraai2000-07-161-11/+0
|
* Getopt'ed by Marc Nijdam <marc_nijdam@hp.com>Eric Andersen2000-07-141-40/+30
| | | | -Erik
* Always report the applet name when doing error reporting.Matt Kraai2000-07-121-5/+5
|
* Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen2000-06-191-2/+1
| | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
* Fix 'date -u'Eric Andersen2000-06-061-1/+1
| | | | -Erik
* Some updates for better portability.Erik Andersen2000-05-161-2/+2
| | | | -Erik
* More Doc updates. cmdedit and more termio fixes.Erik Andersen2000-04-211-6/+8
|
* The new tar for busybox is now done, and works just fineErik Andersen2000-03-241-16/+7
| | | | | for extracting files. Creation of tarballs is next... -Erik
* My latest ramblings.Erik Andersen2000-03-231-2/+2
| | | | -Erik
* * all mallocs now use xmalloc (and so are OOM error safe), andErik Andersen2000-03-211-1/+1
| | | | | | the common error handling saves a few bytes. Thanks to Bob Tinsley <bob@earthrise.demon.co.uk> for the patch. -Erik
* Some formatting updates (ran the code through indent)Erik Andersen2000-02-081-228/+223
| | | | -Erik
* A few minor updates. ;-)Erik Andersen2000-02-071-7/+10
| | | | | | Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik