Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | When system calls indicate an error they return -1, not some arbitrary | 2019-06-28 | 1 | -2/+2 | |
| | | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future. | ||||
* | Unifdef TM_GMTOFF TM_ZONE USG_COMPAT ALTZONE to make the code more readable. | 2019-05-12 | 1 | -30/+7 | |
| | | | | | | No binary change when compiled with -g0. Note that wcsftime.c did not even compile without TM_ZONE. OK millert@ | ||||
* | gmtime_r() should return NULL on failure, not the struct tm * result | 2016-09-19 | 1 | -3/+2 | |
| | | | | parameter that was passed in. From Carlin Bingham. | ||||
* | Remove doaccess variable and access(2) call since this interfers with | 2016-03-14 | 1 | -11/+2 | |
| | | | | | | | | | | | | | | | | applications like zdump(8) because pledge(2) doesn't allow access(2) to /usr/share/zoneinfo. millert@ better described why this call can go away: "This looks like an attempt to do access checks based on the real uid instead of the effective uid. Basically for setuid programs we don't want to allow a user to set TZ to a path they should not be able to otherwise access. However, we already have a check for issetugid() above so I think the doaccess bits can just be removed and we can rely on open()." After discussion with tb@, deraadt@ and millert@, this was also OK'ed by them | ||||
* | Remove calloc cast, give sizeof parens. No functional change. | 2015-12-12 | 1 | -2/+2 | |
| | |||||
* | delete old lint ARGSUSED comments | 2015-11-01 | 1 | -2/+1 | |
| | |||||
* | Move #includes from private.h to the .c files that need them, getting rid of | 2015-10-24 | 1 | -2/+7 | |
| | | | | | | several. Switch from FILENAME_MAX to PATH_MAX (it's for open(), not fopen()). ok deraadt@ tedu@ krw@ | ||||
* | Don't wrap initialized variables: binutils appears to be mishandling them | 2015-09-19 | 1 | -1/+3 | |
| | | | | | | on arm and m88k problems with optind observed by jsg@ | ||||
* | Wrap <time.h> so that internal calls go direct and symbols not in C99 are weak | 2015-09-12 | 1 | -1/+17 | |
| | | | | | | Add prototypes to localtime.c for offtime(), time2posix(), posix2time() to reduce noise with -Wmissing-prototypes Eliminate unnecessary #includes | ||||
* | Remove obsolete timezone() function. | 2015-04-07 | 1 | -2/+2 | |
| | | | | Add timezone and daylight symbols for XSI compatibility. | ||||
* | sprinkle braces around multi line statements | 2015-02-16 | 1 | -11/+19 | |
| | |||||
* | pull scopes without conditionals up into enclosing block | 2015-02-16 | 1 | -38/+29 | |
| | |||||
* | knf indents to give me a fighting chance at differentiating new blocks | 2015-02-16 | 1 | -169/+178 | |
| | | | | from continuation lines, of which there are many | ||||
* | drop an ansi bomb on the function definitions | 2015-02-16 | 1 | -127/+46 | |
| | |||||
* | remove CMU gtime | 2015-02-10 | 1 | -21/+1 | |
| | |||||
* | it is not strictly necessary to cast the "return value" of free() to void. | 2015-02-09 | 1 | -16/+15 | |
| | |||||
* | - register int idays; /* unsigned would be so 2003 */ | 2015-02-09 | 1 | -107/+107 | |
| | | | | | | + int idays; /* unsigned would be so 2003 */ register is so 1973 | ||||
* | always define ALL_STATE (which, contrary to the name is not about all | 2015-02-09 | 1 | -42/+1 | |
| | | | | states, but rather heap allocating the state) and unifdef the rest | ||||
* | the one true type of time_t is a signed integer | 2015-02-09 | 1 | -35/+11 | |
| | |||||
* | remove INITIALIZE macro and do it the hard way. | 2015-02-09 | 1 | -3/+3 | |
| | |||||
* | move include lines around a bit | 2015-02-09 | 1 | -3/+3 | |
| | |||||
* | replace homegrown is_digit with correct calls to isdigit() | 2015-02-09 | 1 | -6/+6 | |
| | |||||
* | this removes just a few ifdef checks for things that should always be enabled, | 2015-02-09 | 1 | -13/+2 | |
| | | | | | | | | | and which we definitely don't want to workaround. no change in the compiled code (yet). some of these, like the first chunk are plain silly. the compiler used to compile asctime has nothing to do with the format strings strftime should support. ok deraadt | ||||
* | add some prototypes, casts, includes, parenthesis, and whatnot to | 2013-04-17 | 1 | -4/+4 | |
| | | | | silence some warnings. | ||||
* | Update to tzcode2011g from elsie.nci.nih.gov. | 2011-04-25 | 1 | -55/+75 | |
| | |||||
* | replace a large stack buffer with a malloc call, with help from matthew. | 2010-11-30 | 1 | -25/+34 | |
| | | | | | ok deraadt [passed upstream to the tz list as well] | ||||
* | update to tzcode2010k from elsie.nci.nih.gov; OK miod@ | 2010-08-23 | 1 | -23/+24 | |
| | |||||
* | Update to tzcode 2008a from elsie.nci.nih.gov | 2008-03-31 | 1 | -11/+18 | |
| | |||||
* | update to tzcode2007j from elsie.nci.nih.gov; mostly ANSIfication | 2007-12-29 | 1 | -66/+86 | |
| | |||||
* | Update to tzcode2007a. This adds support for 64bit time_t in case | 2007-02-06 | 1 | -44/+187 | |
| | | | | | | | | | we need it in the future. All of our platforms currently have 32bit time_t types. This also extends the timezone data file format to support both 32bit and 64bit data. The 64bit data is located after the 32bit data so binaries linked with the older tzcode simply won't look at it. A version field in the file header is used to determine whether the data file is the old or extended format. OK miod@ | ||||
* | Update to tzcode2006a; primarily just cast and const fixes. | 2006-02-18 | 1 | -9/+7 | |
| | |||||
* | Re-add the change from tzcode2005c, this time with an added bounds | 2005-08-09 | 1 | -20/+46 | |
| | | | | check from Arthur David Olson that fixes a possible infinite loop. | ||||
* | Back out a change from tzcode2005c that can cause an infinite loop in mktime(). | 2005-08-09 | 1 | -42/+20 | |
| | |||||
* | Do not ignore return value of localsub() in localtime_r() | 2005-08-09 | 1 | -2/+2 | |
| | |||||
* | zap remaining rcsid. | 2005-08-08 | 1 | -5/+1 | |
| | | | | | | Kill old files that are no longer compiled. okay theo | ||||
* | Update to tzcode2005j. | 2005-07-05 | 1 | -108/+277 | |
| | |||||
* | Update to tzcode2004e from elsie.nci.nih.gov | 2004-10-18 | 1 | -18/+54 | |
| | |||||
* | merge in tzcode2004a | 2004-06-28 | 1 | -4/+27 | |
| | |||||
* | Update to tzcode2003c from elsie.nci.nih.gov | 2003-10-06 | 1 | -4/+4 | |
| | | | | | Fixes a pasto and implements better int oflow checking (doesn't rely on unspecified behavior). | ||||
* | a few more strlcy; ok from beck & ho | 2003-03-13 | 1 | -6/+6 | |
| | |||||
* | Minor updates from tzcode2002c | 2002-04-04 | 1 | -7/+11 | |
| | |||||
* | use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok. | 2001-06-27 | 1 | -6/+4 | |
| | |||||
* | sync with ftp://elsie.nci.nih.gov/pub/tzcode2000c.tar.gz, millert@ ok | 2000-04-16 | 1 | -4/+15 | |
| | |||||
* | _THREAD_PRIVATE_* macros changed | 2000-01-06 | 1 | -3/+3 | |
| | |||||
* | Back out rev 1.7. PCTS 151-2 still passes, and mktime() now correctly returns | 1999-03-09 | 1 | -8/+1 | |
| | | | | -1 for calendar times that cannot be represented. | ||||
* | typo | 1999-02-02 | 1 | -2/+2 | |
| | |||||
* | sync with tzcode1999a | 1999-02-01 | 1 | -24/+12 | |
| | |||||
* | Add thread-safety to libc, so that libc_r will build (on i386 at least). | 1998-11-20 | 1 | -18/+83 | |
| | | | | | | | | | | | | | All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO | ||||
* | be... slightly more permissive.. but i think this is right, i looked at it for 5 minutes | 1998-07-11 | 1 | -4/+4 | |
| | |||||
* | do not let :relative paths through (how did i miss this before) | 1998-07-11 | 1 | -2/+2 | |
| |