bcook
9b651cf7ae
Move _ARC4_ATFORK handlers from thread_private.h in portable.
10 years ago
bcook
b61a1138bd
move _ARC4_LOCK/UNLOCK primitives from thread_private into OS-specific modules
10 years ago
bcook
8a64d61e25
fixup typos
10 years ago
deraadt
884e90e06c
Change _rs_allocate so it can combine the two regions (rs and rsx)
into one if a system has an awesome getentropy(). In that case it
is valid to totally throw away the rsx state in the child. If the
getentropy() is not very good and has a lazy reseed operation, this
combining is a bad idea, and the reseed should probably continue to
use the "something old, something new" mix. _rs_allocate() can
accomodate either method, but not on the fly.
ok matthew
10 years ago
matthew
908da16e8c
Cleanup portable arc4random fork detection code:
1. Use "len" parameter instead of sizeof(*rs).
2. Simplify the atfork handler to be strictly async signal safe by
simply writing to a global volatile sig_atomic_t object, and then
checking for this in _rs_forkdetect(). (Idea from discussions with
Szabolcs Nagy and Rich Felker.)
3. Use memset(rs, 0, sizeof(*rs)) to match OpenBSD's MAP_INHERIT_ZERO
fork semantics to avoid any skew in behavior across platforms.
ok deraadt
10 years ago
deraadt
83d1ab94c7
Since syslog messages are now sent via the sendsyslog(2) system call,
we no longer need the spread of dev/log AF_UNIX sockets all over the
various chroot spaces.
ok beck millert aja
10 years ago
deraadt
44d46ee4c5
ugly ugly whitespace
10 years ago
ajacoutot
da05e1169f
Follow the recent addition of /usr/local/lib/pkgconfig and add
/usr/local/share/pkgconfig
ok sthen@
10 years ago
matthew
c4eeb8ba1e
Remove "const" from the lsearch(3) manual's synopsis too.
Reminded by Rafael Neves
10 years ago
jmc
df5413a7ec
zap trailing whitespace;
10 years ago
matthew
3d494c5a79
Change lsearch()'s "base" argument to require a non-const pointer to
align with POSIX and other systems.
Pointed out by Elliott Hughes on tech
ok deraadt
10 years ago
deraadt
19c7eca85b
Seperate arc4random's os-dependent parts into static inline functions,
making it much easier for libressl -portable to fill in the gaps.
ok bcook beck
10 years ago
deraadt
e95464400c
it is 2014, and we still need to encourage people away from srand()
and random(). Sigh.
10 years ago
deraadt
05894e184c
match current permissions
10 years ago
deraadt
5df94fa40d
sh netstart, instead of using .
We don't want any of the variables created inside netstart to infect the
rc script.
ok claudio sthen aja
10 years ago
ajacoutot
a8aa89637a
Unbreak after the rc_do->_rc_do and rc_wait->_rc_wait renaming.
If someone wants to take a shot a modifying this rc script so that it does
not use internal rc.subr functions, be my guest...
spotted by jsg@
10 years ago
deraadt
a4e31d35a0
"Race-free because we're running single-threaded in a new
address space, and once allocated rs is never deallocated."
document the forkhandler to save reviewers time, with matthew
10 years ago
deraadt
0b9011095e
add optional keywords all over the place, and some missing files.
likely to be more changes here to match the new layout.
ok ingo aja
10 years ago
ajacoutot
cbf7f83338
No more /var/db/sysmerge
10 years ago
deraadt
0f6d37afe3
remove ancient unused NOGZIP support
10 years ago
ajacoutot
7e9e3c9dce
Handle the sysmerge move.
10 years ago
okan
29a91aa8aa
prefer ln -f over rm + ln
OK deraadt
10 years ago
okan
e0cf8941d0
use /bin/sh instead of /bin/ksh and add cvs id.
OK deraadt
10 years ago
kettenis
2c152452b6
Only call getauxval(3) if HAVE_GETAUXVAL is defined. Fixes build on older
Linux (such as Ubuntu 12.04LTS) that don't have it yet. Seems the AT_XXX
defines are pulled in by <link.h> now.
ok beck@
10 years ago
deraadt
74870fb90f
Yes /etc/disklabels/ is a good practice for placing labels of disks
in case of catastropy. But it is so poorly documented that any admin
is more likely to store the labels elsewhere, so let's stop bothering
with providing the directory. Discussed a bit, no objections.
10 years ago
deraadt
31e43b4033
mixerctl.conf wsconsctl.conf can properly become examples.
As discussed a few days ago with aja
10 years ago
deraadt
73c26eea40
the files listed under BIN1 are not binaries in any way. Let's call
them what they are: MUTABLE, as in these are the specific files that
admins do edit in /etc
10 years ago
deraadt
49f512458d
create examples/pf.conf which is a clone of the existing file. Now
the existing file can start losing... examples...
10 years ago
deraadt
0fff1a2399
BIN2 is now just motd; install it direct without the abstractions. While
there, let's make it operator writeable. Or let's do a commit changing it
to operator writeable and see the pro and con camps rise up.
10 years ago
deraadt
0110a70449
lynx has left the tree, and let's be honest noone will find these html
files in their installed system. this extended documentation experience
is available better on the net using a browser installed with pkg_add.
(also note that two of the subsystems involved in this issue are heading
to the bit bucket sometime soon)
10 years ago
deraadt
8841ad7d7c
more lynx bits
10 years ago
deraadt
761d542408
another piece of lynx hides here
10 years ago
deraadt
9c21f5c33d
#ifdef wrap the _rs_forkhandler
10 years ago
bcook
fca7f5a866
added handler for an atfork hook from kettenis@
ok deraadt@ beck@ kettenis@
10 years ago
deraadt
52e978a9d8
tidy up the script
10 years ago
miod
d1cf88ea26
Apparently people updating this no longer fix the DOW and the minute and
seconds values in the announcement timestamps. Damn youngsters.
10 years ago
deraadt
c3a6ab0d79
crank to 5.6-beta
10 years ago
miod
0627e39b9d
Remove ppi (hp300 leftover)
10 years ago
sthen
df49f6c562
add port entries for quagga from the documentation, ok ajacoutot@
/etc/services file moved from etc to base so is no longer really
user-editable as changes will be overwritten at update time
10 years ago
sthen
afb116c353
conserver moved port, ok ajacoutot@
10 years ago
deraadt
63edfe2d88
BSD.local.dist went away
10 years ago
ajacoutot
d65c2f0adb
/var/db/sysmerge -> /usr/share/sysmerge
ok deraadt@
10 years ago
espie
c0a8ea5276
folded back into 4.4BSD.dist
removed to unconfuse devs
okay aja, theo
10 years ago
deraadt
51fcfd90fc
new dir /usr/share/sysmerge
10 years ago
deraadt
d5c05ae2f9
correct dir
10 years ago
sthen
03593f6125
add /usr/local/lib/pkgconfig to mtree, ok espie@ jasper@
10 years ago
deraadt
8d60b9304c
sysctl.conf moves to etc/examples
10 years ago
ajacoutot
71b35ac49d
Add shebang to make it clear these files are shell scripts (they are
explicitely executed by sh(1)).
discussed with deraadt@
10 years ago
ajacoutot
d7bed9d58a
quiet /etc/rc.shutdown, it may not exist.
ok deraadt@
10 years ago
ajacoutot
f6d70a88c8
This isn't C.
10 years ago