Home | History | Annotate | Download | only in gen
History log of /src/lib/libc/gen/times.c
RevisionDateAuthorComments
 1.15  11-Jan-2009  christos merge christos-time_t
 1.14  13-Sep-2005  christos branches: 1.14.28;
compat core reorg.
 1.13  30-Jun-2002  bjh21 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).
 1.12  23-Jun-2002  perry Since CLK_TCK is now a macro expanding into a function call, cache its
output instead of using it willy nilly.
 1.11  22-Jan-2000  mycroft branches: 1.11.6;
Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.10  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.9  16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.8  30-Mar-1998  kleink Need <time.h> for CLK_TCK definition.
 1.7  03-Feb-1998  perry remove obsolete register declarations
 1.6  21-Jul-1997  jtc 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>.
 1.5  13-Jul-1997  christos Fix RCSID's
 1.4  27-Feb-1995  cgd branches: 1.4.4;
merge with 4.4-Lite, keeping local changes. clean up Ids
 1.3  26-Aug-1993  jtc branches: 1.3.4;
Declare rcsid strings so they are stored in text segment.
 1.2  30-Jul-1993  mycroft Add even more RCS frobs.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  25-Feb-1995  cgd from lite, with minor name rearrangement to fit.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.3.4.1  02-May-1995  jtc #include "namespace.h"
 1.4.4.1  19-Sep-1996  jtc snapshot namespace cleanup: gen
 1.11.6.1  01-Aug-2002  nathanw Catch up to -current.
 1.14.28.1  08-Nov-2008  christos time_t changes

RSS XML Feed