christos
aa771cb970
merge 2015b
2015-03-24 20:01:18 +00:00
apb
978d974482
Explain why there is no consttime_memcmp().
...
Inspired by a patch from Kamil Rytarowski.
2015-03-23 07:41:16 +00:00
riastradh
f97ad6c03c
Tweak wording.
2015-03-20 14:10:40 +00:00
riastradh
934b3616ba
Elaborate on how our ad-hack symbol versioning works. Tweak style.
2015-03-20 13:26:51 +00:00
riastradh
26ef86fddb
First draft of documentation for the libc symbol madness.
...
Currently describes only what we do, not why we do it.
2015-03-20 12:57:48 +00:00
joerg
b9e2400677
Call libc's fpgetround.
2015-03-19 21:22:59 +00:00
riastradh
cc8a3a240d
Remove #ifdef MAP_INHERIT_ZERO.
...
This is essential for fork-safety, so don't merely #warn about it.
Attaining fork-safety without it requires restructuring things -- in
particular, there's no clear way to make it per-thread and fork-safe
without some global list of states to zero on fork.
2015-03-19 05:46:25 +00:00
wiz
0e3145a0d2
Use existing month for Dd.
2015-03-11 09:57:35 +00:00
christos
f7b1663b18
Behave in an OpenBSD compatible way for 0.
2015-03-10 13:05:13 +00:00
christos
49345864e2
PR/49640: Kamil Rytarowski: Improve error printing
2015-03-10 13:00:58 +00:00
christos
f41fc32af9
The OpenBSD strtonum() only accepts base 10 keywords. (Kamil Rytarowski)
2015-03-10 12:57:56 +00:00
christos
6998697823
say that we put the exit code in data.
2015-03-02 19:24:19 +00:00
christos
f5804ec983
Document SIGBUS per ToG.
2015-02-27 16:18:00 +00:00
wiz
c0c6cce56c
Remove sentence about casting to int (also from example).
...
Bump date.
ok joerg@
2015-02-25 16:23:40 +00:00
christos
4d416d886b
belated removal of the advertising clause.
2015-02-24 17:56:20 +00:00
wiz
f95cba75d4
Add EXAMPLES section, from Youri Mouton.
...
Bump date.
2015-02-19 23:08:21 +00:00
wiz
a1da3f78ee
Fix Xref. Split line, Ox doesn't take word arguments.
2015-02-18 08:46:43 +00:00
christos
84a0efdf85
use reallocarr()
2015-02-17 20:44:42 +00:00
joerg
9b5f3d5723
Move reallocarray under _OPENBSD_SOURCE where it belongs.
2015-02-17 20:33:40 +00:00
joerg
f6072d060e
Use reallocarr and simplify. Document valid reallocation failures.
2015-02-17 20:30:44 +00:00
joerg
c9baa5968d
Introduce reallocarr(3) for easy (re)allocation of memory with overflow
...
checks. Compared to OpenBSD's reallocarray, makes it easier to avoid memory
leaks on allocation failures and it doesn't depend on malloc(0) != NULL
for correct error checking. Compared to plain realloc, it also avoids
the problem of intermediate integer overflows. The trade-off is the use
of void * to side step C type system with regard to generic pointer to
pointer.
2015-02-17 20:29:20 +00:00
riastradh
b4ed92be5b
Use Pq to avoid space before O_EXCL.
2015-02-11 15:19:05 +00:00
pooka
7578f98047
Include compat in rumprun libc
...
Not including non-renamed symbols in libc caused all kinds of configure
scripts to do the wrong thing when they just tested linkage without
including headers. So, go for the "least moving parts" bandaid for now.
2015-02-09 22:44:34 +00:00
wiz
4b0035a070
Fix typo. Reported by rudolf on netbsd-docs.
2015-02-08 19:09:56 +00:00
wiz
b482bd6fc9
It is 2015 already.
2015-02-08 14:10:28 +00:00
njoly
45cb14b62a
The length argument is of an unsigned type (size_t) and cannot be
...
negative. Remove wrong statements in ERRORS section.
2015-02-08 11:27:43 +00:00
ginsbach
ce098d3b4e
PR/49642: change processor to host
...
Use the wording used by FreeBSD, IRIX, and MacOSX (as a sample) rather
suggested wording in PR from Henning Petersen.
2015-02-06 17:35:46 +00:00
wiz
1dc99cebf1
Remove trailing whitespace.
2015-02-06 08:37:39 +00:00
christos
0a0e590de3
Remove incorrect comment about size; mention that the malloc ambiguity is
...
part of the C standard.
2015-02-05 22:05:33 +00:00
christos
7347edd333
Revert addition to reallocarray to the malloc man page, but keep
...
the examples. Add separate manual page to reallocarray explaining
what are the problems with it.
2015-02-05 20:02:28 +00:00
christos
20f708949a
add a couple of casts.
2015-02-05 16:05:20 +00:00
christos
a582ce5979
Add and use reallocarray() to prevent a multiplication overflow in allocation.
...
Reported by Guido Vranken, thanks!
2015-02-05 16:04:35 +00:00
christos
269fe79da6
cast to return type
2015-02-05 16:01:38 +00:00
christos
70c8a4b907
fix incorrect type
2015-02-05 16:00:39 +00:00
christos
e7c1b9e475
CID/1267868: Resource leak "cur"
2015-02-02 22:07:05 +00:00
christos
0bf39b3f13
PR/49617: Kirk Russell: Describe the posix_fallocate return values correctly.
2015-02-01 15:24:15 +00:00
christos
5415342756
PR/49617: Kirk Russell: posix_fallocate() should be returning an error on
...
failure, without setting errno, so make it PSEUDO_NOERROR, by adding a new
category GLUENOERR.
2015-01-31 23:10:56 +00:00
christos
c51676e4e1
merge tzcode2015a:
...
tzalloc now scrubs time zone abbreviations compatibly with the way
that tzset always has, by replacing invalid bytes with '_' and by
shortening too-long abbreviations.
2015-01-31 18:55:17 +00:00
joerg
68179c3df2
Remove va_arg hack for Clang/PPC.
2015-01-29 20:44:38 +00:00
manu
95be0d98d3
Fix double free in fts_read()/fts_close()
...
When fts_read() gets an error on fchdir(), it exited with sp->fts_cur
set to a freed structure. fts_close() would later attempt to free it
again, crashing the program.
2015-01-29 15:55:21 +00:00
wiz
99c1481cc2
Remove superfluous comma.
2015-01-27 10:11:20 +00:00
uwe
1a997bcd9f
Adjust _UC_MACHINE_SP(oucp) to "drop" values we pushed to the stack.
...
t_swapcontext tests pass now with gcc 4.8.
From Yasushi Oshima in PR port-sh3/49597
2015-01-25 01:32:26 +00:00
wiz
c56adf4dde
Whitespace fixes. Remove duplicate Pp.
2015-01-21 08:35:31 +00:00
riastradh
d868888350
Use ChaCha20 here as advertised, not ChaCha8.
...
Oops.
Fortunately, there is no public cryptanalysis even of ChaCha8: the
best published attack is on ChaCha7 with time complexity 2^248.
2015-01-21 02:47:39 +00:00
christos
26ba80487b
Fix non _REENTRANT build.
2015-01-20 18:31:24 +00:00
christos
9226f39def
Factor out popen() code into separate functions and create popenve()
...
using the new functions, a safer version of popen() that does not
involve a shell. Correct manual page inaccuracies.
2015-01-20 17:28:00 +00:00
wiz
194f011f43
Fix date. Sort section. Sort errors. Sort SEE ALSO. Break too long
...
lines.
2015-01-19 11:47:41 +00:00
christos
3d8157c11a
cleanups from (Kamil Rytarowski)
2015-01-18 18:01:41 +00:00
christos
566fb07644
man page for strtonum.3
2015-01-18 17:59:36 +00:00
wiz
8a99473073
Remove trailing whitespace.
2015-01-16 23:46:37 +00:00