summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime
Commit message (Collapse)AuthorAgeFilesLines
* Replace memory leaking instances of realloc with non-leaking reallocf.imp1998-09-162-4/+9
| | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but...
* Change return type of strptime from const char* to char*.dt1998-09-122-5/+5
| | | | const char* was wrong and nonstandard.
* Fixed printf format errors. Don't assume so many things about time_t.bde1998-06-301-20/+16
| | | | | | Obtained from: partial merge of ADO version tzcode96h (was fully merged in 1.10 but backed out in 1.11; the FreeBSD code for %s was earlier, prettier but buggier).
* Fix grammar, "null" -> "NUL"danny1998-06-101-5/+5
|
* Remove 'of type long' from a sentence talking about four 4-byte valuesjb1998-05-101-2/+1
| | | | because that is wrong on alpha.
* Make asctime_r static if !_THREAD_SAFE to prevent namespace pollution andache1998-04-251-0/+7
| | | | prototype mismatch
* Add a #ifdef _THREAD_SAFE around ctime_rphk1998-04-201-0/+2
|
* Describe timegm()ache1998-04-202-5/+16
|
* ctime_r and asctime_r are not implemented.phk1998-04-192-3/+21
| | | | | | | | prototypes in time.h do not match POSIX. PR: 6345 Reviewed by: phk Submitted by: Dmitry Khrustalev <dima@xyzzy.machaon.ru>
* Change in name of the static initializer define.jb1998-04-041-4/+4
|
* Submitted by: Jeremy Allison (jallison@whistle.com)julian1998-02-181-3/+5
| | | | | | fix a slight confusion about which draft of threads we are supporting. this allows something as big and ugly as samba to be compiled with libc_r and still work! our user-level pthreads seems amazingly robust!
* Typo.helbig1997-10-261-1/+1
|
* Sorted lists.bde1997-10-211-4/+3
|
* Removed the subdirectory paths from the definitions of MAN[1-9]. Theybde1997-10-151-5/+4
| | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago.
* Merged in better support of ISO 8601 from elsie.nci.nih.gov.helbig1997-10-032-62/+118
| | | | | Added the conversion specifiers %g and %G, that are replaced by the year which contains the greater part of the week in question.
* environmental -> environment.charnier1997-09-181-1/+1
|
* Add unsigned char cast to all ctype callsache1997-08-131-27/+27
|
* Import strptime(3) into libc. We've got permission by Kevin Ruddy tojoerg1997-08-097-495/+646
| | | | | | | | modify the original `no modifications' copyright message, and i've included his mail into the source file. The common localization functions between strptime(3) and strftime(3) have been broken out into timelocal.[ch].
* This commit was generated by cvs2svn to compensate for changes in r28019,joerg1997-08-091-0/+358
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Clean import of strptime(3) onto a vendor branch.joerg1997-08-091-0/+358
| | | | Submitted by: Powerdog Industries <kevin.ruddy@powerdog.com>
* `it's'' -> `its'' where appropriate and typo fixes in time2posix.3.eivind1997-05-191-2/+2
| | | | | | Closes PR docs/3612. Submitted by: Josh Gilliam <soil@quick.net>
* Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-05-031-1/+6
| | | | | | | | | | so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
* Fixed wording of previous change.bde1997-03-311-1/+1
| | | | | Obtained from: fgets.3 Guided by: ISO C standard
* Revert my last few changes. They were bogus. Replaced them withimp1997-03-311-14/+4
| | | | | | | the original text plus a statement saying that if strftime fails, the results are undefined. Requested a long time ago by: bde
* Back out 1.14 until I reproduce trouble reportsimp1997-03-251-4/+2
|
* Don't open the tz file if we're running setuid or setgid to prevent infomrationimp1997-03-241-2/+4
| | | | | | leakage. Submitted by: Julian Assange
* Use .Sq Li \&\e0 rather than NUL to describe the character with no bitsimp1997-03-031-3/+7
| | | | | set, as suggested by Garrett Wollman. This is more consistant with how things like strncpy are done, as well as harder to confuse NUL and NULL.
* Pendantic change of null to NUL. Also warn that this function does notimp1997-03-021-3/+9
| | | | NUL terminate in the case of buffer overflow.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Include "setlocale.h" for _PathLocale like other parts already didache1997-02-071-3/+2
| | | | Should go in 2.2
* Submitted by: John Birrelljulian1997-02-051-5/+3
| | | | uthreads update from the author.
* Update the comment why range checking is not neededache1997-02-051-1/+1
| | | | Should go in 2.2
* Sort cross references.wosch1997-01-201-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* When attempting to load a `lastditch' timezone (e.g., because the loadwollman1997-01-131-7/+8
| | | | | | | | | of the user's timezone failed), don't bail if the specified timezone doesn't have an offset; in this case it isn't going to. (Perhaps it would be better to change the caller to always supply one, but this is quick and clean and fixes the bug in the easiest possible way.) Should be in 2.2. Fixes (properly) PR#1740.
* Add comment that range checking is already done at upper levelache1996-12-281-1/+2
| | | | | | Kill snprintf left in collate.c from previous backout Should go in 2.2
* Move PATH_LOCALE handling to setlocale.c, simplify locale path building,ache1996-11-261-10/+9
| | | | don't treat empty encoding as C encoding
* Parameters for localtime_r() and gmtime_r() definitions changed.hsu1996-11-111-8/+8
| | | | | Parameters for pthread_getspecific() call changed. pthread_keycreate() renamed to pthread_key_create().
* Require that a timezone specified via the TZ envariable be a regularwollman1996-10-091-1/+7
| | | | | file (and not a directory or a device which might also be readable). Closes PR#1740.
* Submitted by: John Birrell <cimaxp1!jb@werple.net.au>julian1996-08-201-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here are the diffs for libc_r to get it one step closer to P1003.1c These make most of the thread/mutex/condvar structures opaque to the user. There are three functions which have been renamed with _np suffixes because they are extensions to P1003.1c (I did them for JAVA, which needs to suspend/resume threads and also start threads suspended). I've created a new header (pthread_np.h) for the non-POSIX stuff. The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented doesn't work. I think its best to delete it. I don't think libc_r needs tags anyway, 'cause most of the source is in libc which does have tags. also: Here's the first batch of man pages for the thread functions. The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was inherited from /usr/src/lib/libc/Makefile that should only be done with libc. also: I should have sent this diff with the pthread(3) man page. It allows people to type make -DWANT_LIBC_R world to get libc_r built with the rest of the world. I put this in the pthread(3) man page. The default is still not to build libc_r. also: The diff attached adds a pthread(3) man page to /usr/src/share/man/man3. The idea is that without libc_r installed, this man page will give people enough info to know that they have to build libc_r.
* Revert to old version of strftime.c; the new one doesn't work right.wollman1996-07-191-110/+78
|
* Merge the recently-imported tzcode96h distribution (libc portion). Thewollman1996-07-186-193/+254
| | | | | | part that does zic(8)/zdump(8) is still yet to be imported (but the old zic and zdump will work just fine with these header files and the data format has not changed).
* General -Wall warning cleanup, part I.jkh1996-07-121-2/+1
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Removed false copyrights...scrappy1996-05-276-173/+1
|
* Added in appropriate Berkeley copyright and RCS Id: stringscrappy1996-05-276-1/+182
| | | | Closes PR#doc/536
* Convert the time2posix man page to mdoc format. This stillmpp1996-05-011-49/+45
| | | | needs some other cleanup, but it is good enough for now.
* Removed bogus includes of <sys/types.h> from synopses.bde1996-04-193-4/+0
| | | | | | This commit covers the man pages for most of the ANSI library functions. A few others such as strtol.3 have to mention <sys/types.h> because they mix ANSI interfaces with less well designed extensions.
* Correct some man page cross references and file location references.mpp1996-04-071-2/+2
|
* Added missing section numbers to a bunch of .Xr macros, ormpp1996-03-271-2/+2
| | | | | converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems.
* Convert "time zone" to "timezone" in section NAMEwosch1996-02-281-1/+1
| | | | Submitted by: brien@cs.ucdavis.edu (David E. O'Brien)
OpenPOWER on IntegriCloud