The NetBSD Project

CVS log for src/lib/libc/time/strptime.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / time

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.63 / (download) - annotate - [select for diffs], Mon Sep 21 15:31:54 2020 UTC (6 months, 4 weeks ago) by ginsbach
Branch: MAIN
CVS Tags: HEAD
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

Correct range for ISO week conversion

The %V conversion range for strptime(3) should match the strftime(3)
conversion range. A valid ISO week is 1-53.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Aug 24 01:01:09 2017 UTC (3 years, 7 months ago) by ginsbach
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp
Changes since 1.61: +5 -5 lines
Diff to previous 1.61 (colored)

The military/nautical time zones were added following RFC 822 and RFC
2822 specifications.  Unfortunately they are specified incorrectly in
RFC-822 and not very clearly in RFC 2822. RFC 1123 clearly states they
are specified incorrectly - counting the wrong way from UTC - in RFC
822.  RFC 2822 just states they were implemented in a non-standard way.
Mea culpa for not noticing when originally implemented.  Fix them so
the correct calculations are made.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Aug 12 03:29:23 2017 UTC (3 years, 8 months ago) by ginsbach
Branch: MAIN
Changes since 1.60: +7 -6 lines
Diff to previous 1.60 (colored)

Fix a couple comments and a spacing nit.

- Change a XXX comment that no longer applies.
- Add a clarifying comment.

Revision 1.60 / (download) - annotate - [select for diffs], Sun May 15 20:37:48 2016 UTC (4 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.59: +2 -14 lines
Diff to previous 1.59 (colored)

remove stray debugging.

Revision 1.59 / (download) - annotate - [select for diffs], Sun May 15 20:36:42 2016 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.58: +16 -2 lines
Diff to previous 1.58 (colored)

Bail out if the string does not look like a timezone (is empty or does not
start with a letter or a number). tzparse("") or tzparse(".45") don't fail.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Oct 31 03:42:00 2015 UTC (5 years, 5 months ago) by ginsbach
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

Don't attempt to set TM_ZONE (name) for 'J' as isdst isn't known.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Oct 31 02:14:08 2015 UTC (5 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.56: +44 -46 lines
Diff to previous 1.56 (colored)

make %Z and %z understand the same strings.

Revision 1.56 / (download) - annotate - [select for diffs], Fri Oct 30 21:36:25 2015 UTC (5 years, 5 months ago) by ginsbach
Branch: MAIN
Changes since 1.55: +17 -4 lines
Diff to previous 1.55 (colored)

Add 'J' (Juliett) as military time zone name meaning the local time zone.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Oct 30 18:20:16 2015 UTC (5 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.54: +2 -3 lines
Diff to previous 1.54 (colored)

drop stray #endif

Revision 1.54 / (download) - annotate - [select for diffs], Fri Oct 30 18:04:42 2015 UTC (5 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.53: +2 -5 lines
Diff to previous 1.53 (colored)

revert timezone() ifdef; it is wrong (pointed out by ginsbach)

Revision 1.53 / (download) - annotate - [select for diffs], Fri Oct 30 03:18:10 2015 UTC (5 years, 5 months ago) by ginsbach
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

ISO 8601 and RFC 3339 specify that an offset can be up to 23:59 and
not 12:00 east/west.  Just proves that one shouldn't use other
implementations as a canonical reference.  Thanks to all who pointed
this out.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Oct 30 01:49:36 2015 UTC (5 years, 5 months ago) by ginsbach
Branch: MAIN
Changes since 1.51: +4 -2 lines
Diff to previous 1.51 (colored)

Reject timezone offsets more than 12 hours (east or west).

Revision 1.51 / (download) - annotate - [select for diffs], Thu Oct 29 19:18:19 2015 UTC (5 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.50: +11 -11 lines
Diff to previous 1.50 (colored)

- use #defined constants (from gisbach)
- back to setting tm_zone to NULL when we don't know.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Oct 29 17:54:49 2015 UTC (5 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.49: +89 -30 lines
Diff to previous 1.49 (colored)

PR/50380: Balazs Scheidler: strptime() returns incorrect values in tm_gmtoff
- Always offset in seconds.
- Handle arbitrary timezones.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Oct 9 17:21:45 2015 UTC (5 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.48: +4 -4 lines
Diff to previous 1.48 (colored)

Release 2015g - 2015-10-01 00:39:51 -0700

  Changes affecting code

    localtime no longer mishandles America/Anchorage after 2037.
    (Thanks to Bradley White for reporting the bug.)

    The localtime module allows the variables 'timezone', 'daylight',
    and 'altzone' to be in common storage shared with other modules,
    and declares them in case the system <time.h> does not.
    (Problems reported by Kees Dekker.)

    On platforms with tm_zone, strftime.c now assumes it is not NULL.
    This simplifies the code and is consistent with zdump.c.
    (Problem reported by Christos Zoulas.)

  Changes affecting documentation

   The tzfile man page now documents that transition times denote the
   starts (not the ends) of the corresponding time periods.
   (Ambiguity reported by Bill Seymour.)

Revision 1.48 / (download) - annotate - [select for diffs], Wed Jul 29 20:32:54 2015 UTC (5 years, 8 months ago) by ginsbach
Branch: MAIN
Changes since 1.47: +7 -3 lines
Diff to previous 1.47 (colored)

Only apply am/pm adjustment to tm_hour when it has actually been parsed.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Jul 22 13:33:59 2015 UTC (5 years, 9 months ago) by ginsbach
Branch: MAIN
Changes since 1.46: +14 -14 lines
Diff to previous 1.46 (colored)

More KNF style changes -- consistent use of whitespace in #defines.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jul 20 14:37:11 2015 UTC (5 years, 9 months ago) by ginsbach
Branch: MAIN
Changes since 1.45: +21 -7 lines
Diff to previous 1.45 (colored)

KNF and additional comments

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jul 15 13:54:38 2015 UTC (5 years, 9 months ago) by ginsbach
Branch: MAIN
Changes since 1.44: +2 -3 lines
Diff to previous 1.44 (colored)

Don't set state when parsing any timezone (%z) information.  The '+' in
this case isn't the same as the FreeBSD '%+' str[fp]time() (GNU) extension.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jul 14 18:07:17 2015 UTC (5 years, 9 months ago) by ginsbach
Branch: MAIN
Changes since 1.43: +3 -2 lines
Diff to previous 1.43 (colored)

Set S_WDAY state for %u (same as it is set for %w).

Revision 1.43 / (download) - annotate - [select for diffs], Mon Jul 13 17:45:16 2015 UTC (5 years, 9 months ago) by ginsbach
Branch: MAIN
Changes since 1.42: +6 -7 lines
Diff to previous 1.42 (colored)

Switch to using isleap() and isleap_sum() macros from <tzfile.h> to be
consistent with strftime.c and localtime.c.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Jul 8 19:48:20 2015 UTC (5 years, 9 months ago) by ginsbach
Branch: MAIN
Changes since 1.41: +17 -13 lines
Diff to previous 1.41 (colored)

Add macros to clarify what (parse) state is needed to calculate 'missing'
tm fields.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jul 8 18:44:09 2015 UTC (5 years, 9 months ago) by ginsbach
Branch: MAIN
Changes since 1.40: +39 -40 lines
Diff to previous 1.40 (colored)

Rename flags to state since that is really what flags tracks (parse state).

Revision 1.40 / (download) - annotate - [select for diffs], Fri Jul 3 13:06:54 2015 UTC (5 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.39: +113 -6 lines
Diff to previous 1.39 (colored)

PR/50009: David CARLIER: Enhance strptime to fill out more fields when it
can. From FreeBSD.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Apr 6 14:38:22 2015 UTC (6 years ago) by ginsbach
Branch: MAIN
Changes since 1.38: +4 -3 lines
Diff to previous 1.38 (colored)

Add UTC as a synonym for GMT (%Z).  [from FreeBSD]

Revision 1.38 / (download) - annotate - [select for diffs], Fri May 17 12:55:57 2013 UTC (7 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.37: +3 -6 lines
Diff to previous 1.37 (colored)

Provide explicit LC_C_LOCALE accessor and drop the various NULL checks.
Provide LC_GLOBAL_LOCALE in a way that works with all locale functions.
Merge constant data used by the initial global locale and the C locale.
Drop function call layer for _current_locale() and directly return the
locale reference, not a pointer to it. Use protected access for global
variables, so that libc references can avoid the GOT overhead.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Apr 21 17:45:47 2013 UTC (8 years ago) by joerg
Branch: MAIN
Changes since 1.36: +26 -13 lines
Diff to previous 1.36 (colored)

Store time-specific locale data directly in the locale.
Ad dstrftime_l, strftime_lz and strptime_l.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Mar 13 21:13:48 2012 UTC (9 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
  would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
  builds)

approved by core@

Revision 1.35 / (download) - annotate - [select for diffs], Mon Dec 14 20:45:02 2009 UTC (11 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

Back errant change due to botched merge.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Dec 14 05:51:56 2009 UTC (11 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Suppress a warning if time_t is __int64_t

Revision 1.33 / (download) - annotate - [select for diffs], Sun May 24 02:25:43 2009 UTC (11 years, 11 months ago) by ginsbach
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.32: +32 -2 lines
Diff to previous 1.32 (colored)

Add %s to strptime(3) to make symmetric with strftime(3).

Revision 1.32 / (download) - annotate - [select for diffs], Fri May 1 20:15:05 2009 UTC (11 years, 11 months ago) by ginsbach
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.31: +72 -6 lines
Diff to previous 1.31 (colored)

Extend %z to support all RFC-2822 timezone formats.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Nov 4 21:08:33 2008 UTC (12 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: christos-time_t-nbase, christos-time_t-base
Branch point for: jym-xensuspend, christos-time_t
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored)

don't forget to use neg.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Nov 4 20:17:56 2008 UTC (12 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

we don't need *

Revision 1.29 / (download) - annotate - [select for diffs], Tue Nov 4 18:37:28 2008 UTC (12 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.28: +96 -4 lines
Diff to previous 1.28 (colored)

Our new syslogd seems to want to depend on %z which is a gnu extension.
- While here, add all the rest of gnu extensions: %g, %G, %u.
- Fix long standing bug where %Z would not work because "private.h" was
  not included. (Hi Brian!)

Revision 1.28 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:01 2008 UTC (12 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase
Changes since 1.27: +2 -9 lines
Diff to previous 1.27 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.27 / (download) - annotate - [select for diffs], Fri Apr 25 20:51:10 2008 UTC (12 years, 11 months ago) by ginsbach
Branch: MAIN
Changes since 1.26: +8 -3 lines
Diff to previous 1.26 (colored)

Add %F the ISO 8601 date format which is equivalent to %Y-%m-%d.  This
format character is supported for reasons of symmetry with strftime(3).
FreeBSD and GNU versions of strptime(3) both support %F.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Apr 24 21:34:48 2008 UTC (12 years, 11 months ago) by ginsbach
Branch: MAIN
Changes since 1.25: +33 -2 lines
Diff to previous 1.25 (colored)

Add support for %Z ala FreeBSD and some other strptime(3) implementations.
Reviewed by christos.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Nov 29 03:12:00 2005 UTC (15 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pf42
Changes since 1.24: +3 -4 lines
Diff to previous 1.24 (colored)

WARNS=4

Revision 1.24 / (download) - annotate - [select for diffs], Sat Mar 5 14:07:15 2005 UTC (16 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.23: +47 -56 lines
Diff to previous 1.23 (colored)

Some more optimisations - I must stop looking at this file!
Update copyright to include 2005
(I have a compleetly different version, but it is only a few 100 bytes
smaller due to a 560 byte data area.)

Revision 1.23 / (download) - annotate - [select for diffs], Fri Mar 4 21:41:42 2005 UTC (16 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.22: +124 -168 lines
Diff to previous 1.22 (colored)

A going-over with the optimiser, save over 500 bytes.
I think this is enough to get rescue_tiny to fit again.
While there fix some bugs:
- %y failed to subtract 1900 from tm_year
- %p (am/pm) only worked at the end of the string
- %E% was treated at %% (ie match a % character)
regression test being added....

Revision 1.22 / (download) - annotate - [select for diffs], Wed Dec 20 20:56:34 2000 UTC (20 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_end, nathanw_sa_before_merge, nathanw_sa_base, nathanw_sa, fvdl_fs64_base
Changes since 1.21: +29 -16 lines
Diff to previous 1.21 (colored)

fix u_char -> char and char -> u_char casts.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Dec 19 22:20:48 2000 UTC (20 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Newer GCCs give warnings when the result of preprocessor token pasting
is not itself a valid (single) preprocessor token.  In other words, don't
use __CONCAT() to add a structure member name to a pointer dereference.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jul 7 08:03:41 2000 UTC (20 years, 9 months ago) by itohy
Branch: MAIN
Changes since 1.19: +6 -6 lines
Diff to previous 1.19 (colored)

Passing "char" values to ctype(3) functions is problematic.
If an argument of a ctype function is outside "unsigned char"
and if it is not EOF, the behavior is undefined.

The isascii(3) is the sole exception of above and it was used to
be used to check a value was valid for other ctype functions in
ancient systems.  On modern systems, the ctype functions take
all values of "unsigned char", and this check is obsolete and
even wrong for non-ASCII systems.  However, we leave the isascii()
untouched for now, so as not to change the current behavior.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 22 22:19:22 2000 UTC (21 years, 3 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Apr 29 02:58:30 1999 UTC (21 years, 11 months ago) by tv
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.17: +14 -9 lines
Diff to previous 1.17 (colored)

Use correct number of digits as described in lib/7001.  This brings us
pretty close to UNIX98, but %U and %W still don't work.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Nov 15 17:11:06 1998 UTC (22 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

delint

Revision 1.16 / (download) - annotate - [select for diffs], Mon Sep 7 14:11:37 1998 UTC (22 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.15: +50 -49 lines
Diff to previous 1.15 (colored)

Cosmetical changes, and squash some lint.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Aug 20 13:36:25 1998 UTC (22 years, 8 months ago) by veego
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Fix new egcs warnings (might be used uninitialized).

Revision 1.14 / (download) - annotate - [select for diffs], Tue May 5 14:15:32 1998 UTC (22 years, 11 months ago) by tv
Branch: MAIN
Changes since 1.13: +11 -12 lines
Diff to previous 1.13 (colored)

As inspired by PR #5268 from jpo@easterngraphics.com:
- make string comparisons case-insensitive
- add description of whitespace in the format string
- note that %t and %n match no whitespace as well as some whitespace
- change wording of standard to say "includes all requirements of"
  instead of "conforms to" XPG4 as our %y is extended beyond XPG4

Revision 1.13 / (download) - annotate - [select for diffs], Thu Mar 19 16:21:35 1998 UTC (23 years, 1 month ago) by tv
Branch: MAIN
Changes since 1.12: +25 -14 lines
Diff to previous 1.12 (colored)

Fixes from PRs 5056 and 5161, partly rethought:
- %C and %y can be used in conjunction properly, though %y can have its
  old behaviour if used without %C
- %I formats hous 0..11 with 0 representing "12"; this is correct both
  with and without am/pm (%p rule fixed to compensate)
- %j fixed for range [0..365] in struct tm
- %m fixed for range [0..11] in struct tm
- %S fixed for range [0..61] in struct tm

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 20 21:39:40 1998 UTC (23 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

Pull in tzfile.h.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 20 21:10:09 1998 UTC (23 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Update dates.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jan 20 20:47:46 1998 UTC (23 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

The rollover for the previous is 1969, not 1970.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jan 20 20:41:49 1998 UTC (23 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Fix an old comment

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 20 20:39:06 1998 UTC (23 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +9 -4 lines
Diff to previous 1.7 (colored)

Treat 2-digit year < 70 as year - 2000, per XPG.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jul 21 14:09:22 1997 UTC (23 years, 9 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.6: +7 -2 lines
Diff to previous 1.6 (colored)

If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 13 20:26:53 1997 UTC (23 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

Fix RCSID's

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jun 3 10:19:45 1997 UTC (23 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Nuke a spurious (but under !__STDC__ fatal) space from last commit.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jun 3 10:04:20 1997 UTC (23 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.3: +3 -7 lines
Diff to previous 1.3 (colored)

Replace some hand-crafted concatenation with the __CONCAT() macro.

Revision 1.3 / (download) - annotate - [select for diffs], Sun May 25 19:26:43 1997 UTC (23 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.2: +298 -252 lines
Diff to previous 1.2 (colored)

Rewritten from scratch. Implement missing conversions and provide support
for E and O modifiers, though our locale does not support `alternate'
conversions and formats - we just stick to the unmodified rules in that case.

Revision 1.2 / (download) - annotate - [select for diffs], Tue May 6 13:06:48 1997 UTC (23 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.1: +264 -264 lines
Diff to previous 1.1 (colored)

KNF.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 23 01:18:06 1997 UTC (24 years ago) by mrg
Branch: MAIN

move str[fp]time into libc/time.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>