openbsd
10 years agopreserve errno across syscall
djm [Thu, 17 Jul 2014 00:10:18 +0000 (00:10 +0000)]
preserve errno across syscall

10 years agozap trailing newlines; "go for it" deraadt
okan [Wed, 16 Jul 2014 20:08:25 +0000 (20:08 +0000)]
zap trailing newlines; "go for it" deraadt

10 years agozap trailing newlines; "go for it" deraadt
okan [Wed, 16 Jul 2014 20:07:03 +0000 (20:07 +0000)]
zap trailing newlines; "go for it" deraadt

10 years agozap trailing newlines; "go for it" deraadt
okan [Wed, 16 Jul 2014 20:06:27 +0000 (20:06 +0000)]
zap trailing newlines; "go for it" deraadt

10 years agozap trailing newlines; "go for it" deraadt
okan [Wed, 16 Jul 2014 20:05:28 +0000 (20:05 +0000)]
zap trailing newlines; "go for it" deraadt

10 years agozap trailing newlines; "go for it" deraadt
okan [Wed, 16 Jul 2014 20:05:03 +0000 (20:05 +0000)]
zap trailing newlines; "go for it" deraadt

10 years agozap trailing newlines; "go for it" deraadt
okan [Wed, 16 Jul 2014 20:04:21 +0000 (20:04 +0000)]
zap trailing newlines; "go for it" deraadt

10 years agozap trailing newlines; "go for it" deraadt
okan [Wed, 16 Jul 2014 20:02:45 +0000 (20:02 +0000)]
zap trailing newlines; "go for it" deraadt

10 years agozap trailing newlines; "go for it" deraadt
okan [Wed, 16 Jul 2014 20:02:17 +0000 (20:02 +0000)]
zap trailing newlines; "go for it" deraadt

10 years agozap trailing newlines; "go for it" deraadt
okan [Wed, 16 Jul 2014 20:00:14 +0000 (20:00 +0000)]
zap trailing newlines; "go for it" deraadt

10 years agozap trailing newlines; "go for it" deraadt
okan [Wed, 16 Jul 2014 19:59:29 +0000 (19:59 +0000)]
zap trailing newlines; "go for it" deraadt

10 years agozap trailing newlines; "go for it" deraadt
okan [Wed, 16 Jul 2014 19:57:34 +0000 (19:57 +0000)]
zap trailing newlines; "go for it" deraadt

10 years agoremove ancient unused NOGZIP support
deraadt [Wed, 16 Jul 2014 19:08:54 +0000 (19:08 +0000)]
remove ancient unused NOGZIP support

10 years agobase vs etc set management is the trickiest. Explain the current rules
deraadt [Wed, 16 Jul 2014 18:55:29 +0000 (18:55 +0000)]
base vs etc set management is the trickiest.  Explain the current rules
that govern the split.

10 years agoSave and restore NVS ranges when hibernating, as per The Spec.
mlarkin [Wed, 16 Jul 2014 17:44:16 +0000 (17:44 +0000)]
Save and restore NVS ranges when hibernating, as per The Spec.

ok kettenis@, deraadt@

10 years agoFix tlsext_tick_lifetime_hint value in test #2 to make sure the
miod [Wed, 16 Jul 2014 17:38:19 +0000 (17:38 +0000)]
Fix tlsext_tick_lifetime_hint value in test #2 to make sure the
(tlsext_tick_lifetime_hint > 0) test also passes on 32-bit platforms
(tlsext_tick_lifetime_hint is a long).

10 years agoDo not set pci_dopm to 1 on the Gdium; if we do, rebooting puts the USB HCI in
miod [Wed, 16 Jul 2014 17:11:37 +0000 (17:11 +0000)]
Do not set pci_dopm to 1 on the Gdium; if we do, rebooting puts the USB HCI in
a state PMON doesn't expect, and can't recover from.

10 years agoinvert the description describing calendar, since it is run by default
jmc [Wed, 16 Jul 2014 17:03:17 +0000 (17:03 +0000)]
invert the description describing calendar, since it is run by default
(so we tell folk how to stop it);

10 years agoreplace beforeinstall target with LINKS; rot13 becomes a hardlink to
okan [Wed, 16 Jul 2014 16:56:45 +0000 (16:56 +0000)]
replace beforeinstall target with LINKS; rot13 becomes a hardlink to
caesar instead of a symlink.

agreed by deraadt, sobrado, guenther

10 years agoHandle the sysmerge move.
ajacoutot [Wed, 16 Jul 2014 16:11:51 +0000 (16:11 +0000)]
Handle the sysmerge move.

10 years agosync
deraadt [Wed, 16 Jul 2014 15:24:33 +0000 (15:24 +0000)]
sync

10 years agoprefer ln -f over rm + ln
okan [Wed, 16 Jul 2014 15:18:35 +0000 (15:18 +0000)]
prefer ln -f over rm + ln

OK deraadt

10 years agoAdd mpbios(4). This fixes hw.ncpufound in bsd.rd on the Soekris net6501
naddy [Wed, 16 Jul 2014 14:59:41 +0000 (14:59 +0000)]
Add mpbios(4).  This fixes hw.ncpufound in bsd.rd on the Soekris net6501
and thus the choice of bsd.mp in the installer.  ok kettenis@

10 years agosync
deraadt [Wed, 16 Jul 2014 14:53:47 +0000 (14:53 +0000)]
sync

10 years agoadd the streamlocal* options to ssh's -o list; millert says they're
jmc [Wed, 16 Jul 2014 14:48:57 +0000 (14:48 +0000)]
add the streamlocal* options to ssh's -o list; millert says they're
irrelevant for scp/sftp;

ok markus millert

10 years agono more /etc/disklabels (ironically making my previous commit to this
jmc [Wed, 16 Jul 2014 14:47:37 +0000 (14:47 +0000)]
no more /etc/disklabels (ironically making my previous commit to this
file redundant);

10 years agouse /bin/sh instead of /bin/ksh and add cvs id.
okan [Wed, 16 Jul 2014 14:34:33 +0000 (14:34 +0000)]
use /bin/sh instead of /bin/ksh and add cvs id.

OK deraadt

10 years agoOnly call getauxval(3) if HAVE_GETAUXVAL is defined. Fixes build on older
kettenis [Wed, 16 Jul 2014 14:26:47 +0000 (14:26 +0000)]
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 agono more html/milter;
jmc [Wed, 16 Jul 2014 14:25:31 +0000 (14:25 +0000)]
no more html/milter;

10 years agono more html/curses (i'm effectively undoing -r1.10);
jmc [Wed, 16 Jul 2014 14:21:45 +0000 (14:21 +0000)]
no more html/curses (i'm effectively undoing -r1.10);

10 years agoconvert to new readable format; requesting post-commit review by ingo
deraadt [Wed, 16 Jul 2014 14:19:37 +0000 (14:19 +0000)]
convert to new readable format; requesting post-commit review by ingo

10 years agospaces
deraadt [Wed, 16 Jul 2014 14:19:05 +0000 (14:19 +0000)]
spaces

10 years agotweak previous;
jmc [Wed, 16 Jul 2014 14:11:50 +0000 (14:11 +0000)]
tweak previous;

10 years agoYes /etc/disklabels/ is a good practice for placing labels of disks
deraadt [Wed, 16 Jul 2014 13:46:30 +0000 (13:46 +0000)]
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 agomixerctl.conf wsconsctl.conf can properly become examples.
deraadt [Wed, 16 Jul 2014 13:21:33 +0000 (13:21 +0000)]
mixerctl.conf wsconsctl.conf can properly become examples.
As discussed a few days ago with aja

10 years agothe files listed under BIN1 are not binaries in any way. Let's call
deraadt [Wed, 16 Jul 2014 12:50:42 +0000 (12:50 +0000)]
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 agocreate examples/pf.conf which is a clone of the existing file. Now
deraadt [Wed, 16 Jul 2014 12:46:16 +0000 (12:46 +0000)]
create examples/pf.conf which is a clone of the existing file.  Now
the existing file can start losing... examples...

10 years agoBIN2 is now just motd; install it direct without the abstractions. While
deraadt [Wed, 16 Jul 2014 12:25:52 +0000 (12:25 +0000)]
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 agothe scan for transforming free(...) to (free..., 0) failed becuase this
deraadt [Wed, 16 Jul 2014 10:45:46 +0000 (10:45 +0000)]
the scan for transforming free(...) to (free..., 0) failed becuase this
file has 'free ('
:-/

10 years agodo not need a variable to track locking, since all code paths have it
deraadt [Wed, 16 Jul 2014 10:43:06 +0000 (10:43 +0000)]
do not need a variable to track locking, since all code paths have it
locked throughout.

10 years agosync
deraadt [Wed, 16 Jul 2014 10:36:11 +0000 (10:36 +0000)]
sync

10 years agolynx has left the tree, and let's be honest noone will find these html
deraadt [Wed, 16 Jul 2014 10:35:48 +0000 (10:35 +0000)]
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 agomore lynx bits
deraadt [Wed, 16 Jul 2014 10:25:38 +0000 (10:25 +0000)]
more lynx bits

10 years agoImplement file descriptor accounting. The concept was taken from
reyk [Wed, 16 Jul 2014 10:25:28 +0000 (10:25 +0000)]
Implement file descriptor accounting.  The concept was taken from
relayd but had to be adjusted for httpd.  It now handles single-pass
HTTP connections, persistent connections with multiple requests, and
body-less HEAD requests.  With input from benno@

10 years agoAdd a comment at the top of sysctl.conf when it is created by the
ajacoutot [Wed, 16 Jul 2014 08:27:14 +0000 (08:27 +0000)]
Add a comment at the top of sysctl.conf when it is created by the
installer.

ok deraadt@ rpe@

10 years agoReenable hibernate RLE support and flush+zero all memory after unpack.
mlarkin [Wed, 16 Jul 2014 07:42:50 +0000 (07:42 +0000)]
Reenable hibernate RLE support and flush+zero all memory after unpack.

10 years agoClean up the ifdef maze in usage() by reformatting it to have distinct
lteo [Wed, 16 Jul 2014 04:52:43 +0000 (04:52 +0000)]
Clean up the ifdef maze in usage() by reformatting it to have distinct
!SMALL and SMALL sections.  This makes future changes easier to review
and to compare with the man page's synopsis.

The usage output is the same as before so there is no change from the
user's point of view.

usage() cleanup and !SMALL/SMALL separation suggested by jmc@
ok jmc@

10 years agosync
deraadt [Wed, 16 Jul 2014 02:02:56 +0000 (02:02 +0000)]
sync

10 years agoanother piece of lynx hides here
deraadt [Wed, 16 Jul 2014 02:02:49 +0000 (02:02 +0000)]
another piece of lynx hides here

10 years agolynx will go to ports. there are too many reasons for it to go there,
deraadt [Wed, 16 Jul 2014 01:23:39 +0000 (01:23 +0000)]
lynx will go to ports.  there are too many reasons for it to go there,
and not enough for it to stay.  lengthy discussions.

10 years agosync
deraadt [Wed, 16 Jul 2014 00:40:11 +0000 (00:40 +0000)]
sync

10 years ago#ifdef wrap the _rs_forkhandler
deraadt [Wed, 16 Jul 2014 00:18:54 +0000 (00:18 +0000)]
#ifdef wrap the _rs_forkhandler

10 years agoadded handler for an atfork hook from kettenis@
bcook [Wed, 16 Jul 2014 00:15:35 +0000 (00:15 +0000)]
added handler for an atfork hook from kettenis@

ok deraadt@ beck@ kettenis@

10 years agotidy up the script
deraadt [Tue, 15 Jul 2014 23:13:48 +0000 (23:13 +0000)]
tidy up the script

10 years agoDon't define uuid_t yet; unbreaks some ports. spotted by jca@
miod [Tue, 15 Jul 2014 23:10:27 +0000 (23:10 +0000)]
Don't define uuid_t yet; unbreaks some ports. spotted by jca@

10 years agoremove support for the non-standard BSDmakefile, which make tries to
deraadt [Tue, 15 Jul 2014 23:07:19 +0000 (23:07 +0000)]
remove support for the non-standard BSDmakefile, which make tries to
open first.  a handful of strange ports will cope soon.
ok espie

10 years agomode 644 for installing these files
deraadt [Tue, 15 Jul 2014 22:14:37 +0000 (22:14 +0000)]
mode 644 for installing these files

10 years agodelete commented out sl
deraadt [Tue, 15 Jul 2014 22:12:10 +0000 (22:12 +0000)]
delete commented out sl

10 years agoApparently people updating this no longer fix the DOW and the minute and
miod [Tue, 15 Jul 2014 22:05:29 +0000 (22:05 +0000)]
Apparently people updating this no longer fix the DOW and the minute and
seconds values in the announcement timestamps. Damn youngsters.

10 years agocrank to 5.6-beta
deraadt [Tue, 15 Jul 2014 21:59:16 +0000 (21:59 +0000)]
crank to 5.6-beta

10 years agoRemove ppi (hp300 leftover)
miod [Tue, 15 Jul 2014 17:36:13 +0000 (17:36 +0000)]
Remove ppi (hp300 leftover)

10 years agoImplement rw_cas() with atomic_cas_ulong() now, instead of a dedicated
miod [Tue, 15 Jul 2014 16:28:11 +0000 (16:28 +0000)]
Implement rw_cas() with atomic_cas_ulong() now, instead of a dedicated
routine.

10 years agoFix stupid bug in atomic_{add,sub}_int_nv_mp, and stupider bug in
miod [Tue, 15 Jul 2014 16:26:28 +0000 (16:26 +0000)]
Fix stupid bug in atomic_{add,sub}_int_nv_mp, and stupider bug in
atomic_cas_uint_mp.
Also, make the interprocessor interlock the only thing on its cache line.

10 years agoadd port entries for quagga from the documentation, ok ajacoutot@
sthen [Tue, 15 Jul 2014 15:58:39 +0000 (15:58 +0000)]
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 agoAdd support for Unix domain socket forwarding. A remote TCP port
millert [Tue, 15 Jul 2014 15:54:14 +0000 (15:54 +0000)]
Add support for Unix domain socket forwarding.  A remote TCP port
may be forwarded to a local Unix domain socket and vice versa or
both ends may be a Unix domain socket.  This is a reimplementation
of the streamlocal patches by William Ahern from:
    http://www.25thandclement.com/~william/projects/streamlocal.html
OK djm@ markus@

10 years agoconserver moved port, ok ajacoutot@
sthen [Tue, 15 Jul 2014 15:52:38 +0000 (15:52 +0000)]
conserver moved port, ok ajacoutot@

10 years agotypo
ajacoutot [Tue, 15 Jul 2014 15:30:56 +0000 (15:30 +0000)]
typo

10 years agoput examples/ in the right place;
jmc [Tue, 15 Jul 2014 11:26:20 +0000 (11:26 +0000)]
put examples/ in the right place;

10 years agoadd -N to usage()/SYNOPSIS and tweak previous;
jmc [Tue, 15 Jul 2014 11:25:22 +0000 (11:25 +0000)]
add -N to usage()/SYNOPSIS and tweak previous;
rather than adding "net" to the -o list, claudio points out that
-o net and -o noauto are really noops, so remove "noauto";

help/ok claudio

10 years agoBSD.local.dist went away
deraadt [Tue, 15 Jul 2014 10:09:36 +0000 (10:09 +0000)]
BSD.local.dist went away

10 years agodon't diplay the full path in error messages
reyk [Tue, 15 Jul 2014 09:51:06 +0000 (09:51 +0000)]
don't diplay the full path in error messages

10 years ago/var/db/sysmerge -> /usr/share/sysmerge
ajacoutot [Tue, 15 Jul 2014 09:27:04 +0000 (09:27 +0000)]
/var/db/sysmerge -> /usr/share/sysmerge

ok deraadt@

10 years agofolded back into 4.4BSD.dist
espie [Tue, 15 Jul 2014 09:14:50 +0000 (09:14 +0000)]
folded back into 4.4BSD.dist
removed to unconfuse devs

okay aja, theo

10 years agonew dir /usr/share/sysmerge
deraadt [Tue, 15 Jul 2014 09:12:09 +0000 (09:12 +0000)]
new dir /usr/share/sysmerge

10 years agocorrect dir
deraadt [Tue, 15 Jul 2014 09:11:18 +0000 (09:11 +0000)]
correct dir

10 years agoadd /usr/local/lib/pkgconfig to mtree, ok espie@ jasper@
sthen [Tue, 15 Jul 2014 09:03:00 +0000 (09:03 +0000)]
add /usr/local/lib/pkgconfig to mtree, ok espie@ jasper@

10 years agoCreate /etc/sysctl.conf based upon the 3 variables we might want to set
deraadt [Tue, 15 Jul 2014 08:49:50 +0000 (08:49 +0000)]
Create /etc/sysctl.conf based upon the 3 variables we might want to set
at install time.
ok aja

10 years agoMove more user-unmutable files to the base set, as well as all the
deraadt [Tue, 15 Jul 2014 08:31:56 +0000 (08:31 +0000)]
Move more user-unmutable files to the base set, as well as all the
directories.  sysctl.conf moves this time also.

10 years agosysctl.conf moves to etc/examples
deraadt [Tue, 15 Jul 2014 08:28:43 +0000 (08:28 +0000)]
sysctl.conf moves to etc/examples

10 years agoMake sure to correctly exit the loop in priv_flush_routes() in case of
miod [Mon, 14 Jul 2014 18:16:27 +0000 (18:16 +0000)]
Make sure to correctly exit the loop in priv_flush_routes() in case of
allocation failure; ok krw@

10 years agoIn the next step, stop accepting the nibble-swapped protocol for 5.6.
deraadt [Mon, 14 Jul 2014 12:18:30 +0000 (12:18 +0000)]
In the next step, stop accepting the nibble-swapped protocol for 5.6.
This completes the transition.  A cvs log and diff will tell the story
of why we went through this.
with david.dahlberg@fkie.fraunhofer.de and claudio

10 years agosync
deraadt [Mon, 14 Jul 2014 10:42:01 +0000 (10:42 +0000)]
sync

10 years agowhitespace
jasper [Mon, 14 Jul 2014 10:23:58 +0000 (10:23 +0000)]
whitespace

10 years agoAdd shebang to make it clear these files are shell scripts (they are
ajacoutot [Mon, 14 Jul 2014 10:15:33 +0000 (10:15 +0000)]
Add shebang to make it clear these files are shell scripts (they are
explicitely executed by sh(1)).

discussed with deraadt@

10 years agoquiet /etc/rc.shutdown, it may not exist.
ajacoutot [Mon, 14 Jul 2014 10:10:44 +0000 (10:10 +0000)]
quiet /etc/rc.shutdown, it may not exist.

ok deraadt@

10 years agoEnable ext2fs support on RAMDISK_CD. Requested a few months ago in
zhuk [Mon, 14 Jul 2014 09:51:16 +0000 (09:51 +0000)]
Enable ext2fs support on RAMDISK_CD. Requested a few months ago in
private mail. We already have mount_ext2fs there, so it's likely to
be just forgotten to be enabled.

kirby@ kindly tested that kernel still fits.

okay deraadt

10 years agonot needed anymore
deraadt [Mon, 14 Jul 2014 09:48:50 +0000 (09:48 +0000)]
not needed anymore

10 years agoThis isn't C.
ajacoutot [Mon, 14 Jul 2014 09:44:45 +0000 (09:44 +0000)]
This isn't C.

10 years agoOnly set kern.securelevel=1 if it was not lowered nor bumped by
ajacoutot [Mon, 14 Jul 2014 09:44:07 +0000 (09:44 +0000)]
Only set kern.securelevel=1 if it was not lowered nor bumped by
rc.securelevel,

with deraadt@

10 years agoConsistency.
ajacoutot [Mon, 14 Jul 2014 09:42:50 +0000 (09:42 +0000)]
Consistency.

10 years agoDo not output anything by default, to be consistent with the other
ajacoutot [Mon, 14 Jul 2014 09:42:27 +0000 (09:42 +0000)]
Do not output anything by default, to be consistent with the other
site-specific rc.* files, the comment is enough.

ok deraadt@

10 years agoConvert ftp(1) to libressl, rather than rolling in^W^Whand rolling libssl.
jsing [Mon, 14 Jul 2014 09:26:27 +0000 (09:26 +0000)]
Convert ftp(1) to libressl, rather than rolling in^W^Whand rolling libssl.

ok beck@ deraadt@

10 years agoNo more "securelevel" variable.
ajacoutot [Mon, 14 Jul 2014 09:21:04 +0000 (09:21 +0000)]
No more "securelevel" variable.

10 years agopowerdown=YES has been removed.
pelikan [Mon, 14 Jul 2014 09:19:21 +0000 (09:19 +0000)]
powerdown=YES has been removed.

ok deraadt

10 years agopowerdown is gone.
ajacoutot [Mon, 14 Jul 2014 09:14:11 +0000 (09:14 +0000)]
powerdown is gone.

10 years agoAdd /etc/examples/
ajacoutot [Mon, 14 Jul 2014 09:12:43 +0000 (09:12 +0000)]
Add /etc/examples/

prodded by jmc@

10 years ago/etc/rc already takes care of creating /var/run/utmp.
ajacoutot [Mon, 14 Jul 2014 09:11:27 +0000 (09:11 +0000)]
/etc/rc already takes care of creating /var/run/utmp.

ok deraadt@ giovanni@

10 years agorc.{local,securelevel,shutdown} become examples. If versions of them
deraadt [Mon, 14 Jul 2014 09:04:02 +0000 (09:04 +0000)]
rc.{local,securelevel,shutdown} become examples.  If versions of them
are created in /etc, they are executed (they used to be sourced) to
avoid polluting the rc variable space.  The powerdown= and securelevel=
features are removed; they are likely only used by 2 people.  the
secureleve is now always raised; this is the only sensible default.
ok ajacoutot

10 years agoTrack Connection: Keep-Alive
reyk [Mon, 14 Jul 2014 09:03:08 +0000 (09:03 +0000)]
Track Connection: Keep-Alive

10 years agoWrite to the correct control module registers when configuring gpio pins.
rapha [Mon, 14 Jul 2014 08:55:07 +0000 (08:55 +0000)]
Write to the correct control module registers when configuring gpio pins.

Tested and ok joshe@