The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.48 / (download) - annotate - [select for diffs], Fri Oct 9 18:38:48 2020 UTC (6 months ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.47: +28 -3 lines
Diff to previous 1.47 (colored)

Merge tzcode2020b (except we keep tzsetwall(3) for now for compatibility,
and we were "slim" already)

Support for zic's long-obsolete '-y YEARISTYPE' option has been
removed and, with it, so has support for the TYPE field in Rule
lines, which is now reserved for compatibility with earlier zic.
These features were previously deprecated in release 2015f.
(Thanks to Tim Parenti.)

zic now defaults to '-b slim' instead of to '-b fat'.

zic's new '-l -' and '-p -' options uninstall any existing
localtime and posixrules files, respectively.

The undocumented and ineffective tzsetwall function has been
removed.

Revision 1.47 / (download) - annotate - [select for diffs], Mon May 25 14:52:48 2020 UTC (10 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

Bring in 2020a

Revision 1.46 / (download) - annotate - [select for diffs], Sun Apr 7 22:31:54 2019 UTC (2 years ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, 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.45: +4 -3 lines
Diff to previous 1.45 (colored)

don't print ???, requested by kre@

Revision 1.45 / (download) - annotate - [select for diffs], Sun Apr 7 14:51:14 2019 UTC (2 years ago) by christos
Branch: MAIN
Changes since 1.44: +11 -5 lines
Diff to previous 1.44 (colored)

Don't try to print NULL if we can't get a timezone name. First we try dst,
then we try the non-dst name and finally we just print ??? if that did not
work. This is not needed to handle the "TZ= date" case which was crashing
before because the default timezone was not consistently initialized, but
should handle any timezone now.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Apr 5 21:27:44 2019 UTC (2 years ago) by christos
Branch: MAIN
Changes since 1.43: +138 -49 lines
Diff to previous 1.43 (colored)

- Padding support from FreeBSD (GNU extensions)
- add '+' for the c-locale only.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Apr 4 19:27:28 2019 UTC (2 years ago) by christos
Branch: MAIN
Changes since 1.42: +21 -11 lines
Diff to previous 1.42 (colored)

Make strftime_{l,z} re-entrant and always require a non-NULL timezone to be
passed in so that we can use the current timezone in all evaluations (mktime
tzgetname). Reported by Hamilton Slye.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Oct 19 23:05:35 2018 UTC (2 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020
Changes since 1.41: +4 -3 lines
Diff to previous 1.41 (colored)

Update to 2018f:

  Changes to code

    zic now always generates TZif files where time type 0 is used for
    timestamps before the first transition.  This simplifies the
    reading of TZif files and should not affect behavior of existing
    TZif readers because the same set of time types is used; only
    their internal indexes may have changed.  This affects only the
    legacy zones EST5EDT, CST6CDT, MST7MDT, PST8PDT, CET, MET, and
    EET, which previously used nonzero types for these timestamps.

    Because of the type 0 change, zic no longer outputs a dummy
    transition at time -2**59 (before the Big Bang), as clients should
    no longer need this to handle historical timestamps correctly.
    This reverts a change introduced in 2013d and shrinks most TZif
    files by a few bytes.

    zic now supports negative time-of-day in Rule and Leap lines, e.g.,
    "Rule X min max - Apr lastSun -6:00 1:00 -" means the transition
    occurs at 18:00 on the Saturday before the last Sunday in April.
    This behavior was documented in 2018a but the code did not
    entirely match the documentation.

    localtime.c no longer requires at least one time type in TZif
    files that lack transitions or have a POSIX-style TZ string.  This
    future-proofs the code against possible future extensions to the
    format that would allow TZif files with POSIX-style TZ strings and
    without transitions or time types.

    A read-access subscript error in localtime.c has been fixed.
    It could occur only in TZif files with timecnt == 0, something that
    does not happen in practice now but could happen in future versions.

    localtime.c no longer ignores TZif POSIX-style TZ strings that
    specify only standard time.  Instead, these TZ strings now
    override the default time type for timestamps after the last
    transition (or for all time stamps if there are no transitions),
    just as DST strings specifying DST have always done.

    leapseconds.awk now outputs "#updated" and "#expires" comments,
    and supports leap seconds at the ends of months other than June
    and December.  (Inspired by suggestions from Chris Woodbury.)

  Changes to documentation

    New restrictions: A Rule name must start with a character that
    is neither an ASCII digit nor "-" nor "+", and an unquoted name
    should not use characters in the set "!$%&'()*,/:;<=>?@[\]^`{|}~".
    The latter restriction makes room for future extensions (a
    possibility noted by Tom Lane).

    tzfile.5 now documents what time types apply before the first and
    after the last transition, if any.

    Documentation now uses the spelling "timezone" for a TZ setting
    that determines timestamp history, and "time zone" for a
    geographic region currently sharing the same standard time.

    The name "TZif" is now used for the tz binary data format.

    tz-link.htm now mentions the A0 TimeZone Migration utilities.
    (Thanks to Aldrin Martoq for the link.)

Revision 1.41 / (download) - annotate - [select for diffs], Fri May 4 15:51:00 2018 UTC (2 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

Merge 2018e

  Changes to code

    zic now accepts subsecond precision in expressions like
    00:19:32.13, which is approximately the legal time of the
    Netherlands from 1835 to 1937.  However, because it is
    questionable whether the few recorded uses of non-integer offsets
    had subsecond precision in practice, there are no plans for tzdata
    to use this feature.  (Thanks to Steve Allen for pointing out
    the limitations of historical data in this area.)

    The code is a bit more portable to MS-Windows.  Installers can
    compile with -DRESERVE_STD_EXT_IDS on MS-Windows platforms that
    reserve identifiers like 'localtime'.  (Thanks to Manuela
    Friedrich).

  Changes to documentation and commentary

    theory.html now outlines tzdb's extensions to POSIX's model for
    civil time, and has a section "POSIX features no longer needed"
    that lists POSIX API components that are now vestigial.
    (From suggestions by Steve Summit.)  It also better distinguishes
    time zones from tz regions.  (From a suggestion by Guy Harris.)

    Commentary is now more consistent about using the phrase "daylight
    saving time", to match the C name tm_isdst.  Daylight saving time
    need not occur in summer, and need not have a positive offset from
    standard time.

    Commentary about historical transitions in Uruguay has been expanded
    with links to many relevant legal documents.
    (Thanks to Tim Parenti.)

    Commentary now uses some non-ASCII characters with Unicode value
    less than U+0100, as they can be useful and should work even with
    older editors such as XEmacs.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Oct 24 17:38:17 2017 UTC (3 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.39: +34 -35 lines
Diff to previous 1.39 (colored)

Welcome to 2017c:

    zic and the reference runtime now reject multiple leap seconds
    within 28 days of each other, or leap seconds before the Epoch.
    As a result, support for double leap seconds, which was
    obsolescent and undocumented, has been removed.  Double leap
    seconds were an error in the C89 standard; they have never existed
    in civil timekeeping.  (Thanks to Robert Elz and Bradley White for
    noticing glitches in the code that uncovered this problem.)

    zic now warns about use of the obsolescent and undocumented -y
    option, and about use of the obsolescent TYPE field of Rule lines.

    zic now allows unambiguous abbreviations like "Sa" and "Su" for
    weekdays; formerly it rejected them due to a bug.  Conversely, zic
    no longer considers non-prefixes to be abbreviations; for example,
    it no longer accepts "lF" as an abbreviation for "lastFriday".
    Also, zic warns about the undocumented usage with a "last-"
    prefix, e.g., "last-Fri".

    Similarly, zic now accepts the unambiguous abbreviation "L" for
    "Link" in ordinary context and for "Leap" in leap-second context.
    Conversely, zic no longer accepts non-prefixes such as "La" as
    abbreviations for words like "Leap".

    zic no longer accepts leap second lines in ordinary input, or
    ordinary lines in leap second input.  Formerly, zic sometimes
    warned about this undocumented usage and handled it incorrectly.

    The new macro HAVE_TZNAME governs whether the tzname external
    variable is exported, instead of USG_COMPAT.  USG_COMPAT now
    governs only the external variables "timezone" and "daylight".
    This change is needed because the three variables are not in the
    same category: although POSIX requires tzname, it specifies the
    other two variables as optional.  Also, USG_COMPAT is now 1 or 0:
    if not defined, the code attempts to guess it from other macros.

    localtime.c and difftime.c no longer require stdio.h, and .c files
    other than zic.c no longer require sys/wait.h.

    zdump.c no longer assumes snprintf.  (Reported by Jonathan Leffler.)

    Calculation of time_t extrema works around a bug in GCC 4.8.4
    (Reported by Stan Shebs and Joseph Myers.)

    zic.c no longer mistranslates formats of line numbers in non-English
    locales.  (Problem reported by Benno Schulenberg.)

    Several minor changes have been made to the code to make it a
    bit easier to port to MS-Windows and Solaris.  (Thanks to Kees
    Dekker for reporting the problems.)

  Changes to documentation and commentary

    The two new files 'theory.html' and 'calendars' contain the
    contents of the removed file 'Theory'.  The goal is to document
    tzdb theory more accessibly.

    The zic man page now documents abbreviation rules.

    tz-link.htm now covers how to apply tzdata changes to clients.
    (Thanks to Jorge Fábregas for the AIX link.)  It also mentions MySQL.

    The leap-seconds.list URL has been updated to something that is
    more reliable for tzdb.  (Thanks to Tim Parenti and Brian Inglis.)

Revision 1.39 / (download) - annotate - [select for diffs], Sat Mar 11 18:23:14 2017 UTC (4 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, 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, bouyer-socketcan-base1
Changes since 1.38: +17 -7 lines
Diff to previous 1.38 (colored)

merge 2017a

Revision 1.38 / (download) - annotate - [select for diffs], Thu Oct 20 17:41:34 2016 UTC (4 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.37: +16 -14 lines
Diff to previous 1.37 (colored)

welcome to 2016h

Revision 1.37 / (download) - annotate - [select for diffs], Fri Oct 7 15:29:42 2016 UTC (4 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.36: +4 -8 lines
Diff to previous 1.36 (colored)

merge tzcode2016g

Revision 1.36 / (download) - annotate - [select for diffs], Tue Mar 15 15:16:01 2016 UTC (5 years ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.35: +34 -37 lines
Diff to previous 1.35 (colored)

Sync with 2016b

Revision 1.35 / (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.34: +3 -5 lines
Diff to previous 1.34 (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.34 / (download) - annotate - [select for diffs], Thu Aug 13 11:21:18 2015 UTC (5 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.33: +8 -10 lines
Diff to previous 1.33 (colored)

merge 2015f

Revision 1.33 / (download) - annotate - [select for diffs], Tue Oct 7 21:51:03 2014 UTC (6 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.32: +24 -131 lines
Diff to previous 1.32 (colored)

Sync with tzcode2014h

Revision 1.32 / (download) - annotate - [select for diffs], Thu Sep 18 13:58:20 2014 UTC (6 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

make more descriptors that we open as close-on-exec

Revision 1.31 / (download) - annotate - [select for diffs], Fri Aug 15 11:04:07 2014 UTC (6 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.30: +6 -12 lines
Diff to previous 1.30 (colored)

merge tzcode2014f via patch

Revision 1.30 / (download) - annotate - [select for diffs], Thu Dec 26 18:34:28 2013 UTC (7 years, 3 months ago) by christos
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, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.29: +6 -4 lines
Diff to previous 1.29 (colored)

update from tzcode 2013e to tzcode2013i
i:
    The compile-time flag NOSOLAR has been removed, as nowadays the
    benefit of slightly shrinking runtime table size is outweighed by the
    cost of disallowing potential future updates that exceed old limits.
h:
    Fix localtime overflow bugs with 32-bit unsigned time_t.

    zdump no longer assumes sscanf returns maximal values on overflow.
g:
    'zic' now runs on platforms that lack both hard links and symlinks.
    (Thanks to Theo Veenker for reporting the problem, for MinGW.)
    Also, fix some bugs on platforms that lack hard links but have symlinks.

    'zic -v' again warns that Asia/Tehran has no POSIX environment variable
    to predict the far future, fixing a bug introduced in 2013e.
f:
    The types of the global variables 'timezone' and 'altzone' (if present)
    have been changed back to 'long'.  This is required for 'timezone'
    by POSIX, and for 'altzone' by common practice, e.g., Solaris 11.
    These variables were originally 'long' in the tz code, but were
    mistakenly changed to 'time_t' in 1987; nobody reported the
    incompatibility until now.  The difference matters on x32, where
    'long' is 32 bits and 'time_t' is 64.  (Thanks to Elliott Hughes.)

Revision 1.29 / (download) - annotate - [select for diffs], Fri Sep 20 19:06:54 2013 UTC (7 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Welcome to tzcode 2013e:

  Changes affecting API

    The 'zic' command now outputs a dummy transition when far-future
    data can't be summarized using a TZ string, and uses a 402-year
    window rather than a 400-year window.  For the current data, this
    affects only the Asia/Tehran file.  It does not affect any of the
    time stamps that this file represents, so zdump outputs the same
    information as before.  (Thanks to Andrew Main (Zefram).)

    The 'date' command has a new '-r' option, which lets you specify
    the integer time to display, a la FreeBSD.

    The 'tzselect' command has two new options '-c' and '-n', which lets you
    select a zone based on latitude and longitude.

    The 'zic' command's '-v' option now warns about constructs that
    require the new version-3 binary file format.  (Thanks to Arthur
    David Olson for the suggestion.)

    Support for floating-point time_t has been removed.
    It was always dicey, and POSIX no longer requires it.
    (Thanks to Eric Blake for suggesting to the POSIX committee to
    remove it, and thanks to Alan Barrett, Clive D.W. Feather, Andy
    Heninger, Arthur David Olson, and Alois Treindl, for reporting
    bugs and elucidating some of the corners of the old floating-point
    implementation.)

    The signatures of 'offtime', 'timeoff', and 'gtime' have been
    changed back to the old practice of using 'long' to represent UT
    offsets.  This had been inadvertently and mistakenly changed to
    'int_fast32_t'.  (Thanks to Christos Zoulos.)

    The code avoids undefined behavior on integer overflow in some
    more places, including gmtime, localtime, mktime and zdump.

  Changes affecting the zdump utility

    zdump now outputs "UT" when referring to Universal Time, not "UTC".
    "UTC" does not make sense for time stamps that predate the introduction
    of UTC, whereas "UT", a more-generic term, does.  (Thanks to Steve Allen
    for clarifying UT vs UTC.)

  Data changes affecting behavior of tzselect and similar programs

    Country code BQ is now called the more-common name "Caribbean Netherlands"
    rather than the more-official "Bonaire, St Eustatius & Saba".

    Remove from zone.tab the names America/Montreal, America/Shiprock,
    and Antarctica/South_Pole, as they are equivalent to existing
    same-country-code zones for post-1970 time stamps.  The data for
    these names are unchanged, so the names continue to work as before.

  Changes affecting code internals

    zic -c now runs way faster on 64-bit hosts when given large numbers.

    zic now uses vfprintf to avoid allocating and freeing some memory.

    tzselect now computes the list of continents from the data,
    rather than have it hard-coded.

    Minor changes pacify GCC 4.7.3 and GCC 4.8.1.

  Changes affecting the build procedure

    The 'leapseconds' file is now generated automatically from a
    new file 'leap-seconds.list', which is a copy of
    <ftp://time.nist.gov/pub/leap-seconds.list>.
    A new source file 'leapseconds.awk' implements this.
    The goal is simplification of the future maintenance of 'leapseconds'.

    When building the 'posix' or 'right' subdirectories, if the
    subdirectory would be a copy of the default subdirectory, it is
    now made a symbolic link if that is supported.  This saves about
    2 MB of file system space.

    The links America/Shiprock and Antarctica/South_Pole have been
    moved to the 'backward' file.  This affects only nondefault builds
    that omit 'backward'.

  Changes affecting documentation and commentary

    Changes to the 'tzfile' man page

      It now mentions that the binary file format may be extended in
      future versions by appending data.

      It now refers to the 'zdump' and 'zic' man pages.

    Changes to the 'zic' man page

      It lists conditions that elicit a warning with '-v'.

      It says that the behavior is unspecified when duplicate names
      are given, or if the source of one link is the target of another.

      Its examples are updated to match the latest data.

      The definition of white space has been clarified slightly.
      (Thanks to Michael Deckers.)

    Changes to the 'Theory' file

      There is a new section about the accuracy of the tz database,
      describing the many ways that errors can creep in, and
      explaining why so many of the pre-1970 time stamps are wrong or
      misleading (thanks to Steve Allen, Lester Caine, and Garrett
      Wollman for discussions that contributed to this).

      The 'Theory' file describes LMT better (this follows a
      suggestion by Guy Harris).

      It refers to the 2013 edition of POSIX rather than the 2004 edition.

      It's mentioned that excluding 'backward' should not affect the
      other data, and it suggests at least one zone.tab name per
      inhabited country (thanks to Stephen Colebourne).

      Some longstanding restrictions on names are documented, e.g.,
      'America/New_York' precludes 'America/New_York/Bronx'.

      It gives more reasons for the 1970 cutoff.

      It now mentions which time_t variants are supported, such as
      signed integer time_t.  (Thanks to Paul Goyette for reporting
      typos in an experimental version of this change.)

      (Thanks to Philip Newton for correcting typos in these changes.)

    Documentation and commentary is more careful to distinguish UT in
    general from UTC in particular.  (Thanks to Steve Allen.)

    Add a better source for the Zurich 1894 transition.
    (Thanks to Pierre-Yves Berger.)

    Update shapefile citations in tz-link.htm.  (Thanks to Guy Harris.)

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jul 17 23:09:26 2013 UTC (7 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored)

remove "register" in new code
fix backwards check for overflow

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jul 17 20:13:04 2013 UTC (7 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.26: +6 -7 lines
Diff to previous 1.26 (colored)

welcome to 2013d

Revision 1.26 / (download) - annotate - [select for diffs], Fri May 17 12:55:57 2013 UTC (7 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: riastradh-drm2-base
Branch point for: riastradh-drm2
Changes since 1.25: +3 -6 lines
Diff to previous 1.25 (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.25 / (download) - annotate - [select for diffs], Sun Apr 21 17:45:46 2013 UTC (7 years, 11 months ago) by joerg
Branch: MAIN
Changes since 1.24: +59 -26 lines
Diff to previous 1.24 (colored)

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

Revision 1.24 / (download) - annotate - [select for diffs], Sat Mar 2 21:24:28 2013 UTC (8 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.23: +5 -3 lines
Diff to previous 1.23 (colored)

update to tzcode2013a

Revision 1.23 / (download) - annotate - [select for diffs], Wed Oct 24 00:10:03 2012 UTC (8 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.22: +10 -10 lines
Diff to previous 1.22 (colored)

apply 2012g via patch

Revision 1.22 / (download) - annotate - [select for diffs], Tue Mar 20 16:39:08 2012 UTC (9 years ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Branch point for: tls-maxphys
Changes since 1.21: +7 -18 lines
Diff to previous 1.21 (colored)

Remove use of __P
Switch to using C89 definitions.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Dec 16 18:38:07 2010 UTC (10 years, 3 months ago) by christos
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.20: +36 -29 lines
Diff to previous 1.20 (colored)

Provide a re-entrant and thread-safe set of timezone API's that
don't require locking and can operate on user-specified timezones
as opposed to having to alter the environment to change a timezone.
This work was presented to the tzcode folks and it was generally
accepted, but there seems to be a lot of inertia.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Dec 31 22:49:16 2009 UTC (11 years, 3 months ago) by mlelstv
Branch: MAIN
Changes since 1.19: +203 -35 lines
Diff to previous 1.19 (colored)

Import tzcode2009k.
- now understands 64bit time_t and 64bit data in timezone files.
- localtime(), gmtime(), asctime() and ctime() may now fail with
  a NULL result if time_t cannot be represented by struct tm.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jan 11 02:46:30 2009 UTC (12 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.18: +8 -7 lines
Diff to previous 1.18 (colored)

merge christos-time_t

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jul 31 20:19:16 2007 UTC (13 years, 8 months ago) by ginsbach
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, 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, mjf-devfs2-base, mjf-devfs2, 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, matt-mips64-base, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, christos-time_t-nbase, christos-time_t-base
Branch point for: matt-mips64, christos-time_t
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored)

Make sure that %r honors the LC_TIME t_fmt_ampm.  This restores
functionality lost at revision 1.12!

Revision 1.17 / (download) - annotate - [select for diffs], Wed Mar 22 00:11:28 2006 UTC (15 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base, hpcarm-cleanup, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Coverity CID 580: fix 'c' handling to match 'x' ('c' used the wrong variable)

Revision 1.16 / (download) - annotate - [select for diffs], Wed May 12 23:03:11 2004 UTC (16 years, 11 months ago) by kleink
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.15: +39 -2 lines
Diff to previous 1.15 (colored)

Don't use tm_gmtoff for %z: a strictly conforming ISO C application won't
initialize it.  However, instead of using what is suggested in this code
path, attempt get it right for DST as well.  Addresses PR standards/21722
from Richard Earnshaw.

Revision 1.15 / (download) - annotate - [select for diffs], Tue May 11 09:32:02 2004 UTC (16 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.14: +6 -2 lines
Diff to previous 1.14 (colored)

Don't use tm_zone for %Z: a strictly conforming ISO C application won't
initialize it.  Addresses PR standards/21722 from Richard Earnshaw.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Oct 2 06:56:24 2002 UTC (18 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-2-0-base, nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Branch point for: netbsd-2-0
Changes since 1.13: +31 -15 lines
Diff to previous 1.13 (colored)

license clarification, from openbsd

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jan 29 12:40:34 2002 UTC (19 years, 2 months ago) by kleink
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Branch point for: netbsd-1-6
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Merge tzcode2002b.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Dec 12 15:35:31 2000 UTC (20 years, 4 months ago) by kleink
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.11: +353 -251 lines
Diff to previous 1.11 (colored)

Merge strftime from tzcode2000g.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Sep 7 12:45:03 2000 UTC (20 years, 7 months ago) by taca
Branch: MAIN
Changes since 1.10: +9 -2 lines
Diff to previous 1.10 (colored)

- Fix strftime(3) not to ignore tm_zone filed of last parameter,
  and "%Z" in format string is converted as proper time zone.
  This was taken from tzcode2000f.  Fix PR lib/10950.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jan 15 16:59:05 2000 UTC (21 years, 3 months ago) by kleink
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.9: +6 -2 lines
Diff to previous 1.9 (colored)

Add the C99 %F conversion.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Nov 5 19:21:12 1999 UTC (21 years, 5 months ago) by erh
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, comdex-fall-1999-base
Branch point for: comdex-fall-1999
Changes since 1.8: +7 -3 lines
Diff to previous 1.8 (colored)

PR 5057 - fix %k to print a 0, not just spaces.  (%e too).  Patch from NAKAJIMA Yoshihiro.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Feb 7 17:33:30 1999 UTC (22 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: wrstuden-devbsize, netbsd-1-4
Changes since 1.7: +87 -25 lines
Diff to previous 1.7 (colored)

Compute week number right.  Fixes PR 6961, from
Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE>

Revision 1.7 / (download) - annotate - [select for diffs], Tue Dec 1 16:07:11 1998 UTC (22 years, 4 months ago) by sommerfe
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

Fix pr6517: strftime %s returns unterminated string

Revision 1.6 / (download) - annotate - [select for diffs], Sun Nov 15 17:11:06 1998 UTC (22 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored)

delint

Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 27 16:41:20 1998 UTC (22 years, 6 months ago) by kleink
Branch: MAIN
Changes since 1.4: +92 -68 lines
Diff to previous 1.4 (colored)

Frob internal state keeping to make strftime() reentrant.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jul 21 14:09:22 1997 UTC (23 years, 8 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (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.3 / (download) - annotate - [select for diffs], Sun Jul 13 20:26:52 1997 UTC (23 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.2: +7 -3 lines
Diff to previous 1.2 (colored)

Fix RCSID's

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 29 20:00:14 1997 UTC (23 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.1: +67 -60 lines
Diff to previous 1.1 (colored)

* POSIX: use tzname for the %Z conversion, not tm->tm_zone.
* KNF, RCSid police.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 23 01:18:05 1997 UTC (23 years, 11 months 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>