Commit Graph

2160 Commits

Author SHA1 Message Date
pooka
dc3c2e9560 Add two more Makefile conditionals required for RUMPRUN=yes
* do not build _errno.c (different thread/tls handling)
 * do not build either phk- or jemalloc (different backing page allocation)

Somehow I missed these in the previous commit, but now libc built with
RUMPRUN=yes works also with rumprun-posix, so there's reasonably high
confidence that I didn't miss anything anymore.
2014-12-10 16:55:54 +00:00
christos
fa438ee608 - Use O_DIRECTORY to open the file, so that we don't need to stat() after
that.
- Move the stat() call to fdopendir() and change it's error handling so that
  it does not hide errors.
- According to POSIX, fdopendir() transfers ownership of the fd only on
  success, so don't close it on failure. XXX: We still make it non-blocking
  on failure, but that's nitpicking.

XXX: pullup-7?
2014-11-26 16:48:43 +00:00
riastradh
b1fb140d0e Tweak wording, define `output', remove misplaced scaremongering. 2014-11-17 18:41:29 +00:00
riastradh
d8a3efd656 Fix Google Groups link. 2014-11-17 15:28:22 +00:00
wiz
7a50617bac Remove unnecessary Ns before punctuation. Fix a line. 2014-11-17 15:17:41 +00:00
riastradh
e8e4197773 Cross-reference rnd(4). 2014-11-17 15:08:37 +00:00
riastradh
28464c9ad0 Markup for BUGS note about arc4random_uniform. 2014-11-17 15:06:59 +00:00
riastradh
e8af01c56b Amplify comment about how quickly RC4 was known to be bad. 2014-11-17 15:05:12 +00:00
riastradh
eed04e6bf8 Ruminate on security model choices and API design in arc4random(3). 2014-11-17 07:11:00 +00:00
riastradh
ac8077340f Note relation of arc4random(3) to rand(3)/random(3). 2014-11-17 06:37:23 +00:00
wiz
746186406b Grammar. 2014-11-16 20:37:35 +00:00
riastradh
0e26ad0818 Rewrite arc4random(3) with ChaCha20-based PRNG and per-thread state.
Explain the security model in the man page.

No more RC4!

XXX pullup to netbsd-6, netbsd-5
2014-11-16 20:33:04 +00:00
njoly
0df29bec99 Do not use hard-coded values with ENAMETOOLONG, use symbolic constants
instead.
2014-10-19 16:47:51 +00:00
christos
02807d50d6 Fix fnmatch issues according to POSIX.
http://pubs.opengroup.org/onlinepubs/009695399/utilities/\
xcu_chap02.html#tag_02_13_01
1. A [...] pattern containing a slash is not a pattern; the [ ]'s become regular
   characters
2. A [] or a [!] is not an empty pattern, why would it? The first would never
   match and the second would always match which makes it equivalent to ?
   In those cases the ] is taken as a literal character and does not have
   special meaning.
2014-10-12 22:32:33 +00:00
apb
776c903d9b include "nbtool_config.h", not "nbtools_config.h". 2014-10-01 13:53:04 +00:00
apb
f685c2f61e It's HAVE_NBTOOL_CONFIG_H, not HAVE_NBTOOLS_CONFIG_H 2014-10-01 12:55:39 +00:00
christos
6eac8b28cf toolize 2014-09-30 17:59:06 +00:00
wiz
902772b4e8 Add execvpe in one more place to explain its last argument.
Call character '0' 'NUL' instead of 'null'.
2014-09-27 16:42:07 +00:00
wiz
8ce7ddd61a Consistency in commas. Wording. 2014-09-27 08:46:56 +00:00
christos
566336d596 missed one reference. 2014-09-26 23:57:26 +00:00
christos
718924c8d3 add execvpe, execlpe (reviewed by phone) 2014-09-26 19:28:03 +00:00
roy
a1379155fa Cannot encode \$ in VIS_CSTYLE as that looks like vis -l encoding. 2014-09-26 15:58:59 +00:00
roy
c34e5c76fb Revert prior patch as it breaks vis -l as pointed out by apb. 2014-09-26 15:43:36 +00:00
roy
45893168de Don't encode any characters in VIS_CSTYLE that have a special meaning
in unvis(3), such as n r b, etc.
2014-09-26 13:48:00 +00:00
roy
a85407d2f2 Remove \$ as a hidden marker as vis(3) wasn't setting it
and it clobbered VIS_SHELL | VIS_CSTYLE.
2014-09-26 13:03:22 +00:00
roy
6439e61ed3 Decode any printable characters encoded with VIS_CSTYLE so
unvis(3) works with vis.c r1.25
2014-09-26 12:59:28 +00:00
christos
1fcf585b38 no c99 for tools. 2014-09-26 05:01:44 +00:00
wiz
1180688fb8 Simplify even more. 2014-09-26 02:30:27 +00:00
wiz
36fc2013b1 Simplify/fix macro usage. Bump date for previous. 2014-09-26 02:18:57 +00:00
christos
e36fdb7ec1 add VIS_META/VIS_SHELL support to encode all shell metacharacters.
XXX: /etc/rc.d/wizd fix $
2014-09-26 01:21:07 +00:00
christos
9d26a6478d undo, the right place for this is compat_defs.h 2014-09-24 13:18:52 +00:00
he
fce45f5a15 Provide a backward-compatible conditional define of O_CLOEXEC
for those systems which lack it, since these files are used in
tools builds.
2014-09-24 07:53:06 +00:00
christos
9a513d9643 make more descriptors that we open as close-on-exec 2014-09-18 13:58:20 +00:00
christos
98376426fb get rid of MB_STRZ as suggested by joerg. 2014-09-08 17:35:01 +00:00
christos
4edef697e0 PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings gracefully.
(don't abuse 0 to mean compute string length internally)
2014-09-08 16:42:09 +00:00
wiz
0a3068e150 Use Nx. 2014-07-19 14:58:50 +00:00
roy
1ae594017c Document that our use of pthread_mutex_unlock(3) is async-signal-safe
and as such can be used in a phtread_atfork(3) child handler.
2014-07-19 14:53:22 +00:00
christos
db6e70af12 basename_r and dirname_r are non-standard and different from what we define
here on FreeBSD. Their libgen.h exposes them unconditionally, so hide ours
for now.
2014-07-16 10:52:26 +00:00
christos
59925ff2ff Factor out the basename and dirname code into basename_r and dirname_r
which are static for now. Inspired by similar changes to android(bionic).
2014-07-14 20:44:45 +00:00
christos
321c9aef65 don't depend on expandtc to open the database or not. 2014-06-26 20:14:32 +00:00
christos
1913c9411a Recognize CR as end of line too. the telnet client passes that to us instead
of linefeed.
2014-06-16 16:29:30 +00:00
apb
637cec4115 Document the relationship between uname(3) and sysctl(7) variables. 2014-06-14 14:32:43 +00:00
apb
f37ea538b1 If sysctl kern.version returns a string that's too long
to fit in {struct utsname}.version then just use the
truncated value.
2014-06-14 13:09:37 +00:00
apb
e72cca9651 Teach fmtcheck(3) that a pointer and a long are not the same. 2014-06-14 08:18:24 +00:00
wiz
8333f359ba Remove trailing whitespace. Use more markup. Merge sections describing
the same error code.
2014-06-13 22:05:15 +00:00
joerg
3adc1c7681 Add asysctl(3) and asysctlbyname(3) wrappers for the common idiom of
fetching dynamically sized data via sysctl.
2014-06-13 15:45:05 +00:00
apb
e7f11a1a5a fix missing backslash in previous 2014-06-12 19:12:19 +00:00
apb
bb0d3eec51 Wrap complex macros in do { ... } while (0). Also replace the magic
number 1600000 with a macro.
2014-06-12 19:05:37 +00:00
roy
c7009a57fe Re-stir after forking, fixes PR lib/25367.
Re-stir after consuming 1600000 bytes, fixes PR lib/45952.
2014-06-07 20:55:47 +00:00
joerg
86ed47b359 Fix conditionals. 2014-06-06 11:38:41 +00:00