The NetBSD Project

CVS log for src/include/time.h

[BACK] Up to [cvs.NetBSD.org] / src / include

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Sep 16 21:48:14 2024 UTC (4 months ago) by kre
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -2 lines

The prototype for localtime_r needs to be inside the
#ifndef __LIBC12_SOURCE__ block, as it has a time_t
parameter, and the compat code needs to be able to
make that 32 bits instead of 64.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Sep 16 17:58:43 2024 UTC (4 months ago) by christos
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +6 -3 lines
move gmtime_r in the right ifdefs block, it was not removed in 202405.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Sep 16 17:25:34 2024 UTC (4 months ago) by christos
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +7 -4 lines
asctime_r and ctime_r are no more for POSIX202405

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun Sep 8 18:13:07 2024 UTC (4 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
include: C11 has been released

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Aug 19 08:54:36 2023 UTC (17 months ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -2 lines
time.h: fix typo in comment

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Oct 23 15:43:40 2022 UTC (2 years, 2 months ago) by jschauma
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -2 lines
correct tm_sec range to be [0-60]

The previous range introduced in time.h rev1.14 was supposed to account
for a mystical "double leap second", which ultimately never could exist
and was a mistaken interpretation from an early ISO C standard whereby
the possibility of two leap seconds within a year was erroneously
interpreted to mean that two leap seconds could occur at once.

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:48:51 2016 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +9 -2 lines
Sync with HEAD

Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue Oct 4 09:41:41 2016 UTC (8 years, 3 months ago) by kamil
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, 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, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +9 -2 lines
Add timespec_get(3) in <time.h> and enable unconditionally struct timespec

These changes conforms to the C11 standard
References:
 - 7.27.1/3 Components of time (struct timespec)
 - 7.27.2.5 The timespec_get function

According to ISO/IEC 9899:201x (draft) <time.h> defines the timespec
structure and declares the timespec_get(3) function with TIME_UTC
definition.

According to a C++17 standard draft <ctime> offers the same interface in
the std:: namespace.

The timespec_get function modifies the timespec object pointed by ts
to hold the current calendar time in the given base. The standard notes
only the TIME_UTC base with implementation defined value, set it to 1
as zero is reserved for error handling. Once operation was successful this
function returns passed base, otherwise exits with zero.

The timespec struct was already part of the POSIX standard in <time.h>.

Enable this interface unconditionally in the header to allow to use it
in a code prior C11 and C++17 as an extension.

Review notes from <christos>

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Apr 23 23:10:10 2016 UTC (8 years, 9 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +7 -1 lines
add clock_cpugetclockid{2,}

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Oct 29 17:48:55 2015 UTC (9 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -1 lines
add tzgetgmtoff

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Oct 7 21:50:36 2014 UTC (10 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +14 -11 lines
sync function signatures with tzcode

Revision 1.40.6.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:36:35 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.40.6.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.6.1: +16 -1 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.40.12.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:28:49 2013 UTC (11 years, 7 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.40.12.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.12.1: +16 -1 lines
resync from head

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Apr 21 17:54:56 2013 UTC (11 years, 9 months ago) by joerg
Branches: 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
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +14 -14 lines
strftime_l is part of POSIX2008.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Apr 21 17:45:46 2013 UTC (11 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +16 -1 lines
Store time-specific locale data directly in the locale.
Ad dstrftime_l, strftime_lz and strptime_l.

Revision 1.40.12.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:00:40 2012 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -1 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.40.6.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 18:58:33 2012 UTC (12 years, 2 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -1 lines
sync with head

Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Oct 2 01:42:06 2012 UTC (12 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, agc-symver-base, agc-symver
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -1 lines
add clock_nanosleep

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Dec 16 18:36:47 2010 UTC (14 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, uebayasi-xip-base7, 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, tls-maxphys
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +22 -4 lines
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.39: download - view: text, markup, annotated - select for diffs
Thu May 14 02:37:36 2009 UTC (15 years, 8 months ago) by ginsbach
Branches: MAIN
CVS tags: uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +7 -1 lines
Add the getdate(3) function and getdate_err value, conforming to IEEE
Std 1003.1 (``POSIX.1'') and the Open Group Base Specifications X/Open
System Interfaces extension (``XSI'').

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Jan 11 03:04:12 2009 UTC (16 years ago) by christos
Branches: MAIN
CVS tags: jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +43 -25 lines
merge christos-time_t

Revision 1.37.6.4: download - view: text, markup, annotated - select for diffs
Mon Nov 10 02:18:29 2008 UTC (16 years, 2 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.37.6.3: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.6.3: +7 -3 lines
version tzset{,wall}

Revision 1.37.6.3: download - view: text, markup, annotated - select for diffs
Sat Nov 8 22:12:36 2008 UTC (16 years, 2 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.37.6.2: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.6.2: +1 -2 lines
delete redundant declaration of time()

Revision 1.37.6.2: download - view: text, markup, annotated - select for diffs
Sat Nov 8 21:13:13 2008 UTC (16 years, 2 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.37.6.1: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.6.1: +183 -0 lines
changes for 64 bit time_t

Revision 1.37.6.1
Sun Sep 21 16:59:46 2008 UTC (16 years, 4 months ago) by christos
Branches: christos-time_t
FILE REMOVED
Changes since revision 1.37: +0 -168 lines
file time.h was added on branch christos-time_t on 2008-11-08 21:13:13 +0000

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Sep 21 16:59:46 2008 UTC (16 years, 4 months ago) by christos
Branches: MAIN
CVS tags: 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, christos-time_t-nbase, christos-time_t-base
Branch point for: christos-time_t
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -2 lines
add missing attributes to the remaining calls, even the ones that gcc has
builtin attributes for (for symmetry and consistency). In the future this
might change to use compiler-neutral macros. On the other hand I don't
know of any other compiler that provides other macros with similar
functionality, so why bother?

Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue Apr 1 19:23:28 2008 UTC (16 years, 9 months ago) by drochner
Branches: 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, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2 lines
everyone else assumes that defining "_XOPEN_SOURCE" means XPG4.2,
so remove comparisions against the numerical values "3" or "4"

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Sep 13 01:44:32 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
CVS tags: 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
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -11 lines
compat code reorg

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Feb 3 04:39:32 2005 UTC (19 years, 11 months ago) by perry
Branches: 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
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +38 -38 lines
de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Dec 21 23:19:02 2003 UTC (21 years, 1 month ago) by kleink
Branches: 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
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -5 lines
Do a little const cleanup, for consistency with std interfaces.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Sep 13 22:31:04 2003 UTC (21 years, 4 months ago) by kleink
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -4 lines
Sprinkle restrict into timer_{create,settime}(2).

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Aug 7 09:44:11 2003 UTC (21 years, 5 months ago) by agc
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -6 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Apr 28 23:16:15 2003 UTC (21 years, 8 months ago) by bjh21
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +11 -12 lines
Add a new feature-test macro, _NETBSD_SOURCE.  If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
  can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
  various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
  !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them.  In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.

Revision 1.25.2.2: download - view: text, markup, annotated - select for diffs
Thu Aug 1 03:31:28 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.25.2.1: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.2.1: +16 -3 lines
Catch up to -current.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Jun 30 09:45:39 2002 UTC (22 years, 6 months ago) by bjh21
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +9 -3 lines
Version times() so that programs compiled before the recent change to make
sysconf(_SC_CLK_TCK) return hz will work.

In detail:
__times13() returns values scaled by hz.
times() returns values scaled by 100.
<sys/times.h> renames times() to __times13().

_SC_CLK_TCK has changed from 3 to 39.
sysconf(3) returns 100.
sysconf(39) returns hz.
CLK_TCK is defined as sysconf(39).

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Jun 23 19:41:04 2002 UTC (22 years, 7 months ago) by perry
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +10 -3 lines
In the manner of Solaris and other OSes, we now define CLK_TCK to
expand to a call to __sysconf(_SC_CLK_TCK), rather than hard coding it
as a constant.

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Sun Apr 8 20:31:41 2001 UTC (23 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +14 -6 lines
Merge trunk onto branch.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Mar 31 18:29:20 2001 UTC (23 years, 9 months ago) by kleink
Branches: MAIN
CVS tags: 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
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -1 lines
Finally deprecate the old timezone() interface in favor of an XSH5
timezone/daytime pair; as proposed by J.T. in September, 1996.
Fixes PR standards/11807 by Nick Hudson.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Mar 29 19:06:39 2001 UTC (23 years, 9 months ago) by kleink
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +8 -6 lines
Sprinkle some restrict.

Revision 1.24.4.1: download - view: text, markup, annotated - select for diffs
Tue Jul 18 00:14:30 2000 UTC (24 years, 6 months ago) by hubertf
Branches: netbsd-1-5
CVS tags: 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
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +2 -2 lines
Pull up rev. 1.25 into 1.5 branch, OK'd by thorpej:

Fix typo in comment: CUT -> UTC

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Jul 6 12:46:48 2000 UTC (24 years, 6 months ago) by hubertf
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
Fix typo in comment: CUT -> UTC

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Jan 10 16:58:38 2000 UTC (25 years ago) by kleink
Branches: MAIN
CVS tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
Move <null.h> to <sys/null.h> for the purpose of avoiding conflicts due to
std C headers including it, and a kernel module written in C++ would benfit
as well.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Dec 22 21:26:20 1999 UTC (25 years, 1 month ago) by kleink
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -4 lines
For the benefit of G++'s null pointer constant implementation, #define NULL
as __null with egcs 1.0 (GCC 2.90) and above.  As several headers are affected
by this change, move the definition into a new header file, <null.h>, to ease
maintenance.

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 28 00:06:46 1998 UTC (26 years, 4 months ago) by cgd
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +1 -2 lines
pull up rev 1.22 (remove gtime declaration) from trunk (kleink).

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Sep 15 12:24:28 1998 UTC (26 years, 4 months ago) by kleink
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, comdex-fall-1999-base, comdex-fall-1999
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -2 lines
Remove the public declaration of gtime(), which is shipped with tzcode but is
not compiled into our libc since it is intended for use with Mach only.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Sep 10 18:37:28 1998 UTC (26 years, 4 months ago) by kleink
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +34 -17 lines
Declare asctime_r(), ctime_r(), gmtime_r() and localtime_r(), and rearrange
name space protection a bit.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Jul 27 11:09:19 1998 UTC (26 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -5 lines
Slight rearrangement.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jul 27 11:08:38 1998 UTC (26 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -1 lines
Need cdefs.h.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Jul 27 09:09:27 1998 UTC (26 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
Make many of the new consts dependent on a new `__AUDIT__' flag, to avoid
breaking third party software.  *sigh*

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jul 26 12:58:15 1998 UTC (26 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
const poisoning.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Jul 26 12:55:17 1998 UTC (26 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
const poisoning.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Feb 2 21:08:05 1998 UTC (26 years, 11 months ago) by perry
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -5 lines
merge lite-2

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Feb 2 07:23:18 1998 UTC (26 years, 11 months ago) by perry
Branches: WFJ-920714, CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +104 -1 lines
import lite-2

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Nov 2 18:31:38 1997 UTC (27 years, 2 months ago) by kleink
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +5 -2 lines
* Move prototypes of clock_getres(), clock_gettime() and clock_settime() from
  <sys/time.h> to this file.
* Update range comment wrt. the tm_sec member of struct tm to [0-61] (double
  leap seconds are supported).

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Oct 4 15:00:42 1997 UTC (27 years, 3 months ago) by kleink
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +7 -1 lines
Per 1003.1b-93, move nanosleep() prototype from <sys/time.h> to <time.h>
and add appropriate namespace protection.  Also protect timer_*() prototypes.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jul 13 18:32:18 1997 UTC (27 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +11 -1 lines
Add typedefs for clockid_t and timer_t

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Jul 13 18:09:51 1997 UTC (27 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +17 -1 lines
- Added prototypes for non POSIX that are marked STD inspired:
    offtime, timelocal, timegm, timeoff, gtime, time2posix, posix2time.
- Added prototypes for the currently stubbed out timer functions:
    timer_{create,delete,getoverrun,gettime,settime}

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon May 26 16:03:58 1997 UTC (27 years, 8 months ago) by kleink
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -1 lines
Add strptime(3) prototype.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Oct 26 00:56:35 1994 UTC (30 years, 3 months ago) by cgd
Branches: MAIN
CVS tags: nsswitch, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -2 lines
new RCS ID format.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat May 21 09:42:41 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +10 -10 lines
add _BSD's to ansi types

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon May 16 10:59:01 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +108 -1 lines
update all but ctype.h, dumprestore.h, time.h to 4.4-Lite versions.
USL copyright additions on those.  Kill varargs.h, because it can simply
be a link to the machine-dependent version.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Jan 20 02:54:36 1994 UTC (31 years ago) by jtc
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -1 lines
Declare tzname[] extern, so compiler won't include it in object files.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Oct 11 18:45:05 1993 UTC (31 years, 3 months ago) by jtc
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -1 lines
declare char *tzname[2];

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Aug 18 01:02:58 1993 UTC (31 years, 5 months ago) by jtc
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -1 lines
As per Chris Torek's suggestion, define CLOCKS_PER_SEC and CLK_TCK to 100.
When we get sysconf, we can define them in terms of the kernel's notion of
interrupts per second if we so choose.  Until then, the constant value
seems to satisfy the requirements presented by ISO C and POSIX, even if it
may lie about the true number of clocks per second.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Aug 17 20:33:56 1993 UTC (31 years, 5 months ago) by jtc
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -1 lines
Define CLOCKS_PER_SEC.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Aug 1 18:45:12 1993 UTC (31 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1 lines
Add RCS identifiers.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, netbsd-0-8, WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>