summaryrefslogtreecommitdiffstats
path: root/lib/libc/time/strftime.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete LOCALE_HOME code we have never used (and never will).millert2020-07-161-146/+1
| | | | Upstream removed it in 2004. From Jan Stary.
* two more syscall == -1 checksderaadt2019-06-291-4/+4
|
* Unifdef TM_GMTOFF TM_ZONE USG_COMPAT ALTZONE to make the code more readable.schwarze2019-05-121-42/+5
| | | | | | No binary change when compiled with -g0. Note that wcsftime.c did not even compile without TM_ZONE. OK millert@
* Delete casts to off_t and size_t that are implied by assignmentsguenther2016-09-211-2/+2
| | | | | | | or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
* Simplify allocation logic based on free and realloc's behavior on NULL.mmcc2015-12-251-4/+3
| | | | ok tedu@
* Move #includes from private.h to the .c files that need them, getting rid ofguenther2015-10-241-2/+3
| | | | | | several. Switch from FILENAME_MAX to PATH_MAX (it's for open(), not fopen()). ok deraadt@ tedu@ krw@
* Wrap <time.h> so that internal calls go direct and symbols not in C99 are weakguenther2015-09-121-1/+2
| | | | | | Add prototypes to localtime.c for offtime(), time2posix(), posix2time() to reduce noise with -Wmissing-prototypes Eliminate unnecessary #includes
* drop an ansi bomb on the function definitionstedu2015-02-161-28/+6
|
* - register int idays; /* unsigned would be so 2003 */tedu2015-02-091-3/+3
| | | | | | + int idays; /* unsigned would be so 2003 */ register is so 1973
* the one true type of time_t is a signed integertedu2015-02-091-6/+3
|
* move include lines around a bittedu2015-02-091-5/+5
|
* enh@google reported a warning in crufty y2k code. just delete it.tedu2014-05-061-21/+1
| | | | ok deraadt stsp
* Update to tzcode2012f. Now that tzcode is in git there are no moemillert2012-09-131-4/+1
| | | | SCCS ids. No actual code changes.
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-9/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* Pass a pointer to warn2 so the warn2 == IN_ALL would not be anmillert2008-10-311-2/+2
| | | | always-false condition. From FreeBSD (delphij).
* update to tzcode2007j from elsie.nci.nih.gov; mostly ANSIficationmillert2007-12-291-8/+8
|
* Check snprintf(3) return value for error or truncation.moritz2007-09-171-3/+8
| | | | | | Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@
* zap remaining rcsid.espie2005-08-081-5/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* Update to tzcode2005j.millert2005-07-051-54/+74
|
* Update to tzcode2004e from elsie.nci.nih.govmillert2004-10-181-15/+38
|
* mop up some more 3/4 license issuesderaadt2003-06-041-6/+2
|
* a few more strlcy; ok from beck & hoderaadt2003-03-131-2/+2
|
* Update license based on lite2 versionmillert2002-06-191-14/+30
|
* oops, major oops; moritz@jodeit.orgderaadt2002-05-261-2/+3
|
* remaining easy snprintf conversionsderaadt2002-05-251-9/+9
|
* Minor updates from tzcode2002cmillert2002-04-041-9/+7
|
* Update to tzcode2000f from ftp://elsie.nci.nih.gov/pub/millert2000-09-061-13/+70
|
* sync with ftp://elsie.nci.nih.gov/pub/tzcode2000c.tar.gz, millert@ okd2000-04-161-12/+9
|
* realloc repairderaadt1998-08-141-3/+9
|
* do the right thing if maxsiz == 0millert1998-07-061-2/+3
|
* Always NUL terminate buf even if there was not enough space tomillert1998-07-061-2/+4
| | | | | | | write the whole time string. XPG4.2 says "the contents of the array are indeterminate" in this case so this is allowed, though obviously you can't rely on this behavior if you care about portability...
* Changed %c in the builtin C locale from "%D %X" to the moremillert1998-02-141-5/+5
| | | | common "%a %b %d %H:%M:%S %Y". This fixes problems with calendar(1).
* use tzcode strftime(3) as it is kept up to date.millert1998-01-191-0/+666