summaryrefslogtreecommitdiff
path: root/lib/libc/stdtime
Commit message (Collapse)AuthorAgeFilesLines
* Fix assigning alt_month in compatibility codeAndrey A. Chernov2000-06-291-1/+1
| | | | Notes: svn path=/head/; revision=62259
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-214-0/+8
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* Temporary cosmetic change to prevent gcc-2.95.2 from doing anMartin Cracauer2000-03-081-1/+1
| | | | | | | | | | | | | | | | optimization that generates code our current as doesn't understand. The result is bad code that damages dynamic symbol locations at runtime. Ouch. See PR bin/16862 and discussion in -current. This change will be backed out when gcc and gas are back in sync. PR: Fixes bin/16862, but not the underlying problem. Submitted by: bde Approved by: jdk Notes: svn path=/head/; revision=57822
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-021-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* There were so far only 42 different conversion specifications inJoerg Wunsch2000-01-282-0/+22
| | | | | | | | | | | | strftime(3), add another one. :) %z yields the local timezone's offset in hours and minutes, as used in RFC822 headers. There's a precedence for this in Lunux' libc, and Internet software (like Perl scripts) start using it. OKed by (wrt. the code freeze): jkh Notes: svn path=/head/; revision=56756
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans2000-01-272-7/+7
| | | | | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen Notes: svn path=/head/; revision=56698
* Make the quotes in the #include line visible.Sheldon Hearn2000-01-191-1/+1
| | | | Notes: svn path=/head/; revision=56286
* Add three-tier symbol naming in support of POSIX thread cancellationJason Evans2000-01-122-7/+9
| | | | | | | | | points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read(). Notes: svn path=/head/; revision=55837
* Remove discussion of %C in the BUGS section. The limitations on validSheldon Hearn1999-12-091-4/+0
| | | | | | | | centuries are much more serious than those mentioned and this is not the place to discuss the limitations of time_t. Notes: svn path=/head/; revision=54348
* Prevent digit-gobbling for all but %l and %e, which can't be fixed.Sheldon Hearn1999-12-082-12/+85
| | | | | | | | | | | Discuss in the BUGS section of the manpage, problems involved with the use of %C, %e, %l, %p, %U and %W. PR: 13901 Reported by: scott@chronis.pobox.com Notes: svn path=/head/; revision=54316
* Accept 12 for %l, because it's logical to expect "%l:%M" to work forSheldon Hearn1999-12-081-1/+1
| | | | | | | "12:00" and because strftime(3) does the same. Notes: svn path=/head/; revision=54301
* %Ex -> %Ef to not conflict with POSIXAndrey A. Chernov1999-11-305-13/+53
| | | | | | | | | Add %EF (long months name / day order) Check that O and E not intermixed Add missing POSIX extension to example Notes: svn path=/head/; revision=53960
* Document %Ex and %OBAndrey A. Chernov1999-11-301-2/+4
| | | | Notes: svn path=/head/; revision=53959
* Stricter checking %A vs %aAndrey A. Chernov1999-11-301-11/+13
| | | | Notes: svn path=/head/; revision=53942
* Fix %C handlingAndrey A. Chernov1999-11-301-14/+52
| | | | | | | | | Use locale for %c Add %+ Add %Ex and %OB Notes: svn path=/head/; revision=53941
* Add %Ex extension to determine "%e %b" or "%b %e" orderAndrey A. Chernov1999-11-303-8/+22
| | | | | | | Separate alternative for O and E cases Notes: svn path=/head/; revision=53940
* Decremement by 1 the value taken for %j before assigning it to tm_yday,Sheldon Hearn1999-11-101-6/+50
| | | | | | | | | | | | | | | | | | | | which is zero-based. Correct the range checking for the value taken for %S. Add %w for the day of the week (0-6). Accept (but do nothing with) %U and %W. The comment for this change was taken from NetBSD. These changes were made after several failed attempts to contact the author of our strptime.c . PR: 10131 Submitted by: tadf@kt.rim.or.jp (Tadayoshi Funaba) Notes: svn path=/head/; revision=53083
* Add unsigned char cast to isupperAndrey A. Chernov1999-11-041-1/+1
| | | | Notes: svn path=/head/; revision=52860
* Implement new format specifier for strftime: %OB, alternative nationalDmitrij Tejblum1999-09-113-19/+58
| | | | | | | | | | | | representation of the full month name. In the Russian locale, this alternative will be "nominative case", useful when the date designate month as a whole. E.g. month heading in a calendar. I hope it can be useful for some other locales too. Discussed with: wollman, ache Notes: svn path=/head/; revision=51186
* Spelling and grammar error fix.Alexey Zelkin1999-09-041-2/+8
| | | | | | | | | | | mdoc(7)'fy. PR: docs/13406 Submitted by: Garret Woolman <woolman@khavrinen.lcs.mit.edu> Reviewed by: mpp Notes: svn path=/head/; revision=50916
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2810-10/+10
| | | | Notes: svn path=/head/; revision=50476
* Add $Id$ tag.Chris Costello1999-08-141-0/+2
| | | | Notes: svn path=/head/; revision=49754
* Bad reference time(2) changed to time(3)Chris Costello1999-08-141-1/+1
| | | | Notes: svn path=/head/; revision=49753
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48794
* Make the new %Z addition thread-safe.David E. O'Brien1999-07-061-19/+49
| | | | Notes: svn path=/head/; revision=48614
* Actually impliment the documented %Z specifier.David E. O'Brien1999-07-042-2/+44
| | | | Notes: svn path=/head/; revision=48550
* Spell the .St macro correctly.Steve Price1999-06-071-1/+1
| | | | | | | PR: 11704 Notes: svn path=/head/; revision=47812
* Re-fixed to start at 1969 per the actual Posix requirement. AlsoWes Peters1999-04-252-7/+7
| | | | | | | fixed a typo on the man page. Notes: svn path=/head/; revision=46051
* Bring two-digit years up-to-date with POSIX requirements.Wes Peters1999-04-252-2/+12
| | | | | | | | | | | 70-00 are intepreted in the 20th century; 01-69 in the 21st century. (Yes, 2000 is the last year of the 20th century, not the first year of the 21st.) Submitted by: Sergey Babkin <babkin@bellatlantic.net> Notes: svn path=/head/; revision=46042
* Merge from vendor branch: timezone file structure changes and doco.Garrett Wollman1999-01-213-25/+45
| | | | | | | | | Fix localtime.c to deal with new magic number field. Obtained from: ftp://elsie.nci.nih.gov/pub/tzcode1999a.tar.gz Notes: svn path=/head/; revision=42989
* Make ctime_r, asctime_r, gmtime_r, and localtime_r available in libc.Dmitrij Tejblum1999-01-042-13/+4
| | | | Notes: svn path=/head/; revision=42293
* Add STANDARDS section.Garrett Wollman1999-01-031-6/+37
| | | | | | | | s/bytes/characters/g to be consistent with Standard C terminology. Update date and add RCS Id. Notes: svn path=/head/; revision=42259
* Fix grammar in the description of timegm() by totally rewriting it. RemoveGarrett Wollman1999-01-031-20/+29
| | | | | | | | a potentally inflammatory comment from BUGS, and add a more useful comment about the lack of reentrancy in the timezone-setting interface. Notes: svn path=/head/; revision=42257
* Added documenation for the existing implementation of asctime_r,Wes Peters1998-12-201-0/+35
| | | | | | | ctime_r, gmtime_r, and localtime_r. Notes: svn path=/head/; revision=41951
* Replace memory leaking instances of realloc with non-leaking reallocf.Warner Losh1998-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... Notes: svn path=/head/; revision=39327
* Change return type of strptime from const char* to char*.Dmitrij Tejblum1998-09-122-5/+5
| | | | | | | const char* was wrong and nonstandard. Notes: svn path=/head/; revision=39113
* Fixed printf format errors. Don't assume so many things about time_t.Bruce Evans1998-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). Notes: svn path=/head/; revision=37299
* Fix grammar, "null" -> "NUL"Daniel O'Callaghan1998-06-101-5/+5
| | | | Notes: svn path=/head/; revision=36854
* Remove 'of type long' from a sentence talking about four 4-byte valuesJohn Birrell1998-05-101-2/+1
| | | | | | | because that is wrong on alpha. Notes: svn path=/head/; revision=35922
* Make asctime_r static if !_THREAD_SAFE to prevent namespace pollution andAndrey A. Chernov1998-04-251-0/+7
| | | | | | | prototype mismatch Notes: svn path=/head/; revision=35436
* Add a #ifdef _THREAD_SAFE around ctime_rPoul-Henning Kamp1998-04-201-0/+2
| | | | Notes: svn path=/head/; revision=35331
* Describe timegm()Andrey A. Chernov1998-04-202-5/+16
| | | | Notes: svn path=/head/; revision=35322
* ctime_r and asctime_r are not implemented.Poul-Henning Kamp1998-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> Notes: svn path=/head/; revision=35285
* Change in name of the static initializer define.John Birrell1998-04-041-4/+4
| | | | Notes: svn path=/head/; revision=35026
* Submitted by: Jeremy Allison (jallison@whistle.com)Julian Elischer1998-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! Notes: svn path=/head/; revision=33527
* Typo.Wolfgang Helbig1997-10-261-1/+1
| | | | Notes: svn path=/head/; revision=30728
* Sorted lists.Bruce Evans1997-10-211-4/+3
| | | | Notes: svn path=/head/; revision=30624
* Removed the subdirectory paths from the definitions of MAN[1-9]. TheyBruce Evans1997-10-151-5/+4
| | | | | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago. Notes: svn path=/head/; revision=30447
* Merged in better support of ISO 8601 from elsie.nci.nih.gov.Wolfgang 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. Notes: svn path=/head/; revision=30089
* environmental -> environment.Philippe Charnier1997-09-181-1/+1
| | | | Notes: svn path=/head/; revision=29563