Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/coreutils/date.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/coreutils/date.c
r2725 r3232 20 20 much as possible, missed out a lot of bounds checking */ 21 21 22 //applet:IF_DATE(APPLET(date, _BB_DIR_BIN, _BB_SUID_DROP))22 //applet:IF_DATE(APPLET(date, BB_DIR_BIN, BB_SUID_DROP)) 23 23 24 24 //kbuild:lib-$(CONFIG_DATE) += date.o … … 43 43 //config: bool "Support %[num]N nanosecond format specifier" 44 44 //config: default n 45 //config: depends on DATE && PLATFORM_LINUX # syscall(__NR_clock_gettime) 45 //config: depends on DATE # syscall(__NR_clock_gettime) 46 //config: select PLATFORM_LINUX 46 47 //config: help 47 48 //config: Support %[num]N format specifier. Adds ~250 bytes of code. … … 98 99 //usage:#define date_full_usage "\n\n" 99 100 //usage: "Display time (using +FMT), or set time\n" 100 //usage: "\nOptions:"101 101 //usage: IF_NOT_LONG_OPTS( 102 102 //usage: "\n [-s] TIME Set time to TIME" … … 130 130 //usage: "\n YYYY-MM-DD hh:mm[:ss]" 131 131 //usage: "\n [[[[[YY]YY]MM]DD]hh]mm[.ss]" 132 //usage: IF_FEATURE_DATE_COMPAT( 133 //usage: "\n 'date TIME' form accepts MMDDhhmm[[YY]YY][.ss] instead" 134 //usage: ) 132 135 //usage: 133 136 //usage:#define date_example_usage … … 251 254 #if ENABLE_FEATURE_DATE_NANO 252 255 ts.tv_nsec = statbuf.st_mtim.tv_nsec; 253 /* some toolchains use .st_mtimensec instead of st_mtim.tv_nsec */ 256 /* Some toolchains use .st_mtimensec instead of st_mtim.tv_nsec. 257 * If you need #define _SVID_SOURCE 1 to enable st_mtim.tv_nsec, 258 * drop a mail to project mailing list please 259 */ 254 260 #endif 255 261 } else { … … 280 286 281 287 /* Correct any day of week and day of year etc. fields */ 282 tm_time.tm_isdst = -1; /* Be sure to recheck dst */ 288 /* Be sure to recheck dst (but not if date is time_t format) */ 289 if (date_str[0] != '@') 290 tm_time.tm_isdst = -1; 283 291 ts.tv_sec = validate_tm_time(date_str, &tm_time); 284 292
Note:
See TracChangeset
for help on using the changeset viewer.