#
9f68ff7e |
| 03-Sep-2024 |
op <op@openbsd.org> |
typo in comment; Effectivly -> Effectively; ok gilles@
|
#
2c53affb |
| 27-Dec-2022 |
jmc <jmc@openbsd.org> |
spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
|
#
d82e6535 |
| 06-Jul-2020 |
pirofti <pirofti@openbsd.org> |
Add support for timeconting in userland.
This diff exposes parts of clock_gettime(2) and gettimeofday(2) to userland via libc eliberating processes from the need for a context switch everytime they
Add support for timeconting in userland.
This diff exposes parts of clock_gettime(2) and gettimeofday(2) to userland via libc eliberating processes from the need for a context switch everytime they want to count the passage of time.
If a timecounter clock can be exposed to userland than it needs to set its tc_user member to a non-zero value. Tested with one or multiple counters per architecture.
The timing data is shared through a pointer found in the new ELF auxiliary vector AUX_openbsd_timekeep containing timehands information that is frequently updated by the kernel.
Timing differences between the last kernel update and the current time are adjusted in userland by the tc_get_timecount() function inside the MD usertc.c file.
This permits a much more responsive environment, quite visible in browsers, office programs and gaming (apparently one is are able to fly in Minecraft now).
Tested by robert@, sthen@, naddy@, kmos@, phessler@, and many others!
OK from at least kettenis@, cheloha@, naddy@, sthen@
show more ...
|
#
c6cbd355 |
| 05-Apr-2016 |
guenther <guenther@openbsd.org> |
Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specific data isn't necessary.
ok mpi@, ok&tweak natano@
|
#
c8503c07 |
| 05-Oct-2015 |
guenther <guenther@openbsd.org> |
Wrap <resolv.h> so that internal calls go direct
ok millert@
|
#
1f346333 |
| 04-Jun-2015 |
eric <eric@openbsd.org> |
force reseeding if pid has changed.
ok deraadt@
|
#
1a0ab620 |
| 20-Jul-2014 |
guenther <guenther@openbsd.org> |
From ISO/IEC 9899:1999 and 9899:201x, 6.11.5 - Storage-class specifiers: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration
From ISO/IEC 9899:1999 and 9899:201x, 6.11.5 - Storage-class specifiers: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature.
Diff from Jean-Philippe Ouellet (jean-philippe (at) ouellet.biz)
show more ...
|
#
c8bfcb67 |
| 12-Nov-2013 |
deraadt <deraadt@openbsd.org> |
permute15() should be static. Not cranking libc now, because it is not urgent.
|
#
ad22cdb2 |
| 17-Apr-2013 |
deraadt <deraadt@openbsd.org> |
use CLOCK_MONOTONIC, and repair future time_t overflow ok millert guenther
|
#
7a1b2c1d |
| 26-Mar-2013 |
eric <eric@openbsd.org> |
protect the PRG state with a mutex in res_randomid().
ok deraadt@ guenther@ djm@
|
#
9f83ed3a |
| 13-Apr-2008 |
djm <djm@openbsd.org> |
Improve the libc DNS resolver ID generation algorithm to be more resistant to prediction atacks by wrapping the existing LCG in a random permutation generator based on a Luby-Rackoff block cipher.
l
Improve the libc DNS resolver ID generation algorithm to be more resistant to prediction atacks by wrapping the existing LCG in a random permutation generator based on a Luby-Rackoff block cipher.
lots of discussion and final ok deraadt@
show more ...
|
#
db5b349c |
| 25-Mar-2005 |
otto <otto@openbsd.org> |
ansify. ok deraadt@ moritz@
|
#
f5ad2d7d |
| 12-Dec-2003 |
itojun <itojun@openbsd.org> |
niels kindly dropped clause 3/4 from the license. tnx!
|
#
554c54e9 |
| 12-Dec-2003 |
itojun <itojun@openbsd.org> |
we can skip arc4random() call here. markus
|
#
7c5afa88 |
| 10-Dec-2003 |
itojun <itojun@openbsd.org> |
correct non-repetitive ID code, based on comments from niels provos. - seed2 is necessary, but use it as "seed2 + x" not "seed2 ^ x". - skipping number is not needed, so disable it for 16bit generato
correct non-repetitive ID code, based on comments from niels provos. - seed2 is necessary, but use it as "seed2 + x" not "seed2 ^ x". - skipping number is not needed, so disable it for 16bit generator (makes the repetition period to 30000)
show more ...
|
#
dc2ebd99 |
| 27-Jun-2002 |
itojun <itojun@openbsd.org> |
%d -> %u. mostly in #ifdef DEBUG.
|
#
e7beb4a7 |
| 19-Feb-2002 |
millert <millert@openbsd.org> |
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
|
#
c72b5b24 |
| 16-Feb-2002 |
millert <millert@openbsd.org> |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be don
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
show more ...
|
#
6dd23de7 |
| 04-Jan-2001 |
todd <todd@openbsd.org> |
grammer/spelling
|
#
7db10e51 |
| 26-Aug-1999 |
provos <provos@openbsd.org> |
add an inner xor to make prediction attacks against the ids harder, due to an attack pointed out by David Wagner.
|
#
b7113356 |
| 25-Jul-1997 |
mickey <mickey@openbsd.org> |
#if __STDC__ --> #ifdef __STDC__
|
#
fe926a21 |
| 30-Apr-1997 |
tholo <tholo@openbsd.org> |
Be more careful about possible type promotion
|
#
2f382753 |
| 25-Apr-1997 |
provos <provos@openbsd.org> |
skipped too many ids
|
#
aba8e7ac |
| 23-Apr-1997 |
provos <provos@openbsd.org> |
pmod to u_int16_t, Angelos kindly reminded me
|
#
db0ae91f |
| 19-Apr-1997 |
provos <provos@openbsd.org> |
change time() to gettimeofday()
|